All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.protos.gossip.Message Maven / Gradle / Ivy

Go to download

Java SDK for Hyperledger Fabric. Deprecated as of Fabric v2.5, replaced by org.hyperledger.fabric:fabric-gateway.

There is a newer version: 2.2.26
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: gossip/message.proto

package org.hyperledger.fabric.protos.gossip;

public final class Message {
  private Message() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code gossip.PullMsgType}
   */
  public enum PullMsgType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * UNDEFINED = 0;
     */
    UNDEFINED(0),
    /**
     * BLOCK_MSG = 1;
     */
    BLOCK_MSG(1),
    /**
     * IDENTITY_MSG = 2;
     */
    IDENTITY_MSG(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * UNDEFINED = 0;
     */
    public static final int UNDEFINED_VALUE = 0;
    /**
     * BLOCK_MSG = 1;
     */
    public static final int BLOCK_MSG_VALUE = 1;
    /**
     * IDENTITY_MSG = 2;
     */
    public static final int IDENTITY_MSG_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PullMsgType valueOf(int value) {
      return forNumber(value);
    }

    public static PullMsgType forNumber(int value) {
      switch (value) {
        case 0: return UNDEFINED;
        case 1: return BLOCK_MSG;
        case 2: return IDENTITY_MSG;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PullMsgType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public PullMsgType findValueByNumber(int number) {
              return PullMsgType.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.hyperledger.fabric.protos.gossip.Message.getDescriptor().getEnumTypes().get(0);
    }

    private static final PullMsgType[] VALUES = values();

    public static PullMsgType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private PullMsgType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:gossip.PullMsgType)
  }

  public interface EnvelopeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:gossip.Envelope)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional bytes payload = 1;
     */
    com.google.protobuf.ByteString getPayload();

    /**
     * optional bytes signature = 2;
     */
    com.google.protobuf.ByteString getSignature();

    /**
     * optional .gossip.SecretEnvelope secret_envelope = 3;
     */
    boolean hasSecretEnvelope();
    /**
     * optional .gossip.SecretEnvelope secret_envelope = 3;
     */
    org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getSecretEnvelope();
    /**
     * optional .gossip.SecretEnvelope secret_envelope = 3;
     */
    org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder getSecretEnvelopeOrBuilder();
  }
  /**
   * 
   * Envelope contains a marshalled
   * GossipMessage and a signature over it.
   * It may also contain a SecretEnvelope
   * which is a marshalled Secret
   * 
* * Protobuf type {@code gossip.Envelope} */ public static final class Envelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Envelope) EnvelopeOrBuilder { // Use Envelope.newBuilder() to construct. private Envelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Envelope() { payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Envelope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { payload_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } case 26: { org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder subBuilder = null; if (secretEnvelope_ != null) { subBuilder = secretEnvelope_.toBuilder(); } secretEnvelope_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(secretEnvelope_); secretEnvelope_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Envelope.class, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } public static final int SECRET_ENVELOPE_FIELD_NUMBER = 3; private org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope secretEnvelope_; /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public boolean hasSecretEnvelope() { return secretEnvelope_ != null; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getSecretEnvelope() { return secretEnvelope_ == null ? org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance() : secretEnvelope_; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder getSecretEnvelopeOrBuilder() { return getSecretEnvelope(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } if (secretEnvelope_ != null) { output.writeMessage(3, getSecretEnvelope()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } if (secretEnvelope_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSecretEnvelope()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Envelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Envelope other = (org.hyperledger.fabric.protos.gossip.Message.Envelope) obj; boolean result = true; result = result && getPayload() .equals(other.getPayload()); result = result && getSignature() .equals(other.getSignature()); result = result && (hasSecretEnvelope() == other.hasSecretEnvelope()); if (hasSecretEnvelope()) { result = result && getSecretEnvelope() .equals(other.getSecretEnvelope()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); if (hasSecretEnvelope()) { hash = (37 * hash) + SECRET_ENVELOPE_FIELD_NUMBER; hash = (53 * hash) + getSecretEnvelope().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Envelope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Envelope contains a marshalled
     * GossipMessage and a signature over it.
     * It may also contain a SecretEnvelope
     * which is a marshalled Secret
     * 
* * Protobuf type {@code gossip.Envelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Envelope) org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Envelope.class, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Envelope.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; if (secretEnvelopeBuilder_ == null) { secretEnvelope_ = null; } else { secretEnvelope_ = null; secretEnvelopeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Envelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Envelope build() { org.hyperledger.fabric.protos.gossip.Message.Envelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Envelope buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Envelope result = new org.hyperledger.fabric.protos.gossip.Message.Envelope(this); result.payload_ = payload_; result.signature_ = signature_; if (secretEnvelopeBuilder_ == null) { result.secretEnvelope_ = secretEnvelope_; } else { result.secretEnvelope_ = secretEnvelopeBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Envelope) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Envelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Envelope other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()) return this; if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } if (other.hasSecretEnvelope()) { mergeSecretEnvelope(other.getSecretEnvelope()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Envelope parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Envelope) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** * optional bytes payload = 1; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * optional bytes payload = 1; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope secretEnvelope_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder> secretEnvelopeBuilder_; /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public boolean hasSecretEnvelope() { return secretEnvelopeBuilder_ != null || secretEnvelope_ != null; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getSecretEnvelope() { if (secretEnvelopeBuilder_ == null) { return secretEnvelope_ == null ? org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance() : secretEnvelope_; } else { return secretEnvelopeBuilder_.getMessage(); } } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public Builder setSecretEnvelope(org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope value) { if (secretEnvelopeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } secretEnvelope_ = value; onChanged(); } else { secretEnvelopeBuilder_.setMessage(value); } return this; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public Builder setSecretEnvelope( org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder builderForValue) { if (secretEnvelopeBuilder_ == null) { secretEnvelope_ = builderForValue.build(); onChanged(); } else { secretEnvelopeBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public Builder mergeSecretEnvelope(org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope value) { if (secretEnvelopeBuilder_ == null) { if (secretEnvelope_ != null) { secretEnvelope_ = org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.newBuilder(secretEnvelope_).mergeFrom(value).buildPartial(); } else { secretEnvelope_ = value; } onChanged(); } else { secretEnvelopeBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public Builder clearSecretEnvelope() { if (secretEnvelopeBuilder_ == null) { secretEnvelope_ = null; onChanged(); } else { secretEnvelope_ = null; secretEnvelopeBuilder_ = null; } return this; } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder getSecretEnvelopeBuilder() { onChanged(); return getSecretEnvelopeFieldBuilder().getBuilder(); } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder getSecretEnvelopeOrBuilder() { if (secretEnvelopeBuilder_ != null) { return secretEnvelopeBuilder_.getMessageOrBuilder(); } else { return secretEnvelope_ == null ? org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance() : secretEnvelope_; } } /** * optional .gossip.SecretEnvelope secret_envelope = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder> getSecretEnvelopeFieldBuilder() { if (secretEnvelopeBuilder_ == null) { secretEnvelopeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder>( getSecretEnvelope(), getParentForChildren(), isClean()); secretEnvelope_ = null; } return secretEnvelopeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Envelope) } // @@protoc_insertion_point(class_scope:gossip.Envelope) private static final org.hyperledger.fabric.protos.gossip.Message.Envelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Envelope(); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Envelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Envelope(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Envelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretEnvelopeOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.SecretEnvelope) com.google.protobuf.MessageOrBuilder { /** * optional bytes payload = 1; */ com.google.protobuf.ByteString getPayload(); /** * optional bytes signature = 2; */ com.google.protobuf.ByteString getSignature(); } /** *
   * SecretEnvelope is a marshalled Secret
   * and a signature over it.
   * The signature should be validated by the peer
   * that signed the Envelope the SecretEnvelope
   * came with
   * 
* * Protobuf type {@code gossip.SecretEnvelope} */ public static final class SecretEnvelope extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.SecretEnvelope) SecretEnvelopeOrBuilder { // Use SecretEnvelope.newBuilder() to construct. private SecretEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecretEnvelope() { payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SecretEnvelope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { payload_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.class, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope other = (org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope) obj; boolean result = true; result = result && getPayload() .equals(other.getPayload()); result = result && getSignature() .equals(other.getSignature()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * SecretEnvelope is a marshalled Secret
     * and a signature over it.
     * The signature should be validated by the peer
     * that signed the Envelope the SecretEnvelope
     * came with
     * 
* * Protobuf type {@code gossip.SecretEnvelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.SecretEnvelope) org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.class, org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope build() { org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope buildPartial() { org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope result = new org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope(this); result.payload_ = payload_; result.signature_ = signature_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope other) { if (other == org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance()) return this; if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** * optional bytes payload = 1; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * optional bytes payload = 1; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.SecretEnvelope) } // @@protoc_insertion_point(class_scope:gossip.SecretEnvelope) private static final org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope(); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SecretEnvelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecretEnvelope(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Secret) com.google.protobuf.MessageOrBuilder { /** * optional string internalEndpoint = 1; */ java.lang.String getInternalEndpoint(); /** * optional string internalEndpoint = 1; */ com.google.protobuf.ByteString getInternalEndpointBytes(); public org.hyperledger.fabric.protos.gossip.Message.Secret.ContentCase getContentCase(); } /** *
   * Secret is an entity that might be omitted
   * from an Envelope when the remote peer that is receiving
   * the Envelope shouldn't know the secret's content.
   * 
* * Protobuf type {@code gossip.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Secret) SecretOrBuilder { // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Secret( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); contentCase_ = 1; content_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Secret.class, org.hyperledger.fabric.protos.gossip.Message.Secret.Builder.class); } private int contentCase_ = 0; private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite { INTERNALENDPOINT(1), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContentCase valueOf(int value) { return forNumber(value); } public static ContentCase forNumber(int value) { switch (value) { case 1: return INTERNALENDPOINT; case 0: return CONTENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public static final int INTERNALENDPOINT_FIELD_NUMBER = 1; /** * optional string internalEndpoint = 1; */ public java.lang.String getInternalEndpoint() { java.lang.Object ref = ""; if (contentCase_ == 1) { ref = content_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 1) { content_ = s; } return s; } } /** * optional string internalEndpoint = 1; */ public com.google.protobuf.ByteString getInternalEndpointBytes() { java.lang.Object ref = ""; if (contentCase_ == 1) { ref = content_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 1) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (contentCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (contentCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Secret)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Secret other = (org.hyperledger.fabric.protos.gossip.Message.Secret) obj; boolean result = true; result = result && getContentCase().equals( other.getContentCase()); if (!result) return false; switch (contentCase_) { case 1: result = result && getInternalEndpoint() .equals(other.getInternalEndpoint()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (contentCase_) { case 1: hash = (37 * hash) + INTERNALENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getInternalEndpoint().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Secret prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Secret is an entity that might be omitted
     * from an Envelope when the remote peer that is receiving
     * the Envelope shouldn't know the secret's content.
     * 
* * Protobuf type {@code gossip.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Secret) org.hyperledger.fabric.protos.gossip.Message.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Secret.class, org.hyperledger.fabric.protos.gossip.Message.Secret.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Secret.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); contentCase_ = 0; content_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Secret getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Secret.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Secret build() { org.hyperledger.fabric.protos.gossip.Message.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Secret buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Secret result = new org.hyperledger.fabric.protos.gossip.Message.Secret(this); if (contentCase_ == 1) { result.content_ = content_; } result.contentCase_ = contentCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Secret) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Secret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Secret other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Secret.getDefaultInstance()) return this; switch (other.getContentCase()) { case INTERNALENDPOINT: { contentCase_ = 1; content_ = other.content_; onChanged(); break; } case CONTENT_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Secret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int contentCase_ = 0; private java.lang.Object content_; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public Builder clearContent() { contentCase_ = 0; content_ = null; onChanged(); return this; } /** * optional string internalEndpoint = 1; */ public java.lang.String getInternalEndpoint() { java.lang.Object ref = ""; if (contentCase_ == 1) { ref = content_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (contentCase_ == 1) { content_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string internalEndpoint = 1; */ public com.google.protobuf.ByteString getInternalEndpointBytes() { java.lang.Object ref = ""; if (contentCase_ == 1) { ref = content_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (contentCase_ == 1) { content_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string internalEndpoint = 1; */ public Builder setInternalEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentCase_ = 1; content_ = value; onChanged(); return this; } /** * optional string internalEndpoint = 1; */ public Builder clearInternalEndpoint() { if (contentCase_ == 1) { contentCase_ = 0; content_ = null; onChanged(); } return this; } /** * optional string internalEndpoint = 1; */ public Builder setInternalEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 1; content_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Secret) } // @@protoc_insertion_point(class_scope:gossip.Secret) private static final org.hyperledger.fabric.protos.gossip.Message.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Secret(); } public static org.hyperledger.fabric.protos.gossip.Message.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GossipMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.GossipMessage) com.google.protobuf.MessageOrBuilder { /** *
     * used mainly for testing, but will might be used in the future
     * for ensuring message delivery by acking
     * 
* * optional uint64 nonce = 1; */ long getNonce(); /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * optional bytes channel = 2; */ com.google.protobuf.ByteString getChannel(); /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ int getTagValue(); /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag(); /** *
     * Membership
     * 
* * optional .gossip.AliveMessage alive_msg = 5; */ org.hyperledger.fabric.protos.gossip.Message.AliveMessage getAliveMsg(); /** *
     * Membership
     * 
* * optional .gossip.AliveMessage alive_msg = 5; */ org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder getAliveMsgOrBuilder(); /** * optional .gossip.MembershipRequest mem_req = 6; */ org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getMemReq(); /** * optional .gossip.MembershipRequest mem_req = 6; */ org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder getMemReqOrBuilder(); /** * optional .gossip.MembershipResponse mem_res = 7; */ org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getMemRes(); /** * optional .gossip.MembershipResponse mem_res = 7; */ org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder getMemResOrBuilder(); /** *
     * Contains a ledger block
     * 
* * optional .gossip.DataMessage data_msg = 8; */ org.hyperledger.fabric.protos.gossip.Message.DataMessage getDataMsg(); /** *
     * Contains a ledger block
     * 
* * optional .gossip.DataMessage data_msg = 8; */ org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder getDataMsgOrBuilder(); /** *
     * Used for push&pull
     * 
* * optional .gossip.GossipHello hello = 9; */ org.hyperledger.fabric.protos.gossip.Message.GossipHello getHello(); /** *
     * Used for push&pull
     * 
* * optional .gossip.GossipHello hello = 9; */ org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder getHelloOrBuilder(); /** * optional .gossip.DataDigest data_dig = 10; */ org.hyperledger.fabric.protos.gossip.Message.DataDigest getDataDig(); /** * optional .gossip.DataDigest data_dig = 10; */ org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder getDataDigOrBuilder(); /** * optional .gossip.DataRequest data_req = 11; */ org.hyperledger.fabric.protos.gossip.Message.DataRequest getDataReq(); /** * optional .gossip.DataRequest data_req = 11; */ org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder getDataReqOrBuilder(); /** * optional .gossip.DataUpdate data_update = 12; */ org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDataUpdate(); /** * optional .gossip.DataUpdate data_update = 12; */ org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder getDataUpdateOrBuilder(); /** *
     * Empty message, used for pinging
     * 
* * optional .gossip.Empty empty = 13; */ org.hyperledger.fabric.protos.gossip.Message.Empty getEmpty(); /** *
     * Empty message, used for pinging
     * 
* * optional .gossip.Empty empty = 13; */ org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder getEmptyOrBuilder(); /** *
     * ConnEstablish, used for establishing a connection
     * 
* * optional .gossip.ConnEstablish conn = 14; */ org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getConn(); /** *
     * ConnEstablish, used for establishing a connection
     * 
* * optional .gossip.ConnEstablish conn = 14; */ org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder getConnOrBuilder(); /** *
     * Used for relaying information
     * about state
     * 
* * optional .gossip.StateInfo state_info = 15; */ org.hyperledger.fabric.protos.gossip.Message.StateInfo getStateInfo(); /** *
     * Used for relaying information
     * about state
     * 
* * optional .gossip.StateInfo state_info = 15; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder getStateInfoOrBuilder(); /** *
     * Used for sending sets of StateInfo messages
     * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getStateSnapshot(); /** *
     * Used for sending sets of StateInfo messages
     * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder(); /** *
     * Used for asking for StateInfoSnapshots
     * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getStateInfoPullReq(); /** *
     * Used for asking for StateInfoSnapshots
     * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder getStateInfoPullReqOrBuilder(); /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getStateRequest(); /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder getStateRequestOrBuilder(); /** *
     * Used to send a set of blocks to a remote peer
     * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getStateResponse(); /** *
     * Used to send a set of blocks to a remote peer
     * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder getStateResponseOrBuilder(); /** *
     * Used to indicate intent of peer to become leader
     * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getLeadershipMsg(); /** *
     * Used to indicate intent of peer to become leader
     * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder(); /** *
     * Used to learn of a peer's certificate
     * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getPeerIdentity(); /** *
     * Used to learn of a peer's certificate
     * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder getPeerIdentityOrBuilder(); /** * optional .gossip.Acknowledgement ack = 22; */ org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getAck(); /** * optional .gossip.Acknowledgement ack = 22; */ org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder getAckOrBuilder(); /** *
     * Used to request private data
     * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getPrivateReq(); /** *
     * Used to request private data
     * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder(); /** *
     * Used to respond to private data requests
     * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getPrivateRes(); /** *
     * Used to respond to private data requests
     * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder(); /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getPrivateData(); /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder getPrivateDataOrBuilder(); public org.hyperledger.fabric.protos.gossip.Message.GossipMessage.ContentCase getContentCase(); } /** *
   * GossipMessage defines the message sent in a gossip network
   * 
* * Protobuf type {@code gossip.GossipMessage} */ public static final class GossipMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.GossipMessage) GossipMessageOrBuilder { // Use GossipMessage.newBuilder() to construct. private GossipMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GossipMessage() { nonce_ = 0L; channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GossipMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readUInt64(); break; } case 18: { channel_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); tag_ = rawValue; break; } case 42: { org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder subBuilder = null; if (contentCase_ == 5) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.AliveMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 5; break; } case 50: { org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder subBuilder = null; if (contentCase_ == 6) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 6; break; } case 58: { org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder subBuilder = null; if (contentCase_ == 7) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 7; break; } case 66: { org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder subBuilder = null; if (contentCase_ == 8) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.DataMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 8; break; } case 74: { org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder subBuilder = null; if (contentCase_ == 9) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.GossipHello.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 9; break; } case 82: { org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder subBuilder = null; if (contentCase_ == 10) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.DataDigest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 10; break; } case 90: { org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder subBuilder = null; if (contentCase_ == 11) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.DataRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 11; break; } case 98: { org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder subBuilder = null; if (contentCase_ == 12) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.DataUpdate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 12; break; } case 106: { org.hyperledger.fabric.protos.gossip.Message.Empty.Builder subBuilder = null; if (contentCase_ == 13) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.Empty) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Empty.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Empty) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 13; break; } case 114: { org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder subBuilder = null; if (contentCase_ == 14) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 14; break; } case 122: { org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder subBuilder = null; if (contentCase_ == 15) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.StateInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 15; break; } case 130: { org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder subBuilder = null; if (contentCase_ == 16) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 16; break; } case 138: { org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder subBuilder = null; if (contentCase_ == 17) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 17; break; } case 146: { org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder subBuilder = null; if (contentCase_ == 18) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 18; break; } case 154: { org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder subBuilder = null; if (contentCase_ == 19) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 19; break; } case 162: { org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder subBuilder = null; if (contentCase_ == 20) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 20; break; } case 170: { org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder subBuilder = null; if (contentCase_ == 21) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 21; break; } case 178: { org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder subBuilder = null; if (contentCase_ == 22) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 22; break; } case 186: { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder subBuilder = null; if (contentCase_ == 23) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 23; break; } case 194: { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder subBuilder = null; if (contentCase_ == 24) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 24; break; } case 202: { org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder subBuilder = null; if (contentCase_ == 25) { subBuilder = ((org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_).toBuilder(); } content_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_); content_ = subBuilder.buildPartial(); } contentCase_ = 25; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.GossipMessage.class, org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Builder.class); } /** * Protobuf enum {@code gossip.GossipMessage.Tag} */ public enum Tag implements com.google.protobuf.ProtocolMessageEnum { /** * UNDEFINED = 0; */ UNDEFINED(0), /** * EMPTY = 1; */ EMPTY(1), /** * ORG_ONLY = 2; */ ORG_ONLY(2), /** * CHAN_ONLY = 3; */ CHAN_ONLY(3), /** * CHAN_AND_ORG = 4; */ CHAN_AND_ORG(4), /** * CHAN_OR_ORG = 5; */ CHAN_OR_ORG(5), UNRECOGNIZED(-1), ; /** * UNDEFINED = 0; */ public static final int UNDEFINED_VALUE = 0; /** * EMPTY = 1; */ public static final int EMPTY_VALUE = 1; /** * ORG_ONLY = 2; */ public static final int ORG_ONLY_VALUE = 2; /** * CHAN_ONLY = 3; */ public static final int CHAN_ONLY_VALUE = 3; /** * CHAN_AND_ORG = 4; */ public static final int CHAN_AND_ORG_VALUE = 4; /** * CHAN_OR_ORG = 5; */ public static final int CHAN_OR_ORG_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tag valueOf(int value) { return forNumber(value); } public static Tag forNumber(int value) { switch (value) { case 0: return UNDEFINED; case 1: return EMPTY; case 2: return ORG_ONLY; case 3: return CHAN_ONLY; case 4: return CHAN_AND_ORG; case 5: return CHAN_OR_ORG; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Tag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Tag findValueByNumber(int number) { return Tag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.GossipMessage.getDescriptor().getEnumTypes().get(0); } private static final Tag[] VALUES = values(); public static Tag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Tag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:gossip.GossipMessage.Tag) } private int contentCase_ = 0; private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite { ALIVE_MSG(5), MEM_REQ(6), MEM_RES(7), DATA_MSG(8), HELLO(9), DATA_DIG(10), DATA_REQ(11), DATA_UPDATE(12), EMPTY(13), CONN(14), STATE_INFO(15), STATE_SNAPSHOT(16), STATE_INFO_PULL_REQ(17), STATE_REQUEST(18), STATE_RESPONSE(19), LEADERSHIP_MSG(20), PEER_IDENTITY(21), ACK(22), PRIVATEREQ(23), PRIVATERES(24), PRIVATE_DATA(25), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContentCase valueOf(int value) { return forNumber(value); } public static ContentCase forNumber(int value) { switch (value) { case 5: return ALIVE_MSG; case 6: return MEM_REQ; case 7: return MEM_RES; case 8: return DATA_MSG; case 9: return HELLO; case 10: return DATA_DIG; case 11: return DATA_REQ; case 12: return DATA_UPDATE; case 13: return EMPTY; case 14: return CONN; case 15: return STATE_INFO; case 16: return STATE_SNAPSHOT; case 17: return STATE_INFO_PULL_REQ; case 18: return STATE_REQUEST; case 19: return STATE_RESPONSE; case 20: return LEADERSHIP_MSG; case 21: return PEER_IDENTITY; case 22: return ACK; case 23: return PRIVATEREQ; case 24: return PRIVATERES; case 25: return PRIVATE_DATA; case 0: return CONTENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** *
     * used mainly for testing, but will might be used in the future
     * for ensuring message delivery by acking
     * 
* * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } public static final int CHANNEL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString channel_; /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * optional bytes channel = 2; */ public com.google.protobuf.ByteString getChannel() { return channel_; } public static final int TAG_FIELD_NUMBER = 3; private int tag_; /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public int getTagValue() { return tag_; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag() { org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag result = org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.valueOf(tag_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.UNRECOGNIZED : result; } public static final int ALIVE_MSG_FIELD_NUMBER = 5; /** *
     * Membership
     * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessage getAliveMsg() { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } /** *
     * Membership
     * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder getAliveMsgOrBuilder() { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } public static final int MEM_REQ_FIELD_NUMBER = 6; /** * optional .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getMemReq() { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } /** * optional .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder getMemReqOrBuilder() { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } public static final int MEM_RES_FIELD_NUMBER = 7; /** * optional .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getMemRes() { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } /** * optional .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder getMemResOrBuilder() { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } public static final int DATA_MSG_FIELD_NUMBER = 8; /** *
     * Contains a ledger block
     * 
* * optional .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessage getDataMsg() { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } /** *
     * Contains a ledger block
     * 
* * optional .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder getDataMsgOrBuilder() { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } public static final int HELLO_FIELD_NUMBER = 9; /** *
     * Used for push&pull
     * 
* * optional .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHello getHello() { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } /** *
     * Used for push&pull
     * 
* * optional .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder getHelloOrBuilder() { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } public static final int DATA_DIG_FIELD_NUMBER = 10; /** * optional .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigest getDataDig() { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } /** * optional .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder getDataDigOrBuilder() { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } public static final int DATA_REQ_FIELD_NUMBER = 11; /** * optional .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequest getDataReq() { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } /** * optional .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder getDataReqOrBuilder() { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } public static final int DATA_UPDATE_FIELD_NUMBER = 12; /** * optional .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDataUpdate() { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } /** * optional .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder getDataUpdateOrBuilder() { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } public static final int EMPTY_FIELD_NUMBER = 13; /** *
     * Empty message, used for pinging
     * 
* * optional .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.Empty getEmpty() { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Message.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } /** *
     * Empty message, used for pinging
     * 
* * optional .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder getEmptyOrBuilder() { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Message.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } public static final int CONN_FIELD_NUMBER = 14; /** *
     * ConnEstablish, used for establishing a connection
     * 
* * optional .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getConn() { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * optional .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder getConnOrBuilder() { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } public static final int STATE_INFO_FIELD_NUMBER = 15; /** *
     * Used for relaying information
     * about state
     * 
* * optional .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfo getStateInfo() { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } /** *
     * Used for relaying information
     * about state
     * 
* * optional .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder getStateInfoOrBuilder() { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } public static final int STATE_SNAPSHOT_FIELD_NUMBER = 16; /** *
     * Used for sending sets of StateInfo messages
     * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getStateSnapshot() { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } /** *
     * Used for sending sets of StateInfo messages
     * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder() { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } public static final int STATE_INFO_PULL_REQ_FIELD_NUMBER = 17; /** *
     * Used for asking for StateInfoSnapshots
     * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getStateInfoPullReq() { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder getStateInfoPullReqOrBuilder() { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } public static final int STATE_REQUEST_FIELD_NUMBER = 18; /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getStateRequest() { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder getStateRequestOrBuilder() { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } public static final int STATE_RESPONSE_FIELD_NUMBER = 19; /** *
     * Used to send a set of blocks to a remote peer
     * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getStateResponse() { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder getStateResponseOrBuilder() { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } public static final int LEADERSHIP_MSG_FIELD_NUMBER = 20; /** *
     * Used to indicate intent of peer to become leader
     * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getLeadershipMsg() { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } /** *
     * Used to indicate intent of peer to become leader
     * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder() { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } public static final int PEER_IDENTITY_FIELD_NUMBER = 21; /** *
     * Used to learn of a peer's certificate
     * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getPeerIdentity() { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } /** *
     * Used to learn of a peer's certificate
     * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder getPeerIdentityOrBuilder() { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } public static final int ACK_FIELD_NUMBER = 22; /** * optional .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getAck() { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } /** * optional .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder getAckOrBuilder() { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } public static final int PRIVATEREQ_FIELD_NUMBER = 23; /** *
     * Used to request private data
     * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getPrivateReq() { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } /** *
     * Used to request private data
     * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder() { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } public static final int PRIVATERES_FIELD_NUMBER = 24; /** *
     * Used to respond to private data requests
     * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getPrivateRes() { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } /** *
     * Used to respond to private data requests
     * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder() { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } public static final int PRIVATE_DATA_FIELD_NUMBER = 25; /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getPrivateData() { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder getPrivateDataOrBuilder() { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeUInt64(1, nonce_); } if (!channel_.isEmpty()) { output.writeBytes(2, channel_); } if (tag_ != org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.UNDEFINED.getNumber()) { output.writeEnum(3, tag_); } if (contentCase_ == 5) { output.writeMessage(5, (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_); } if (contentCase_ == 6) { output.writeMessage(6, (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_); } if (contentCase_ == 7) { output.writeMessage(7, (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_); } if (contentCase_ == 8) { output.writeMessage(8, (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_); } if (contentCase_ == 9) { output.writeMessage(9, (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_); } if (contentCase_ == 10) { output.writeMessage(10, (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_); } if (contentCase_ == 11) { output.writeMessage(11, (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_); } if (contentCase_ == 12) { output.writeMessage(12, (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_); } if (contentCase_ == 13) { output.writeMessage(13, (org.hyperledger.fabric.protos.gossip.Message.Empty) content_); } if (contentCase_ == 14) { output.writeMessage(14, (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_); } if (contentCase_ == 15) { output.writeMessage(15, (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_); } if (contentCase_ == 16) { output.writeMessage(16, (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_); } if (contentCase_ == 17) { output.writeMessage(17, (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_); } if (contentCase_ == 18) { output.writeMessage(18, (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_); } if (contentCase_ == 19) { output.writeMessage(19, (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_); } if (contentCase_ == 20) { output.writeMessage(20, (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_); } if (contentCase_ == 21) { output.writeMessage(21, (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_); } if (contentCase_ == 22) { output.writeMessage(22, (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_); } if (contentCase_ == 23) { output.writeMessage(23, (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_); } if (contentCase_ == 24) { output.writeMessage(24, (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_); } if (contentCase_ == 25) { output.writeMessage(25, (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } if (!channel_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, channel_); } if (tag_ != org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, tag_); } if (contentCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_); } if (contentCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_); } if (contentCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_); } if (contentCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_); } if (contentCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_); } if (contentCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_); } if (contentCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_); } if (contentCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_); } if (contentCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (org.hyperledger.fabric.protos.gossip.Message.Empty) content_); } if (contentCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_); } if (contentCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_); } if (contentCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_); } if (contentCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_); } if (contentCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_); } if (contentCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_); } if (contentCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_); } if (contentCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_); } if (contentCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_); } if (contentCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_); } if (contentCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_); } if (contentCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.GossipMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.GossipMessage other = (org.hyperledger.fabric.protos.gossip.Message.GossipMessage) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); result = result && getChannel() .equals(other.getChannel()); result = result && tag_ == other.tag_; result = result && getContentCase().equals( other.getContentCase()); if (!result) return false; switch (contentCase_) { case 5: result = result && getAliveMsg() .equals(other.getAliveMsg()); break; case 6: result = result && getMemReq() .equals(other.getMemReq()); break; case 7: result = result && getMemRes() .equals(other.getMemRes()); break; case 8: result = result && getDataMsg() .equals(other.getDataMsg()); break; case 9: result = result && getHello() .equals(other.getHello()); break; case 10: result = result && getDataDig() .equals(other.getDataDig()); break; case 11: result = result && getDataReq() .equals(other.getDataReq()); break; case 12: result = result && getDataUpdate() .equals(other.getDataUpdate()); break; case 13: result = result && getEmpty() .equals(other.getEmpty()); break; case 14: result = result && getConn() .equals(other.getConn()); break; case 15: result = result && getStateInfo() .equals(other.getStateInfo()); break; case 16: result = result && getStateSnapshot() .equals(other.getStateSnapshot()); break; case 17: result = result && getStateInfoPullReq() .equals(other.getStateInfoPullReq()); break; case 18: result = result && getStateRequest() .equals(other.getStateRequest()); break; case 19: result = result && getStateResponse() .equals(other.getStateResponse()); break; case 20: result = result && getLeadershipMsg() .equals(other.getLeadershipMsg()); break; case 21: result = result && getPeerIdentity() .equals(other.getPeerIdentity()); break; case 22: result = result && getAck() .equals(other.getAck()); break; case 23: result = result && getPrivateReq() .equals(other.getPrivateReq()); break; case 24: result = result && getPrivateRes() .equals(other.getPrivateRes()); break; case 25: result = result && getPrivateData() .equals(other.getPrivateData()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + tag_; switch (contentCase_) { case 5: hash = (37 * hash) + ALIVE_MSG_FIELD_NUMBER; hash = (53 * hash) + getAliveMsg().hashCode(); break; case 6: hash = (37 * hash) + MEM_REQ_FIELD_NUMBER; hash = (53 * hash) + getMemReq().hashCode(); break; case 7: hash = (37 * hash) + MEM_RES_FIELD_NUMBER; hash = (53 * hash) + getMemRes().hashCode(); break; case 8: hash = (37 * hash) + DATA_MSG_FIELD_NUMBER; hash = (53 * hash) + getDataMsg().hashCode(); break; case 9: hash = (37 * hash) + HELLO_FIELD_NUMBER; hash = (53 * hash) + getHello().hashCode(); break; case 10: hash = (37 * hash) + DATA_DIG_FIELD_NUMBER; hash = (53 * hash) + getDataDig().hashCode(); break; case 11: hash = (37 * hash) + DATA_REQ_FIELD_NUMBER; hash = (53 * hash) + getDataReq().hashCode(); break; case 12: hash = (37 * hash) + DATA_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getDataUpdate().hashCode(); break; case 13: hash = (37 * hash) + EMPTY_FIELD_NUMBER; hash = (53 * hash) + getEmpty().hashCode(); break; case 14: hash = (37 * hash) + CONN_FIELD_NUMBER; hash = (53 * hash) + getConn().hashCode(); break; case 15: hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); break; case 16: hash = (37 * hash) + STATE_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getStateSnapshot().hashCode(); break; case 17: hash = (37 * hash) + STATE_INFO_PULL_REQ_FIELD_NUMBER; hash = (53 * hash) + getStateInfoPullReq().hashCode(); break; case 18: hash = (37 * hash) + STATE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getStateRequest().hashCode(); break; case 19: hash = (37 * hash) + STATE_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getStateResponse().hashCode(); break; case 20: hash = (37 * hash) + LEADERSHIP_MSG_FIELD_NUMBER; hash = (53 * hash) + getLeadershipMsg().hashCode(); break; case 21: hash = (37 * hash) + PEER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getPeerIdentity().hashCode(); break; case 22: hash = (37 * hash) + ACK_FIELD_NUMBER; hash = (53 * hash) + getAck().hashCode(); break; case 23: hash = (37 * hash) + PRIVATEREQ_FIELD_NUMBER; hash = (53 * hash) + getPrivateReq().hashCode(); break; case 24: hash = (37 * hash) + PRIVATERES_FIELD_NUMBER; hash = (53 * hash) + getPrivateRes().hashCode(); break; case 25: hash = (37 * hash) + PRIVATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getPrivateData().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.GossipMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * GossipMessage defines the message sent in a gossip network
     * 
* * Protobuf type {@code gossip.GossipMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.GossipMessage) org.hyperledger.fabric.protos.gossip.Message.GossipMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.GossipMessage.class, org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.GossipMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; contentCase_ = 0; content_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.GossipMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.GossipMessage.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.GossipMessage build() { org.hyperledger.fabric.protos.gossip.Message.GossipMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.GossipMessage buildPartial() { org.hyperledger.fabric.protos.gossip.Message.GossipMessage result = new org.hyperledger.fabric.protos.gossip.Message.GossipMessage(this); result.nonce_ = nonce_; result.channel_ = channel_; result.tag_ = tag_; if (contentCase_ == 5) { if (aliveMsgBuilder_ == null) { result.content_ = content_; } else { result.content_ = aliveMsgBuilder_.build(); } } if (contentCase_ == 6) { if (memReqBuilder_ == null) { result.content_ = content_; } else { result.content_ = memReqBuilder_.build(); } } if (contentCase_ == 7) { if (memResBuilder_ == null) { result.content_ = content_; } else { result.content_ = memResBuilder_.build(); } } if (contentCase_ == 8) { if (dataMsgBuilder_ == null) { result.content_ = content_; } else { result.content_ = dataMsgBuilder_.build(); } } if (contentCase_ == 9) { if (helloBuilder_ == null) { result.content_ = content_; } else { result.content_ = helloBuilder_.build(); } } if (contentCase_ == 10) { if (dataDigBuilder_ == null) { result.content_ = content_; } else { result.content_ = dataDigBuilder_.build(); } } if (contentCase_ == 11) { if (dataReqBuilder_ == null) { result.content_ = content_; } else { result.content_ = dataReqBuilder_.build(); } } if (contentCase_ == 12) { if (dataUpdateBuilder_ == null) { result.content_ = content_; } else { result.content_ = dataUpdateBuilder_.build(); } } if (contentCase_ == 13) { if (emptyBuilder_ == null) { result.content_ = content_; } else { result.content_ = emptyBuilder_.build(); } } if (contentCase_ == 14) { if (connBuilder_ == null) { result.content_ = content_; } else { result.content_ = connBuilder_.build(); } } if (contentCase_ == 15) { if (stateInfoBuilder_ == null) { result.content_ = content_; } else { result.content_ = stateInfoBuilder_.build(); } } if (contentCase_ == 16) { if (stateSnapshotBuilder_ == null) { result.content_ = content_; } else { result.content_ = stateSnapshotBuilder_.build(); } } if (contentCase_ == 17) { if (stateInfoPullReqBuilder_ == null) { result.content_ = content_; } else { result.content_ = stateInfoPullReqBuilder_.build(); } } if (contentCase_ == 18) { if (stateRequestBuilder_ == null) { result.content_ = content_; } else { result.content_ = stateRequestBuilder_.build(); } } if (contentCase_ == 19) { if (stateResponseBuilder_ == null) { result.content_ = content_; } else { result.content_ = stateResponseBuilder_.build(); } } if (contentCase_ == 20) { if (leadershipMsgBuilder_ == null) { result.content_ = content_; } else { result.content_ = leadershipMsgBuilder_.build(); } } if (contentCase_ == 21) { if (peerIdentityBuilder_ == null) { result.content_ = content_; } else { result.content_ = peerIdentityBuilder_.build(); } } if (contentCase_ == 22) { if (ackBuilder_ == null) { result.content_ = content_; } else { result.content_ = ackBuilder_.build(); } } if (contentCase_ == 23) { if (privateReqBuilder_ == null) { result.content_ = content_; } else { result.content_ = privateReqBuilder_.build(); } } if (contentCase_ == 24) { if (privateResBuilder_ == null) { result.content_ = content_; } else { result.content_ = privateResBuilder_.build(); } } if (contentCase_ == 25) { if (privateDataBuilder_ == null) { result.content_ = content_; } else { result.content_ = privateDataBuilder_.build(); } } result.contentCase_ = contentCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.GossipMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.GossipMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.GossipMessage other) { if (other == org.hyperledger.fabric.protos.gossip.Message.GossipMessage.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { setChannel(other.getChannel()); } if (other.tag_ != 0) { setTagValue(other.getTagValue()); } switch (other.getContentCase()) { case ALIVE_MSG: { mergeAliveMsg(other.getAliveMsg()); break; } case MEM_REQ: { mergeMemReq(other.getMemReq()); break; } case MEM_RES: { mergeMemRes(other.getMemRes()); break; } case DATA_MSG: { mergeDataMsg(other.getDataMsg()); break; } case HELLO: { mergeHello(other.getHello()); break; } case DATA_DIG: { mergeDataDig(other.getDataDig()); break; } case DATA_REQ: { mergeDataReq(other.getDataReq()); break; } case DATA_UPDATE: { mergeDataUpdate(other.getDataUpdate()); break; } case EMPTY: { mergeEmpty(other.getEmpty()); break; } case CONN: { mergeConn(other.getConn()); break; } case STATE_INFO: { mergeStateInfo(other.getStateInfo()); break; } case STATE_SNAPSHOT: { mergeStateSnapshot(other.getStateSnapshot()); break; } case STATE_INFO_PULL_REQ: { mergeStateInfoPullReq(other.getStateInfoPullReq()); break; } case STATE_REQUEST: { mergeStateRequest(other.getStateRequest()); break; } case STATE_RESPONSE: { mergeStateResponse(other.getStateResponse()); break; } case LEADERSHIP_MSG: { mergeLeadershipMsg(other.getLeadershipMsg()); break; } case PEER_IDENTITY: { mergePeerIdentity(other.getPeerIdentity()); break; } case ACK: { mergeAck(other.getAck()); break; } case PRIVATEREQ: { mergePrivateReq(other.getPrivateReq()); break; } case PRIVATERES: { mergePrivateRes(other.getPrivateRes()); break; } case PRIVATE_DATA: { mergePrivateData(other.getPrivateData()); break; } case CONTENT_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.GossipMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.GossipMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int contentCase_ = 0; private java.lang.Object content_; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public Builder clearContent() { contentCase_ = 0; content_ = null; onChanged(); return this; } private long nonce_ ; /** *
       * used mainly for testing, but will might be used in the future
       * for ensuring message delivery by acking
       * 
* * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } /** *
       * used mainly for testing, but will might be used in the future
       * for ensuring message delivery by acking
       * 
* * optional uint64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** *
       * used mainly for testing, but will might be used in the future
       * for ensuring message delivery by acking
       * 
* * optional uint64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The channel of the message.
       * Some GossipMessages may set this to nil, because
       * they are cross-channels but some may not
       * 
* * optional bytes channel = 2; */ public com.google.protobuf.ByteString getChannel() { return channel_; } /** *
       * The channel of the message.
       * Some GossipMessages may set this to nil, because
       * they are cross-channels but some may not
       * 
* * optional bytes channel = 2; */ public Builder setChannel(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** *
       * The channel of the message.
       * Some GossipMessages may set this to nil, because
       * they are cross-channels but some may not
       * 
* * optional bytes channel = 2; */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } private int tag_ = 0; /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public int getTagValue() { return tag_; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public Builder setTagValue(int value) { tag_ = value; onChanged(); return this; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag() { org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag result = org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.valueOf(tag_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag.UNRECOGNIZED : result; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public Builder setTag(org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag value) { if (value == null) { throw new NullPointerException(); } tag_ = value.getNumber(); onChanged(); return this; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * optional .gossip.GossipMessage.Tag tag = 3; */ public Builder clearTag() { tag_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.AliveMessage, org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder> aliveMsgBuilder_; /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessage getAliveMsg() { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } else { if (contentCase_ == 5) { return aliveMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public Builder setAliveMsg(org.hyperledger.fabric.protos.gossip.Message.AliveMessage value) { if (aliveMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { aliveMsgBuilder_.setMessage(value); } contentCase_ = 5; return this; } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public Builder setAliveMsg( org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder builderForValue) { if (aliveMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { aliveMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 5; return this; } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public Builder mergeAliveMsg(org.hyperledger.fabric.protos.gossip.Message.AliveMessage value) { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5 && content_ != org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.AliveMessage.newBuilder((org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 5) { aliveMsgBuilder_.mergeFrom(value); } aliveMsgBuilder_.setMessage(value); } contentCase_ = 5; return this; } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public Builder clearAliveMsg() { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 5) { contentCase_ = 0; content_ = null; } aliveMsgBuilder_.clear(); } return this; } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder getAliveMsgBuilder() { return getAliveMsgFieldBuilder().getBuilder(); } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder getAliveMsgOrBuilder() { if ((contentCase_ == 5) && (aliveMsgBuilder_ != null)) { return aliveMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } } /** *
       * Membership
       * 
* * optional .gossip.AliveMessage alive_msg = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.AliveMessage, org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder> getAliveMsgFieldBuilder() { if (aliveMsgBuilder_ == null) { if (!(contentCase_ == 5)) { content_ = org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } aliveMsgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.AliveMessage, org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 5; onChanged();; return aliveMsgBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipRequest, org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder> memReqBuilder_; /** * optional .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getMemReq() { if (memReqBuilder_ == null) { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } else { if (contentCase_ == 6) { return memReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } } /** * optional .gossip.MembershipRequest mem_req = 6; */ public Builder setMemReq(org.hyperledger.fabric.protos.gossip.Message.MembershipRequest value) { if (memReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { memReqBuilder_.setMessage(value); } contentCase_ = 6; return this; } /** * optional .gossip.MembershipRequest mem_req = 6; */ public Builder setMemReq( org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder builderForValue) { if (memReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { memReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 6; return this; } /** * optional .gossip.MembershipRequest mem_req = 6; */ public Builder mergeMemReq(org.hyperledger.fabric.protos.gossip.Message.MembershipRequest value) { if (memReqBuilder_ == null) { if (contentCase_ == 6 && content_ != org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 6) { memReqBuilder_.mergeFrom(value); } memReqBuilder_.setMessage(value); } contentCase_ = 6; return this; } /** * optional .gossip.MembershipRequest mem_req = 6; */ public Builder clearMemReq() { if (memReqBuilder_ == null) { if (contentCase_ == 6) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 6) { contentCase_ = 0; content_ = null; } memReqBuilder_.clear(); } return this; } /** * optional .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder getMemReqBuilder() { return getMemReqFieldBuilder().getBuilder(); } /** * optional .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder getMemReqOrBuilder() { if ((contentCase_ == 6) && (memReqBuilder_ != null)) { return memReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } } /** * optional .gossip.MembershipRequest mem_req = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipRequest, org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder> getMemReqFieldBuilder() { if (memReqBuilder_ == null) { if (!(contentCase_ == 6)) { content_ = org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } memReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipRequest, org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 6; onChanged();; return memReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipResponse, org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder> memResBuilder_; /** * optional .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getMemRes() { if (memResBuilder_ == null) { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } else { if (contentCase_ == 7) { return memResBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } } /** * optional .gossip.MembershipResponse mem_res = 7; */ public Builder setMemRes(org.hyperledger.fabric.protos.gossip.Message.MembershipResponse value) { if (memResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { memResBuilder_.setMessage(value); } contentCase_ = 7; return this; } /** * optional .gossip.MembershipResponse mem_res = 7; */ public Builder setMemRes( org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder builderForValue) { if (memResBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { memResBuilder_.setMessage(builderForValue.build()); } contentCase_ = 7; return this; } /** * optional .gossip.MembershipResponse mem_res = 7; */ public Builder mergeMemRes(org.hyperledger.fabric.protos.gossip.Message.MembershipResponse value) { if (memResBuilder_ == null) { if (contentCase_ == 7 && content_ != org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.newBuilder((org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 7) { memResBuilder_.mergeFrom(value); } memResBuilder_.setMessage(value); } contentCase_ = 7; return this; } /** * optional .gossip.MembershipResponse mem_res = 7; */ public Builder clearMemRes() { if (memResBuilder_ == null) { if (contentCase_ == 7) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 7) { contentCase_ = 0; content_ = null; } memResBuilder_.clear(); } return this; } /** * optional .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder getMemResBuilder() { return getMemResFieldBuilder().getBuilder(); } /** * optional .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder getMemResOrBuilder() { if ((contentCase_ == 7) && (memResBuilder_ != null)) { return memResBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } } /** * optional .gossip.MembershipResponse mem_res = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipResponse, org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder> getMemResFieldBuilder() { if (memResBuilder_ == null) { if (!(contentCase_ == 7)) { content_ = org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } memResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.MembershipResponse, org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 7; onChanged();; return memResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataMessage, org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder> dataMsgBuilder_; /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessage getDataMsg() { if (dataMsgBuilder_ == null) { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } else { if (contentCase_ == 8) { return dataMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public Builder setDataMsg(org.hyperledger.fabric.protos.gossip.Message.DataMessage value) { if (dataMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataMsgBuilder_.setMessage(value); } contentCase_ = 8; return this; } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public Builder setDataMsg( org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder builderForValue) { if (dataMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 8; return this; } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public Builder mergeDataMsg(org.hyperledger.fabric.protos.gossip.Message.DataMessage value) { if (dataMsgBuilder_ == null) { if (contentCase_ == 8 && content_ != org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataMessage.newBuilder((org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 8) { dataMsgBuilder_.mergeFrom(value); } dataMsgBuilder_.setMessage(value); } contentCase_ = 8; return this; } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public Builder clearDataMsg() { if (dataMsgBuilder_ == null) { if (contentCase_ == 8) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 8) { contentCase_ = 0; content_ = null; } dataMsgBuilder_.clear(); } return this; } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder getDataMsgBuilder() { return getDataMsgFieldBuilder().getBuilder(); } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder getDataMsgOrBuilder() { if ((contentCase_ == 8) && (dataMsgBuilder_ != null)) { return dataMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } } /** *
       * Contains a ledger block
       * 
* * optional .gossip.DataMessage data_msg = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataMessage, org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder> getDataMsgFieldBuilder() { if (dataMsgBuilder_ == null) { if (!(contentCase_ == 8)) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } dataMsgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataMessage, org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.DataMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 8; onChanged();; return dataMsgBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.GossipHello, org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder> helloBuilder_; /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHello getHello() { if (helloBuilder_ == null) { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } else { if (contentCase_ == 9) { return helloBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public Builder setHello(org.hyperledger.fabric.protos.gossip.Message.GossipHello value) { if (helloBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { helloBuilder_.setMessage(value); } contentCase_ = 9; return this; } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public Builder setHello( org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder builderForValue) { if (helloBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { helloBuilder_.setMessage(builderForValue.build()); } contentCase_ = 9; return this; } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public Builder mergeHello(org.hyperledger.fabric.protos.gossip.Message.GossipHello value) { if (helloBuilder_ == null) { if (contentCase_ == 9 && content_ != org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.GossipHello.newBuilder((org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 9) { helloBuilder_.mergeFrom(value); } helloBuilder_.setMessage(value); } contentCase_ = 9; return this; } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public Builder clearHello() { if (helloBuilder_ == null) { if (contentCase_ == 9) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 9) { contentCase_ = 0; content_ = null; } helloBuilder_.clear(); } return this; } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder getHelloBuilder() { return getHelloFieldBuilder().getBuilder(); } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder getHelloOrBuilder() { if ((contentCase_ == 9) && (helloBuilder_ != null)) { return helloBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } } /** *
       * Used for push&pull
       * 
* * optional .gossip.GossipHello hello = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.GossipHello, org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder> getHelloFieldBuilder() { if (helloBuilder_ == null) { if (!(contentCase_ == 9)) { content_ = org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } helloBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.GossipHello, org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.GossipHello) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 9; onChanged();; return helloBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataDigest, org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder> dataDigBuilder_; /** * optional .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigest getDataDig() { if (dataDigBuilder_ == null) { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } else { if (contentCase_ == 10) { return dataDigBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } } /** * optional .gossip.DataDigest data_dig = 10; */ public Builder setDataDig(org.hyperledger.fabric.protos.gossip.Message.DataDigest value) { if (dataDigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataDigBuilder_.setMessage(value); } contentCase_ = 10; return this; } /** * optional .gossip.DataDigest data_dig = 10; */ public Builder setDataDig( org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder builderForValue) { if (dataDigBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataDigBuilder_.setMessage(builderForValue.build()); } contentCase_ = 10; return this; } /** * optional .gossip.DataDigest data_dig = 10; */ public Builder mergeDataDig(org.hyperledger.fabric.protos.gossip.Message.DataDigest value) { if (dataDigBuilder_ == null) { if (contentCase_ == 10 && content_ != org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataDigest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 10) { dataDigBuilder_.mergeFrom(value); } dataDigBuilder_.setMessage(value); } contentCase_ = 10; return this; } /** * optional .gossip.DataDigest data_dig = 10; */ public Builder clearDataDig() { if (dataDigBuilder_ == null) { if (contentCase_ == 10) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 10) { contentCase_ = 0; content_ = null; } dataDigBuilder_.clear(); } return this; } /** * optional .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder getDataDigBuilder() { return getDataDigFieldBuilder().getBuilder(); } /** * optional .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder getDataDigOrBuilder() { if ((contentCase_ == 10) && (dataDigBuilder_ != null)) { return dataDigBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } } /** * optional .gossip.DataDigest data_dig = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataDigest, org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder> getDataDigFieldBuilder() { if (dataDigBuilder_ == null) { if (!(contentCase_ == 10)) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } dataDigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataDigest, org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.DataDigest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 10; onChanged();; return dataDigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataRequest, org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder> dataReqBuilder_; /** * optional .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequest getDataReq() { if (dataReqBuilder_ == null) { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } else { if (contentCase_ == 11) { return dataReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } } /** * optional .gossip.DataRequest data_req = 11; */ public Builder setDataReq(org.hyperledger.fabric.protos.gossip.Message.DataRequest value) { if (dataReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataReqBuilder_.setMessage(value); } contentCase_ = 11; return this; } /** * optional .gossip.DataRequest data_req = 11; */ public Builder setDataReq( org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder builderForValue) { if (dataReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 11; return this; } /** * optional .gossip.DataRequest data_req = 11; */ public Builder mergeDataReq(org.hyperledger.fabric.protos.gossip.Message.DataRequest value) { if (dataReqBuilder_ == null) { if (contentCase_ == 11 && content_ != org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataRequest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 11) { dataReqBuilder_.mergeFrom(value); } dataReqBuilder_.setMessage(value); } contentCase_ = 11; return this; } /** * optional .gossip.DataRequest data_req = 11; */ public Builder clearDataReq() { if (dataReqBuilder_ == null) { if (contentCase_ == 11) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 11) { contentCase_ = 0; content_ = null; } dataReqBuilder_.clear(); } return this; } /** * optional .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder getDataReqBuilder() { return getDataReqFieldBuilder().getBuilder(); } /** * optional .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder getDataReqOrBuilder() { if ((contentCase_ == 11) && (dataReqBuilder_ != null)) { return dataReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } } /** * optional .gossip.DataRequest data_req = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataRequest, org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder> getDataReqFieldBuilder() { if (dataReqBuilder_ == null) { if (!(contentCase_ == 11)) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } dataReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataRequest, org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.DataRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 11; onChanged();; return dataReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataUpdate, org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder> dataUpdateBuilder_; /** * optional .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDataUpdate() { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } else { if (contentCase_ == 12) { return dataUpdateBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } } /** * optional .gossip.DataUpdate data_update = 12; */ public Builder setDataUpdate(org.hyperledger.fabric.protos.gossip.Message.DataUpdate value) { if (dataUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataUpdateBuilder_.setMessage(value); } contentCase_ = 12; return this; } /** * optional .gossip.DataUpdate data_update = 12; */ public Builder setDataUpdate( org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder builderForValue) { if (dataUpdateBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataUpdateBuilder_.setMessage(builderForValue.build()); } contentCase_ = 12; return this; } /** * optional .gossip.DataUpdate data_update = 12; */ public Builder mergeDataUpdate(org.hyperledger.fabric.protos.gossip.Message.DataUpdate value) { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12 && content_ != org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataUpdate.newBuilder((org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 12) { dataUpdateBuilder_.mergeFrom(value); } dataUpdateBuilder_.setMessage(value); } contentCase_ = 12; return this; } /** * optional .gossip.DataUpdate data_update = 12; */ public Builder clearDataUpdate() { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 12) { contentCase_ = 0; content_ = null; } dataUpdateBuilder_.clear(); } return this; } /** * optional .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder getDataUpdateBuilder() { return getDataUpdateFieldBuilder().getBuilder(); } /** * optional .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder getDataUpdateOrBuilder() { if ((contentCase_ == 12) && (dataUpdateBuilder_ != null)) { return dataUpdateBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } } /** * optional .gossip.DataUpdate data_update = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataUpdate, org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder> getDataUpdateFieldBuilder() { if (dataUpdateBuilder_ == null) { if (!(contentCase_ == 12)) { content_ = org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } dataUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.DataUpdate, org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 12; onChanged();; return dataUpdateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Empty, org.hyperledger.fabric.protos.gossip.Message.Empty.Builder, org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder> emptyBuilder_; /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.Empty getEmpty() { if (emptyBuilder_ == null) { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Message.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } else { if (contentCase_ == 13) { return emptyBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public Builder setEmpty(org.hyperledger.fabric.protos.gossip.Message.Empty value) { if (emptyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { emptyBuilder_.setMessage(value); } contentCase_ = 13; return this; } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public Builder setEmpty( org.hyperledger.fabric.protos.gossip.Message.Empty.Builder builderForValue) { if (emptyBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { emptyBuilder_.setMessage(builderForValue.build()); } contentCase_ = 13; return this; } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public Builder mergeEmpty(org.hyperledger.fabric.protos.gossip.Message.Empty value) { if (emptyBuilder_ == null) { if (contentCase_ == 13 && content_ != org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.Empty.newBuilder((org.hyperledger.fabric.protos.gossip.Message.Empty) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 13) { emptyBuilder_.mergeFrom(value); } emptyBuilder_.setMessage(value); } contentCase_ = 13; return this; } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public Builder clearEmpty() { if (emptyBuilder_ == null) { if (contentCase_ == 13) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 13) { contentCase_ = 0; content_ = null; } emptyBuilder_.clear(); } return this; } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.Empty.Builder getEmptyBuilder() { return getEmptyFieldBuilder().getBuilder(); } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder getEmptyOrBuilder() { if ((contentCase_ == 13) && (emptyBuilder_ != null)) { return emptyBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Message.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } } /** *
       * Empty message, used for pinging
       * 
* * optional .gossip.Empty empty = 13; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Empty, org.hyperledger.fabric.protos.gossip.Message.Empty.Builder, org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder> getEmptyFieldBuilder() { if (emptyBuilder_ == null) { if (!(contentCase_ == 13)) { content_ = org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } emptyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Empty, org.hyperledger.fabric.protos.gossip.Message.Empty.Builder, org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.Empty) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 13; onChanged();; return emptyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.ConnEstablish, org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder> connBuilder_; /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getConn() { if (connBuilder_ == null) { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } else { if (contentCase_ == 14) { return connBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public Builder setConn(org.hyperledger.fabric.protos.gossip.Message.ConnEstablish value) { if (connBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { connBuilder_.setMessage(value); } contentCase_ = 14; return this; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public Builder setConn( org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder builderForValue) { if (connBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { connBuilder_.setMessage(builderForValue.build()); } contentCase_ = 14; return this; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public Builder mergeConn(org.hyperledger.fabric.protos.gossip.Message.ConnEstablish value) { if (connBuilder_ == null) { if (contentCase_ == 14 && content_ != org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.newBuilder((org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 14) { connBuilder_.mergeFrom(value); } connBuilder_.setMessage(value); } contentCase_ = 14; return this; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public Builder clearConn() { if (connBuilder_ == null) { if (contentCase_ == 14) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 14) { contentCase_ = 0; content_ = null; } connBuilder_.clear(); } return this; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder getConnBuilder() { return getConnFieldBuilder().getBuilder(); } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder getConnOrBuilder() { if ((contentCase_ == 14) && (connBuilder_ != null)) { return connBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * optional .gossip.ConnEstablish conn = 14; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.ConnEstablish, org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder> getConnFieldBuilder() { if (connBuilder_ == null) { if (!(contentCase_ == 14)) { content_ = org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } connBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.ConnEstablish, org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 14; onChanged();; return connBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfo, org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder> stateInfoBuilder_; /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfo getStateInfo() { if (stateInfoBuilder_ == null) { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } else { if (contentCase_ == 15) { return stateInfoBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public Builder setStateInfo(org.hyperledger.fabric.protos.gossip.Message.StateInfo value) { if (stateInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateInfoBuilder_.setMessage(value); } contentCase_ = 15; return this; } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public Builder setStateInfo( org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder builderForValue) { if (stateInfoBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateInfoBuilder_.setMessage(builderForValue.build()); } contentCase_ = 15; return this; } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public Builder mergeStateInfo(org.hyperledger.fabric.protos.gossip.Message.StateInfo value) { if (stateInfoBuilder_ == null) { if (contentCase_ == 15 && content_ != org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfo.newBuilder((org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 15) { stateInfoBuilder_.mergeFrom(value); } stateInfoBuilder_.setMessage(value); } contentCase_ = 15; return this; } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public Builder clearStateInfo() { if (stateInfoBuilder_ == null) { if (contentCase_ == 15) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 15) { contentCase_ = 0; content_ = null; } stateInfoBuilder_.clear(); } return this; } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder getStateInfoBuilder() { return getStateInfoFieldBuilder().getBuilder(); } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder getStateInfoOrBuilder() { if ((contentCase_ == 15) && (stateInfoBuilder_ != null)) { return stateInfoBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } } /** *
       * Used for relaying information
       * about state
       * 
* * optional .gossip.StateInfo state_info = 15; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfo, org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder> getStateInfoFieldBuilder() { if (stateInfoBuilder_ == null) { if (!(contentCase_ == 15)) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } stateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfo, org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.StateInfo) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 15; onChanged();; return stateInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder> stateSnapshotBuilder_; /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getStateSnapshot() { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } else { if (contentCase_ == 16) { return stateSnapshotBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public Builder setStateSnapshot(org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot value) { if (stateSnapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateSnapshotBuilder_.setMessage(value); } contentCase_ = 16; return this; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public Builder setStateSnapshot( org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder builderForValue) { if (stateSnapshotBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateSnapshotBuilder_.setMessage(builderForValue.build()); } contentCase_ = 16; return this; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public Builder mergeStateSnapshot(org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot value) { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16 && content_ != org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.newBuilder((org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 16) { stateSnapshotBuilder_.mergeFrom(value); } stateSnapshotBuilder_.setMessage(value); } contentCase_ = 16; return this; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public Builder clearStateSnapshot() { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 16) { contentCase_ = 0; content_ = null; } stateSnapshotBuilder_.clear(); } return this; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder getStateSnapshotBuilder() { return getStateSnapshotFieldBuilder().getBuilder(); } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder() { if ((contentCase_ == 16) && (stateSnapshotBuilder_ != null)) { return stateSnapshotBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } } /** *
       * Used for sending sets of StateInfo messages
       * 
* * optional .gossip.StateInfoSnapshot state_snapshot = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder> getStateSnapshotFieldBuilder() { if (stateSnapshotBuilder_ == null) { if (!(contentCase_ == 16)) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } stateSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 16; onChanged();; return stateSnapshotBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder> stateInfoPullReqBuilder_; /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getStateInfoPullReq() { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } else { if (contentCase_ == 17) { return stateInfoPullReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public Builder setStateInfoPullReq(org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest value) { if (stateInfoPullReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateInfoPullReqBuilder_.setMessage(value); } contentCase_ = 17; return this; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public Builder setStateInfoPullReq( org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder builderForValue) { if (stateInfoPullReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateInfoPullReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 17; return this; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public Builder mergeStateInfoPullReq(org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest value) { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17 && content_ != org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 17) { stateInfoPullReqBuilder_.mergeFrom(value); } stateInfoPullReqBuilder_.setMessage(value); } contentCase_ = 17; return this; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public Builder clearStateInfoPullReq() { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 17) { contentCase_ = 0; content_ = null; } stateInfoPullReqBuilder_.clear(); } return this; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder getStateInfoPullReqBuilder() { return getStateInfoPullReqFieldBuilder().getBuilder(); } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder getStateInfoPullReqOrBuilder() { if ((contentCase_ == 17) && (stateInfoPullReqBuilder_ != null)) { return stateInfoPullReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * optional .gossip.StateInfoPullRequest state_info_pull_req = 17; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder> getStateInfoPullReqFieldBuilder() { if (stateInfoPullReqBuilder_ == null) { if (!(contentCase_ == 17)) { content_ = org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } stateInfoPullReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 17; onChanged();; return stateInfoPullReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder> stateRequestBuilder_; /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getStateRequest() { if (stateRequestBuilder_ == null) { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } else { if (contentCase_ == 18) { return stateRequestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public Builder setStateRequest(org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest value) { if (stateRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateRequestBuilder_.setMessage(value); } contentCase_ = 18; return this; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public Builder setStateRequest( org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder builderForValue) { if (stateRequestBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateRequestBuilder_.setMessage(builderForValue.build()); } contentCase_ = 18; return this; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public Builder mergeStateRequest(org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest value) { if (stateRequestBuilder_ == null) { if (contentCase_ == 18 && content_ != org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 18) { stateRequestBuilder_.mergeFrom(value); } stateRequestBuilder_.setMessage(value); } contentCase_ = 18; return this; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public Builder clearStateRequest() { if (stateRequestBuilder_ == null) { if (contentCase_ == 18) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 18) { contentCase_ = 0; content_ = null; } stateRequestBuilder_.clear(); } return this; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder getStateRequestBuilder() { return getStateRequestFieldBuilder().getBuilder(); } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder getStateRequestOrBuilder() { if ((contentCase_ == 18) && (stateRequestBuilder_ != null)) { return stateRequestBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * optional .gossip.RemoteStateRequest state_request = 18; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder> getStateRequestFieldBuilder() { if (stateRequestBuilder_ == null) { if (!(contentCase_ == 18)) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } stateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 18; onChanged();; return stateRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder> stateResponseBuilder_; /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getStateResponse() { if (stateResponseBuilder_ == null) { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } else { if (contentCase_ == 19) { return stateResponseBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public Builder setStateResponse(org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse value) { if (stateResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateResponseBuilder_.setMessage(value); } contentCase_ = 19; return this; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public Builder setStateResponse( org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder builderForValue) { if (stateResponseBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateResponseBuilder_.setMessage(builderForValue.build()); } contentCase_ = 19; return this; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public Builder mergeStateResponse(org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse value) { if (stateResponseBuilder_ == null) { if (contentCase_ == 19 && content_ != org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.newBuilder((org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 19) { stateResponseBuilder_.mergeFrom(value); } stateResponseBuilder_.setMessage(value); } contentCase_ = 19; return this; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public Builder clearStateResponse() { if (stateResponseBuilder_ == null) { if (contentCase_ == 19) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 19) { contentCase_ = 0; content_ = null; } stateResponseBuilder_.clear(); } return this; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder getStateResponseBuilder() { return getStateResponseFieldBuilder().getBuilder(); } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder getStateResponseOrBuilder() { if ((contentCase_ == 19) && (stateResponseBuilder_ != null)) { return stateResponseBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * optional .gossip.RemoteStateResponse state_response = 19; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder> getStateResponseFieldBuilder() { if (stateResponseBuilder_ == null) { if (!(contentCase_ == 19)) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } stateResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 19; onChanged();; return stateResponseBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder> leadershipMsgBuilder_; /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getLeadershipMsg() { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } else { if (contentCase_ == 20) { return leadershipMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public Builder setLeadershipMsg(org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage value) { if (leadershipMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { leadershipMsgBuilder_.setMessage(value); } contentCase_ = 20; return this; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public Builder setLeadershipMsg( org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder builderForValue) { if (leadershipMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { leadershipMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 20; return this; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public Builder mergeLeadershipMsg(org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage value) { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20 && content_ != org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.newBuilder((org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 20) { leadershipMsgBuilder_.mergeFrom(value); } leadershipMsgBuilder_.setMessage(value); } contentCase_ = 20; return this; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public Builder clearLeadershipMsg() { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 20) { contentCase_ = 0; content_ = null; } leadershipMsgBuilder_.clear(); } return this; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder getLeadershipMsgBuilder() { return getLeadershipMsgFieldBuilder().getBuilder(); } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder() { if ((contentCase_ == 20) && (leadershipMsgBuilder_ != null)) { return leadershipMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } } /** *
       * Used to indicate intent of peer to become leader
       * 
* * optional .gossip.LeadershipMessage leadership_msg = 20; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder> getLeadershipMsgFieldBuilder() { if (leadershipMsgBuilder_ == null) { if (!(contentCase_ == 20)) { content_ = org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } leadershipMsgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 20; onChanged();; return leadershipMsgBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerIdentity, org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder> peerIdentityBuilder_; /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getPeerIdentity() { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } else { if (contentCase_ == 21) { return peerIdentityBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public Builder setPeerIdentity(org.hyperledger.fabric.protos.gossip.Message.PeerIdentity value) { if (peerIdentityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { peerIdentityBuilder_.setMessage(value); } contentCase_ = 21; return this; } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public Builder setPeerIdentity( org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder builderForValue) { if (peerIdentityBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { peerIdentityBuilder_.setMessage(builderForValue.build()); } contentCase_ = 21; return this; } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public Builder mergePeerIdentity(org.hyperledger.fabric.protos.gossip.Message.PeerIdentity value) { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21 && content_ != org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.newBuilder((org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 21) { peerIdentityBuilder_.mergeFrom(value); } peerIdentityBuilder_.setMessage(value); } contentCase_ = 21; return this; } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public Builder clearPeerIdentity() { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 21) { contentCase_ = 0; content_ = null; } peerIdentityBuilder_.clear(); } return this; } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder getPeerIdentityBuilder() { return getPeerIdentityFieldBuilder().getBuilder(); } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ public org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder getPeerIdentityOrBuilder() { if ((contentCase_ == 21) && (peerIdentityBuilder_ != null)) { return peerIdentityBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } } /** *
       * Used to learn of a peer's certificate
       * 
* * optional .gossip.PeerIdentity peer_identity = 21; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerIdentity, org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder> getPeerIdentityFieldBuilder() { if (peerIdentityBuilder_ == null) { if (!(contentCase_ == 21)) { content_ = org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } peerIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerIdentity, org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 21; onChanged();; return peerIdentityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Acknowledgement, org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder> ackBuilder_; /** * optional .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getAck() { if (ackBuilder_ == null) { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } else { if (contentCase_ == 22) { return ackBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } } /** * optional .gossip.Acknowledgement ack = 22; */ public Builder setAck(org.hyperledger.fabric.protos.gossip.Message.Acknowledgement value) { if (ackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { ackBuilder_.setMessage(value); } contentCase_ = 22; return this; } /** * optional .gossip.Acknowledgement ack = 22; */ public Builder setAck( org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder builderForValue) { if (ackBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { ackBuilder_.setMessage(builderForValue.build()); } contentCase_ = 22; return this; } /** * optional .gossip.Acknowledgement ack = 22; */ public Builder mergeAck(org.hyperledger.fabric.protos.gossip.Message.Acknowledgement value) { if (ackBuilder_ == null) { if (contentCase_ == 22 && content_ != org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.newBuilder((org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 22) { ackBuilder_.mergeFrom(value); } ackBuilder_.setMessage(value); } contentCase_ = 22; return this; } /** * optional .gossip.Acknowledgement ack = 22; */ public Builder clearAck() { if (ackBuilder_ == null) { if (contentCase_ == 22) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 22) { contentCase_ = 0; content_ = null; } ackBuilder_.clear(); } return this; } /** * optional .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder getAckBuilder() { return getAckFieldBuilder().getBuilder(); } /** * optional .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder getAckOrBuilder() { if ((contentCase_ == 22) && (ackBuilder_ != null)) { return ackBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } } /** * optional .gossip.Acknowledgement ack = 22; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Acknowledgement, org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(contentCase_ == 22)) { content_ = org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Acknowledgement, org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 22; onChanged();; return ackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder> privateReqBuilder_; /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getPrivateReq() { if (privateReqBuilder_ == null) { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } else { if (contentCase_ == 23) { return privateReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public Builder setPrivateReq(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest value) { if (privateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateReqBuilder_.setMessage(value); } contentCase_ = 23; return this; } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public Builder setPrivateReq( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder builderForValue) { if (privateReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 23; return this; } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public Builder mergePrivateReq(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest value) { if (privateReqBuilder_ == null) { if (contentCase_ == 23 && content_ != org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.newBuilder((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 23) { privateReqBuilder_.mergeFrom(value); } privateReqBuilder_.setMessage(value); } contentCase_ = 23; return this; } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public Builder clearPrivateReq() { if (privateReqBuilder_ == null) { if (contentCase_ == 23) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 23) { contentCase_ = 0; content_ = null; } privateReqBuilder_.clear(); } return this; } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder getPrivateReqBuilder() { return getPrivateReqFieldBuilder().getBuilder(); } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder() { if ((contentCase_ == 23) && (privateReqBuilder_ != null)) { return privateReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } } /** *
       * Used to request private data
       * 
* * optional .gossip.RemotePvtDataRequest privateReq = 23; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder> getPrivateReqFieldBuilder() { if (privateReqBuilder_ == null) { if (!(contentCase_ == 23)) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } privateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 23; onChanged();; return privateReqBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder> privateResBuilder_; /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getPrivateRes() { if (privateResBuilder_ == null) { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } else { if (contentCase_ == 24) { return privateResBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public Builder setPrivateRes(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse value) { if (privateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateResBuilder_.setMessage(value); } contentCase_ = 24; return this; } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public Builder setPrivateRes( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder builderForValue) { if (privateResBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateResBuilder_.setMessage(builderForValue.build()); } contentCase_ = 24; return this; } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public Builder mergePrivateRes(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse value) { if (privateResBuilder_ == null) { if (contentCase_ == 24 && content_ != org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.newBuilder((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 24) { privateResBuilder_.mergeFrom(value); } privateResBuilder_.setMessage(value); } contentCase_ = 24; return this; } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public Builder clearPrivateRes() { if (privateResBuilder_ == null) { if (contentCase_ == 24) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 24) { contentCase_ = 0; content_ = null; } privateResBuilder_.clear(); } return this; } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder getPrivateResBuilder() { return getPrivateResFieldBuilder().getBuilder(); } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder() { if ((contentCase_ == 24) && (privateResBuilder_ != null)) { return privateResBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } } /** *
       * Used to respond to private data requests
       * 
* * optional .gossip.RemotePvtDataResponse privateRes = 24; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder> getPrivateResFieldBuilder() { if (privateResBuilder_ == null) { if (!(contentCase_ == 24)) { content_ = org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } privateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 24; onChanged();; return privateResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder> privateDataBuilder_; /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getPrivateData() { if (privateDataBuilder_ == null) { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } else { if (contentCase_ == 25) { return privateDataBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public Builder setPrivateData(org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage value) { if (privateDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateDataBuilder_.setMessage(value); } contentCase_ = 25; return this; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public Builder setPrivateData( org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder builderForValue) { if (privateDataBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateDataBuilder_.setMessage(builderForValue.build()); } contentCase_ = 25; return this; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public Builder mergePrivateData(org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage value) { if (privateDataBuilder_ == null) { if (contentCase_ == 25 && content_ != org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.newBuilder((org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 25) { privateDataBuilder_.mergeFrom(value); } privateDataBuilder_.setMessage(value); } contentCase_ = 25; return this; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public Builder clearPrivateData() { if (privateDataBuilder_ == null) { if (contentCase_ == 25) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 25) { contentCase_ = 0; content_ = null; } privateDataBuilder_.clear(); } return this; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder getPrivateDataBuilder() { return getPrivateDataFieldBuilder().getBuilder(); } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder getPrivateDataOrBuilder() { if ((contentCase_ == 25) && (privateDataBuilder_ != null)) { return privateDataBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * optional .gossip.PrivateDataMessage private_data = 25; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder> getPrivateDataFieldBuilder() { if (privateDataBuilder_ == null) { if (!(contentCase_ == 25)) { content_ = org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } privateDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 25; onChanged();; return privateDataBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.GossipMessage) } // @@protoc_insertion_point(class_scope:gossip.GossipMessage) private static final org.hyperledger.fabric.protos.gossip.Message.GossipMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.GossipMessage(); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GossipMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GossipMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.GossipMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StateInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.StateInfo) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.PeerTime timestamp = 2; */ boolean hasTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * optional bytes pki_id = 3; */ com.google.protobuf.ByteString getPkiId(); /** *
     * channel_MAC is an authentication code that proves
     * that the peer that sent this message knows
     * the name of the channel.
     * 
* * optional bytes channel_MAC = 4; */ com.google.protobuf.ByteString getChannelMAC(); /** * optional .gossip.Properties properties = 5; */ boolean hasProperties(); /** * optional .gossip.Properties properties = 5; */ org.hyperledger.fabric.protos.gossip.Message.Properties getProperties(); /** * optional .gossip.Properties properties = 5; */ org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder getPropertiesOrBuilder(); } /** *
   * StateInfo is used for a peer to relay its state information
   * to other peers
   * 
* * Protobuf type {@code gossip.StateInfo} */ public static final class StateInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.StateInfo) StateInfoOrBuilder { // Use StateInfo.newBuilder() to construct. private StateInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StateInfo() { pkiId_ = com.google.protobuf.ByteString.EMPTY; channelMAC_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StateInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 18: { org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PeerTime.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 26: { pkiId_ = input.readBytes(); break; } case 34: { channelMAC_ = input.readBytes(); break; } case 42: { org.hyperledger.fabric.protos.gossip.Message.Properties.Builder subBuilder = null; if (properties_ != null) { subBuilder = properties_.toBuilder(); } properties_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Properties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(properties_); properties_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfo.class, org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int PKI_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString pkiId_; /** * optional bytes pki_id = 3; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int CHANNEL_MAC_FIELD_NUMBER = 4; private com.google.protobuf.ByteString channelMAC_; /** *
     * channel_MAC is an authentication code that proves
     * that the peer that sent this message knows
     * the name of the channel.
     * 
* * optional bytes channel_MAC = 4; */ public com.google.protobuf.ByteString getChannelMAC() { return channelMAC_; } public static final int PROPERTIES_FIELD_NUMBER = 5; private org.hyperledger.fabric.protos.gossip.Message.Properties properties_; /** * optional .gossip.Properties properties = 5; */ public boolean hasProperties() { return properties_ != null; } /** * optional .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.Properties getProperties() { return properties_ == null ? org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance() : properties_; } /** * optional .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder getPropertiesOrBuilder() { return getProperties(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } if (!pkiId_.isEmpty()) { output.writeBytes(3, pkiId_); } if (!channelMAC_.isEmpty()) { output.writeBytes(4, channelMAC_); } if (properties_ != null) { output.writeMessage(5, getProperties()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (!pkiId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, pkiId_); } if (!channelMAC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, channelMAC_); } if (properties_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getProperties()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.StateInfo other = (org.hyperledger.fabric.protos.gossip.Message.StateInfo) obj; boolean result = true; result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && getPkiId() .equals(other.getPkiId()); result = result && getChannelMAC() .equals(other.getChannelMAC()); result = result && (hasProperties() == other.hasProperties()); if (hasProperties()) { result = result && getProperties() .equals(other.getProperties()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + PKI_ID_FIELD_NUMBER; hash = (53 * hash) + getPkiId().hashCode(); hash = (37 * hash) + CHANNEL_MAC_FIELD_NUMBER; hash = (53 * hash) + getChannelMAC().hashCode(); if (hasProperties()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getProperties().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.StateInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StateInfo is used for a peer to relay its state information
     * to other peers
     * 
* * Protobuf type {@code gossip.StateInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.StateInfo) org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfo.class, org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.StateInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } pkiId_ = com.google.protobuf.ByteString.EMPTY; channelMAC_ = com.google.protobuf.ByteString.EMPTY; if (propertiesBuilder_ == null) { properties_ = null; } else { properties_ = null; propertiesBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.StateInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.StateInfo build() { org.hyperledger.fabric.protos.gossip.Message.StateInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.StateInfo buildPartial() { org.hyperledger.fabric.protos.gossip.Message.StateInfo result = new org.hyperledger.fabric.protos.gossip.Message.StateInfo(this); if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.pkiId_ = pkiId_; result.channelMAC_ = channelMAC_; if (propertiesBuilder_ == null) { result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfo) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.StateInfo other) { if (other == org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getPkiId() != com.google.protobuf.ByteString.EMPTY) { setPkiId(other.getPkiId()); } if (other.getChannelMAC() != com.google.protobuf.ByteString.EMPTY) { setChannelMAC(other.getChannelMAC()); } if (other.hasProperties()) { mergeProperties(other.getProperties()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.StateInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.StateInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> timestampBuilder_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp( org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder mergeTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = org.hyperledger.fabric.protos.gossip.Message.PeerTime.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } } /** * optional .gossip.PeerTime timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pki_id = 3; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * optional bytes pki_id = 3; */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * optional bytes pki_id = 3; */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private com.google.protobuf.ByteString channelMAC_ = com.google.protobuf.ByteString.EMPTY; /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 4; */ public com.google.protobuf.ByteString getChannelMAC() { return channelMAC_; } /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 4; */ public Builder setChannelMAC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channelMAC_ = value; onChanged(); return this; } /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 4; */ public Builder clearChannelMAC() { channelMAC_ = getDefaultInstance().getChannelMAC(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.Properties properties_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Properties, org.hyperledger.fabric.protos.gossip.Message.Properties.Builder, org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder> propertiesBuilder_; /** * optional .gossip.Properties properties = 5; */ public boolean hasProperties() { return propertiesBuilder_ != null || properties_ != null; } /** * optional .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.Properties getProperties() { if (propertiesBuilder_ == null) { return properties_ == null ? org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance() : properties_; } else { return propertiesBuilder_.getMessage(); } } /** * optional .gossip.Properties properties = 5; */ public Builder setProperties(org.hyperledger.fabric.protos.gossip.Message.Properties value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } properties_ = value; onChanged(); } else { propertiesBuilder_.setMessage(value); } return this; } /** * optional .gossip.Properties properties = 5; */ public Builder setProperties( org.hyperledger.fabric.protos.gossip.Message.Properties.Builder builderForValue) { if (propertiesBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); } else { propertiesBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.Properties properties = 5; */ public Builder mergeProperties(org.hyperledger.fabric.protos.gossip.Message.Properties value) { if (propertiesBuilder_ == null) { if (properties_ != null) { properties_ = org.hyperledger.fabric.protos.gossip.Message.Properties.newBuilder(properties_).mergeFrom(value).buildPartial(); } else { properties_ = value; } onChanged(); } else { propertiesBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.Properties properties = 5; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = null; onChanged(); } else { properties_ = null; propertiesBuilder_ = null; } return this; } /** * optional .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.Properties.Builder getPropertiesBuilder() { onChanged(); return getPropertiesFieldBuilder().getBuilder(); } /** * optional .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder getPropertiesOrBuilder() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilder(); } else { return properties_ == null ? org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance() : properties_; } } /** * optional .gossip.Properties properties = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Properties, org.hyperledger.fabric.protos.gossip.Message.Properties.Builder, org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Properties, org.hyperledger.fabric.protos.gossip.Message.Properties.Builder, org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder>( getProperties(), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.StateInfo) } // @@protoc_insertion_point(class_scope:gossip.StateInfo) private static final org.hyperledger.fabric.protos.gossip.Message.StateInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.StateInfo(); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StateInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.StateInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Properties) com.google.protobuf.MessageOrBuilder { /** * optional uint64 ledger_height = 1; */ long getLedgerHeight(); /** * optional bool left_channel = 2; */ boolean getLeftChannel(); /** * repeated .gossip.Chaincode chaincodes = 3; */ java.util.List getChaincodesList(); /** * repeated .gossip.Chaincode chaincodes = 3; */ org.hyperledger.fabric.protos.gossip.Message.Chaincode getChaincodes(int index); /** * repeated .gossip.Chaincode chaincodes = 3; */ int getChaincodesCount(); /** * repeated .gossip.Chaincode chaincodes = 3; */ java.util.List getChaincodesOrBuilderList(); /** * repeated .gossip.Chaincode chaincodes = 3; */ org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder getChaincodesOrBuilder( int index); } /** * Protobuf type {@code gossip.Properties} */ public static final class Properties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Properties) PropertiesOrBuilder { // Use Properties.newBuilder() to construct. private Properties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Properties() { ledgerHeight_ = 0L; leftChannel_ = false; chaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Properties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { ledgerHeight_ = input.readUInt64(); break; } case 16: { leftChannel_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { chaincodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } chaincodes_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Chaincode.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Properties.class, org.hyperledger.fabric.protos.gossip.Message.Properties.Builder.class); } private int bitField0_; public static final int LEDGER_HEIGHT_FIELD_NUMBER = 1; private long ledgerHeight_; /** * optional uint64 ledger_height = 1; */ public long getLedgerHeight() { return ledgerHeight_; } public static final int LEFT_CHANNEL_FIELD_NUMBER = 2; private boolean leftChannel_; /** * optional bool left_channel = 2; */ public boolean getLeftChannel() { return leftChannel_; } public static final int CHAINCODES_FIELD_NUMBER = 3; private java.util.List chaincodes_; /** * repeated .gossip.Chaincode chaincodes = 3; */ public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.Chaincode getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ledgerHeight_ != 0L) { output.writeUInt64(1, ledgerHeight_); } if (leftChannel_ != false) { output.writeBool(2, leftChannel_); } for (int i = 0; i < chaincodes_.size(); i++) { output.writeMessage(3, chaincodes_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ledgerHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, ledgerHeight_); } if (leftChannel_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, leftChannel_); } for (int i = 0; i < chaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, chaincodes_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Properties)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Properties other = (org.hyperledger.fabric.protos.gossip.Message.Properties) obj; boolean result = true; result = result && (getLedgerHeight() == other.getLedgerHeight()); result = result && (getLeftChannel() == other.getLeftChannel()); result = result && getChaincodesList() .equals(other.getChaincodesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + LEDGER_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLedgerHeight()); hash = (37 * hash) + LEFT_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLeftChannel()); if (getChaincodesCount() > 0) { hash = (37 * hash) + CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getChaincodesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Properties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code gossip.Properties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Properties) org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Properties.class, org.hyperledger.fabric.protos.gossip.Message.Properties.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Properties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChaincodesFieldBuilder(); } } public Builder clear() { super.clear(); ledgerHeight_ = 0L; leftChannel_ = false; if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { chaincodesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Properties getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Properties build() { org.hyperledger.fabric.protos.gossip.Message.Properties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Properties buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Properties result = new org.hyperledger.fabric.protos.gossip.Message.Properties(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.ledgerHeight_ = ledgerHeight_; result.leftChannel_ = leftChannel_; if (chaincodesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000004); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Properties) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Properties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Properties other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance()) return this; if (other.getLedgerHeight() != 0L) { setLedgerHeight(other.getLedgerHeight()); } if (other.getLeftChannel() != false) { setLeftChannel(other.getLeftChannel()); } if (chaincodesBuilder_ == null) { if (!other.chaincodes_.isEmpty()) { if (chaincodes_.isEmpty()) { chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureChaincodesIsMutable(); chaincodes_.addAll(other.chaincodes_); } onChanged(); } } else { if (!other.chaincodes_.isEmpty()) { if (chaincodesBuilder_.isEmpty()) { chaincodesBuilder_.dispose(); chaincodesBuilder_ = null; chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000004); chaincodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChaincodesFieldBuilder() : null; } else { chaincodesBuilder_.addAllMessages(other.chaincodes_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Properties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Properties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long ledgerHeight_ ; /** * optional uint64 ledger_height = 1; */ public long getLedgerHeight() { return ledgerHeight_; } /** * optional uint64 ledger_height = 1; */ public Builder setLedgerHeight(long value) { ledgerHeight_ = value; onChanged(); return this; } /** * optional uint64 ledger_height = 1; */ public Builder clearLedgerHeight() { ledgerHeight_ = 0L; onChanged(); return this; } private boolean leftChannel_ ; /** * optional bool left_channel = 2; */ public boolean getLeftChannel() { return leftChannel_; } /** * optional bool left_channel = 2; */ public Builder setLeftChannel(boolean value) { leftChannel_ = value; onChanged(); return this; } /** * optional bool left_channel = 2; */ public Builder clearLeftChannel() { leftChannel_ = false; onChanged(); return this; } private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Chaincode, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder> chaincodesBuilder_; /** * repeated .gossip.Chaincode chaincodes = 3; */ public java.util.List getChaincodesList() { if (chaincodesBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodes_); } else { return chaincodesBuilder_.getMessageList(); } } /** * repeated .gossip.Chaincode chaincodes = 3; */ public int getChaincodesCount() { if (chaincodesBuilder_ == null) { return chaincodes_.size(); } else { return chaincodesBuilder_.getCount(); } } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.Chaincode getChaincodes(int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessage(index); } } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.gossip.Message.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.set(index, value); onChanged(); } else { chaincodesBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.set(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder addChaincodes(org.hyperledger.fabric.protos.gossip.Message.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(value); onChanged(); } else { chaincodesBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.gossip.Message.Chaincode value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(index, value); onChanged(); } else { chaincodesBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder addChaincodes( org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder addAllChaincodes( java.lang.Iterable values) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chaincodes_); onChanged(); } else { chaincodesBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder clearChaincodes() { if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { chaincodesBuilder_.clear(); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public Builder removeChaincodes(int index) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.remove(index); onChanged(); } else { chaincodesBuilder_.remove(index); } return this; } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder getChaincodesBuilder( int index) { return getChaincodesFieldBuilder().getBuilder(index); } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Chaincode chaincodes = 3; */ public java.util.List getChaincodesOrBuilderList() { if (chaincodesBuilder_ != null) { return chaincodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodes_); } } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder addChaincodesBuilder() { return getChaincodesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Chaincode.getDefaultInstance()); } /** * repeated .gossip.Chaincode chaincodes = 3; */ public org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder addChaincodesBuilder( int index) { return getChaincodesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Chaincode.getDefaultInstance()); } /** * repeated .gossip.Chaincode chaincodes = 3; */ public java.util.List getChaincodesBuilderList() { return getChaincodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Chaincode, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder> getChaincodesFieldBuilder() { if (chaincodesBuilder_ == null) { chaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Chaincode, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder>( chaincodes_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Properties) } // @@protoc_insertion_point(class_scope:gossip.Properties) private static final org.hyperledger.fabric.protos.gossip.Message.Properties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Properties(); } public static org.hyperledger.fabric.protos.gossip.Message.Properties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Properties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Properties(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Properties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StateInfoSnapshotOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.StateInfoSnapshot) com.google.protobuf.MessageOrBuilder { /** * repeated .gossip.Envelope elements = 1; */ java.util.List getElementsList(); /** * repeated .gossip.Envelope elements = 1; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getElements(int index); /** * repeated .gossip.Envelope elements = 1; */ int getElementsCount(); /** * repeated .gossip.Envelope elements = 1; */ java.util.List getElementsOrBuilderList(); /** * repeated .gossip.Envelope elements = 1; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getElementsOrBuilder( int index); } /** *
   * StateInfoSnapshot is an aggregation of StateInfo messages
   * 
* * Protobuf type {@code gossip.StateInfoSnapshot} */ public static final class StateInfoSnapshot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.StateInfoSnapshot) StateInfoSnapshotOrBuilder { // Use StateInfoSnapshot.newBuilder() to construct. private StateInfoSnapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StateInfoSnapshot() { elements_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StateInfoSnapshot( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { elements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } elements_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { elements_ = java.util.Collections.unmodifiableList(elements_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.class, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; private java.util.List elements_; /** * repeated .gossip.Envelope elements = 1; */ public java.util.List getElementsList() { return elements_; } /** * repeated .gossip.Envelope elements = 1; */ public java.util.List getElementsOrBuilderList() { return elements_; } /** * repeated .gossip.Envelope elements = 1; */ public int getElementsCount() { return elements_.size(); } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getElements(int index) { return elements_.get(index); } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < elements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, elements_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot other = (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) obj; boolean result = true; result = result && getElementsList() .equals(other.getElementsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StateInfoSnapshot is an aggregation of StateInfo messages
     * 
* * Protobuf type {@code gossip.StateInfoSnapshot} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.StateInfoSnapshot) org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.class, org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getElementsFieldBuilder(); } } public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { elementsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot build() { org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot buildPartial() { org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot result = new org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot(this); int from_bitField0_ = bitField0_; if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot other) { if (other == org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance()) return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureElementsIsMutable(); elements_.addAll(other.elements_); } onChanged(); } } else { if (!other.elements_.isEmpty()) { if (elementsBuilder_.isEmpty()) { elementsBuilder_.dispose(); elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); elementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> elementsBuilder_; /** * repeated .gossip.Envelope elements = 1; */ public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { return elementsBuilder_.getMessageList(); } } /** * repeated .gossip.Envelope elements = 1; */ public int getElementsCount() { if (elementsBuilder_ == null) { return elements_.size(); } else { return elementsBuilder_.getCount(); } } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessage(index); } } /** * repeated .gossip.Envelope elements = 1; */ public Builder setElements( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.set(index, value); onChanged(); } else { elementsBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder setElements( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder addElements(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(value); onChanged(); } else { elementsBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder addElements( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(index, value); onChanged(); } else { elementsBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder addElements( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder addElements( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder addAllElements( java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder clearElements() { if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { elementsBuilder_.clear(); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.remove(index); onChanged(); } else { elementsBuilder_.remove(index); } return this; } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getElementsBuilder( int index) { return getElementsFieldBuilder().getBuilder(index); } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getElementsOrBuilder( int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Envelope elements = 1; */ public java.util.List getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(elements_); } } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addElementsBuilder() { return getElementsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addElementsBuilder( int index) { return getElementsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope elements = 1; */ public java.util.List getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder>( elements_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.StateInfoSnapshot) } // @@protoc_insertion_point(class_scope:gossip.StateInfoSnapshot) private static final org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot(); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StateInfoSnapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateInfoSnapshot(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StateInfoPullRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.StateInfoPullRequest) com.google.protobuf.MessageOrBuilder { /** *
     * channel_MAC is an authentication code that proves
     * that the peer that sent this message knows
     * the name of the channel.
     * 
* * optional bytes channel_MAC = 1; */ com.google.protobuf.ByteString getChannelMAC(); } /** *
   * StateInfoPullRequest is used to fetch a StateInfoSnapshot
   * from a remote peer
   * 
* * Protobuf type {@code gossip.StateInfoPullRequest} */ public static final class StateInfoPullRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.StateInfoPullRequest) StateInfoPullRequestOrBuilder { // Use StateInfoPullRequest.newBuilder() to construct. private StateInfoPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StateInfoPullRequest() { channelMAC_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StateInfoPullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { channelMAC_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.class, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder.class); } public static final int CHANNEL_MAC_FIELD_NUMBER = 1; private com.google.protobuf.ByteString channelMAC_; /** *
     * channel_MAC is an authentication code that proves
     * that the peer that sent this message knows
     * the name of the channel.
     * 
* * optional bytes channel_MAC = 1; */ public com.google.protobuf.ByteString getChannelMAC() { return channelMAC_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!channelMAC_.isEmpty()) { output.writeBytes(1, channelMAC_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!channelMAC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, channelMAC_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest other = (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) obj; boolean result = true; result = result && getChannelMAC() .equals(other.getChannelMAC()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHANNEL_MAC_FIELD_NUMBER; hash = (53 * hash) + getChannelMAC().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StateInfoPullRequest is used to fetch a StateInfoSnapshot
     * from a remote peer
     * 
* * Protobuf type {@code gossip.StateInfoPullRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.StateInfoPullRequest) org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.class, org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); channelMAC_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest build() { org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest result = new org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest(this); result.channelMAC_ = channelMAC_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance()) return this; if (other.getChannelMAC() != com.google.protobuf.ByteString.EMPTY) { setChannelMAC(other.getChannelMAC()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString channelMAC_ = com.google.protobuf.ByteString.EMPTY; /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 1; */ public com.google.protobuf.ByteString getChannelMAC() { return channelMAC_; } /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 1; */ public Builder setChannelMAC(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channelMAC_ = value; onChanged(); return this; } /** *
       * channel_MAC is an authentication code that proves
       * that the peer that sent this message knows
       * the name of the channel.
       * 
* * optional bytes channel_MAC = 1; */ public Builder clearChannelMAC() { channelMAC_ = getDefaultInstance().getChannelMAC(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.StateInfoPullRequest) } // @@protoc_insertion_point(class_scope:gossip.StateInfoPullRequest) private static final org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest(); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StateInfoPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateInfoPullRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConnEstablishOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.ConnEstablish) com.google.protobuf.MessageOrBuilder { /** * optional bytes pki_id = 1; */ com.google.protobuf.ByteString getPkiId(); /** * optional bytes identity = 2; */ com.google.protobuf.ByteString getIdentity(); /** * optional bytes tls_cert_hash = 3; */ com.google.protobuf.ByteString getTlsCertHash(); } /** *
   * ConnEstablish is the message used for the gossip handshake
   * Whenever a peer connects to another peer, it handshakes
   * with it by sending this message that proves its identity
   * 
* * Protobuf type {@code gossip.ConnEstablish} */ public static final class ConnEstablish extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.ConnEstablish) ConnEstablishOrBuilder { // Use ConnEstablish.newBuilder() to construct. private ConnEstablish(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConnEstablish() { pkiId_ = com.google.protobuf.ByteString.EMPTY; identity_ = com.google.protobuf.ByteString.EMPTY; tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConnEstablish( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { pkiId_ = input.readBytes(); break; } case 18: { identity_ = input.readBytes(); break; } case 26: { tlsCertHash_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.class, org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder.class); } public static final int PKI_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString pkiId_; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int IDENTITY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString identity_; /** * optional bytes identity = 2; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } public static final int TLS_CERT_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tlsCertHash_; /** * optional bytes tls_cert_hash = 3; */ public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!pkiId_.isEmpty()) { output.writeBytes(1, pkiId_); } if (!identity_.isEmpty()) { output.writeBytes(2, identity_); } if (!tlsCertHash_.isEmpty()) { output.writeBytes(3, tlsCertHash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!pkiId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, pkiId_); } if (!identity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, identity_); } if (!tlsCertHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, tlsCertHash_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.ConnEstablish)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.ConnEstablish other = (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) obj; boolean result = true; result = result && getPkiId() .equals(other.getPkiId()); result = result && getIdentity() .equals(other.getIdentity()); result = result && getTlsCertHash() .equals(other.getTlsCertHash()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PKI_ID_FIELD_NUMBER; hash = (53 * hash) + getPkiId().hashCode(); hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (37 * hash) + TLS_CERT_HASH_FIELD_NUMBER; hash = (53 * hash) + getTlsCertHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.ConnEstablish prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConnEstablish is the message used for the gossip handshake
     * Whenever a peer connects to another peer, it handshakes
     * with it by sending this message that proves its identity
     * 
* * Protobuf type {@code gossip.ConnEstablish} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.ConnEstablish) org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.class, org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); pkiId_ = com.google.protobuf.ByteString.EMPTY; identity_ = com.google.protobuf.ByteString.EMPTY; tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish build() { org.hyperledger.fabric.protos.gossip.Message.ConnEstablish result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish buildPartial() { org.hyperledger.fabric.protos.gossip.Message.ConnEstablish result = new org.hyperledger.fabric.protos.gossip.Message.ConnEstablish(this); result.pkiId_ = pkiId_; result.identity_ = identity_; result.tlsCertHash_ = tlsCertHash_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.ConnEstablish)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.ConnEstablish other) { if (other == org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance()) return this; if (other.getPkiId() != com.google.protobuf.ByteString.EMPTY) { setPkiId(other.getPkiId()); } if (other.getIdentity() != com.google.protobuf.ByteString.EMPTY) { setIdentity(other.getIdentity()); } if (other.getTlsCertHash() != com.google.protobuf.ByteString.EMPTY) { setTlsCertHash(other.getTlsCertHash()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.ConnEstablish) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * optional bytes pki_id = 1; */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * optional bytes pki_id = 1; */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes identity = 2; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } /** * optional bytes identity = 2; */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** * optional bytes identity = 2; */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } private com.google.protobuf.ByteString tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes tls_cert_hash = 3; */ public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } /** * optional bytes tls_cert_hash = 3; */ public Builder setTlsCertHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tlsCertHash_ = value; onChanged(); return this; } /** * optional bytes tls_cert_hash = 3; */ public Builder clearTlsCertHash() { tlsCertHash_ = getDefaultInstance().getTlsCertHash(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.ConnEstablish) } // @@protoc_insertion_point(class_scope:gossip.ConnEstablish) private static final org.hyperledger.fabric.protos.gossip.Message.ConnEstablish DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.ConnEstablish(); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConnEstablish parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConnEstablish(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerIdentityOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PeerIdentity) com.google.protobuf.MessageOrBuilder { /** * optional bytes pki_id = 1; */ com.google.protobuf.ByteString getPkiId(); /** * optional bytes cert = 2; */ com.google.protobuf.ByteString getCert(); /** * optional bytes metadata = 3; */ com.google.protobuf.ByteString getMetadata(); } /** *
   * PeerIdentity defines the identity of the peer
   * Used to make other peers learn of the identity
   * of a certain peer
   * 
* * Protobuf type {@code gossip.PeerIdentity} */ public static final class PeerIdentity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PeerIdentity) PeerIdentityOrBuilder { // Use PeerIdentity.newBuilder() to construct. private PeerIdentity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerIdentity() { pkiId_ = com.google.protobuf.ByteString.EMPTY; cert_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerIdentity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { pkiId_ = input.readBytes(); break; } case 18: { cert_ = input.readBytes(); break; } case 26: { metadata_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.class, org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder.class); } public static final int PKI_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString pkiId_; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int CERT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString cert_; /** * optional bytes cert = 2; */ public com.google.protobuf.ByteString getCert() { return cert_; } public static final int METADATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString metadata_; /** * optional bytes metadata = 3; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!pkiId_.isEmpty()) { output.writeBytes(1, pkiId_); } if (!cert_.isEmpty()) { output.writeBytes(2, cert_); } if (!metadata_.isEmpty()) { output.writeBytes(3, metadata_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!pkiId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, pkiId_); } if (!cert_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, cert_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, metadata_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PeerIdentity)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PeerIdentity other = (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) obj; boolean result = true; result = result && getPkiId() .equals(other.getPkiId()); result = result && getCert() .equals(other.getCert()); result = result && getMetadata() .equals(other.getMetadata()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PKI_ID_FIELD_NUMBER; hash = (53 * hash) + getPkiId().hashCode(); hash = (37 * hash) + CERT_FIELD_NUMBER; hash = (53 * hash) + getCert().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PeerIdentity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PeerIdentity defines the identity of the peer
     * Used to make other peers learn of the identity
     * of a certain peer
     * 
* * Protobuf type {@code gossip.PeerIdentity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PeerIdentity) org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.class, org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); pkiId_ = com.google.protobuf.ByteString.EMPTY; cert_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity build() { org.hyperledger.fabric.protos.gossip.Message.PeerIdentity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PeerIdentity result = new org.hyperledger.fabric.protos.gossip.Message.PeerIdentity(this); result.pkiId_ = pkiId_; result.cert_ = cert_; result.metadata_ = metadata_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PeerIdentity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PeerIdentity other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance()) return this; if (other.getPkiId() != com.google.protobuf.ByteString.EMPTY) { setPkiId(other.getPkiId()); } if (other.getCert() != com.google.protobuf.ByteString.EMPTY) { setCert(other.getCert()); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PeerIdentity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * optional bytes pki_id = 1; */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * optional bytes pki_id = 1; */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes cert = 2; */ public com.google.protobuf.ByteString getCert() { return cert_; } /** * optional bytes cert = 2; */ public Builder setCert(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cert_ = value; onChanged(); return this; } /** * optional bytes cert = 2; */ public Builder clearCert() { cert_ = getDefaultInstance().getCert(); onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes metadata = 3; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * optional bytes metadata = 3; */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * optional bytes metadata = 3; */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PeerIdentity) } // @@protoc_insertion_point(class_scope:gossip.PeerIdentity) private static final org.hyperledger.fabric.protos.gossip.Message.PeerIdentity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PeerIdentity(); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PeerIdentity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerIdentity(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.DataRequest) com.google.protobuf.MessageOrBuilder { /** * optional uint64 nonce = 1; */ long getNonce(); /** * repeated bytes digests = 2; */ java.util.List getDigestsList(); /** * repeated bytes digests = 2; */ int getDigestsCount(); /** * repeated bytes digests = 2; */ com.google.protobuf.ByteString getDigests(int index); /** * optional .gossip.PullMsgType msg_type = 3; */ int getMsgTypeValue(); /** * optional .gossip.PullMsgType msg_type = 3; */ org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType(); } /** *
   * DataRequest is a message used for a peer to request
   * certain data blocks from a remote peer
   * 
* * Protobuf type {@code gossip.DataRequest} */ public static final class DataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.DataRequest) DataRequestOrBuilder { // Use DataRequest.newBuilder() to construct. private DataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataRequest() { nonce_ = 0L; digests_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { digests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } digests_.add(input.readBytes()); break; } case 24: { int rawValue = input.readEnum(); msgType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { digests_ = java.util.Collections.unmodifiableList(digests_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataRequest.class, org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder.class); } private int bitField0_; public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } public static final int DIGESTS_FIELD_NUMBER = 2; private java.util.List digests_; /** * repeated bytes digests = 2; */ public java.util.List getDigestsList() { return digests_; } /** * repeated bytes digests = 2; */ public int getDigestsCount() { return digests_.size(); } /** * repeated bytes digests = 2; */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeUInt64(1, nonce_); } for (int i = 0; i < digests_.size(); i++) { output.writeBytes(2, digests_.get(i)); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { output.writeEnum(3, msgType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } { int dataSize = 0; for (int i = 0; i < digests_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(digests_.get(i)); } size += dataSize; size += 1 * getDigestsList().size(); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, msgType_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.DataRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.DataRequest other = (org.hyperledger.fabric.protos.gossip.Message.DataRequest) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); result = result && getDigestsList() .equals(other.getDigestsList()); result = result && msgType_ == other.msgType_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); if (getDigestsCount() > 0) { hash = (37 * hash) + DIGESTS_FIELD_NUMBER; hash = (53 * hash) + getDigestsList().hashCode(); } hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; hash = (53 * hash) + msgType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.DataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * DataRequest is a message used for a peer to request
     * certain data blocks from a remote peer
     * 
* * Protobuf type {@code gossip.DataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.DataRequest) org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataRequest.class, org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.DataRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); msgType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.DataRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.DataRequest build() { org.hyperledger.fabric.protos.gossip.Message.DataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.DataRequest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.DataRequest result = new org.hyperledger.fabric.protos.gossip.Message.DataRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.nonce_ = nonce_; if (((bitField0_ & 0x00000002) == 0x00000002)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000002); } result.digests_ = digests_; result.msgType_ = msgType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.DataRequest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.DataRequest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (!other.digests_.isEmpty()) { if (digests_.isEmpty()) { digests_ = other.digests_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDigestsIsMutable(); digests_.addAll(other.digests_); } onChanged(); } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.DataRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.DataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long nonce_ ; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional uint64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional uint64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { digests_ = new java.util.ArrayList(digests_); bitField0_ |= 0x00000002; } } /** * repeated bytes digests = 2; */ public java.util.List getDigestsList() { return java.util.Collections.unmodifiableList(digests_); } /** * repeated bytes digests = 2; */ public int getDigestsCount() { return digests_.size(); } /** * repeated bytes digests = 2; */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } /** * repeated bytes digests = 2; */ public Builder setDigests( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.set(index, value); onChanged(); return this; } /** * repeated bytes digests = 2; */ public Builder addDigests(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.add(value); onChanged(); return this; } /** * repeated bytes digests = 2; */ public Builder addAllDigests( java.lang.Iterable values) { ensureDigestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, digests_); onChanged(); return this; } /** * repeated bytes digests = 2; */ public Builder clearDigests() { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private int msgType_ = 0; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.DataRequest) } // @@protoc_insertion_point(class_scope:gossip.DataRequest) private static final org.hyperledger.fabric.protos.gossip.Message.DataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.DataRequest(); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.DataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GossipHelloOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.GossipHello) com.google.protobuf.MessageOrBuilder { /** * optional uint64 nonce = 1; */ long getNonce(); /** * optional bytes metadata = 2; */ com.google.protobuf.ByteString getMetadata(); /** * optional .gossip.PullMsgType msg_type = 3; */ int getMsgTypeValue(); /** * optional .gossip.PullMsgType msg_type = 3; */ org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType(); } /** *
   * GossipHello is the message that is used for the peer to initiate
   * a pull round with another peer
   * 
* * Protobuf type {@code gossip.GossipHello} */ public static final class GossipHello extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.GossipHello) GossipHelloOrBuilder { // Use GossipHello.newBuilder() to construct. private GossipHello(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GossipHello() { nonce_ = 0L; metadata_ = com.google.protobuf.ByteString.EMPTY; msgType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GossipHello( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readUInt64(); break; } case 18: { metadata_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); msgType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.GossipHello.class, org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder.class); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } public static final int METADATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString metadata_; /** * optional bytes metadata = 2; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeUInt64(1, nonce_); } if (!metadata_.isEmpty()) { output.writeBytes(2, metadata_); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { output.writeEnum(3, msgType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, metadata_); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, msgType_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.GossipHello)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.GossipHello other = (org.hyperledger.fabric.protos.gossip.Message.GossipHello) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); result = result && getMetadata() .equals(other.getMetadata()); result = result && msgType_ == other.msgType_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; hash = (53 * hash) + msgType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.GossipHello prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * GossipHello is the message that is used for the peer to initiate
     * a pull round with another peer
     * 
* * Protobuf type {@code gossip.GossipHello} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.GossipHello) org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.GossipHello.class, org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.GossipHello.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; metadata_ = com.google.protobuf.ByteString.EMPTY; msgType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.GossipHello getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.GossipHello build() { org.hyperledger.fabric.protos.gossip.Message.GossipHello result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.GossipHello buildPartial() { org.hyperledger.fabric.protos.gossip.Message.GossipHello result = new org.hyperledger.fabric.protos.gossip.Message.GossipHello(this); result.nonce_ = nonce_; result.metadata_ = metadata_; result.msgType_ = msgType_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.GossipHello) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.GossipHello)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.GossipHello other) { if (other == org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.GossipHello parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.GossipHello) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long nonce_ ; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional uint64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional uint64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes metadata = 2; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * optional bytes metadata = 2; */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * optional bytes metadata = 2; */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private int msgType_ = 0; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.GossipHello) } // @@protoc_insertion_point(class_scope:gossip.GossipHello) private static final org.hyperledger.fabric.protos.gossip.Message.GossipHello DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.GossipHello(); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GossipHello parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GossipHello(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.GossipHello getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataUpdateOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.DataUpdate) com.google.protobuf.MessageOrBuilder { /** * optional uint64 nonce = 1; */ long getNonce(); /** * repeated .gossip.Envelope data = 2; */ java.util.List getDataList(); /** * repeated .gossip.Envelope data = 2; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getData(int index); /** * repeated .gossip.Envelope data = 2; */ int getDataCount(); /** * repeated .gossip.Envelope data = 2; */ java.util.List getDataOrBuilderList(); /** * repeated .gossip.Envelope data = 2; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDataOrBuilder( int index); /** * optional .gossip.PullMsgType msg_type = 3; */ int getMsgTypeValue(); /** * optional .gossip.PullMsgType msg_type = 3; */ org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType(); } /** *
   * DataUpdate is the final message in the pull phase
   * sent from the receiver to the initiator
   * 
* * Protobuf type {@code gossip.DataUpdate} */ public static final class DataUpdate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.DataUpdate) DataUpdateOrBuilder { // Use DataUpdate.newBuilder() to construct. private DataUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataUpdate() { nonce_ = 0L; data_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DataUpdate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } data_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry)); break; } case 24: { int rawValue = input.readEnum(); msgType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataUpdate.class, org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder.class); } private int bitField0_; public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } public static final int DATA_FIELD_NUMBER = 2; private java.util.List data_; /** * repeated .gossip.Envelope data = 2; */ public java.util.List getDataList() { return data_; } /** * repeated .gossip.Envelope data = 2; */ public java.util.List getDataOrBuilderList() { return data_; } /** * repeated .gossip.Envelope data = 2; */ public int getDataCount() { return data_.size(); } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getData(int index) { return data_.get(index); } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDataOrBuilder( int index) { return data_.get(index); } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeUInt64(1, nonce_); } for (int i = 0; i < data_.size(); i++) { output.writeMessage(2, data_.get(i)); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { output.writeEnum(3, msgType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, data_.get(i)); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, msgType_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.DataUpdate)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.DataUpdate other = (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); result = result && getDataList() .equals(other.getDataList()); result = result && msgType_ == other.msgType_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; hash = (53 * hash) + msgType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.DataUpdate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * DataUpdate is the final message in the pull phase
     * sent from the receiver to the initiator
     * 
* * Protobuf type {@code gossip.DataUpdate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.DataUpdate) org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataUpdate.class, org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.DataUpdate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDataFieldBuilder(); } } public Builder clear() { super.clear(); nonce_ = 0L; if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dataBuilder_.clear(); } msgType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.DataUpdate build() { org.hyperledger.fabric.protos.gossip.Message.DataUpdate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.DataUpdate buildPartial() { org.hyperledger.fabric.protos.gossip.Message.DataUpdate result = new org.hyperledger.fabric.protos.gossip.Message.DataUpdate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.nonce_ = nonce_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000002); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.msgType_ = msgType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.DataUpdate) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataUpdate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.DataUpdate other) { if (other == org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000002); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.DataUpdate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.DataUpdate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long nonce_ ; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional uint64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional uint64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> dataBuilder_; /** * repeated .gossip.Envelope data = 2; */ public java.util.List getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * repeated .gossip.Envelope data = 2; */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * repeated .gossip.Envelope data = 2; */ public Builder setData( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder setData( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder addData(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder addData( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder addData( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder addData( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder addAllData( java.lang.Iterable values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * repeated .gossip.Envelope data = 2; */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Envelope data = 2; */ public java.util.List getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope data = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope data = 2; */ public java.util.List getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder>( data_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private int msgType_ = 0; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.DataUpdate) } // @@protoc_insertion_point(class_scope:gossip.DataUpdate) private static final org.hyperledger.fabric.protos.gossip.Message.DataUpdate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.DataUpdate(); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DataUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataUpdate(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataDigestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.DataDigest) com.google.protobuf.MessageOrBuilder { /** * optional uint64 nonce = 1; */ long getNonce(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ java.util.List getDigestsList(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ int getDigestsCount(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ com.google.protobuf.ByteString getDigests(int index); /** * optional .gossip.PullMsgType msg_type = 3; */ int getMsgTypeValue(); /** * optional .gossip.PullMsgType msg_type = 3; */ org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType(); } /** *
   * DataDigest is the message sent from the receiver peer
   * to the initator peer and contains the data items it has
   * 
* * Protobuf type {@code gossip.DataDigest} */ public static final class DataDigest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.DataDigest) DataDigestOrBuilder { // Use DataDigest.newBuilder() to construct. private DataDigest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataDigest() { nonce_ = 0L; digests_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DataDigest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { nonce_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { digests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } digests_.add(input.readBytes()); break; } case 24: { int rawValue = input.readEnum(); msgType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { digests_ = java.util.Collections.unmodifiableList(digests_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataDigest.class, org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder.class); } private int bitField0_; public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } public static final int DIGESTS_FIELD_NUMBER = 2; private java.util.List digests_; /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ public java.util.List getDigestsList() { return digests_; } /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ public int getDigestsCount() { return digests_.size(); } /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (nonce_ != 0L) { output.writeUInt64(1, nonce_); } for (int i = 0; i < digests_.size(); i++) { output.writeBytes(2, digests_.get(i)); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { output.writeEnum(3, msgType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } { int dataSize = 0; for (int i = 0; i < digests_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(digests_.get(i)); } size += dataSize; size += 1 * getDigestsList().size(); } if (msgType_ != org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, msgType_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.DataDigest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.DataDigest other = (org.hyperledger.fabric.protos.gossip.Message.DataDigest) obj; boolean result = true; result = result && (getNonce() == other.getNonce()); result = result && getDigestsList() .equals(other.getDigestsList()); result = result && msgType_ == other.msgType_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); if (getDigestsCount() > 0) { hash = (37 * hash) + DIGESTS_FIELD_NUMBER; hash = (53 * hash) + getDigestsList().hashCode(); } hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; hash = (53 * hash) + msgType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.DataDigest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * DataDigest is the message sent from the receiver peer
     * to the initator peer and contains the data items it has
     * 
* * Protobuf type {@code gossip.DataDigest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.DataDigest) org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataDigest.class, org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.DataDigest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); nonce_ = 0L; digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); msgType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.DataDigest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.DataDigest build() { org.hyperledger.fabric.protos.gossip.Message.DataDigest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.DataDigest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.DataDigest result = new org.hyperledger.fabric.protos.gossip.Message.DataDigest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.nonce_ = nonce_; if (((bitField0_ & 0x00000002) == 0x00000002)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000002); } result.digests_ = digests_; result.msgType_ = msgType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.DataDigest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataDigest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.DataDigest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (!other.digests_.isEmpty()) { if (digests_.isEmpty()) { digests_ = other.digests_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDigestsIsMutable(); digests_.addAll(other.digests_); } onChanged(); } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.DataDigest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.DataDigest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long nonce_ ; /** * optional uint64 nonce = 1; */ public long getNonce() { return nonce_; } /** * optional uint64 nonce = 1; */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * optional uint64 nonce = 1; */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { digests_ = new java.util.ArrayList(digests_); bitField0_ |= 0x00000002; } } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public java.util.List getDigestsList() { return java.util.Collections.unmodifiableList(digests_); } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public int getDigestsCount() { return digests_.size(); } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public Builder setDigests( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.set(index, value); onChanged(); return this; } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public Builder addDigests(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.add(value); onChanged(); return this; } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public Builder addAllDigests( java.lang.Iterable values) { ensureDigestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, digests_); onChanged(); return this; } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; */ public Builder clearDigests() { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private int msgType_ = 0; /** * optional .gossip.PullMsgType msg_type = 3; */ public int getMsgTypeValue() { return msgType_; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { org.hyperledger.fabric.protos.gossip.Message.PullMsgType result = org.hyperledger.fabric.protos.gossip.Message.PullMsgType.valueOf(msgType_); return result == null ? org.hyperledger.fabric.protos.gossip.Message.PullMsgType.UNRECOGNIZED : result; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * optional .gossip.PullMsgType msg_type = 3; */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.DataDigest) } // @@protoc_insertion_point(class_scope:gossip.DataDigest) private static final org.hyperledger.fabric.protos.gossip.Message.DataDigest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.DataDigest(); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DataDigest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataDigest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.DataDigest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.DataMessage) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.Payload payload = 1; */ boolean hasPayload(); /** * optional .gossip.Payload payload = 1; */ org.hyperledger.fabric.protos.gossip.Message.Payload getPayload(); /** * optional .gossip.Payload payload = 1; */ org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadOrBuilder(); } /** *
   * DataMessage is the message that contains a block
   * 
* * Protobuf type {@code gossip.DataMessage} */ public static final class DataMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.DataMessage) DataMessageOrBuilder { // Use DataMessage.newBuilder() to construct. private DataMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataMessage() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DataMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.Payload.Builder subBuilder = null; if (payload_ != null) { subBuilder = payload_.toBuilder(); } payload_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Payload.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payload_); payload_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataMessage.class, org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.Payload payload_; /** * optional .gossip.Payload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** * optional .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload getPayload() { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance() : payload_; } /** * optional .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payload_ != null) { output.writeMessage(1, getPayload()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPayload()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.DataMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.DataMessage other = (org.hyperledger.fabric.protos.gossip.Message.DataMessage) obj; boolean result = true; result = result && (hasPayload() == other.hasPayload()); if (hasPayload()) { result = result && getPayload() .equals(other.getPayload()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.DataMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * DataMessage is the message that contains a block
     * 
* * Protobuf type {@code gossip.DataMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.DataMessage) org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.DataMessage.class, org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.DataMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.DataMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.DataMessage build() { org.hyperledger.fabric.protos.gossip.Message.DataMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.DataMessage buildPartial() { org.hyperledger.fabric.protos.gossip.Message.DataMessage result = new org.hyperledger.fabric.protos.gossip.Message.DataMessage(this); if (payloadBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = payloadBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.DataMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.DataMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.DataMessage other) { if (other == org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance()) return this; if (other.hasPayload()) { mergePayload(other.getPayload()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.DataMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.DataMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.gossip.Message.Payload payload_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder> payloadBuilder_; /** * optional .gossip.Payload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** * optional .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload getPayload() { if (payloadBuilder_ == null) { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** * optional .gossip.Payload payload = 1; */ public Builder setPayload(org.hyperledger.fabric.protos.gossip.Message.Payload value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { payloadBuilder_.setMessage(value); } return this; } /** * optional .gossip.Payload payload = 1; */ public Builder setPayload( org.hyperledger.fabric.protos.gossip.Message.Payload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.Payload payload = 1; */ public Builder mergePayload(org.hyperledger.fabric.protos.gossip.Message.Payload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = org.hyperledger.fabric.protos.gossip.Message.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { payloadBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** * optional .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * optional .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance() : payload_; } } /** * optional .gossip.Payload payload = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.DataMessage) } // @@protoc_insertion_point(class_scope:gossip.DataMessage) private static final org.hyperledger.fabric.protos.gossip.Message.DataMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.DataMessage(); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DataMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.DataMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrivateDataMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PrivateDataMessage) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.PrivatePayload payload = 1; */ boolean hasPayload(); /** * optional .gossip.PrivatePayload payload = 1; */ org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getPayload(); /** * optional .gossip.PrivatePayload payload = 1; */ org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder getPayloadOrBuilder(); } /** *
   * PrivateDataMessage message which includes private
   * data information to distributed once transaction
   * has been endorsed
   * 
* * Protobuf type {@code gossip.PrivateDataMessage} */ public static final class PrivateDataMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PrivateDataMessage) PrivateDataMessageOrBuilder { // Use PrivateDataMessage.newBuilder() to construct. private PrivateDataMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivateDataMessage() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PrivateDataMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder subBuilder = null; if (payload_ != null) { subBuilder = payload_.toBuilder(); } payload_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payload_); payload_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.class, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.PrivatePayload payload_; /** * optional .gossip.PrivatePayload payload = 1; */ public boolean hasPayload() { return payload_ != null; } /** * optional .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getPayload() { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance() : payload_; } /** * optional .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder getPayloadOrBuilder() { return getPayload(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payload_ != null) { output.writeMessage(1, getPayload()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPayload()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage other = (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) obj; boolean result = true; result = result && (hasPayload() == other.hasPayload()); if (hasPayload()) { result = result && getPayload() .equals(other.getPayload()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PrivateDataMessage message which includes private
     * data information to distributed once transaction
     * has been endorsed
     * 
* * Protobuf type {@code gossip.PrivateDataMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PrivateDataMessage) org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.class, org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage build() { org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage result = new org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage(this); if (payloadBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = payloadBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance()) return this; if (other.hasPayload()) { mergePayload(other.getPayload()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.gossip.Message.PrivatePayload payload_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivatePayload, org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder> payloadBuilder_; /** * optional .gossip.PrivatePayload payload = 1; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** * optional .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getPayload() { if (payloadBuilder_ == null) { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** * optional .gossip.PrivatePayload payload = 1; */ public Builder setPayload(org.hyperledger.fabric.protos.gossip.Message.PrivatePayload value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { payloadBuilder_.setMessage(value); } return this; } /** * optional .gossip.PrivatePayload payload = 1; */ public Builder setPayload( org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.PrivatePayload payload = 1; */ public Builder mergePayload(org.hyperledger.fabric.protos.gossip.Message.PrivatePayload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { payloadBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.PrivatePayload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** * optional .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * optional .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance() : payload_; } } /** * optional .gossip.PrivatePayload payload = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivatePayload, org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PrivatePayload, org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder, org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PrivateDataMessage) } // @@protoc_insertion_point(class_scope:gossip.PrivateDataMessage) private static final org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage(); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrivateDataMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrivateDataMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Payload) com.google.protobuf.MessageOrBuilder { /** * optional uint64 seq_num = 1; */ long getSeqNum(); /** * optional bytes data = 2; */ com.google.protobuf.ByteString getData(); /** * repeated bytes private_data = 3; */ java.util.List getPrivateDataList(); /** * repeated bytes private_data = 3; */ int getPrivateDataCount(); /** * repeated bytes private_data = 3; */ com.google.protobuf.ByteString getPrivateData(int index); } /** *
   * Payload contains a block
   * 
* * Protobuf type {@code gossip.Payload} */ public static final class Payload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Payload) PayloadOrBuilder { // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Payload() { seqNum_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; privateData_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Payload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { seqNum_ = input.readUInt64(); break; } case 18: { data_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { privateData_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } privateData_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { privateData_ = java.util.Collections.unmodifiableList(privateData_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Payload.class, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder.class); } private int bitField0_; public static final int SEQ_NUM_FIELD_NUMBER = 1; private long seqNum_; /** * optional uint64 seq_num = 1; */ public long getSeqNum() { return seqNum_; } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int PRIVATE_DATA_FIELD_NUMBER = 3; private java.util.List privateData_; /** * repeated bytes private_data = 3; */ public java.util.List getPrivateDataList() { return privateData_; } /** * repeated bytes private_data = 3; */ public int getPrivateDataCount() { return privateData_.size(); } /** * repeated bytes private_data = 3; */ public com.google.protobuf.ByteString getPrivateData(int index) { return privateData_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (seqNum_ != 0L) { output.writeUInt64(1, seqNum_); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } for (int i = 0; i < privateData_.size(); i++) { output.writeBytes(3, privateData_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (seqNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, seqNum_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } { int dataSize = 0; for (int i = 0; i < privateData_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(privateData_.get(i)); } size += dataSize; size += 1 * getPrivateDataList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Payload)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Payload other = (org.hyperledger.fabric.protos.gossip.Message.Payload) obj; boolean result = true; result = result && (getSeqNum() == other.getSeqNum()); result = result && getData() .equals(other.getData()); result = result && getPrivateDataList() .equals(other.getPrivateDataList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + SEQ_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqNum()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); if (getPrivateDataCount() > 0) { hash = (37 * hash) + PRIVATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getPrivateDataList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Payload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Payload contains a block
     * 
* * Protobuf type {@code gossip.Payload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Payload) org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Payload.class, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Payload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); seqNum_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; privateData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Payload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Payload build() { org.hyperledger.fabric.protos.gossip.Message.Payload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Payload buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Payload result = new org.hyperledger.fabric.protos.gossip.Message.Payload(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.seqNum_ = seqNum_; result.data_ = data_; if (((bitField0_ & 0x00000004) == 0x00000004)) { privateData_ = java.util.Collections.unmodifiableList(privateData_); bitField0_ = (bitField0_ & ~0x00000004); } result.privateData_ = privateData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Payload) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Payload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Payload other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance()) return this; if (other.getSeqNum() != 0L) { setSeqNum(other.getSeqNum()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (!other.privateData_.isEmpty()) { if (privateData_.isEmpty()) { privateData_ = other.privateData_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePrivateDataIsMutable(); privateData_.addAll(other.privateData_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Payload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Payload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long seqNum_ ; /** * optional uint64 seq_num = 1; */ public long getSeqNum() { return seqNum_; } /** * optional uint64 seq_num = 1; */ public Builder setSeqNum(long value) { seqNum_ = value; onChanged(); return this; } /** * optional uint64 seq_num = 1; */ public Builder clearSeqNum() { seqNum_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * optional bytes data = 2; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.util.List privateData_ = java.util.Collections.emptyList(); private void ensurePrivateDataIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { privateData_ = new java.util.ArrayList(privateData_); bitField0_ |= 0x00000004; } } /** * repeated bytes private_data = 3; */ public java.util.List getPrivateDataList() { return java.util.Collections.unmodifiableList(privateData_); } /** * repeated bytes private_data = 3; */ public int getPrivateDataCount() { return privateData_.size(); } /** * repeated bytes private_data = 3; */ public com.google.protobuf.ByteString getPrivateData(int index) { return privateData_.get(index); } /** * repeated bytes private_data = 3; */ public Builder setPrivateData( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePrivateDataIsMutable(); privateData_.set(index, value); onChanged(); return this; } /** * repeated bytes private_data = 3; */ public Builder addPrivateData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePrivateDataIsMutable(); privateData_.add(value); onChanged(); return this; } /** * repeated bytes private_data = 3; */ public Builder addAllPrivateData( java.lang.Iterable values) { ensurePrivateDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, privateData_); onChanged(); return this; } /** * repeated bytes private_data = 3; */ public Builder clearPrivateData() { privateData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Payload) } // @@protoc_insertion_point(class_scope:gossip.Payload) private static final org.hyperledger.fabric.protos.gossip.Message.Payload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Payload(); } public static org.hyperledger.fabric.protos.gossip.Message.Payload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Payload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Payload(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Payload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrivatePayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PrivatePayload) com.google.protobuf.MessageOrBuilder { /** * optional string collection_name = 1; */ java.lang.String getCollectionName(); /** * optional string collection_name = 1; */ com.google.protobuf.ByteString getCollectionNameBytes(); /** * optional string namespace = 2; */ java.lang.String getNamespace(); /** * optional string namespace = 2; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * optional string tx_id = 3; */ java.lang.String getTxId(); /** * optional string tx_id = 3; */ com.google.protobuf.ByteString getTxIdBytes(); /** * optional bytes private_rwset = 4; */ com.google.protobuf.ByteString getPrivateRwset(); /** * optional uint64 private_sim_height = 5; */ long getPrivateSimHeight(); /** * optional .common.CollectionConfigPackage collection_configs = 6; */ boolean hasCollectionConfigs(); /** * optional .common.CollectionConfigPackage collection_configs = 6; */ org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getCollectionConfigs(); /** * optional .common.CollectionConfigPackage collection_configs = 6; */ org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder getCollectionConfigsOrBuilder(); } /** *
   * PrivatePayload payload to encapsulate private
   * data with collection name to enable routing
   * based on collection partitioning
   * 
* * Protobuf type {@code gossip.PrivatePayload} */ public static final class PrivatePayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PrivatePayload) PrivatePayloadOrBuilder { // Use PrivatePayload.newBuilder() to construct. private PrivatePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivatePayload() { collectionName_ = ""; namespace_ = ""; txId_ = ""; privateRwset_ = com.google.protobuf.ByteString.EMPTY; privateSimHeight_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PrivatePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); collectionName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); namespace_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); txId_ = s; break; } case 34: { privateRwset_ = input.readBytes(); break; } case 40: { privateSimHeight_ = input.readUInt64(); break; } case 50: { org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder subBuilder = null; if (collectionConfigs_ != null) { subBuilder = collectionConfigs_.toBuilder(); } collectionConfigs_ = input.readMessage(org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(collectionConfigs_); collectionConfigs_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.class, org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder.class); } public static final int COLLECTION_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object collectionName_; /** * optional string collection_name = 1; */ public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } } /** * optional string collection_name = 1; */ public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TX_ID_FIELD_NUMBER = 3; private volatile java.lang.Object txId_; /** * optional string tx_id = 3; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txId_ = s; return s; } } /** * optional string tx_id = 3; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIVATE_RWSET_FIELD_NUMBER = 4; private com.google.protobuf.ByteString privateRwset_; /** * optional bytes private_rwset = 4; */ public com.google.protobuf.ByteString getPrivateRwset() { return privateRwset_; } public static final int PRIVATE_SIM_HEIGHT_FIELD_NUMBER = 5; private long privateSimHeight_; /** * optional uint64 private_sim_height = 5; */ public long getPrivateSimHeight() { return privateSimHeight_; } public static final int COLLECTION_CONFIGS_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage collectionConfigs_; /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public boolean hasCollectionConfigs() { return collectionConfigs_ != null; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getCollectionConfigs() { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder getCollectionConfigsOrBuilder() { return getCollectionConfigs(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCollectionNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_); } if (!getNamespaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (!getTxIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, txId_); } if (!privateRwset_.isEmpty()) { output.writeBytes(4, privateRwset_); } if (privateSimHeight_ != 0L) { output.writeUInt64(5, privateSimHeight_); } if (collectionConfigs_ != null) { output.writeMessage(6, getCollectionConfigs()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCollectionNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_); } if (!getNamespaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, txId_); } if (!privateRwset_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, privateRwset_); } if (privateSimHeight_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, privateSimHeight_); } if (collectionConfigs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCollectionConfigs()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PrivatePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PrivatePayload other = (org.hyperledger.fabric.protos.gossip.Message.PrivatePayload) obj; boolean result = true; result = result && getCollectionName() .equals(other.getCollectionName()); result = result && getNamespace() .equals(other.getNamespace()); result = result && getTxId() .equals(other.getTxId()); result = result && getPrivateRwset() .equals(other.getPrivateRwset()); result = result && (getPrivateSimHeight() == other.getPrivateSimHeight()); result = result && (hasCollectionConfigs() == other.hasCollectionConfigs()); if (hasCollectionConfigs()) { result = result && getCollectionConfigs() .equals(other.getCollectionConfigs()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + COLLECTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getCollectionName().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + PRIVATE_RWSET_FIELD_NUMBER; hash = (53 * hash) + getPrivateRwset().hashCode(); hash = (37 * hash) + PRIVATE_SIM_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPrivateSimHeight()); if (hasCollectionConfigs()) { hash = (37 * hash) + COLLECTION_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + getCollectionConfigs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PrivatePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PrivatePayload payload to encapsulate private
     * data with collection name to enable routing
     * based on collection partitioning
     * 
* * Protobuf type {@code gossip.PrivatePayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PrivatePayload) org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.class, org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); collectionName_ = ""; namespace_ = ""; txId_ = ""; privateRwset_ = com.google.protobuf.ByteString.EMPTY; privateSimHeight_ = 0L; if (collectionConfigsBuilder_ == null) { collectionConfigs_ = null; } else { collectionConfigs_ = null; collectionConfigsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload build() { org.hyperledger.fabric.protos.gossip.Message.PrivatePayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PrivatePayload result = new org.hyperledger.fabric.protos.gossip.Message.PrivatePayload(this); result.collectionName_ = collectionName_; result.namespace_ = namespace_; result.txId_ = txId_; result.privateRwset_ = privateRwset_; result.privateSimHeight_ = privateSimHeight_; if (collectionConfigsBuilder_ == null) { result.collectionConfigs_ = collectionConfigs_; } else { result.collectionConfigs_ = collectionConfigsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PrivatePayload) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PrivatePayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PrivatePayload other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance()) return this; if (!other.getCollectionName().isEmpty()) { collectionName_ = other.collectionName_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (other.getPrivateRwset() != com.google.protobuf.ByteString.EMPTY) { setPrivateRwset(other.getPrivateRwset()); } if (other.getPrivateSimHeight() != 0L) { setPrivateSimHeight(other.getPrivateSimHeight()); } if (other.hasCollectionConfigs()) { mergeCollectionConfigs(other.getCollectionConfigs()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PrivatePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object collectionName_ = ""; /** * optional string collection_name = 1; */ public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string collection_name = 1; */ public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string collection_name = 1; */ public Builder setCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectionName_ = value; onChanged(); return this; } /** * optional string collection_name = 1; */ public Builder clearCollectionName() { collectionName_ = getDefaultInstance().getCollectionName(); onChanged(); return this; } /** * optional string collection_name = 1; */ public Builder setCollectionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectionName_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 2; */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * optional string namespace = 2; */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * optional string namespace = 2; */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private java.lang.Object txId_ = ""; /** * optional string tx_id = 3; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string tx_id = 3; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string tx_id = 3; */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** * optional string tx_id = 3; */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** * optional string tx_id = 3; */ public Builder setTxIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txId_ = value; onChanged(); return this; } private com.google.protobuf.ByteString privateRwset_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes private_rwset = 4; */ public com.google.protobuf.ByteString getPrivateRwset() { return privateRwset_; } /** * optional bytes private_rwset = 4; */ public Builder setPrivateRwset(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } privateRwset_ = value; onChanged(); return this; } /** * optional bytes private_rwset = 4; */ public Builder clearPrivateRwset() { privateRwset_ = getDefaultInstance().getPrivateRwset(); onChanged(); return this; } private long privateSimHeight_ ; /** * optional uint64 private_sim_height = 5; */ public long getPrivateSimHeight() { return privateSimHeight_; } /** * optional uint64 private_sim_height = 5; */ public Builder setPrivateSimHeight(long value) { privateSimHeight_ = value; onChanged(); return this; } /** * optional uint64 private_sim_height = 5; */ public Builder clearPrivateSimHeight() { privateSimHeight_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage collectionConfigs_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder> collectionConfigsBuilder_; /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public boolean hasCollectionConfigs() { return collectionConfigsBuilder_ != null || collectionConfigs_ != null; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage getCollectionConfigs() { if (collectionConfigsBuilder_ == null) { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } else { return collectionConfigsBuilder_.getMessage(); } } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public Builder setCollectionConfigs(org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage value) { if (collectionConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collectionConfigs_ = value; onChanged(); } else { collectionConfigsBuilder_.setMessage(value); } return this; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public Builder setCollectionConfigs( org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionConfigsBuilder_ == null) { collectionConfigs_ = builderForValue.build(); onChanged(); } else { collectionConfigsBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public Builder mergeCollectionConfigs(org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage value) { if (collectionConfigsBuilder_ == null) { if (collectionConfigs_ != null) { collectionConfigs_ = org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.newBuilder(collectionConfigs_).mergeFrom(value).buildPartial(); } else { collectionConfigs_ = value; } onChanged(); } else { collectionConfigsBuilder_.mergeFrom(value); } return this; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public Builder clearCollectionConfigs() { if (collectionConfigsBuilder_ == null) { collectionConfigs_ = null; onChanged(); } else { collectionConfigs_ = null; collectionConfigsBuilder_ = null; } return this; } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder getCollectionConfigsBuilder() { onChanged(); return getCollectionConfigsFieldBuilder().getBuilder(); } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder getCollectionConfigsOrBuilder() { if (collectionConfigsBuilder_ != null) { return collectionConfigsBuilder_.getMessageOrBuilder(); } else { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } } /** * optional .common.CollectionConfigPackage collection_configs = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder> getCollectionConfigsFieldBuilder() { if (collectionConfigsBuilder_ == null) { collectionConfigsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.common.Collection.CollectionConfigPackageOrBuilder>( getCollectionConfigs(), getParentForChildren(), isClean()); collectionConfigs_ = null; } return collectionConfigsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PrivatePayload) } // @@protoc_insertion_point(class_scope:gossip.PrivatePayload) private static final org.hyperledger.fabric.protos.gossip.Message.PrivatePayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PrivatePayload(); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrivatePayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrivatePayload(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AliveMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.AliveMessage) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.Member membership = 1; */ boolean hasMembership(); /** * optional .gossip.Member membership = 1; */ org.hyperledger.fabric.protos.gossip.Message.Member getMembership(); /** * optional .gossip.Member membership = 1; */ org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder getMembershipOrBuilder(); /** * optional .gossip.PeerTime timestamp = 2; */ boolean hasTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * optional bytes identity = 4; */ com.google.protobuf.ByteString getIdentity(); } /** *
   * AliveMessage is sent to inform remote peers
   * of a peer's existence and activity
   * 
* * Protobuf type {@code gossip.AliveMessage} */ public static final class AliveMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.AliveMessage) AliveMessageOrBuilder { // Use AliveMessage.newBuilder() to construct. private AliveMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AliveMessage() { identity_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AliveMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.Member.Builder subBuilder = null; if (membership_ != null) { subBuilder = membership_.toBuilder(); } membership_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Member.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(membership_); membership_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PeerTime.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 34: { identity_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.AliveMessage.class, org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder.class); } public static final int MEMBERSHIP_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.Member membership_; /** * optional .gossip.Member membership = 1; */ public boolean hasMembership() { return membership_ != null; } /** * optional .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Member getMembership() { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance() : membership_; } /** * optional .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder getMembershipOrBuilder() { return getMembership(); } public static final int TIMESTAMP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int IDENTITY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString identity_; /** * optional bytes identity = 4; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (membership_ != null) { output.writeMessage(1, getMembership()); } if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } if (!identity_.isEmpty()) { output.writeBytes(4, identity_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (membership_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMembership()); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (!identity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, identity_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.AliveMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.AliveMessage other = (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) obj; boolean result = true; result = result && (hasMembership() == other.hasMembership()); if (hasMembership()) { result = result && getMembership() .equals(other.getMembership()); } result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && getIdentity() .equals(other.getIdentity()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMembership()) { hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; hash = (53 * hash) + getMembership().hashCode(); } if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.AliveMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * AliveMessage is sent to inform remote peers
     * of a peer's existence and activity
     * 
* * Protobuf type {@code gossip.AliveMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.AliveMessage) org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.AliveMessage.class, org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.AliveMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (membershipBuilder_ == null) { membership_ = null; } else { membership_ = null; membershipBuilder_ = null; } if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } identity_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.AliveMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.AliveMessage build() { org.hyperledger.fabric.protos.gossip.Message.AliveMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.AliveMessage buildPartial() { org.hyperledger.fabric.protos.gossip.Message.AliveMessage result = new org.hyperledger.fabric.protos.gossip.Message.AliveMessage(this); if (membershipBuilder_ == null) { result.membership_ = membership_; } else { result.membership_ = membershipBuilder_.build(); } if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.identity_ = identity_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.AliveMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.AliveMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.AliveMessage other) { if (other == org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance()) return this; if (other.hasMembership()) { mergeMembership(other.getMembership()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getIdentity() != com.google.protobuf.ByteString.EMPTY) { setIdentity(other.getIdentity()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.AliveMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.AliveMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.gossip.Message.Member membership_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Member, org.hyperledger.fabric.protos.gossip.Message.Member.Builder, org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder> membershipBuilder_; /** * optional .gossip.Member membership = 1; */ public boolean hasMembership() { return membershipBuilder_ != null || membership_ != null; } /** * optional .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Member getMembership() { if (membershipBuilder_ == null) { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance() : membership_; } else { return membershipBuilder_.getMessage(); } } /** * optional .gossip.Member membership = 1; */ public Builder setMembership(org.hyperledger.fabric.protos.gossip.Message.Member value) { if (membershipBuilder_ == null) { if (value == null) { throw new NullPointerException(); } membership_ = value; onChanged(); } else { membershipBuilder_.setMessage(value); } return this; } /** * optional .gossip.Member membership = 1; */ public Builder setMembership( org.hyperledger.fabric.protos.gossip.Message.Member.Builder builderForValue) { if (membershipBuilder_ == null) { membership_ = builderForValue.build(); onChanged(); } else { membershipBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.Member membership = 1; */ public Builder mergeMembership(org.hyperledger.fabric.protos.gossip.Message.Member value) { if (membershipBuilder_ == null) { if (membership_ != null) { membership_ = org.hyperledger.fabric.protos.gossip.Message.Member.newBuilder(membership_).mergeFrom(value).buildPartial(); } else { membership_ = value; } onChanged(); } else { membershipBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.Member membership = 1; */ public Builder clearMembership() { if (membershipBuilder_ == null) { membership_ = null; onChanged(); } else { membership_ = null; membershipBuilder_ = null; } return this; } /** * optional .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Member.Builder getMembershipBuilder() { onChanged(); return getMembershipFieldBuilder().getBuilder(); } /** * optional .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder getMembershipOrBuilder() { if (membershipBuilder_ != null) { return membershipBuilder_.getMessageOrBuilder(); } else { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance() : membership_; } } /** * optional .gossip.Member membership = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Member, org.hyperledger.fabric.protos.gossip.Message.Member.Builder, org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder> getMembershipFieldBuilder() { if (membershipBuilder_ == null) { membershipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Member, org.hyperledger.fabric.protos.gossip.Message.Member.Builder, org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder>( getMembership(), getParentForChildren(), isClean()); membership_ = null; } return membershipBuilder_; } private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> timestampBuilder_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp( org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder mergeTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = org.hyperledger.fabric.protos.gossip.Message.PeerTime.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } } /** * optional .gossip.PeerTime timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes identity = 4; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } /** * optional bytes identity = 4; */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** * optional bytes identity = 4; */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.AliveMessage) } // @@protoc_insertion_point(class_scope:gossip.AliveMessage) private static final org.hyperledger.fabric.protos.gossip.Message.AliveMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.AliveMessage(); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AliveMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AliveMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.AliveMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeadershipMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.LeadershipMessage) com.google.protobuf.MessageOrBuilder { /** * optional bytes pki_id = 1; */ com.google.protobuf.ByteString getPkiId(); /** * optional .gossip.PeerTime timestamp = 2; */ boolean hasTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * optional .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * optional bool is_declaration = 3; */ boolean getIsDeclaration(); } /** *
   * Leadership Message is sent during leader election to inform
   * remote peers about intent of peer to proclaim itself as leader
   * 
* * Protobuf type {@code gossip.LeadershipMessage} */ public static final class LeadershipMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.LeadershipMessage) LeadershipMessageOrBuilder { // Use LeadershipMessage.newBuilder() to construct. private LeadershipMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeadershipMessage() { pkiId_ = com.google.protobuf.ByteString.EMPTY; isDeclaration_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LeadershipMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { pkiId_ = input.readBytes(); break; } case 18: { org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PeerTime.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 24: { isDeclaration_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.class, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder.class); } public static final int PKI_ID_FIELD_NUMBER = 1; private com.google.protobuf.ByteString pkiId_; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int IS_DECLARATION_FIELD_NUMBER = 3; private boolean isDeclaration_; /** * optional bool is_declaration = 3; */ public boolean getIsDeclaration() { return isDeclaration_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!pkiId_.isEmpty()) { output.writeBytes(1, pkiId_); } if (timestamp_ != null) { output.writeMessage(2, getTimestamp()); } if (isDeclaration_ != false) { output.writeBool(3, isDeclaration_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!pkiId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, pkiId_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (isDeclaration_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isDeclaration_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage other = (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) obj; boolean result = true; result = result && getPkiId() .equals(other.getPkiId()); result = result && (hasTimestamp() == other.hasTimestamp()); if (hasTimestamp()) { result = result && getTimestamp() .equals(other.getTimestamp()); } result = result && (getIsDeclaration() == other.getIsDeclaration()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PKI_ID_FIELD_NUMBER; hash = (53 * hash) + getPkiId().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + IS_DECLARATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDeclaration()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Leadership Message is sent during leader election to inform
     * remote peers about intent of peer to proclaim itself as leader
     * 
* * Protobuf type {@code gossip.LeadershipMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.LeadershipMessage) org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.class, org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); pkiId_ = com.google.protobuf.ByteString.EMPTY; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } isDeclaration_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage build() { org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage buildPartial() { org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage result = new org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage(this); result.pkiId_ = pkiId_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.isDeclaration_ = isDeclaration_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage other) { if (other == org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance()) return this; if (other.getPkiId() != com.google.protobuf.ByteString.EMPTY) { setPkiId(other.getPkiId()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getIsDeclaration() != false) { setIsDeclaration(other.getIsDeclaration()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pki_id = 1; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * optional bytes pki_id = 1; */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * optional bytes pki_id = 1; */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> timestampBuilder_; /** * optional .gossip.PeerTime timestamp = 2; */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder setTimestamp( org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder mergeTimestamp(org.hyperledger.fabric.protos.gossip.Message.PeerTime value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = org.hyperledger.fabric.protos.gossip.Message.PeerTime.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * optional .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } } /** * optional .gossip.PeerTime timestamp = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PeerTime, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private boolean isDeclaration_ ; /** * optional bool is_declaration = 3; */ public boolean getIsDeclaration() { return isDeclaration_; } /** * optional bool is_declaration = 3; */ public Builder setIsDeclaration(boolean value) { isDeclaration_ = value; onChanged(); return this; } /** * optional bool is_declaration = 3; */ public Builder clearIsDeclaration() { isDeclaration_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.LeadershipMessage) } // @@protoc_insertion_point(class_scope:gossip.LeadershipMessage) private static final org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage(); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeadershipMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeadershipMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerTimeOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PeerTime) com.google.protobuf.MessageOrBuilder { /** * optional uint64 inc_num = 1; */ long getIncNum(); /** * optional uint64 seq_num = 2; */ long getSeqNum(); } /** *
   * PeerTime defines the logical time of a peer's life
   * 
* * Protobuf type {@code gossip.PeerTime} */ public static final class PeerTime extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PeerTime) PeerTimeOrBuilder { // Use PeerTime.newBuilder() to construct. private PeerTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerTime() { incNum_ = 0L; seqNum_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerTime( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { incNum_ = input.readUInt64(); break; } case 16: { seqNum_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PeerTime.class, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder.class); } public static final int INC_NUM_FIELD_NUMBER = 1; private long incNum_; /** * optional uint64 inc_num = 1; */ public long getIncNum() { return incNum_; } public static final int SEQ_NUM_FIELD_NUMBER = 2; private long seqNum_; /** * optional uint64 seq_num = 2; */ public long getSeqNum() { return seqNum_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (incNum_ != 0L) { output.writeUInt64(1, incNum_); } if (seqNum_ != 0L) { output.writeUInt64(2, seqNum_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (incNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, incNum_); } if (seqNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, seqNum_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PeerTime)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PeerTime other = (org.hyperledger.fabric.protos.gossip.Message.PeerTime) obj; boolean result = true; result = result && (getIncNum() == other.getIncNum()); result = result && (getSeqNum() == other.getSeqNum()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INC_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIncNum()); hash = (37 * hash) + SEQ_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqNum()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PeerTime prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PeerTime defines the logical time of a peer's life
     * 
* * Protobuf type {@code gossip.PeerTime} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PeerTime) org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PeerTime.class, org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PeerTime.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); incNum_ = 0L; seqNum_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PeerTime getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PeerTime build() { org.hyperledger.fabric.protos.gossip.Message.PeerTime result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PeerTime buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PeerTime result = new org.hyperledger.fabric.protos.gossip.Message.PeerTime(this); result.incNum_ = incNum_; result.seqNum_ = seqNum_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PeerTime) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PeerTime)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PeerTime other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance()) return this; if (other.getIncNum() != 0L) { setIncNum(other.getIncNum()); } if (other.getSeqNum() != 0L) { setSeqNum(other.getSeqNum()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PeerTime parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PeerTime) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long incNum_ ; /** * optional uint64 inc_num = 1; */ public long getIncNum() { return incNum_; } /** * optional uint64 inc_num = 1; */ public Builder setIncNum(long value) { incNum_ = value; onChanged(); return this; } /** * optional uint64 inc_num = 1; */ public Builder clearIncNum() { incNum_ = 0L; onChanged(); return this; } private long seqNum_ ; /** * optional uint64 seq_num = 2; */ public long getSeqNum() { return seqNum_; } /** * optional uint64 seq_num = 2; */ public Builder setSeqNum(long value) { seqNum_ = value; onChanged(); return this; } /** * optional uint64 seq_num = 2; */ public Builder clearSeqNum() { seqNum_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PeerTime) } // @@protoc_insertion_point(class_scope:gossip.PeerTime) private static final org.hyperledger.fabric.protos.gossip.Message.PeerTime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PeerTime(); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PeerTime parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerTime(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PeerTime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.MembershipRequest) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.Envelope self_information = 1; */ boolean hasSelfInformation(); /** * optional .gossip.Envelope self_information = 1; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getSelfInformation(); /** * optional .gossip.Envelope self_information = 1; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getSelfInformationOrBuilder(); /** * repeated bytes known = 2; */ java.util.List getKnownList(); /** * repeated bytes known = 2; */ int getKnownCount(); /** * repeated bytes known = 2; */ com.google.protobuf.ByteString getKnown(int index); } /** *
   * MembershipRequest is used to ask membership information
   * from a remote peer
   * 
* * Protobuf type {@code gossip.MembershipRequest} */ public static final class MembershipRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.MembershipRequest) MembershipRequestOrBuilder { // Use MembershipRequest.newBuilder() to construct. private MembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipRequest() { known_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder subBuilder = null; if (selfInformation_ != null) { subBuilder = selfInformation_.toBuilder(); } selfInformation_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(selfInformation_); selfInformation_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { known_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } known_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { known_ = java.util.Collections.unmodifiableList(known_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.class, org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder.class); } private int bitField0_; public static final int SELF_INFORMATION_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.Envelope selfInformation_; /** * optional .gossip.Envelope self_information = 1; */ public boolean hasSelfInformation() { return selfInformation_ != null; } /** * optional .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getSelfInformation() { return selfInformation_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : selfInformation_; } /** * optional .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getSelfInformationOrBuilder() { return getSelfInformation(); } public static final int KNOWN_FIELD_NUMBER = 2; private java.util.List known_; /** * repeated bytes known = 2; */ public java.util.List getKnownList() { return known_; } /** * repeated bytes known = 2; */ public int getKnownCount() { return known_.size(); } /** * repeated bytes known = 2; */ public com.google.protobuf.ByteString getKnown(int index) { return known_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (selfInformation_ != null) { output.writeMessage(1, getSelfInformation()); } for (int i = 0; i < known_.size(); i++) { output.writeBytes(2, known_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (selfInformation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSelfInformation()); } { int dataSize = 0; for (int i = 0; i < known_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(known_.get(i)); } size += dataSize; size += 1 * getKnownList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.MembershipRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.MembershipRequest other = (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) obj; boolean result = true; result = result && (hasSelfInformation() == other.hasSelfInformation()); if (hasSelfInformation()) { result = result && getSelfInformation() .equals(other.getSelfInformation()); } result = result && getKnownList() .equals(other.getKnownList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSelfInformation()) { hash = (37 * hash) + SELF_INFORMATION_FIELD_NUMBER; hash = (53 * hash) + getSelfInformation().hashCode(); } if (getKnownCount() > 0) { hash = (37 * hash) + KNOWN_FIELD_NUMBER; hash = (53 * hash) + getKnownList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.MembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * MembershipRequest is used to ask membership information
     * from a remote peer
     * 
* * Protobuf type {@code gossip.MembershipRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.MembershipRequest) org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.class, org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (selfInformationBuilder_ == null) { selfInformation_ = null; } else { selfInformation_ = null; selfInformationBuilder_ = null; } known_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest build() { org.hyperledger.fabric.protos.gossip.Message.MembershipRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.MembershipRequest result = new org.hyperledger.fabric.protos.gossip.Message.MembershipRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (selfInformationBuilder_ == null) { result.selfInformation_ = selfInformation_; } else { result.selfInformation_ = selfInformationBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { known_ = java.util.Collections.unmodifiableList(known_); bitField0_ = (bitField0_ & ~0x00000002); } result.known_ = known_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.MembershipRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.MembershipRequest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance()) return this; if (other.hasSelfInformation()) { mergeSelfInformation(other.getSelfInformation()); } if (!other.known_.isEmpty()) { if (known_.isEmpty()) { known_ = other.known_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKnownIsMutable(); known_.addAll(other.known_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.MembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.gossip.Message.Envelope selfInformation_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> selfInformationBuilder_; /** * optional .gossip.Envelope self_information = 1; */ public boolean hasSelfInformation() { return selfInformationBuilder_ != null || selfInformation_ != null; } /** * optional .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getSelfInformation() { if (selfInformationBuilder_ == null) { return selfInformation_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : selfInformation_; } else { return selfInformationBuilder_.getMessage(); } } /** * optional .gossip.Envelope self_information = 1; */ public Builder setSelfInformation(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (selfInformationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selfInformation_ = value; onChanged(); } else { selfInformationBuilder_.setMessage(value); } return this; } /** * optional .gossip.Envelope self_information = 1; */ public Builder setSelfInformation( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (selfInformationBuilder_ == null) { selfInformation_ = builderForValue.build(); onChanged(); } else { selfInformationBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.Envelope self_information = 1; */ public Builder mergeSelfInformation(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (selfInformationBuilder_ == null) { if (selfInformation_ != null) { selfInformation_ = org.hyperledger.fabric.protos.gossip.Message.Envelope.newBuilder(selfInformation_).mergeFrom(value).buildPartial(); } else { selfInformation_ = value; } onChanged(); } else { selfInformationBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.Envelope self_information = 1; */ public Builder clearSelfInformation() { if (selfInformationBuilder_ == null) { selfInformation_ = null; onChanged(); } else { selfInformation_ = null; selfInformationBuilder_ = null; } return this; } /** * optional .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getSelfInformationBuilder() { onChanged(); return getSelfInformationFieldBuilder().getBuilder(); } /** * optional .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getSelfInformationOrBuilder() { if (selfInformationBuilder_ != null) { return selfInformationBuilder_.getMessageOrBuilder(); } else { return selfInformation_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : selfInformation_; } } /** * optional .gossip.Envelope self_information = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> getSelfInformationFieldBuilder() { if (selfInformationBuilder_ == null) { selfInformationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder>( getSelfInformation(), getParentForChildren(), isClean()); selfInformation_ = null; } return selfInformationBuilder_; } private java.util.List known_ = java.util.Collections.emptyList(); private void ensureKnownIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { known_ = new java.util.ArrayList(known_); bitField0_ |= 0x00000002; } } /** * repeated bytes known = 2; */ public java.util.List getKnownList() { return java.util.Collections.unmodifiableList(known_); } /** * repeated bytes known = 2; */ public int getKnownCount() { return known_.size(); } /** * repeated bytes known = 2; */ public com.google.protobuf.ByteString getKnown(int index) { return known_.get(index); } /** * repeated bytes known = 2; */ public Builder setKnown( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKnownIsMutable(); known_.set(index, value); onChanged(); return this; } /** * repeated bytes known = 2; */ public Builder addKnown(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKnownIsMutable(); known_.add(value); onChanged(); return this; } /** * repeated bytes known = 2; */ public Builder addAllKnown( java.lang.Iterable values) { ensureKnownIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, known_); onChanged(); return this; } /** * repeated bytes known = 2; */ public Builder clearKnown() { known_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.MembershipRequest) } // @@protoc_insertion_point(class_scope:gossip.MembershipRequest) private static final org.hyperledger.fabric.protos.gossip.Message.MembershipRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.MembershipRequest(); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MembershipRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MembershipResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.MembershipResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .gossip.Envelope alive = 1; */ java.util.List getAliveList(); /** * repeated .gossip.Envelope alive = 1; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getAlive(int index); /** * repeated .gossip.Envelope alive = 1; */ int getAliveCount(); /** * repeated .gossip.Envelope alive = 1; */ java.util.List getAliveOrBuilderList(); /** * repeated .gossip.Envelope alive = 1; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getAliveOrBuilder( int index); /** * repeated .gossip.Envelope dead = 2; */ java.util.List getDeadList(); /** * repeated .gossip.Envelope dead = 2; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getDead(int index); /** * repeated .gossip.Envelope dead = 2; */ int getDeadCount(); /** * repeated .gossip.Envelope dead = 2; */ java.util.List getDeadOrBuilderList(); /** * repeated .gossip.Envelope dead = 2; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDeadOrBuilder( int index); } /** *
   * MembershipResponse is used for replying to MembershipRequests
   * 
* * Protobuf type {@code gossip.MembershipResponse} */ public static final class MembershipResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.MembershipResponse) MembershipResponseOrBuilder { // Use MembershipResponse.newBuilder() to construct. private MembershipResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MembershipResponse() { alive_ = java.util.Collections.emptyList(); dead_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private MembershipResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { alive_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } alive_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { dead_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } dead_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { alive_ = java.util.Collections.unmodifiableList(alive_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { dead_ = java.util.Collections.unmodifiableList(dead_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.class, org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder.class); } public static final int ALIVE_FIELD_NUMBER = 1; private java.util.List alive_; /** * repeated .gossip.Envelope alive = 1; */ public java.util.List getAliveList() { return alive_; } /** * repeated .gossip.Envelope alive = 1; */ public java.util.List getAliveOrBuilderList() { return alive_; } /** * repeated .gossip.Envelope alive = 1; */ public int getAliveCount() { return alive_.size(); } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getAlive(int index) { return alive_.get(index); } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getAliveOrBuilder( int index) { return alive_.get(index); } public static final int DEAD_FIELD_NUMBER = 2; private java.util.List dead_; /** * repeated .gossip.Envelope dead = 2; */ public java.util.List getDeadList() { return dead_; } /** * repeated .gossip.Envelope dead = 2; */ public java.util.List getDeadOrBuilderList() { return dead_; } /** * repeated .gossip.Envelope dead = 2; */ public int getDeadCount() { return dead_.size(); } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getDead(int index) { return dead_.get(index); } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDeadOrBuilder( int index) { return dead_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < alive_.size(); i++) { output.writeMessage(1, alive_.get(i)); } for (int i = 0; i < dead_.size(); i++) { output.writeMessage(2, dead_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < alive_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, alive_.get(i)); } for (int i = 0; i < dead_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, dead_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.MembershipResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.MembershipResponse other = (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) obj; boolean result = true; result = result && getAliveList() .equals(other.getAliveList()); result = result && getDeadList() .equals(other.getDeadList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getAliveCount() > 0) { hash = (37 * hash) + ALIVE_FIELD_NUMBER; hash = (53 * hash) + getAliveList().hashCode(); } if (getDeadCount() > 0) { hash = (37 * hash) + DEAD_FIELD_NUMBER; hash = (53 * hash) + getDeadList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.MembershipResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * MembershipResponse is used for replying to MembershipRequests
     * 
* * Protobuf type {@code gossip.MembershipResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.MembershipResponse) org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.class, org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAliveFieldBuilder(); getDeadFieldBuilder(); } } public Builder clear() { super.clear(); if (aliveBuilder_ == null) { alive_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { aliveBuilder_.clear(); } if (deadBuilder_ == null) { dead_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { deadBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse build() { org.hyperledger.fabric.protos.gossip.Message.MembershipResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse buildPartial() { org.hyperledger.fabric.protos.gossip.Message.MembershipResponse result = new org.hyperledger.fabric.protos.gossip.Message.MembershipResponse(this); int from_bitField0_ = bitField0_; if (aliveBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { alive_ = java.util.Collections.unmodifiableList(alive_); bitField0_ = (bitField0_ & ~0x00000001); } result.alive_ = alive_; } else { result.alive_ = aliveBuilder_.build(); } if (deadBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { dead_ = java.util.Collections.unmodifiableList(dead_); bitField0_ = (bitField0_ & ~0x00000002); } result.dead_ = dead_; } else { result.dead_ = deadBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.MembershipResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.MembershipResponse other) { if (other == org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance()) return this; if (aliveBuilder_ == null) { if (!other.alive_.isEmpty()) { if (alive_.isEmpty()) { alive_ = other.alive_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAliveIsMutable(); alive_.addAll(other.alive_); } onChanged(); } } else { if (!other.alive_.isEmpty()) { if (aliveBuilder_.isEmpty()) { aliveBuilder_.dispose(); aliveBuilder_ = null; alive_ = other.alive_; bitField0_ = (bitField0_ & ~0x00000001); aliveBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAliveFieldBuilder() : null; } else { aliveBuilder_.addAllMessages(other.alive_); } } } if (deadBuilder_ == null) { if (!other.dead_.isEmpty()) { if (dead_.isEmpty()) { dead_ = other.dead_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDeadIsMutable(); dead_.addAll(other.dead_); } onChanged(); } } else { if (!other.dead_.isEmpty()) { if (deadBuilder_.isEmpty()) { deadBuilder_.dispose(); deadBuilder_ = null; dead_ = other.dead_; bitField0_ = (bitField0_ & ~0x00000002); deadBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDeadFieldBuilder() : null; } else { deadBuilder_.addAllMessages(other.dead_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.MembershipResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List alive_ = java.util.Collections.emptyList(); private void ensureAliveIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { alive_ = new java.util.ArrayList(alive_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> aliveBuilder_; /** * repeated .gossip.Envelope alive = 1; */ public java.util.List getAliveList() { if (aliveBuilder_ == null) { return java.util.Collections.unmodifiableList(alive_); } else { return aliveBuilder_.getMessageList(); } } /** * repeated .gossip.Envelope alive = 1; */ public int getAliveCount() { if (aliveBuilder_ == null) { return alive_.size(); } else { return aliveBuilder_.getCount(); } } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getAlive(int index) { if (aliveBuilder_ == null) { return alive_.get(index); } else { return aliveBuilder_.getMessage(index); } } /** * repeated .gossip.Envelope alive = 1; */ public Builder setAlive( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (aliveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveIsMutable(); alive_.set(index, value); onChanged(); } else { aliveBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder setAlive( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (aliveBuilder_ == null) { ensureAliveIsMutable(); alive_.set(index, builderForValue.build()); onChanged(); } else { aliveBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder addAlive(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (aliveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveIsMutable(); alive_.add(value); onChanged(); } else { aliveBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder addAlive( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (aliveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveIsMutable(); alive_.add(index, value); onChanged(); } else { aliveBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder addAlive( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (aliveBuilder_ == null) { ensureAliveIsMutable(); alive_.add(builderForValue.build()); onChanged(); } else { aliveBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder addAlive( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (aliveBuilder_ == null) { ensureAliveIsMutable(); alive_.add(index, builderForValue.build()); onChanged(); } else { aliveBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder addAllAlive( java.lang.Iterable values) { if (aliveBuilder_ == null) { ensureAliveIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, alive_); onChanged(); } else { aliveBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder clearAlive() { if (aliveBuilder_ == null) { alive_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { aliveBuilder_.clear(); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public Builder removeAlive(int index) { if (aliveBuilder_ == null) { ensureAliveIsMutable(); alive_.remove(index); onChanged(); } else { aliveBuilder_.remove(index); } return this; } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getAliveBuilder( int index) { return getAliveFieldBuilder().getBuilder(index); } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getAliveOrBuilder( int index) { if (aliveBuilder_ == null) { return alive_.get(index); } else { return aliveBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Envelope alive = 1; */ public java.util.List getAliveOrBuilderList() { if (aliveBuilder_ != null) { return aliveBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(alive_); } } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addAliveBuilder() { return getAliveFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope alive = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addAliveBuilder( int index) { return getAliveFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope alive = 1; */ public java.util.List getAliveBuilderList() { return getAliveFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> getAliveFieldBuilder() { if (aliveBuilder_ == null) { aliveBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder>( alive_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); alive_ = null; } return aliveBuilder_; } private java.util.List dead_ = java.util.Collections.emptyList(); private void ensureDeadIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { dead_ = new java.util.ArrayList(dead_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> deadBuilder_; /** * repeated .gossip.Envelope dead = 2; */ public java.util.List getDeadList() { if (deadBuilder_ == null) { return java.util.Collections.unmodifiableList(dead_); } else { return deadBuilder_.getMessageList(); } } /** * repeated .gossip.Envelope dead = 2; */ public int getDeadCount() { if (deadBuilder_ == null) { return dead_.size(); } else { return deadBuilder_.getCount(); } } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getDead(int index) { if (deadBuilder_ == null) { return dead_.get(index); } else { return deadBuilder_.getMessage(index); } } /** * repeated .gossip.Envelope dead = 2; */ public Builder setDead( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (deadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadIsMutable(); dead_.set(index, value); onChanged(); } else { deadBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder setDead( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (deadBuilder_ == null) { ensureDeadIsMutable(); dead_.set(index, builderForValue.build()); onChanged(); } else { deadBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder addDead(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (deadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadIsMutable(); dead_.add(value); onChanged(); } else { deadBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder addDead( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (deadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeadIsMutable(); dead_.add(index, value); onChanged(); } else { deadBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder addDead( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (deadBuilder_ == null) { ensureDeadIsMutable(); dead_.add(builderForValue.build()); onChanged(); } else { deadBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder addDead( int index, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (deadBuilder_ == null) { ensureDeadIsMutable(); dead_.add(index, builderForValue.build()); onChanged(); } else { deadBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder addAllDead( java.lang.Iterable values) { if (deadBuilder_ == null) { ensureDeadIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dead_); onChanged(); } else { deadBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder clearDead() { if (deadBuilder_ == null) { dead_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { deadBuilder_.clear(); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public Builder removeDead(int index) { if (deadBuilder_ == null) { ensureDeadIsMutable(); dead_.remove(index); onChanged(); } else { deadBuilder_.remove(index); } return this; } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getDeadBuilder( int index) { return getDeadFieldBuilder().getBuilder(index); } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDeadOrBuilder( int index) { if (deadBuilder_ == null) { return dead_.get(index); } else { return deadBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Envelope dead = 2; */ public java.util.List getDeadOrBuilderList() { if (deadBuilder_ != null) { return deadBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dead_); } } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addDeadBuilder() { return getDeadFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope dead = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder addDeadBuilder( int index) { return getDeadFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance()); } /** * repeated .gossip.Envelope dead = 2; */ public java.util.List getDeadBuilderList() { return getDeadFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> getDeadFieldBuilder() { if (deadBuilder_ == null) { deadBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder>( dead_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); dead_ = null; } return deadBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.MembershipResponse) } // @@protoc_insertion_point(class_scope:gossip.MembershipResponse) private static final org.hyperledger.fabric.protos.gossip.Message.MembershipResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.MembershipResponse(); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MembershipResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MembershipResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemberOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Member) com.google.protobuf.MessageOrBuilder { /** * optional string endpoint = 1; */ java.lang.String getEndpoint(); /** * optional string endpoint = 1; */ com.google.protobuf.ByteString getEndpointBytes(); /** * optional bytes metadata = 2; */ com.google.protobuf.ByteString getMetadata(); /** * optional bytes pki_id = 3; */ com.google.protobuf.ByteString getPkiId(); } /** *
   * Member holds membership-related information
   * about a peer
   * 
* * Protobuf type {@code gossip.Member} */ public static final class Member extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Member) MemberOrBuilder { // Use Member.newBuilder() to construct. private Member(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Member() { endpoint_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; pkiId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Member( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); endpoint_ = s; break; } case 18: { metadata_ = input.readBytes(); break; } case 26: { pkiId_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Member.class, org.hyperledger.fabric.protos.gossip.Message.Member.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** * optional string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } } /** * optional string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString metadata_; /** * optional bytes metadata = 2; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int PKI_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString pkiId_; /** * optional bytes pki_id = 3; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getEndpointBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!metadata_.isEmpty()) { output.writeBytes(2, metadata_); } if (!pkiId_.isEmpty()) { output.writeBytes(3, pkiId_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getEndpointBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, metadata_); } if (!pkiId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, pkiId_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Member)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Member other = (org.hyperledger.fabric.protos.gossip.Message.Member) obj; boolean result = true; result = result && getEndpoint() .equals(other.getEndpoint()); result = result && getMetadata() .equals(other.getMetadata()); result = result && getPkiId() .equals(other.getPkiId()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); hash = (37 * hash) + PKI_ID_FIELD_NUMBER; hash = (53 * hash) + getPkiId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Member prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Member holds membership-related information
     * about a peer
     * 
* * Protobuf type {@code gossip.Member} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Member) org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Member.class, org.hyperledger.fabric.protos.gossip.Message.Member.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Member.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); endpoint_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; pkiId_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Member getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Member build() { org.hyperledger.fabric.protos.gossip.Message.Member result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Member buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Member result = new org.hyperledger.fabric.protos.gossip.Message.Member(this); result.endpoint_ = endpoint_; result.metadata_ = metadata_; result.pkiId_ = pkiId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Member) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Member)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Member other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance()) return this; if (!other.getEndpoint().isEmpty()) { endpoint_ = other.endpoint_; onChanged(); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (other.getPkiId() != com.google.protobuf.ByteString.EMPTY) { setPkiId(other.getPkiId()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Member parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Member) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object endpoint_ = ""; /** * optional string endpoint = 1; */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endpoint_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string endpoint = 1; */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endpoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string endpoint = 1; */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** * optional string endpoint = 1; */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** * optional string endpoint = 1; */ public Builder setEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endpoint_ = value; onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes metadata = 2; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * optional bytes metadata = 2; */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * optional bytes metadata = 2; */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes pki_id = 3; */ public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * optional bytes pki_id = 3; */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * optional bytes pki_id = 3; */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Member) } // @@protoc_insertion_point(class_scope:gossip.Member) private static final org.hyperledger.fabric.protos.gossip.Message.Member DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Member(); } public static org.hyperledger.fabric.protos.gossip.Message.Member getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Member parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Member(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Member getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EmptyOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Empty) com.google.protobuf.MessageOrBuilder { } /** *
   * Empty is used for pinging and in tests
   * 
* * Protobuf type {@code gossip.Empty} */ public static final class Empty extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Empty) EmptyOrBuilder { // Use Empty.newBuilder() to construct. private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Empty() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Empty( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Empty.class, org.hyperledger.fabric.protos.gossip.Message.Empty.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Empty)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Empty other = (org.hyperledger.fabric.protos.gossip.Message.Empty) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Empty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Empty is used for pinging and in tests
     * 
* * Protobuf type {@code gossip.Empty} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Empty) org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Empty.class, org.hyperledger.fabric.protos.gossip.Message.Empty.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Empty.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Empty getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Empty build() { org.hyperledger.fabric.protos.gossip.Message.Empty result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Empty buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Empty result = new org.hyperledger.fabric.protos.gossip.Message.Empty(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Empty) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Empty)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Empty other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Empty parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Empty) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Empty) } // @@protoc_insertion_point(class_scope:gossip.Empty) private static final org.hyperledger.fabric.protos.gossip.Message.Empty DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Empty(); } public static org.hyperledger.fabric.protos.gossip.Message.Empty getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Empty parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Empty(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Empty getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoteStateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.RemoteStateRequest) com.google.protobuf.MessageOrBuilder { /** * optional uint64 start_seq_num = 1; */ long getStartSeqNum(); /** * optional uint64 end_seq_num = 2; */ long getEndSeqNum(); } /** *
   * RemoteStateRequest is used to ask a set of blocks
   * from a remote peer
   * 
* * Protobuf type {@code gossip.RemoteStateRequest} */ public static final class RemoteStateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.RemoteStateRequest) RemoteStateRequestOrBuilder { // Use RemoteStateRequest.newBuilder() to construct. private RemoteStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoteStateRequest() { startSeqNum_ = 0L; endSeqNum_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemoteStateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { startSeqNum_ = input.readUInt64(); break; } case 16: { endSeqNum_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.class, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder.class); } public static final int START_SEQ_NUM_FIELD_NUMBER = 1; private long startSeqNum_; /** * optional uint64 start_seq_num = 1; */ public long getStartSeqNum() { return startSeqNum_; } public static final int END_SEQ_NUM_FIELD_NUMBER = 2; private long endSeqNum_; /** * optional uint64 end_seq_num = 2; */ public long getEndSeqNum() { return endSeqNum_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startSeqNum_ != 0L) { output.writeUInt64(1, startSeqNum_); } if (endSeqNum_ != 0L) { output.writeUInt64(2, endSeqNum_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startSeqNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startSeqNum_); } if (endSeqNum_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, endSeqNum_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest other = (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) obj; boolean result = true; result = result && (getStartSeqNum() == other.getStartSeqNum()); result = result && (getEndSeqNum() == other.getEndSeqNum()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + START_SEQ_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartSeqNum()); hash = (37 * hash) + END_SEQ_NUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEndSeqNum()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * RemoteStateRequest is used to ask a set of blocks
     * from a remote peer
     * 
* * Protobuf type {@code gossip.RemoteStateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.RemoteStateRequest) org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.class, org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startSeqNum_ = 0L; endSeqNum_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest build() { org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest result = new org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest(this); result.startSeqNum_ = startSeqNum_; result.endSeqNum_ = endSeqNum_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance()) return this; if (other.getStartSeqNum() != 0L) { setStartSeqNum(other.getStartSeqNum()); } if (other.getEndSeqNum() != 0L) { setEndSeqNum(other.getEndSeqNum()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startSeqNum_ ; /** * optional uint64 start_seq_num = 1; */ public long getStartSeqNum() { return startSeqNum_; } /** * optional uint64 start_seq_num = 1; */ public Builder setStartSeqNum(long value) { startSeqNum_ = value; onChanged(); return this; } /** * optional uint64 start_seq_num = 1; */ public Builder clearStartSeqNum() { startSeqNum_ = 0L; onChanged(); return this; } private long endSeqNum_ ; /** * optional uint64 end_seq_num = 2; */ public long getEndSeqNum() { return endSeqNum_; } /** * optional uint64 end_seq_num = 2; */ public Builder setEndSeqNum(long value) { endSeqNum_ = value; onChanged(); return this; } /** * optional uint64 end_seq_num = 2; */ public Builder clearEndSeqNum() { endSeqNum_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.RemoteStateRequest) } // @@protoc_insertion_point(class_scope:gossip.RemoteStateRequest) private static final org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest(); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoteStateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoteStateRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoteStateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.RemoteStateResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .gossip.Payload payloads = 1; */ java.util.List getPayloadsList(); /** * repeated .gossip.Payload payloads = 1; */ org.hyperledger.fabric.protos.gossip.Message.Payload getPayloads(int index); /** * repeated .gossip.Payload payloads = 1; */ int getPayloadsCount(); /** * repeated .gossip.Payload payloads = 1; */ java.util.List getPayloadsOrBuilderList(); /** * repeated .gossip.Payload payloads = 1; */ org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadsOrBuilder( int index); } /** *
   * RemoteStateResponse is used to send a set of blocks
   * to a remote peer
   * 
* * Protobuf type {@code gossip.RemoteStateResponse} */ public static final class RemoteStateResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.RemoteStateResponse) RemoteStateResponseOrBuilder { // Use RemoteStateResponse.newBuilder() to construct. private RemoteStateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoteStateResponse() { payloads_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemoteStateResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { payloads_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } payloads_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Payload.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { payloads_ = java.util.Collections.unmodifiableList(payloads_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.class, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder.class); } public static final int PAYLOADS_FIELD_NUMBER = 1; private java.util.List payloads_; /** * repeated .gossip.Payload payloads = 1; */ public java.util.List getPayloadsList() { return payloads_; } /** * repeated .gossip.Payload payloads = 1; */ public java.util.List getPayloadsOrBuilderList() { return payloads_; } /** * repeated .gossip.Payload payloads = 1; */ public int getPayloadsCount() { return payloads_.size(); } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload getPayloads(int index) { return payloads_.get(index); } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadsOrBuilder( int index) { return payloads_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < payloads_.size(); i++) { output.writeMessage(1, payloads_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < payloads_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, payloads_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse other = (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) obj; boolean result = true; result = result && getPayloadsList() .equals(other.getPayloadsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getPayloadsCount() > 0) { hash = (37 * hash) + PAYLOADS_FIELD_NUMBER; hash = (53 * hash) + getPayloadsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * RemoteStateResponse is used to send a set of blocks
     * to a remote peer
     * 
* * Protobuf type {@code gossip.RemoteStateResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.RemoteStateResponse) org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.class, org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPayloadsFieldBuilder(); } } public Builder clear() { super.clear(); if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { payloadsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse build() { org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse buildPartial() { org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse result = new org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse(this); int from_bitField0_ = bitField0_; if (payloadsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { payloads_ = java.util.Collections.unmodifiableList(payloads_); bitField0_ = (bitField0_ & ~0x00000001); } result.payloads_ = payloads_; } else { result.payloads_ = payloadsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse other) { if (other == org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance()) return this; if (payloadsBuilder_ == null) { if (!other.payloads_.isEmpty()) { if (payloads_.isEmpty()) { payloads_ = other.payloads_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePayloadsIsMutable(); payloads_.addAll(other.payloads_); } onChanged(); } } else { if (!other.payloads_.isEmpty()) { if (payloadsBuilder_.isEmpty()) { payloadsBuilder_.dispose(); payloadsBuilder_ = null; payloads_ = other.payloads_; bitField0_ = (bitField0_ & ~0x00000001); payloadsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPayloadsFieldBuilder() : null; } else { payloadsBuilder_.addAllMessages(other.payloads_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List payloads_ = java.util.Collections.emptyList(); private void ensurePayloadsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { payloads_ = new java.util.ArrayList(payloads_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder> payloadsBuilder_; /** * repeated .gossip.Payload payloads = 1; */ public java.util.List getPayloadsList() { if (payloadsBuilder_ == null) { return java.util.Collections.unmodifiableList(payloads_); } else { return payloadsBuilder_.getMessageList(); } } /** * repeated .gossip.Payload payloads = 1; */ public int getPayloadsCount() { if (payloadsBuilder_ == null) { return payloads_.size(); } else { return payloadsBuilder_.getCount(); } } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload getPayloads(int index) { if (payloadsBuilder_ == null) { return payloads_.get(index); } else { return payloadsBuilder_.getMessage(index); } } /** * repeated .gossip.Payload payloads = 1; */ public Builder setPayloads( int index, org.hyperledger.fabric.protos.gossip.Message.Payload value) { if (payloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePayloadsIsMutable(); payloads_.set(index, value); onChanged(); } else { payloadsBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder setPayloads( int index, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder builderForValue) { if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); payloads_.set(index, builderForValue.build()); onChanged(); } else { payloadsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder addPayloads(org.hyperledger.fabric.protos.gossip.Message.Payload value) { if (payloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePayloadsIsMutable(); payloads_.add(value); onChanged(); } else { payloadsBuilder_.addMessage(value); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder addPayloads( int index, org.hyperledger.fabric.protos.gossip.Message.Payload value) { if (payloadsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePayloadsIsMutable(); payloads_.add(index, value); onChanged(); } else { payloadsBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder addPayloads( org.hyperledger.fabric.protos.gossip.Message.Payload.Builder builderForValue) { if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); payloads_.add(builderForValue.build()); onChanged(); } else { payloadsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder addPayloads( int index, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder builderForValue) { if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); payloads_.add(index, builderForValue.build()); onChanged(); } else { payloadsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder addAllPayloads( java.lang.Iterable values) { if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, payloads_); onChanged(); } else { payloadsBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder clearPayloads() { if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { payloadsBuilder_.clear(); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public Builder removePayloads(int index) { if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); payloads_.remove(index); onChanged(); } else { payloadsBuilder_.remove(index); } return this; } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload.Builder getPayloadsBuilder( int index) { return getPayloadsFieldBuilder().getBuilder(index); } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadsOrBuilder( int index) { if (payloadsBuilder_ == null) { return payloads_.get(index); } else { return payloadsBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.Payload payloads = 1; */ public java.util.List getPayloadsOrBuilderList() { if (payloadsBuilder_ != null) { return payloadsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(payloads_); } } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload.Builder addPayloadsBuilder() { return getPayloadsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance()); } /** * repeated .gossip.Payload payloads = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload.Builder addPayloadsBuilder( int index) { return getPayloadsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance()); } /** * repeated .gossip.Payload payloads = 1; */ public java.util.List getPayloadsBuilderList() { return getPayloadsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder> getPayloadsFieldBuilder() { if (payloadsBuilder_ == null) { payloadsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Payload, org.hyperledger.fabric.protos.gossip.Message.Payload.Builder, org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder>( payloads_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); payloads_ = null; } return payloadsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.RemoteStateResponse) } // @@protoc_insertion_point(class_scope:gossip.RemoteStateResponse) private static final org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse(); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoteStateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoteStateResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemotePvtDataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.RemotePvtDataRequest) com.google.protobuf.MessageOrBuilder { /** * repeated .gossip.PvtDataDigest digests = 1; */ java.util.List getDigestsList(); /** * repeated .gossip.PvtDataDigest digests = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigests(int index); /** * repeated .gossip.PvtDataDigest digests = 1; */ int getDigestsCount(); /** * repeated .gossip.PvtDataDigest digests = 1; */ java.util.List getDigestsOrBuilderList(); /** * repeated .gossip.PvtDataDigest digests = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestsOrBuilder( int index); } /** *
   * RemotePrivateDataRequest message used to request
   * missing private rwset
   * 
* * Protobuf type {@code gossip.RemotePvtDataRequest} */ public static final class RemotePvtDataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.RemotePvtDataRequest) RemotePvtDataRequestOrBuilder { // Use RemotePvtDataRequest.newBuilder() to construct. private RemotePvtDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemotePvtDataRequest() { digests_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemotePvtDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { digests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } digests_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { digests_ = java.util.Collections.unmodifiableList(digests_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.class, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder.class); } public static final int DIGESTS_FIELD_NUMBER = 1; private java.util.List digests_; /** * repeated .gossip.PvtDataDigest digests = 1; */ public java.util.List getDigestsList() { return digests_; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public java.util.List getDigestsOrBuilderList() { return digests_; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public int getDigestsCount() { return digests_.size(); } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigests(int index) { return digests_.get(index); } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestsOrBuilder( int index) { return digests_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < digests_.size(); i++) { output.writeMessage(1, digests_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < digests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, digests_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest other = (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) obj; boolean result = true; result = result && getDigestsList() .equals(other.getDigestsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getDigestsCount() > 0) { hash = (37 * hash) + DIGESTS_FIELD_NUMBER; hash = (53 * hash) + getDigestsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * RemotePrivateDataRequest message used to request
     * missing private rwset
     * 
* * Protobuf type {@code gossip.RemotePvtDataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.RemotePvtDataRequest) org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.class, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDigestsFieldBuilder(); } } public Builder clear() { super.clear(); if (digestsBuilder_ == null) { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { digestsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest build() { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest result = new org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest(this); int from_bitField0_ = bitField0_; if (digestsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000001); } result.digests_ = digests_; } else { result.digests_ = digestsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance()) return this; if (digestsBuilder_ == null) { if (!other.digests_.isEmpty()) { if (digests_.isEmpty()) { digests_ = other.digests_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDigestsIsMutable(); digests_.addAll(other.digests_); } onChanged(); } } else { if (!other.digests_.isEmpty()) { if (digestsBuilder_.isEmpty()) { digestsBuilder_.dispose(); digestsBuilder_ = null; digests_ = other.digests_; bitField0_ = (bitField0_ & ~0x00000001); digestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDigestsFieldBuilder() : null; } else { digestsBuilder_.addAllMessages(other.digests_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { digests_ = new java.util.ArrayList(digests_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder> digestsBuilder_; /** * repeated .gossip.PvtDataDigest digests = 1; */ public java.util.List getDigestsList() { if (digestsBuilder_ == null) { return java.util.Collections.unmodifiableList(digests_); } else { return digestsBuilder_.getMessageList(); } } /** * repeated .gossip.PvtDataDigest digests = 1; */ public int getDigestsCount() { if (digestsBuilder_ == null) { return digests_.size(); } else { return digestsBuilder_.getCount(); } } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigests(int index) { if (digestsBuilder_ == null) { return digests_.get(index); } else { return digestsBuilder_.getMessage(index); } } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder setDigests( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest value) { if (digestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.set(index, value); onChanged(); } else { digestsBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder setDigests( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder builderForValue) { if (digestsBuilder_ == null) { ensureDigestsIsMutable(); digests_.set(index, builderForValue.build()); onChanged(); } else { digestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder addDigests(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest value) { if (digestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.add(value); onChanged(); } else { digestsBuilder_.addMessage(value); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder addDigests( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest value) { if (digestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDigestsIsMutable(); digests_.add(index, value); onChanged(); } else { digestsBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder addDigests( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder builderForValue) { if (digestsBuilder_ == null) { ensureDigestsIsMutable(); digests_.add(builderForValue.build()); onChanged(); } else { digestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder addDigests( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder builderForValue) { if (digestsBuilder_ == null) { ensureDigestsIsMutable(); digests_.add(index, builderForValue.build()); onChanged(); } else { digestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder addAllDigests( java.lang.Iterable values) { if (digestsBuilder_ == null) { ensureDigestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, digests_); onChanged(); } else { digestsBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder clearDigests() { if (digestsBuilder_ == null) { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { digestsBuilder_.clear(); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public Builder removeDigests(int index) { if (digestsBuilder_ == null) { ensureDigestsIsMutable(); digests_.remove(index); onChanged(); } else { digestsBuilder_.remove(index); } return this; } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder getDigestsBuilder( int index) { return getDigestsFieldBuilder().getBuilder(index); } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestsOrBuilder( int index) { if (digestsBuilder_ == null) { return digests_.get(index); } else { return digestsBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.PvtDataDigest digests = 1; */ public java.util.List getDigestsOrBuilderList() { if (digestsBuilder_ != null) { return digestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(digests_); } } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder addDigestsBuilder() { return getDigestsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance()); } /** * repeated .gossip.PvtDataDigest digests = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder addDigestsBuilder( int index) { return getDigestsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance()); } /** * repeated .gossip.PvtDataDigest digests = 1; */ public java.util.List getDigestsBuilderList() { return getDigestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder> getDigestsFieldBuilder() { if (digestsBuilder_ == null) { digestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder>( digests_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); digests_ = null; } return digestsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.RemotePvtDataRequest) } // @@protoc_insertion_point(class_scope:gossip.RemotePvtDataRequest) private static final org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest(); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemotePvtDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemotePvtDataRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PvtDataDigestOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PvtDataDigest) com.google.protobuf.MessageOrBuilder { /** * optional string tx_id = 1; */ java.lang.String getTxId(); /** * optional string tx_id = 1; */ com.google.protobuf.ByteString getTxIdBytes(); /** * optional string namespace = 2; */ java.lang.String getNamespace(); /** * optional string namespace = 2; */ com.google.protobuf.ByteString getNamespaceBytes(); /** * optional string collection = 3; */ java.lang.String getCollection(); /** * optional string collection = 3; */ com.google.protobuf.ByteString getCollectionBytes(); /** * optional uint64 block_seq = 4; */ long getBlockSeq(); /** * optional uint64 seq_in_block = 5; */ long getSeqInBlock(); } /** *
   * PvtDataDigest defines a digest of private data
   * 
* * Protobuf type {@code gossip.PvtDataDigest} */ public static final class PvtDataDigest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PvtDataDigest) PvtDataDigestOrBuilder { // Use PvtDataDigest.newBuilder() to construct. private PvtDataDigest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PvtDataDigest() { txId_ = ""; namespace_ = ""; collection_ = ""; blockSeq_ = 0L; seqInBlock_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PvtDataDigest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); txId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); namespace_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); collection_ = s; break; } case 32: { blockSeq_ = input.readUInt64(); break; } case 40: { seqInBlock_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder.class); } public static final int TX_ID_FIELD_NUMBER = 1; private volatile java.lang.Object txId_; /** * optional string tx_id = 1; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txId_ = s; return s; } } /** * optional string tx_id = 1; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_FIELD_NUMBER = 3; private volatile java.lang.Object collection_; /** * optional string collection = 3; */ public java.lang.String getCollection() { java.lang.Object ref = collection_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collection_ = s; return s; } } /** * optional string collection = 3; */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BLOCK_SEQ_FIELD_NUMBER = 4; private long blockSeq_; /** * optional uint64 block_seq = 4; */ public long getBlockSeq() { return blockSeq_; } public static final int SEQ_IN_BLOCK_FIELD_NUMBER = 5; private long seqInBlock_; /** * optional uint64 seq_in_block = 5; */ public long getSeqInBlock() { return seqInBlock_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTxIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); } if (!getNamespaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (!getCollectionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collection_); } if (blockSeq_ != 0L) { output.writeUInt64(4, blockSeq_); } if (seqInBlock_ != 0L) { output.writeUInt64(5, seqInBlock_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getTxIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); } if (!getNamespaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!getCollectionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collection_); } if (blockSeq_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, blockSeq_); } if (seqInBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, seqInBlock_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest other = (org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest) obj; boolean result = true; result = result && getTxId() .equals(other.getTxId()); result = result && getNamespace() .equals(other.getNamespace()); result = result && getCollection() .equals(other.getCollection()); result = result && (getBlockSeq() == other.getBlockSeq()); result = result && (getSeqInBlock() == other.getSeqInBlock()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TX_ID_FIELD_NUMBER; hash = (53 * hash) + getTxId().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + COLLECTION_FIELD_NUMBER; hash = (53 * hash) + getCollection().hashCode(); hash = (37 * hash) + BLOCK_SEQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockSeq()); hash = (37 * hash) + SEQ_IN_BLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeqInBlock()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PvtDataDigest defines a digest of private data
     * 
* * Protobuf type {@code gossip.PvtDataDigest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PvtDataDigest) org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); txId_ = ""; namespace_ = ""; collection_ = ""; blockSeq_ = 0L; seqInBlock_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest build() { org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest result = new org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest(this); result.txId_ = txId_; result.namespace_ = namespace_; result.collection_ = collection_; result.blockSeq_ = blockSeq_; result.seqInBlock_ = seqInBlock_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance()) return this; if (!other.getTxId().isEmpty()) { txId_ = other.txId_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; onChanged(); } if (other.getBlockSeq() != 0L) { setBlockSeq(other.getBlockSeq()); } if (other.getSeqInBlock() != 0L) { setSeqInBlock(other.getSeqInBlock()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object txId_ = ""; /** * optional string tx_id = 1; */ public java.lang.String getTxId() { java.lang.Object ref = txId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); txId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string tx_id = 1; */ public com.google.protobuf.ByteString getTxIdBytes() { java.lang.Object ref = txId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); txId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string tx_id = 1; */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** * optional string tx_id = 1; */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** * optional string tx_id = 1; */ public Builder setTxIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); txId_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * optional string namespace = 2; */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string namespace = 2; */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string namespace = 2; */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * optional string namespace = 2; */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * optional string namespace = 2; */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private java.lang.Object collection_ = ""; /** * optional string collection = 3; */ public java.lang.String getCollection() { java.lang.Object ref = collection_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collection_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string collection = 3; */ public com.google.protobuf.ByteString getCollectionBytes() { java.lang.Object ref = collection_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collection_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string collection = 3; */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; onChanged(); return this; } /** * optional string collection = 3; */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /** * optional string collection = 3; */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; onChanged(); return this; } private long blockSeq_ ; /** * optional uint64 block_seq = 4; */ public long getBlockSeq() { return blockSeq_; } /** * optional uint64 block_seq = 4; */ public Builder setBlockSeq(long value) { blockSeq_ = value; onChanged(); return this; } /** * optional uint64 block_seq = 4; */ public Builder clearBlockSeq() { blockSeq_ = 0L; onChanged(); return this; } private long seqInBlock_ ; /** * optional uint64 seq_in_block = 5; */ public long getSeqInBlock() { return seqInBlock_; } /** * optional uint64 seq_in_block = 5; */ public Builder setSeqInBlock(long value) { seqInBlock_ = value; onChanged(); return this; } /** * optional uint64 seq_in_block = 5; */ public Builder clearSeqInBlock() { seqInBlock_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PvtDataDigest) } // @@protoc_insertion_point(class_scope:gossip.PvtDataDigest) private static final org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest(); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PvtDataDigest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PvtDataDigest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemotePvtDataResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.RemotePvtDataResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .gossip.PvtDataElement elements = 1; */ java.util.List getElementsList(); /** * repeated .gossip.PvtDataElement elements = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getElements(int index); /** * repeated .gossip.PvtDataElement elements = 1; */ int getElementsCount(); /** * repeated .gossip.PvtDataElement elements = 1; */ java.util.List getElementsOrBuilderList(); /** * repeated .gossip.PvtDataElement elements = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder getElementsOrBuilder( int index); } /** *
   * RemotePrivateData message to response on private
   * data replication request
   * 
* * Protobuf type {@code gossip.RemotePvtDataResponse} */ public static final class RemotePvtDataResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.RemotePvtDataResponse) RemotePvtDataResponseOrBuilder { // Use RemotePvtDataResponse.newBuilder() to construct. private RemotePvtDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemotePvtDataResponse() { elements_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemotePvtDataResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { elements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } elements_.add( input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { elements_ = java.util.Collections.unmodifiableList(elements_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.class, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; private java.util.List elements_; /** * repeated .gossip.PvtDataElement elements = 1; */ public java.util.List getElementsList() { return elements_; } /** * repeated .gossip.PvtDataElement elements = 1; */ public java.util.List getElementsOrBuilderList() { return elements_; } /** * repeated .gossip.PvtDataElement elements = 1; */ public int getElementsCount() { return elements_.size(); } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getElements(int index) { return elements_.get(index); } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < elements_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, elements_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse other = (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) obj; boolean result = true; result = result && getElementsList() .equals(other.getElementsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * RemotePrivateData message to response on private
     * data replication request
     * 
* * Protobuf type {@code gossip.RemotePvtDataResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.RemotePvtDataResponse) org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.class, org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getElementsFieldBuilder(); } } public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { elementsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse build() { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse buildPartial() { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse result = new org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse(this); int from_bitField0_ = bitField0_; if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse other) { if (other == org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance()) return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureElementsIsMutable(); elements_.addAll(other.elements_); } onChanged(); } } else { if (!other.elements_.isEmpty()) { if (elementsBuilder_.isEmpty()) { elementsBuilder_.dispose(); elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); elementsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataElement, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder> elementsBuilder_; /** * repeated .gossip.PvtDataElement elements = 1; */ public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { return elementsBuilder_.getMessageList(); } } /** * repeated .gossip.PvtDataElement elements = 1; */ public int getElementsCount() { if (elementsBuilder_ == null) { return elements_.size(); } else { return elementsBuilder_.getCount(); } } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessage(index); } } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder setElements( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.set(index, value); onChanged(); } else { elementsBuilder_.setMessage(index, value); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder setElements( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder addElements(org.hyperledger.fabric.protos.gossip.Message.PvtDataElement value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(value); onChanged(); } else { elementsBuilder_.addMessage(value); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder addElements( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureElementsIsMutable(); elements_.add(index, value); onChanged(); } else { elementsBuilder_.addMessage(index, value); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder addElements( org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder addElements( int index, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); onChanged(); } else { elementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder addAllElements( java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder clearElements() { if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { elementsBuilder_.clear(); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.remove(index); onChanged(); } else { elementsBuilder_.remove(index); } return this; } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder getElementsBuilder( int index) { return getElementsFieldBuilder().getBuilder(index); } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder getElementsOrBuilder( int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** * repeated .gossip.PvtDataElement elements = 1; */ public java.util.List getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(elements_); } } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder addElementsBuilder() { return getElementsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.getDefaultInstance()); } /** * repeated .gossip.PvtDataElement elements = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder addElementsBuilder( int index) { return getElementsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.getDefaultInstance()); } /** * repeated .gossip.PvtDataElement elements = 1; */ public java.util.List getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataElement, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataElement, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder>( elements_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.RemotePvtDataResponse) } // @@protoc_insertion_point(class_scope:gossip.RemotePvtDataResponse) private static final org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse(); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemotePvtDataResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemotePvtDataResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PvtDataElementOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PvtDataElement) com.google.protobuf.MessageOrBuilder { /** * optional .gossip.PvtDataDigest digest = 1; */ boolean hasDigest(); /** * optional .gossip.PvtDataDigest digest = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigest(); /** * optional .gossip.PvtDataDigest digest = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestOrBuilder(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ java.util.List getPayloadList(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ int getPayloadCount(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ com.google.protobuf.ByteString getPayload(int index); } /** * Protobuf type {@code gossip.PvtDataElement} */ public static final class PvtDataElement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PvtDataElement) PvtDataElementOrBuilder { // Use PvtDataElement.newBuilder() to construct. private PvtDataElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PvtDataElement() { payload_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PvtDataElement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder subBuilder = null; if (digest_ != null) { subBuilder = digest_.toBuilder(); } digest_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(digest_); digest_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { payload_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } payload_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { payload_ = java.util.Collections.unmodifiableList(payload_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder.class); } private int bitField0_; public static final int DIGEST_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest digest_; /** * optional .gossip.PvtDataDigest digest = 1; */ public boolean hasDigest() { return digest_ != null; } /** * optional .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigest() { return digest_ == null ? org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance() : digest_; } /** * optional .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestOrBuilder() { return getDigest(); } public static final int PAYLOAD_FIELD_NUMBER = 2; private java.util.List payload_; /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ public java.util.List getPayloadList() { return payload_; } /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ public int getPayloadCount() { return payload_.size(); } /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; */ public com.google.protobuf.ByteString getPayload(int index) { return payload_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (digest_ != null) { output.writeMessage(1, getDigest()); } for (int i = 0; i < payload_.size(); i++) { output.writeBytes(2, payload_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (digest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDigest()); } { int dataSize = 0; for (int i = 0; i < payload_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(payload_.get(i)); } size += dataSize; size += 1 * getPayloadList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataElement)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PvtDataElement other = (org.hyperledger.fabric.protos.gossip.Message.PvtDataElement) obj; boolean result = true; result = result && (hasDigest() == other.hasDigest()); if (hasDigest()) { result = result && getDigest() .equals(other.getDigest()); } result = result && getPayloadList() .equals(other.getPayloadList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDigest()) { hash = (37 * hash) + DIGEST_FIELD_NUMBER; hash = (53 * hash) + getDigest().hashCode(); } if (getPayloadCount() > 0) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayloadList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PvtDataElement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code gossip.PvtDataElement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PvtDataElement) org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (digestBuilder_ == null) { digest_ = null; } else { digest_ = null; digestBuilder_ = null; } payload_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement build() { org.hyperledger.fabric.protos.gossip.Message.PvtDataElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PvtDataElement result = new org.hyperledger.fabric.protos.gossip.Message.PvtDataElement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (digestBuilder_ == null) { result.digest_ = digest_; } else { result.digest_ = digestBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { payload_ = java.util.Collections.unmodifiableList(payload_); bitField0_ = (bitField0_ & ~0x00000002); } result.payload_ = payload_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataElement) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PvtDataElement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PvtDataElement other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.getDefaultInstance()) return this; if (other.hasDigest()) { mergeDigest(other.getDigest()); } if (!other.payload_.isEmpty()) { if (payload_.isEmpty()) { payload_ = other.payload_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePayloadIsMutable(); payload_.addAll(other.payload_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PvtDataElement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest digest_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder> digestBuilder_; /** * optional .gossip.PvtDataDigest digest = 1; */ public boolean hasDigest() { return digestBuilder_ != null || digest_ != null; } /** * optional .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigest() { if (digestBuilder_ == null) { return digest_ == null ? org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance() : digest_; } else { return digestBuilder_.getMessage(); } } /** * optional .gossip.PvtDataDigest digest = 1; */ public Builder setDigest(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest value) { if (digestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } digest_ = value; onChanged(); } else { digestBuilder_.setMessage(value); } return this; } /** * optional .gossip.PvtDataDigest digest = 1; */ public Builder setDigest( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder builderForValue) { if (digestBuilder_ == null) { digest_ = builderForValue.build(); onChanged(); } else { digestBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .gossip.PvtDataDigest digest = 1; */ public Builder mergeDigest(org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest value) { if (digestBuilder_ == null) { if (digest_ != null) { digest_ = org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.newBuilder(digest_).mergeFrom(value).buildPartial(); } else { digest_ = value; } onChanged(); } else { digestBuilder_.mergeFrom(value); } return this; } /** * optional .gossip.PvtDataDigest digest = 1; */ public Builder clearDigest() { if (digestBuilder_ == null) { digest_ = null; onChanged(); } else { digest_ = null; digestBuilder_ = null; } return this; } /** * optional .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder getDigestBuilder() { onChanged(); return getDigestFieldBuilder().getBuilder(); } /** * optional .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestOrBuilder() { if (digestBuilder_ != null) { return digestBuilder_.getMessageOrBuilder(); } else { return digest_ == null ? org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance() : digest_; } } /** * optional .gossip.PvtDataDigest digest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder> getDigestFieldBuilder() { if (digestBuilder_ == null) { digestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder, org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder>( getDigest(), getParentForChildren(), isClean()); digest_ = null; } return digestBuilder_; } private java.util.List payload_ = java.util.Collections.emptyList(); private void ensurePayloadIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { payload_ = new java.util.ArrayList(payload_); bitField0_ |= 0x00000002; } } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public java.util.List getPayloadList() { return java.util.Collections.unmodifiableList(payload_); } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public int getPayloadCount() { return payload_.size(); } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public com.google.protobuf.ByteString getPayload(int index) { return payload_.get(index); } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public Builder setPayload( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePayloadIsMutable(); payload_.set(index, value); onChanged(); return this; } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public Builder addPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePayloadIsMutable(); payload_.add(value); onChanged(); return this; } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public Builder addAllPayload( java.lang.Iterable values) { ensurePayloadIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, payload_); onChanged(); return this; } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; */ public Builder clearPayload() { payload_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PvtDataElement) } // @@protoc_insertion_point(class_scope:gossip.PvtDataElement) private static final org.hyperledger.fabric.protos.gossip.Message.PvtDataElement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PvtDataElement(); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PvtDataElement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PvtDataElement(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PvtDataPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.PvtDataPayload) com.google.protobuf.MessageOrBuilder { /** * optional uint64 tx_seq_in_block = 1; */ long getTxSeqInBlock(); /** *
     * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
     * defined in rwset.proto
     * 
* * optional bytes payload = 2; */ com.google.protobuf.ByteString getPayload(); } /** *
   * PvtPayload augments private rwset data and tx index
   * inside the block
   * 
* * Protobuf type {@code gossip.PvtDataPayload} */ public static final class PvtDataPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.PvtDataPayload) PvtDataPayloadOrBuilder { // Use PvtDataPayload.newBuilder() to construct. private PvtDataPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PvtDataPayload() { txSeqInBlock_ = 0L; payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PvtDataPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { txSeqInBlock_ = input.readUInt64(); break; } case 18: { payload_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.Builder.class); } public static final int TX_SEQ_IN_BLOCK_FIELD_NUMBER = 1; private long txSeqInBlock_; /** * optional uint64 tx_seq_in_block = 1; */ public long getTxSeqInBlock() { return txSeqInBlock_; } public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.protobuf.ByteString payload_; /** *
     * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
     * defined in rwset.proto
     * 
* * optional bytes payload = 2; */ public com.google.protobuf.ByteString getPayload() { return payload_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (txSeqInBlock_ != 0L) { output.writeUInt64(1, txSeqInBlock_); } if (!payload_.isEmpty()) { output.writeBytes(2, payload_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (txSeqInBlock_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, txSeqInBlock_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, payload_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload other = (org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload) obj; boolean result = true; result = result && (getTxSeqInBlock() == other.getTxSeqInBlock()); result = result && getPayload() .equals(other.getPayload()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + TX_SEQ_IN_BLOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTxSeqInBlock()); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PvtPayload augments private rwset data and tx index
     * inside the block
     * 
* * Protobuf type {@code gossip.PvtDataPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.PvtDataPayload) org.hyperledger.fabric.protos.gossip.Message.PvtDataPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.class, org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); txSeqInBlock_ = 0L; payload_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload build() { org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload buildPartial() { org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload result = new org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload(this); result.txSeqInBlock_ = txSeqInBlock_; result.payload_ = payload_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload other) { if (other == org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.getDefaultInstance()) return this; if (other.getTxSeqInBlock() != 0L) { setTxSeqInBlock(other.getTxSeqInBlock()); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long txSeqInBlock_ ; /** * optional uint64 tx_seq_in_block = 1; */ public long getTxSeqInBlock() { return txSeqInBlock_; } /** * optional uint64 tx_seq_in_block = 1; */ public Builder setTxSeqInBlock(long value) { txSeqInBlock_ = value; onChanged(); return this; } /** * optional uint64 tx_seq_in_block = 1; */ public Builder clearTxSeqInBlock() { txSeqInBlock_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
       * defined in rwset.proto
       * 
* * optional bytes payload = 2; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
       * defined in rwset.proto
       * 
* * optional bytes payload = 2; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** *
       * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
       * defined in rwset.proto
       * 
* * optional bytes payload = 2; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.PvtDataPayload) } // @@protoc_insertion_point(class_scope:gossip.PvtDataPayload) private static final org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload(); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PvtDataPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PvtDataPayload(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AcknowledgementOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Acknowledgement) com.google.protobuf.MessageOrBuilder { /** * optional string error = 1; */ java.lang.String getError(); /** * optional string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code gossip.Acknowledgement} */ public static final class Acknowledgement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Acknowledgement) AcknowledgementOrBuilder { // Use Acknowledgement.newBuilder() to construct. private Acknowledgement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Acknowledgement() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Acknowledgement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.class, org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * optional string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } } /** * optional string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Acknowledgement)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Acknowledgement other = (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) obj; boolean result = true; result = result && getError() .equals(other.getError()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Acknowledgement prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code gossip.Acknowledgement} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Acknowledgement) org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.class, org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement build() { org.hyperledger.fabric.protos.gossip.Message.Acknowledgement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Acknowledgement result = new org.hyperledger.fabric.protos.gossip.Message.Acknowledgement(this); result.error_ = error_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Acknowledgement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Acknowledgement other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Acknowledgement) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object error_ = ""; /** * optional string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * optional string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * optional string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Acknowledgement) } // @@protoc_insertion_point(class_scope:gossip.Acknowledgement) private static final org.hyperledger.fabric.protos.gossip.Message.Acknowledgement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Acknowledgement(); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Acknowledgement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Acknowledgement(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeOrBuilder extends // @@protoc_insertion_point(interface_extends:gossip.Chaincode) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string version = 2; */ java.lang.String getVersion(); /** * optional string version = 2; */ com.google.protobuf.ByteString getVersionBytes(); /** * optional bytes metadata = 3; */ com.google.protobuf.ByteString getMetadata(); } /** *
   * Chaincode represents a Chaincode that is installed
   * on a peer
   * 
* * Protobuf type {@code gossip.Chaincode} */ public static final class Chaincode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:gossip.Chaincode) ChaincodeOrBuilder { // Use Chaincode.newBuilder() to construct. private Chaincode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Chaincode() { name_ = ""; version_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Chaincode( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 26: { metadata_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Chaincode.class, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** * optional string version = 2; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** * optional string version = 2; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int METADATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString metadata_; /** * optional bytes metadata = 3; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (!metadata_.isEmpty()) { output.writeBytes(3, metadata_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, metadata_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Message.Chaincode)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.Message.Chaincode other = (org.hyperledger.fabric.protos.gossip.Message.Chaincode) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getVersion() .equals(other.getVersion()); result = result && getMetadata() .equals(other.getMetadata()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Message.Chaincode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Chaincode represents a Chaincode that is installed
     * on a peer
     * 
* * Protobuf type {@code gossip.Chaincode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:gossip.Chaincode) org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.Message.Chaincode.class, org.hyperledger.fabric.protos.gossip.Message.Chaincode.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.Message.Chaincode.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; version_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_descriptor; } public org.hyperledger.fabric.protos.gossip.Message.Chaincode getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Chaincode.getDefaultInstance(); } public org.hyperledger.fabric.protos.gossip.Message.Chaincode build() { org.hyperledger.fabric.protos.gossip.Message.Chaincode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.gossip.Message.Chaincode buildPartial() { org.hyperledger.fabric.protos.gossip.Message.Chaincode result = new org.hyperledger.fabric.protos.gossip.Message.Chaincode(this); result.name_ = name_; result.version_ = version_; result.metadata_ = metadata_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.Message.Chaincode) { return mergeFrom((org.hyperledger.fabric.protos.gossip.Message.Chaincode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Message.Chaincode other) { if (other == org.hyperledger.fabric.protos.gossip.Message.Chaincode.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.gossip.Message.Chaincode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.gossip.Message.Chaincode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** * optional string version = 2; */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string version = 2; */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string version = 2; */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** * optional string version = 2; */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * optional string version = 2; */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes metadata = 3; */ public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * optional bytes metadata = 3; */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * optional bytes metadata = 3; */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:gossip.Chaincode) } // @@protoc_insertion_point(class_scope:gossip.Chaincode) private static final org.hyperledger.fabric.protos.gossip.Message.Chaincode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Message.Chaincode(); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Chaincode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Chaincode(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.gossip.Message.Chaincode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Envelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Envelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_SecretEnvelope_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_SecretEnvelope_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Secret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Secret_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_GossipMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_GossipMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_StateInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_StateInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Properties_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Properties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_StateInfoSnapshot_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_StateInfoSnapshot_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_StateInfoPullRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_StateInfoPullRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_ConnEstablish_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_ConnEstablish_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PeerIdentity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PeerIdentity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_DataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_DataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_GossipHello_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_GossipHello_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_DataUpdate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_DataUpdate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_DataDigest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_DataDigest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_DataMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_DataMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PrivateDataMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PrivateDataMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Payload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Payload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PrivatePayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PrivatePayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_AliveMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_AliveMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_LeadershipMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_LeadershipMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PeerTime_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PeerTime_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_MembershipRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_MembershipRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_MembershipResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_MembershipResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Member_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Member_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Empty_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Empty_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_RemoteStateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_RemoteStateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_RemoteStateResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_RemoteStateResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_RemotePvtDataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_RemotePvtDataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PvtDataDigest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PvtDataDigest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_RemotePvtDataResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_RemotePvtDataResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PvtDataElement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PvtDataElement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_PvtDataPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_PvtDataPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Acknowledgement_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Acknowledgement_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_gossip_Chaincode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_gossip_Chaincode_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024gossip/message.proto\022\006gossip\032\027common/c" + "ollection.proto\"_\n\010Envelope\022\017\n\007payload\030\001" + " \001(\014\022\021\n\tsignature\030\002 \001(\014\022/\n\017secret_envelo" + "pe\030\003 \001(\0132\026.gossip.SecretEnvelope\"4\n\016Secr" + "etEnvelope\022\017\n\007payload\030\001 \001(\014\022\021\n\tsignature" + "\030\002 \001(\014\"/\n\006Secret\022\032\n\020internalEndpoint\030\001 \001" + "(\tH\000B\t\n\007content\"\215\t\n\rGossipMessage\022\r\n\005non" + "ce\030\001 \001(\004\022\017\n\007channel\030\002 \001(\014\022&\n\003tag\030\003 \001(\0162\031" + ".gossip.GossipMessage.Tag\022)\n\talive_msg\030\005" + " \001(\0132\024.gossip.AliveMessageH\000\022,\n\007mem_req\030", "\006 \001(\0132\031.gossip.MembershipRequestH\000\022-\n\007me" + "m_res\030\007 \001(\0132\032.gossip.MembershipResponseH" + "\000\022\'\n\010data_msg\030\010 \001(\0132\023.gossip.DataMessage" + "H\000\022$\n\005hello\030\t \001(\0132\023.gossip.GossipHelloH\000" + "\022&\n\010data_dig\030\n \001(\0132\022.gossip.DataDigestH\000" + "\022\'\n\010data_req\030\013 \001(\0132\023.gossip.DataRequestH" + "\000\022)\n\013data_update\030\014 \001(\0132\022.gossip.DataUpda" + "teH\000\022\036\n\005empty\030\r \001(\0132\r.gossip.EmptyH\000\022%\n\004" + "conn\030\016 \001(\0132\025.gossip.ConnEstablishH\000\022\'\n\ns" + "tate_info\030\017 \001(\0132\021.gossip.StateInfoH\000\0223\n\016", "state_snapshot\030\020 \001(\0132\031.gossip.StateInfoS" + "napshotH\000\022;\n\023state_info_pull_req\030\021 \001(\0132\034" + ".gossip.StateInfoPullRequestH\000\0223\n\rstate_" + "request\030\022 \001(\0132\032.gossip.RemoteStateReques" + "tH\000\0225\n\016state_response\030\023 \001(\0132\033.gossip.Rem" + "oteStateResponseH\000\0223\n\016leadership_msg\030\024 \001" + "(\0132\031.gossip.LeadershipMessageH\000\022-\n\rpeer_" + "identity\030\025 \001(\0132\024.gossip.PeerIdentityH\000\022&" + "\n\003ack\030\026 \001(\0132\027.gossip.AcknowledgementH\000\0222" + "\n\nprivateReq\030\027 \001(\0132\034.gossip.RemotePvtDat", "aRequestH\000\0223\n\nprivateRes\030\030 \001(\0132\035.gossip." + "RemotePvtDataResponseH\000\0222\n\014private_data\030" + "\031 \001(\0132\032.gossip.PrivateDataMessageH\000\"_\n\003T" + "ag\022\r\n\tUNDEFINED\020\000\022\t\n\005EMPTY\020\001\022\014\n\010ORG_ONLY" + "\020\002\022\r\n\tCHAN_ONLY\020\003\022\020\n\014CHAN_AND_ORG\020\004\022\017\n\013C" + "HAN_OR_ORG\020\005B\t\n\007content\"}\n\tStateInfo\022#\n\t" + "timestamp\030\002 \001(\0132\020.gossip.PeerTime\022\016\n\006pki" + "_id\030\003 \001(\014\022\023\n\013channel_MAC\030\004 \001(\014\022&\n\nproper" + "ties\030\005 \001(\0132\022.gossip.Properties\"`\n\nProper" + "ties\022\025\n\rledger_height\030\001 \001(\004\022\024\n\014left_chan", "nel\030\002 \001(\010\022%\n\nchaincodes\030\003 \003(\0132\021.gossip.C" + "haincode\"7\n\021StateInfoSnapshot\022\"\n\010element" + "s\030\001 \003(\0132\020.gossip.Envelope\"+\n\024StateInfoPu" + "llRequest\022\023\n\013channel_MAC\030\001 \001(\014\"H\n\rConnEs" + "tablish\022\016\n\006pki_id\030\001 \001(\014\022\020\n\010identity\030\002 \001(" + "\014\022\025\n\rtls_cert_hash\030\003 \001(\014\">\n\014PeerIdentity" + "\022\016\n\006pki_id\030\001 \001(\014\022\014\n\004cert\030\002 \001(\014\022\020\n\010metada" + "ta\030\003 \001(\014\"T\n\013DataRequest\022\r\n\005nonce\030\001 \001(\004\022\017" + "\n\007digests\030\002 \003(\014\022%\n\010msg_type\030\003 \001(\0162\023.goss" + "ip.PullMsgType\"U\n\013GossipHello\022\r\n\005nonce\030\001", " \001(\004\022\020\n\010metadata\030\002 \001(\014\022%\n\010msg_type\030\003 \001(\016" + "2\023.gossip.PullMsgType\"b\n\nDataUpdate\022\r\n\005n" + "once\030\001 \001(\004\022\036\n\004data\030\002 \003(\0132\020.gossip.Envelo" + "pe\022%\n\010msg_type\030\003 \001(\0162\023.gossip.PullMsgTyp" + "e\"S\n\nDataDigest\022\r\n\005nonce\030\001 \001(\004\022\017\n\007digest" + "s\030\002 \003(\014\022%\n\010msg_type\030\003 \001(\0162\023.gossip.PullM" + "sgType\"/\n\013DataMessage\022 \n\007payload\030\001 \001(\0132\017" + ".gossip.Payload\"=\n\022PrivateDataMessage\022\'\n" + "\007payload\030\001 \001(\0132\026.gossip.PrivatePayload\">" + "\n\007Payload\022\017\n\007seq_num\030\001 \001(\004\022\014\n\004data\030\002 \001(\014", "\022\024\n\014private_data\030\003 \003(\014\"\273\001\n\016PrivatePayloa" + "d\022\027\n\017collection_name\030\001 \001(\t\022\021\n\tnamespace\030" + "\002 \001(\t\022\r\n\005tx_id\030\003 \001(\t\022\025\n\rprivate_rwset\030\004 " + "\001(\014\022\032\n\022private_sim_height\030\005 \001(\004\022;\n\022colle" + "ction_configs\030\006 \001(\0132\037.common.CollectionC" + "onfigPackage\"i\n\014AliveMessage\022\"\n\nmembersh" + "ip\030\001 \001(\0132\016.gossip.Member\022#\n\ttimestamp\030\002 " + "\001(\0132\020.gossip.PeerTime\022\020\n\010identity\030\004 \001(\014\"" + "`\n\021LeadershipMessage\022\016\n\006pki_id\030\001 \001(\014\022#\n\t" + "timestamp\030\002 \001(\0132\020.gossip.PeerTime\022\026\n\016is_", "declaration\030\003 \001(\010\",\n\010PeerTime\022\017\n\007inc_num" + "\030\001 \001(\004\022\017\n\007seq_num\030\002 \001(\004\"N\n\021MembershipReq" + "uest\022*\n\020self_information\030\001 \001(\0132\020.gossip." + "Envelope\022\r\n\005known\030\002 \003(\014\"U\n\022MembershipRes" + "ponse\022\037\n\005alive\030\001 \003(\0132\020.gossip.Envelope\022\036" + "\n\004dead\030\002 \003(\0132\020.gossip.Envelope\"<\n\006Member" + "\022\020\n\010endpoint\030\001 \001(\t\022\020\n\010metadata\030\002 \001(\014\022\016\n\006" + "pki_id\030\003 \001(\014\"\007\n\005Empty\"@\n\022RemoteStateRequ" + "est\022\025\n\rstart_seq_num\030\001 \001(\004\022\023\n\013end_seq_nu" + "m\030\002 \001(\004\"8\n\023RemoteStateResponse\022!\n\010payloa", "ds\030\001 \003(\0132\017.gossip.Payload\">\n\024RemotePvtDa" + "taRequest\022&\n\007digests\030\001 \003(\0132\025.gossip.PvtD" + "ataDigest\"n\n\rPvtDataDigest\022\r\n\005tx_id\030\001 \001(" + "\t\022\021\n\tnamespace\030\002 \001(\t\022\022\n\ncollection\030\003 \001(\t" + "\022\021\n\tblock_seq\030\004 \001(\004\022\024\n\014seq_in_block\030\005 \001(" + "\004\"A\n\025RemotePvtDataResponse\022(\n\010elements\030\001" + " \003(\0132\026.gossip.PvtDataElement\"H\n\016PvtDataE" + "lement\022%\n\006digest\030\001 \001(\0132\025.gossip.PvtDataD" + "igest\022\017\n\007payload\030\002 \003(\014\":\n\016PvtDataPayload" + "\022\027\n\017tx_seq_in_block\030\001 \001(\004\022\017\n\007payload\030\002 \001", "(\014\" \n\017Acknowledgement\022\r\n\005error\030\001 \001(\t\"<\n\t" + "Chaincode\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" + "\022\020\n\010metadata\030\003 \001(\014*=\n\013PullMsgType\022\r\n\tUND" + "EFINED\020\000\022\r\n\tBLOCK_MSG\020\001\022\020\n\014IDENTITY_MSG\020" + "\0022j\n\006Gossip\0228\n\014GossipStream\022\020.gossip.Env" + "elope\032\020.gossip.Envelope\"\000(\0010\001\022&\n\004Ping\022\r." + "gossip.Empty\032\r.gossip.Empty\"\000BS\n$org.hyp" + "erledger.fabric.protos.gossipZ+github.co" + "m/hyperledger/fabric/protos/gossipb\006prot" + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.common.Collection.getDescriptor(), }, assigner); internal_static_gossip_Envelope_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_gossip_Envelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Envelope_descriptor, new java.lang.String[] { "Payload", "Signature", "SecretEnvelope", }); internal_static_gossip_SecretEnvelope_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_gossip_SecretEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_SecretEnvelope_descriptor, new java.lang.String[] { "Payload", "Signature", }); internal_static_gossip_Secret_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_gossip_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Secret_descriptor, new java.lang.String[] { "InternalEndpoint", "Content", }); internal_static_gossip_GossipMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_gossip_GossipMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_GossipMessage_descriptor, new java.lang.String[] { "Nonce", "Channel", "Tag", "AliveMsg", "MemReq", "MemRes", "DataMsg", "Hello", "DataDig", "DataReq", "DataUpdate", "Empty", "Conn", "StateInfo", "StateSnapshot", "StateInfoPullReq", "StateRequest", "StateResponse", "LeadershipMsg", "PeerIdentity", "Ack", "PrivateReq", "PrivateRes", "PrivateData", "Content", }); internal_static_gossip_StateInfo_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_gossip_StateInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_StateInfo_descriptor, new java.lang.String[] { "Timestamp", "PkiId", "ChannelMAC", "Properties", }); internal_static_gossip_Properties_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_gossip_Properties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Properties_descriptor, new java.lang.String[] { "LedgerHeight", "LeftChannel", "Chaincodes", }); internal_static_gossip_StateInfoSnapshot_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_gossip_StateInfoSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_StateInfoSnapshot_descriptor, new java.lang.String[] { "Elements", }); internal_static_gossip_StateInfoPullRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_gossip_StateInfoPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_StateInfoPullRequest_descriptor, new java.lang.String[] { "ChannelMAC", }); internal_static_gossip_ConnEstablish_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_gossip_ConnEstablish_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_ConnEstablish_descriptor, new java.lang.String[] { "PkiId", "Identity", "TlsCertHash", }); internal_static_gossip_PeerIdentity_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_gossip_PeerIdentity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PeerIdentity_descriptor, new java.lang.String[] { "PkiId", "Cert", "Metadata", }); internal_static_gossip_DataRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_gossip_DataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_DataRequest_descriptor, new java.lang.String[] { "Nonce", "Digests", "MsgType", }); internal_static_gossip_GossipHello_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_gossip_GossipHello_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_GossipHello_descriptor, new java.lang.String[] { "Nonce", "Metadata", "MsgType", }); internal_static_gossip_DataUpdate_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_gossip_DataUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_DataUpdate_descriptor, new java.lang.String[] { "Nonce", "Data", "MsgType", }); internal_static_gossip_DataDigest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_gossip_DataDigest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_DataDigest_descriptor, new java.lang.String[] { "Nonce", "Digests", "MsgType", }); internal_static_gossip_DataMessage_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_gossip_DataMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_DataMessage_descriptor, new java.lang.String[] { "Payload", }); internal_static_gossip_PrivateDataMessage_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_gossip_PrivateDataMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PrivateDataMessage_descriptor, new java.lang.String[] { "Payload", }); internal_static_gossip_Payload_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_gossip_Payload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Payload_descriptor, new java.lang.String[] { "SeqNum", "Data", "PrivateData", }); internal_static_gossip_PrivatePayload_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_gossip_PrivatePayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PrivatePayload_descriptor, new java.lang.String[] { "CollectionName", "Namespace", "TxId", "PrivateRwset", "PrivateSimHeight", "CollectionConfigs", }); internal_static_gossip_AliveMessage_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_gossip_AliveMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_AliveMessage_descriptor, new java.lang.String[] { "Membership", "Timestamp", "Identity", }); internal_static_gossip_LeadershipMessage_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_gossip_LeadershipMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_LeadershipMessage_descriptor, new java.lang.String[] { "PkiId", "Timestamp", "IsDeclaration", }); internal_static_gossip_PeerTime_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_gossip_PeerTime_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PeerTime_descriptor, new java.lang.String[] { "IncNum", "SeqNum", }); internal_static_gossip_MembershipRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_gossip_MembershipRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_MembershipRequest_descriptor, new java.lang.String[] { "SelfInformation", "Known", }); internal_static_gossip_MembershipResponse_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_gossip_MembershipResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_MembershipResponse_descriptor, new java.lang.String[] { "Alive", "Dead", }); internal_static_gossip_Member_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_gossip_Member_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Member_descriptor, new java.lang.String[] { "Endpoint", "Metadata", "PkiId", }); internal_static_gossip_Empty_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_gossip_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Empty_descriptor, new java.lang.String[] { }); internal_static_gossip_RemoteStateRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_gossip_RemoteStateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_RemoteStateRequest_descriptor, new java.lang.String[] { "StartSeqNum", "EndSeqNum", }); internal_static_gossip_RemoteStateResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_gossip_RemoteStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_RemoteStateResponse_descriptor, new java.lang.String[] { "Payloads", }); internal_static_gossip_RemotePvtDataRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_gossip_RemotePvtDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_RemotePvtDataRequest_descriptor, new java.lang.String[] { "Digests", }); internal_static_gossip_PvtDataDigest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_gossip_PvtDataDigest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PvtDataDigest_descriptor, new java.lang.String[] { "TxId", "Namespace", "Collection", "BlockSeq", "SeqInBlock", }); internal_static_gossip_RemotePvtDataResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_gossip_RemotePvtDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_RemotePvtDataResponse_descriptor, new java.lang.String[] { "Elements", }); internal_static_gossip_PvtDataElement_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_gossip_PvtDataElement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PvtDataElement_descriptor, new java.lang.String[] { "Digest", "Payload", }); internal_static_gossip_PvtDataPayload_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_gossip_PvtDataPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_PvtDataPayload_descriptor, new java.lang.String[] { "TxSeqInBlock", "Payload", }); internal_static_gossip_Acknowledgement_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_gossip_Acknowledgement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Acknowledgement_descriptor, new java.lang.String[] { "Error", }); internal_static_gossip_Chaincode_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_gossip_Chaincode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_gossip_Chaincode_descriptor, new java.lang.String[] { "Name", "Version", "Metadata", }); org.hyperledger.fabric.protos.common.Collection.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy