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;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PullMsgType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire 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() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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 {

    /**
     * bytes payload = 1;
     * @return The payload.
     */
    com.google.protobuf.ByteString getPayload();

    /**
     * bytes signature = 2;
     * @return The signature.
     */
    com.google.protobuf.ByteString getSignature();

    /**
     * .gossip.SecretEnvelope secret_envelope = 3;
     * @return Whether the secretEnvelope field is set.
     */
    boolean hasSecretEnvelope();
    /**
     * .gossip.SecretEnvelope secret_envelope = 3;
     * @return The secretEnvelope.
     */
    org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getSecretEnvelope();
    /**
     * .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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Envelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_descriptor; } @java.lang.Override 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_; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override 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_; /** * .gossip.SecretEnvelope secret_envelope = 3; * @return Whether the secretEnvelope field is set. */ @java.lang.Override public boolean hasSecretEnvelope() { return secretEnvelope_ != null; } /** * .gossip.SecretEnvelope secret_envelope = 3; * @return The secretEnvelope. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getSecretEnvelope() { return secretEnvelope_ == null ? org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance() : secretEnvelope_; } /** * .gossip.SecretEnvelope secret_envelope = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelopeOrBuilder getSecretEnvelopeOrBuilder() { return getSecretEnvelope(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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()); } getUnknownFields().writeTo(output); } @java.lang.Override 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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPayload() .equals(other.getPayload())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (hasSecretEnvelope() != other.hasSecretEnvelope()) return false; if (hasSecretEnvelope()) { if (!getSecretEnvelope() .equals(other.getSecretEnvelope())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Envelope parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Envelope_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { payload_ = input.readBytes(); break; } // case 10 case 18: { signature_ = input.readBytes(); break; } // case 18 case 26: { input.readMessage( getSecretEnvelopeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 1; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * bytes payload = 1; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope secretEnvelope_; 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_; /** * .gossip.SecretEnvelope secret_envelope = 3; * @return Whether the secretEnvelope field is set. */ public boolean hasSecretEnvelope() { return secretEnvelopeBuilder_ != null || secretEnvelope_ != null; } /** * .gossip.SecretEnvelope secret_envelope = 3; * @return The secretEnvelope. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.SecretEnvelope secret_envelope = 3; */ public Builder clearSecretEnvelope() { if (secretEnvelopeBuilder_ == null) { secretEnvelope_ = null; onChanged(); } else { secretEnvelope_ = null; secretEnvelopeBuilder_ = null; } return this; } /** * .gossip.SecretEnvelope secret_envelope = 3; */ public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.Builder getSecretEnvelopeBuilder() { onChanged(); return getSecretEnvelopeFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Envelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * bytes payload = 1; * @return The payload. */ com.google.protobuf.ByteString getPayload(); /** * bytes signature = 2; * @return The signature. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SecretEnvelope(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_descriptor; } @java.lang.Override 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_; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPayload() .equals(other.getPayload())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_SecretEnvelope_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.SecretEnvelope.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { payload_ = input.readBytes(); break; } // case 10 case 18: { signature_ = input.readBytes(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 1; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * bytes payload = 1; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public SecretEnvelope parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string internalEndpoint = 1; * @return Whether the internalEndpoint field is set. */ boolean hasInternalEndpoint(); /** * string internalEndpoint = 1; * @return The internalEndpoint. */ java.lang.String getInternalEndpoint(); /** * string internalEndpoint = 1; * @return The bytes for internalEndpoint. */ 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 { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Secret(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_descriptor; } @java.lang.Override 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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INTERNALENDPOINT(1), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; /** * string internalEndpoint = 1; * @return Whether the internalEndpoint field is set. */ public boolean hasInternalEndpoint() { return contentCase_ == 1; } /** * string internalEndpoint = 1; * @return The internalEndpoint. */ 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; } } /** * string internalEndpoint = 1; * @return The bytes for internalEndpoint. */ 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (contentCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (contentCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 1: if (!getInternalEndpoint() .equals(other.getInternalEndpoint())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (contentCase_) { case 1: hash = (37 * hash) + INTERNALENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getInternalEndpoint().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Secret parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); contentCase_ = 0; content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Secret_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Secret getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Secret.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); contentCase_ = 1; content_ = s; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; } /** * string internalEndpoint = 1; * @return Whether the internalEndpoint field is set. */ @java.lang.Override public boolean hasInternalEndpoint() { return contentCase_ == 1; } /** * string internalEndpoint = 1; * @return The internalEndpoint. */ @java.lang.Override 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; } } /** * string internalEndpoint = 1; * @return The bytes for internalEndpoint. */ @java.lang.Override 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; } } /** * string internalEndpoint = 1; * @param value The internalEndpoint to set. * @return This builder for chaining. */ public Builder setInternalEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentCase_ = 1; content_ = value; onChanged(); return this; } /** * string internalEndpoint = 1; * @return This builder for chaining. */ public Builder clearInternalEndpoint() { if (contentCase_ == 1) { contentCase_ = 0; content_ = null; onChanged(); } return this; } /** * string internalEndpoint = 1; * @param value The bytes for internalEndpoint to set. * @return This builder for chaining. */ public Builder setInternalEndpointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentCase_ = 1; content_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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
     * 
* * uint64 nonce = 1; * @return The nonce. */ long getNonce(); /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * bytes channel = 2; * @return The channel. */ com.google.protobuf.ByteString getChannel(); /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The enum numeric value on the wire for tag. */ int getTagValue(); /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The tag. */ org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag(); /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5; * @return Whether the aliveMsg field is set. */ boolean hasAliveMsg(); /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5; * @return The aliveMsg. */ org.hyperledger.fabric.protos.gossip.Message.AliveMessage getAliveMsg(); /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5; */ org.hyperledger.fabric.protos.gossip.Message.AliveMessageOrBuilder getAliveMsgOrBuilder(); /** * .gossip.MembershipRequest mem_req = 6; * @return Whether the memReq field is set. */ boolean hasMemReq(); /** * .gossip.MembershipRequest mem_req = 6; * @return The memReq. */ org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getMemReq(); /** * .gossip.MembershipRequest mem_req = 6; */ org.hyperledger.fabric.protos.gossip.Message.MembershipRequestOrBuilder getMemReqOrBuilder(); /** * .gossip.MembershipResponse mem_res = 7; * @return Whether the memRes field is set. */ boolean hasMemRes(); /** * .gossip.MembershipResponse mem_res = 7; * @return The memRes. */ org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getMemRes(); /** * .gossip.MembershipResponse mem_res = 7; */ org.hyperledger.fabric.protos.gossip.Message.MembershipResponseOrBuilder getMemResOrBuilder(); /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8; * @return Whether the dataMsg field is set. */ boolean hasDataMsg(); /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8; * @return The dataMsg. */ org.hyperledger.fabric.protos.gossip.Message.DataMessage getDataMsg(); /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8; */ org.hyperledger.fabric.protos.gossip.Message.DataMessageOrBuilder getDataMsgOrBuilder(); /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9; * @return Whether the hello field is set. */ boolean hasHello(); /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9; * @return The hello. */ org.hyperledger.fabric.protos.gossip.Message.GossipHello getHello(); /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9; */ org.hyperledger.fabric.protos.gossip.Message.GossipHelloOrBuilder getHelloOrBuilder(); /** * .gossip.DataDigest data_dig = 10; * @return Whether the dataDig field is set. */ boolean hasDataDig(); /** * .gossip.DataDigest data_dig = 10; * @return The dataDig. */ org.hyperledger.fabric.protos.gossip.Message.DataDigest getDataDig(); /** * .gossip.DataDigest data_dig = 10; */ org.hyperledger.fabric.protos.gossip.Message.DataDigestOrBuilder getDataDigOrBuilder(); /** * .gossip.DataRequest data_req = 11; * @return Whether the dataReq field is set. */ boolean hasDataReq(); /** * .gossip.DataRequest data_req = 11; * @return The dataReq. */ org.hyperledger.fabric.protos.gossip.Message.DataRequest getDataReq(); /** * .gossip.DataRequest data_req = 11; */ org.hyperledger.fabric.protos.gossip.Message.DataRequestOrBuilder getDataReqOrBuilder(); /** * .gossip.DataUpdate data_update = 12; * @return Whether the dataUpdate field is set. */ boolean hasDataUpdate(); /** * .gossip.DataUpdate data_update = 12; * @return The dataUpdate. */ org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDataUpdate(); /** * .gossip.DataUpdate data_update = 12; */ org.hyperledger.fabric.protos.gossip.Message.DataUpdateOrBuilder getDataUpdateOrBuilder(); /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13; * @return Whether the empty field is set. */ boolean hasEmpty(); /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13; * @return The empty. */ org.hyperledger.fabric.protos.gossip.Message.Empty getEmpty(); /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13; */ org.hyperledger.fabric.protos.gossip.Message.EmptyOrBuilder getEmptyOrBuilder(); /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14; * @return Whether the conn field is set. */ boolean hasConn(); /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14; * @return The conn. */ org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getConn(); /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14; */ org.hyperledger.fabric.protos.gossip.Message.ConnEstablishOrBuilder getConnOrBuilder(); /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15; * @return Whether the stateInfo field is set. */ boolean hasStateInfo(); /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15; * @return The stateInfo. */ org.hyperledger.fabric.protos.gossip.Message.StateInfo getStateInfo(); /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoOrBuilder getStateInfoOrBuilder(); /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return Whether the stateSnapshot field is set. */ boolean hasStateSnapshot(); /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return The stateSnapshot. */ org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getStateSnapshot(); /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; */ org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder(); /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return Whether the stateInfoPullReq field is set. */ boolean hasStateInfoPullReq(); /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return The stateInfoPullReq. */ org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getStateInfoPullReq(); /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .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
     * 
* * .gossip.RemoteStateRequest state_request = 18; * @return Whether the stateRequest field is set. */ boolean hasStateRequest(); /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18; * @return The stateRequest. */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getStateRequest(); /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequestOrBuilder getStateRequestOrBuilder(); /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19; * @return Whether the stateResponse field is set. */ boolean hasStateResponse(); /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19; * @return The stateResponse. */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getStateResponse(); /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19; */ org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponseOrBuilder getStateResponseOrBuilder(); /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return Whether the leadershipMsg field is set. */ boolean hasLeadershipMsg(); /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return The leadershipMsg. */ org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getLeadershipMsg(); /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; */ org.hyperledger.fabric.protos.gossip.Message.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder(); /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21; * @return Whether the peerIdentity field is set. */ boolean hasPeerIdentity(); /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21; * @return The peerIdentity. */ org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getPeerIdentity(); /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21; */ org.hyperledger.fabric.protos.gossip.Message.PeerIdentityOrBuilder getPeerIdentityOrBuilder(); /** * .gossip.Acknowledgement ack = 22; * @return Whether the ack field is set. */ boolean hasAck(); /** * .gossip.Acknowledgement ack = 22; * @return The ack. */ org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getAck(); /** * .gossip.Acknowledgement ack = 22; */ org.hyperledger.fabric.protos.gossip.Message.AcknowledgementOrBuilder getAckOrBuilder(); /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return Whether the privateReq field is set. */ boolean hasPrivateReq(); /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return The privateReq. */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getPrivateReq(); /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder(); /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return Whether the privateRes field is set. */ boolean hasPrivateRes(); /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return The privateRes. */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getPrivateRes(); /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; */ org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder(); /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25; * @return Whether the privateData field is set. */ boolean hasPrivateData(); /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25; * @return The privateData. */ org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getPrivateData(); /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .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 { private static final long serialVersionUID = 0L; // Use GossipMessage.newBuilder() to construct. private GossipMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GossipMessage() { channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GossipMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_descriptor; } @java.lang.Override 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tag valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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
     * 
* * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override 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
     * 
* * bytes channel = 2; * @return The channel. */ @java.lang.Override 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
     * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The enum numeric value on the wire for tag. */ @java.lang.Override public int getTagValue() { return tag_; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The tag. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag() { @SuppressWarnings("deprecation") 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
     * 
* * .gossip.AliveMessage alive_msg = 5; * @return Whether the aliveMsg field is set. */ @java.lang.Override public boolean hasAliveMsg() { return contentCase_ == 5; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5; * @return The aliveMsg. */ @java.lang.Override 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
     * 
* * .gossip.AliveMessage alive_msg = 5; */ @java.lang.Override 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; /** * .gossip.MembershipRequest mem_req = 6; * @return Whether the memReq field is set. */ @java.lang.Override public boolean hasMemReq() { return contentCase_ == 6; } /** * .gossip.MembershipRequest mem_req = 6; * @return The memReq. */ @java.lang.Override 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(); } /** * .gossip.MembershipRequest mem_req = 6; */ @java.lang.Override 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; /** * .gossip.MembershipResponse mem_res = 7; * @return Whether the memRes field is set. */ @java.lang.Override public boolean hasMemRes() { return contentCase_ == 7; } /** * .gossip.MembershipResponse mem_res = 7; * @return The memRes. */ @java.lang.Override 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(); } /** * .gossip.MembershipResponse mem_res = 7; */ @java.lang.Override 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
     * 
* * .gossip.DataMessage data_msg = 8; * @return Whether the dataMsg field is set. */ @java.lang.Override public boolean hasDataMsg() { return contentCase_ == 8; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8; * @return The dataMsg. */ @java.lang.Override 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
     * 
* * .gossip.DataMessage data_msg = 8; */ @java.lang.Override 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
     * 
* * .gossip.GossipHello hello = 9; * @return Whether the hello field is set. */ @java.lang.Override public boolean hasHello() { return contentCase_ == 9; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9; * @return The hello. */ @java.lang.Override 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
     * 
* * .gossip.GossipHello hello = 9; */ @java.lang.Override 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; /** * .gossip.DataDigest data_dig = 10; * @return Whether the dataDig field is set. */ @java.lang.Override public boolean hasDataDig() { return contentCase_ == 10; } /** * .gossip.DataDigest data_dig = 10; * @return The dataDig. */ @java.lang.Override 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(); } /** * .gossip.DataDigest data_dig = 10; */ @java.lang.Override 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; /** * .gossip.DataRequest data_req = 11; * @return Whether the dataReq field is set. */ @java.lang.Override public boolean hasDataReq() { return contentCase_ == 11; } /** * .gossip.DataRequest data_req = 11; * @return The dataReq. */ @java.lang.Override 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(); } /** * .gossip.DataRequest data_req = 11; */ @java.lang.Override 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; /** * .gossip.DataUpdate data_update = 12; * @return Whether the dataUpdate field is set. */ @java.lang.Override public boolean hasDataUpdate() { return contentCase_ == 12; } /** * .gossip.DataUpdate data_update = 12; * @return The dataUpdate. */ @java.lang.Override 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(); } /** * .gossip.DataUpdate data_update = 12; */ @java.lang.Override 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
     * 
* * .gossip.Empty empty = 13; * @return Whether the empty field is set. */ @java.lang.Override public boolean hasEmpty() { return contentCase_ == 13; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13; * @return The empty. */ @java.lang.Override 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
     * 
* * .gossip.Empty empty = 13; */ @java.lang.Override 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
     * 
* * .gossip.ConnEstablish conn = 14; * @return Whether the conn field is set. */ @java.lang.Override public boolean hasConn() { return contentCase_ == 14; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14; * @return The conn. */ @java.lang.Override 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
     * 
* * .gossip.ConnEstablish conn = 14; */ @java.lang.Override 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
     * 
* * .gossip.StateInfo state_info = 15; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return contentCase_ == 15; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15; * @return The stateInfo. */ @java.lang.Override 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
     * 
* * .gossip.StateInfo state_info = 15; */ @java.lang.Override 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
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return Whether the stateSnapshot field is set. */ @java.lang.Override public boolean hasStateSnapshot() { return contentCase_ == 16; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return The stateSnapshot. */ @java.lang.Override 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
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; */ @java.lang.Override 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
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return Whether the stateInfoPullReq field is set. */ @java.lang.Override public boolean hasStateInfoPullReq() { return contentCase_ == 17; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return The stateInfoPullReq. */ @java.lang.Override 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
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; */ @java.lang.Override 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
     * 
* * .gossip.RemoteStateRequest state_request = 18; * @return Whether the stateRequest field is set. */ @java.lang.Override public boolean hasStateRequest() { return contentCase_ == 18; } /** *
     *  Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18; * @return The stateRequest. */ @java.lang.Override 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
     * 
* * .gossip.RemoteStateRequest state_request = 18; */ @java.lang.Override 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
     * 
* * .gossip.RemoteStateResponse state_response = 19; * @return Whether the stateResponse field is set. */ @java.lang.Override public boolean hasStateResponse() { return contentCase_ == 19; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19; * @return The stateResponse. */ @java.lang.Override 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
     * 
* * .gossip.RemoteStateResponse state_response = 19; */ @java.lang.Override 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
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return Whether the leadershipMsg field is set. */ @java.lang.Override public boolean hasLeadershipMsg() { return contentCase_ == 20; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return The leadershipMsg. */ @java.lang.Override 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
     * 
* * .gossip.LeadershipMessage leadership_msg = 20; */ @java.lang.Override 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
     * 
* * .gossip.PeerIdentity peer_identity = 21; * @return Whether the peerIdentity field is set. */ @java.lang.Override public boolean hasPeerIdentity() { return contentCase_ == 21; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21; * @return The peerIdentity. */ @java.lang.Override 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
     * 
* * .gossip.PeerIdentity peer_identity = 21; */ @java.lang.Override 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; /** * .gossip.Acknowledgement ack = 22; * @return Whether the ack field is set. */ @java.lang.Override public boolean hasAck() { return contentCase_ == 22; } /** * .gossip.Acknowledgement ack = 22; * @return The ack. */ @java.lang.Override 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(); } /** * .gossip.Acknowledgement ack = 22; */ @java.lang.Override 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
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return Whether the privateReq field is set. */ @java.lang.Override public boolean hasPrivateReq() { return contentCase_ == 23; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return The privateReq. */ @java.lang.Override 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
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23; */ @java.lang.Override 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
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return Whether the privateRes field is set. */ @java.lang.Override public boolean hasPrivateRes() { return contentCase_ == 24; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return The privateRes. */ @java.lang.Override 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
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24; */ @java.lang.Override 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
     * 
* * .gossip.PrivateDataMessage private_data = 25; * @return Whether the privateData field is set. */ @java.lang.Override public boolean hasPrivateData() { return contentCase_ == 25; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25; * @return The privateData. */ @java.lang.Override 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
     * 
* * .gossip.PrivateDataMessage private_data = 25; */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getNonce() != other.getNonce()) return false; if (!getChannel() .equals(other.getChannel())) return false; if (tag_ != other.tag_) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 5: if (!getAliveMsg() .equals(other.getAliveMsg())) return false; break; case 6: if (!getMemReq() .equals(other.getMemReq())) return false; break; case 7: if (!getMemRes() .equals(other.getMemRes())) return false; break; case 8: if (!getDataMsg() .equals(other.getDataMsg())) return false; break; case 9: if (!getHello() .equals(other.getHello())) return false; break; case 10: if (!getDataDig() .equals(other.getDataDig())) return false; break; case 11: if (!getDataReq() .equals(other.getDataReq())) return false; break; case 12: if (!getDataUpdate() .equals(other.getDataUpdate())) return false; break; case 13: if (!getEmpty() .equals(other.getEmpty())) return false; break; case 14: if (!getConn() .equals(other.getConn())) return false; break; case 15: if (!getStateInfo() .equals(other.getStateInfo())) return false; break; case 16: if (!getStateSnapshot() .equals(other.getStateSnapshot())) return false; break; case 17: if (!getStateInfoPullReq() .equals(other.getStateInfoPullReq())) return false; break; case 18: if (!getStateRequest() .equals(other.getStateRequest())) return false; break; case 19: if (!getStateResponse() .equals(other.getStateResponse())) return false; break; case 20: if (!getLeadershipMsg() .equals(other.getLeadershipMsg())) return false; break; case 21: if (!getPeerIdentity() .equals(other.getPeerIdentity())) return false; break; case 22: if (!getAck() .equals(other.getAck())) return false; break; case 23: if (!getPrivateReq() .equals(other.getPrivateReq())) return false; break; case 24: if (!getPrivateRes() .equals(other.getPrivateRes())) return false; break; case 25: if (!getPrivateData() .equals(other.getPrivateData())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipMessage parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); nonce_ = 0L; channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; if (aliveMsgBuilder_ != null) { aliveMsgBuilder_.clear(); } if (memReqBuilder_ != null) { memReqBuilder_.clear(); } if (memResBuilder_ != null) { memResBuilder_.clear(); } if (dataMsgBuilder_ != null) { dataMsgBuilder_.clear(); } if (helloBuilder_ != null) { helloBuilder_.clear(); } if (dataDigBuilder_ != null) { dataDigBuilder_.clear(); } if (dataReqBuilder_ != null) { dataReqBuilder_.clear(); } if (dataUpdateBuilder_ != null) { dataUpdateBuilder_.clear(); } if (emptyBuilder_ != null) { emptyBuilder_.clear(); } if (connBuilder_ != null) { connBuilder_.clear(); } if (stateInfoBuilder_ != null) { stateInfoBuilder_.clear(); } if (stateSnapshotBuilder_ != null) { stateSnapshotBuilder_.clear(); } if (stateInfoPullReqBuilder_ != null) { stateInfoPullReqBuilder_.clear(); } if (stateRequestBuilder_ != null) { stateRequestBuilder_.clear(); } if (stateResponseBuilder_ != null) { stateResponseBuilder_.clear(); } if (leadershipMsgBuilder_ != null) { leadershipMsgBuilder_.clear(); } if (peerIdentityBuilder_ != null) { peerIdentityBuilder_.clear(); } if (ackBuilder_ != null) { ackBuilder_.clear(); } if (privateReqBuilder_ != null) { privateReqBuilder_.clear(); } if (privateResBuilder_ != null) { privateResBuilder_.clear(); } if (privateDataBuilder_ != null) { privateDataBuilder_.clear(); } contentCase_ = 0; content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.GossipMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.GossipMessage.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nonce_ = input.readUInt64(); break; } // case 8 case 18: { channel_ = input.readBytes(); break; } // case 18 case 24: { tag_ = input.readEnum(); break; } // case 24 case 42: { input.readMessage( getAliveMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 5; break; } // case 42 case 50: { input.readMessage( getMemReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 6; break; } // case 50 case 58: { input.readMessage( getMemResFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 7; break; } // case 58 case 66: { input.readMessage( getDataMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 8; break; } // case 66 case 74: { input.readMessage( getHelloFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 9; break; } // case 74 case 82: { input.readMessage( getDataDigFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 10; break; } // case 82 case 90: { input.readMessage( getDataReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 11; break; } // case 90 case 98: { input.readMessage( getDataUpdateFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 12; break; } // case 98 case 106: { input.readMessage( getEmptyFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 13; break; } // case 106 case 114: { input.readMessage( getConnFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 14; break; } // case 114 case 122: { input.readMessage( getStateInfoFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 15; break; } // case 122 case 130: { input.readMessage( getStateSnapshotFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 16; break; } // case 130 case 138: { input.readMessage( getStateInfoPullReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 17; break; } // case 138 case 146: { input.readMessage( getStateRequestFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 18; break; } // case 146 case 154: { input.readMessage( getStateResponseFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 19; break; } // case 154 case 162: { input.readMessage( getLeadershipMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 20; break; } // case 162 case 170: { input.readMessage( getPeerIdentityFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 21; break; } // case 170 case 178: { input.readMessage( getAckFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 22; break; } // case 178 case 186: { input.readMessage( getPrivateReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 23; break; } // case 186 case 194: { input.readMessage( getPrivateResFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 24; break; } // case 194 case 202: { input.readMessage( getPrivateDataFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 25; break; } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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
       * 
* * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** *
       * used mainly for testing, but will might be used in the future
       * for ensuring message delivery by acking
       * 
* * uint64 nonce = 1; * @param value The nonce to set. * @return This builder for chaining. */ 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
       * 
* * uint64 nonce = 1; * @return This builder for chaining. */ 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
       * 
* * bytes channel = 2; * @return The channel. */ @java.lang.Override 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
       * 
* * bytes channel = 2; * @param value The channel to set. * @return This builder for chaining. */ 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
       * 
* * bytes channel = 2; * @return This builder for chaining. */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } private int tag_ = 0; /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The enum numeric value on the wire for tag. */ @java.lang.Override public int getTagValue() { return tag_; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * .gossip.GossipMessage.Tag tag = 3; * @param value The enum numeric value on the wire for tag to set. * @return This builder for chaining. */ public Builder setTagValue(int value) { tag_ = value; onChanged(); return this; } /** *
       * determines to which peers it is allowed
       * to forward the message
       * 
* * .gossip.GossipMessage.Tag tag = 3; * @return The tag. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.GossipMessage.Tag getTag() { @SuppressWarnings("deprecation") 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
       * 
* * .gossip.GossipMessage.Tag tag = 3; * @param value The tag to set. * @return This builder for chaining. */ 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
       * 
* * .gossip.GossipMessage.Tag tag = 3; * @return This builder for chaining. */ 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
       * 
* * .gossip.AliveMessage alive_msg = 5; * @return Whether the aliveMsg field is set. */ @java.lang.Override public boolean hasAliveMsg() { return contentCase_ == 5; } /** *
       * Membership
       * 
* * .gossip.AliveMessage alive_msg = 5; * @return The aliveMsg. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { aliveMsgBuilder_.setMessage(value); } } contentCase_ = 5; return this; } /** *
       * Membership
       * 
* * .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
       * 
* * .gossip.AliveMessage alive_msg = 5; */ public org.hyperledger.fabric.protos.gossip.Message.AliveMessage.Builder getAliveMsgBuilder() { return getAliveMsgFieldBuilder().getBuilder(); } /** *
       * Membership
       * 
* * .gossip.AliveMessage alive_msg = 5; */ @java.lang.Override 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
       * 
* * .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_; /** * .gossip.MembershipRequest mem_req = 6; * @return Whether the memReq field is set. */ @java.lang.Override public boolean hasMemReq() { return contentCase_ == 6; } /** * .gossip.MembershipRequest mem_req = 6; * @return The memReq. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { memReqBuilder_.setMessage(value); } } contentCase_ = 6; return this; } /** * .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; } /** * .gossip.MembershipRequest mem_req = 6; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.Builder getMemReqBuilder() { return getMemReqFieldBuilder().getBuilder(); } /** * .gossip.MembershipRequest mem_req = 6; */ @java.lang.Override 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(); } } /** * .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_; /** * .gossip.MembershipResponse mem_res = 7; * @return Whether the memRes field is set. */ @java.lang.Override public boolean hasMemRes() { return contentCase_ == 7; } /** * .gossip.MembershipResponse mem_res = 7; * @return The memRes. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { memResBuilder_.setMessage(value); } } contentCase_ = 7; return this; } /** * .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; } /** * .gossip.MembershipResponse mem_res = 7; */ public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.Builder getMemResBuilder() { return getMemResFieldBuilder().getBuilder(); } /** * .gossip.MembershipResponse mem_res = 7; */ @java.lang.Override 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(); } } /** * .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
       * 
* * .gossip.DataMessage data_msg = 8; * @return Whether the dataMsg field is set. */ @java.lang.Override public boolean hasDataMsg() { return contentCase_ == 8; } /** *
       * Contains a ledger block
       * 
* * .gossip.DataMessage data_msg = 8; * @return The dataMsg. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { dataMsgBuilder_.setMessage(value); } } contentCase_ = 8; return this; } /** *
       * Contains a ledger block
       * 
* * .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
       * 
* * .gossip.DataMessage data_msg = 8; */ public org.hyperledger.fabric.protos.gossip.Message.DataMessage.Builder getDataMsgBuilder() { return getDataMsgFieldBuilder().getBuilder(); } /** *
       * Contains a ledger block
       * 
* * .gossip.DataMessage data_msg = 8; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.GossipHello hello = 9; * @return Whether the hello field is set. */ @java.lang.Override public boolean hasHello() { return contentCase_ == 9; } /** *
       * Used for push&pull
       * 
* * .gossip.GossipHello hello = 9; * @return The hello. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { helloBuilder_.setMessage(value); } } contentCase_ = 9; return this; } /** *
       * Used for push&pull
       * 
* * .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
       * 
* * .gossip.GossipHello hello = 9; */ public org.hyperledger.fabric.protos.gossip.Message.GossipHello.Builder getHelloBuilder() { return getHelloFieldBuilder().getBuilder(); } /** *
       * Used for push&pull
       * 
* * .gossip.GossipHello hello = 9; */ @java.lang.Override 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
       * 
* * .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_; /** * .gossip.DataDigest data_dig = 10; * @return Whether the dataDig field is set. */ @java.lang.Override public boolean hasDataDig() { return contentCase_ == 10; } /** * .gossip.DataDigest data_dig = 10; * @return The dataDig. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { dataDigBuilder_.setMessage(value); } } contentCase_ = 10; return this; } /** * .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; } /** * .gossip.DataDigest data_dig = 10; */ public org.hyperledger.fabric.protos.gossip.Message.DataDigest.Builder getDataDigBuilder() { return getDataDigFieldBuilder().getBuilder(); } /** * .gossip.DataDigest data_dig = 10; */ @java.lang.Override 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(); } } /** * .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_; /** * .gossip.DataRequest data_req = 11; * @return Whether the dataReq field is set. */ @java.lang.Override public boolean hasDataReq() { return contentCase_ == 11; } /** * .gossip.DataRequest data_req = 11; * @return The dataReq. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { dataReqBuilder_.setMessage(value); } } contentCase_ = 11; return this; } /** * .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; } /** * .gossip.DataRequest data_req = 11; */ public org.hyperledger.fabric.protos.gossip.Message.DataRequest.Builder getDataReqBuilder() { return getDataReqFieldBuilder().getBuilder(); } /** * .gossip.DataRequest data_req = 11; */ @java.lang.Override 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(); } } /** * .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_; /** * .gossip.DataUpdate data_update = 12; * @return Whether the dataUpdate field is set. */ @java.lang.Override public boolean hasDataUpdate() { return contentCase_ == 12; } /** * .gossip.DataUpdate data_update = 12; * @return The dataUpdate. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { dataUpdateBuilder_.setMessage(value); } } contentCase_ = 12; return this; } /** * .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; } /** * .gossip.DataUpdate data_update = 12; */ public org.hyperledger.fabric.protos.gossip.Message.DataUpdate.Builder getDataUpdateBuilder() { return getDataUpdateFieldBuilder().getBuilder(); } /** * .gossip.DataUpdate data_update = 12; */ @java.lang.Override 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(); } } /** * .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
       * 
* * .gossip.Empty empty = 13; * @return Whether the empty field is set. */ @java.lang.Override public boolean hasEmpty() { return contentCase_ == 13; } /** *
       * Empty message, used for pinging
       * 
* * .gossip.Empty empty = 13; * @return The empty. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { emptyBuilder_.setMessage(value); } } contentCase_ = 13; return this; } /** *
       * Empty message, used for pinging
       * 
* * .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
       * 
* * .gossip.Empty empty = 13; */ public org.hyperledger.fabric.protos.gossip.Message.Empty.Builder getEmptyBuilder() { return getEmptyFieldBuilder().getBuilder(); } /** *
       * Empty message, used for pinging
       * 
* * .gossip.Empty empty = 13; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.ConnEstablish conn = 14; * @return Whether the conn field is set. */ @java.lang.Override public boolean hasConn() { return contentCase_ == 14; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * .gossip.ConnEstablish conn = 14; * @return The conn. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { connBuilder_.setMessage(value); } } contentCase_ = 14; return this; } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * .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
       * 
* * .gossip.ConnEstablish conn = 14; */ public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.Builder getConnBuilder() { return getConnFieldBuilder().getBuilder(); } /** *
       * ConnEstablish, used for establishing a connection
       * 
* * .gossip.ConnEstablish conn = 14; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.StateInfo state_info = 15; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return contentCase_ == 15; } /** *
       * Used for relaying information
       * about state
       * 
* * .gossip.StateInfo state_info = 15; * @return The stateInfo. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { stateInfoBuilder_.setMessage(value); } } contentCase_ = 15; return this; } /** *
       * Used for relaying information
       * about state
       * 
* * .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
       * 
* * .gossip.StateInfo state_info = 15; */ public org.hyperledger.fabric.protos.gossip.Message.StateInfo.Builder getStateInfoBuilder() { return getStateInfoFieldBuilder().getBuilder(); } /** *
       * Used for relaying information
       * about state
       * 
* * .gossip.StateInfo state_info = 15; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return Whether the stateSnapshot field is set. */ @java.lang.Override public boolean hasStateSnapshot() { return contentCase_ == 16; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; * @return The stateSnapshot. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { stateSnapshotBuilder_.setMessage(value); } } contentCase_ = 16; return this; } /** *
       * Used for sending sets of StateInfo messages
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.StateInfoSnapshot state_snapshot = 16; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return Whether the stateInfoPullReq field is set. */ @java.lang.Override public boolean hasStateInfoPullReq() { return contentCase_ == 17; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; * @return The stateInfoPullReq. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { stateInfoPullReqBuilder_.setMessage(value); } } contentCase_ = 17; return this; } /** *
       * Used for asking for StateInfoSnapshots
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.RemoteStateRequest state_request = 18; * @return Whether the stateRequest field is set. */ @java.lang.Override public boolean hasStateRequest() { return contentCase_ == 18; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * .gossip.RemoteStateRequest state_request = 18; * @return The stateRequest. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { stateRequestBuilder_.setMessage(value); } } contentCase_ = 18; return this; } /** *
       *  Used to ask from a remote peer a set of blocks
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.RemoteStateRequest state_request = 18; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.RemoteStateResponse state_response = 19; * @return Whether the stateResponse field is set. */ @java.lang.Override public boolean hasStateResponse() { return contentCase_ == 19; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * .gossip.RemoteStateResponse state_response = 19; * @return The stateResponse. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { stateResponseBuilder_.setMessage(value); } } contentCase_ = 19; return this; } /** *
       * Used to send a set of blocks to a remote peer
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.RemoteStateResponse state_response = 19; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return Whether the leadershipMsg field is set. */ @java.lang.Override public boolean hasLeadershipMsg() { return contentCase_ == 20; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * .gossip.LeadershipMessage leadership_msg = 20; * @return The leadershipMsg. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { leadershipMsgBuilder_.setMessage(value); } } contentCase_ = 20; return this; } /** *
       * Used to indicate intent of peer to become leader
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.LeadershipMessage leadership_msg = 20; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.PeerIdentity peer_identity = 21; * @return Whether the peerIdentity field is set. */ @java.lang.Override public boolean hasPeerIdentity() { return contentCase_ == 21; } /** *
       * Used to learn of a peer's certificate
       * 
* * .gossip.PeerIdentity peer_identity = 21; * @return The peerIdentity. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { peerIdentityBuilder_.setMessage(value); } } contentCase_ = 21; return this; } /** *
       * Used to learn of a peer's certificate
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.PeerIdentity peer_identity = 21; */ @java.lang.Override 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
       * 
* * .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_; /** * .gossip.Acknowledgement ack = 22; * @return Whether the ack field is set. */ @java.lang.Override public boolean hasAck() { return contentCase_ == 22; } /** * .gossip.Acknowledgement ack = 22; * @return The ack. */ @java.lang.Override 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(); } } /** * .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; } /** * .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; } /** * .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); } else { ackBuilder_.setMessage(value); } } contentCase_ = 22; return this; } /** * .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; } /** * .gossip.Acknowledgement ack = 22; */ public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.Builder getAckBuilder() { return getAckFieldBuilder().getBuilder(); } /** * .gossip.Acknowledgement ack = 22; */ @java.lang.Override 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(); } } /** * .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
       * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return Whether the privateReq field is set. */ @java.lang.Override public boolean hasPrivateReq() { return contentCase_ == 23; } /** *
       * Used to request private data
       * 
* * .gossip.RemotePvtDataRequest privateReq = 23; * @return The privateReq. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { privateReqBuilder_.setMessage(value); } } contentCase_ = 23; return this; } /** *
       * Used to request private data
       * 
* * .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
       * 
* * .gossip.RemotePvtDataRequest privateReq = 23; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.Builder getPrivateReqBuilder() { return getPrivateReqFieldBuilder().getBuilder(); } /** *
       * Used to request private data
       * 
* * .gossip.RemotePvtDataRequest privateReq = 23; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return Whether the privateRes field is set. */ @java.lang.Override public boolean hasPrivateRes() { return contentCase_ == 24; } /** *
       * Used to respond to private data requests
       * 
* * .gossip.RemotePvtDataResponse privateRes = 24; * @return The privateRes. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { privateResBuilder_.setMessage(value); } } contentCase_ = 24; return this; } /** *
       * Used to respond to private data requests
       * 
* * .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
       * 
* * .gossip.RemotePvtDataResponse privateRes = 24; */ public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.Builder getPrivateResBuilder() { return getPrivateResFieldBuilder().getBuilder(); } /** *
       * Used to respond to private data requests
       * 
* * .gossip.RemotePvtDataResponse privateRes = 24; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .gossip.PrivateDataMessage private_data = 25; * @return Whether the privateData field is set. */ @java.lang.Override public boolean hasPrivateData() { return contentCase_ == 25; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * .gossip.PrivateDataMessage private_data = 25; * @return The privateData. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { privateDataBuilder_.setMessage(value); } } contentCase_ = 25; return this; } /** *
       * Encapsulates private data used to distribute
       * private rwset after the endorsement
       * 
* * .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
       * 
* * .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
       * 
* * .gossip.PrivateDataMessage private_data = 25; */ @java.lang.Override 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
       * 
* * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public GossipMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * bytes pki_id = 3; * @return The pkiId. */ 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.
     * 
* * bytes channel_MAC = 4; * @return The channelMAC. */ com.google.protobuf.ByteString getChannelMAC(); /** * .gossip.Properties properties = 5; * @return Whether the properties field is set. */ boolean hasProperties(); /** * .gossip.Properties properties = 5; * @return The properties. */ org.hyperledger.fabric.protos.gossip.Message.Properties getProperties(); /** * .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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StateInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_descriptor; } @java.lang.Override 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * .gossip.PeerTime timestamp = 2; */ @java.lang.Override 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_; /** * bytes pki_id = 3; * @return The pkiId. */ @java.lang.Override 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.
     * 
* * bytes channel_MAC = 4; * @return The channelMAC. */ @java.lang.Override 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_; /** * .gossip.Properties properties = 5; * @return Whether the properties field is set. */ @java.lang.Override public boolean hasProperties() { return properties_ != null; } /** * .gossip.Properties properties = 5; * @return The properties. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Properties getProperties() { return properties_ == null ? org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance() : properties_; } /** * .gossip.Properties properties = 5; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PropertiesOrBuilder getPropertiesOrBuilder() { return getProperties(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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()); } getUnknownFields().writeTo(output); } @java.lang.Override 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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getPkiId() .equals(other.getPkiId())) return false; if (!getChannelMAC() .equals(other.getChannelMAC())) return false; if (hasProperties() != other.hasProperties()) return false; if (hasProperties()) { if (!getProperties() .equals(other.getProperties())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfo parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfo_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.StateInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfo.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { pkiId_ = input.readBytes(); break; } // case 26 case 34: { channelMAC_ = input.readBytes(); break; } // case 34 case 42: { input.readMessage( getPropertiesFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_; 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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; /** * bytes pki_id = 3; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * bytes pki_id = 3; * @param value The pkiId to set. * @return This builder for chaining. */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * bytes pki_id = 3; * @return This builder for chaining. */ 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.
       * 
* * bytes channel_MAC = 4; * @return The channelMAC. */ @java.lang.Override 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.
       * 
* * bytes channel_MAC = 4; * @param value The channelMAC to set. * @return This builder for chaining. */ 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.
       * 
* * bytes channel_MAC = 4; * @return This builder for chaining. */ public Builder clearChannelMAC() { channelMAC_ = getDefaultInstance().getChannelMAC(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.Properties properties_; 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_; /** * .gossip.Properties properties = 5; * @return Whether the properties field is set. */ public boolean hasProperties() { return propertiesBuilder_ != null || properties_ != null; } /** * .gossip.Properties properties = 5; * @return The properties. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.Properties properties = 5; */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = null; onChanged(); } else { properties_ = null; propertiesBuilder_ = null; } return this; } /** * .gossip.Properties properties = 5; */ public org.hyperledger.fabric.protos.gossip.Message.Properties.Builder getPropertiesBuilder() { onChanged(); return getPropertiesFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public StateInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 ledger_height = 1; * @return The ledgerHeight. */ long getLedgerHeight(); /** * bool left_channel = 2; * @return The leftChannel. */ 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 { private static final long serialVersionUID = 0L; // Use Properties.newBuilder() to construct. private Properties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Properties() { chaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Properties(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_descriptor; } @java.lang.Override 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); } public static final int LEDGER_HEIGHT_FIELD_NUMBER = 1; private long ledgerHeight_; /** * uint64 ledger_height = 1; * @return The ledgerHeight. */ @java.lang.Override public long getLedgerHeight() { return ledgerHeight_; } public static final int LEFT_CHANNEL_FIELD_NUMBER = 2; private boolean leftChannel_; /** * bool left_channel = 2; * @return The leftChannel. */ @java.lang.Override public boolean getLeftChannel() { return leftChannel_; } public static final int CHAINCODES_FIELD_NUMBER = 3; private java.util.List chaincodes_; /** * repeated .gossip.Chaincode chaincodes = 3; */ @java.lang.Override public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .gossip.Chaincode chaincodes = 3; */ @java.lang.Override public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .gossip.Chaincode chaincodes = 3; */ @java.lang.Override public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .gossip.Chaincode chaincodes = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Chaincode getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .gossip.Chaincode chaincodes = 3; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.ChaincodeOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getLedgerHeight() != other.getLedgerHeight()) return false; if (getLeftChannel() != other.getLeftChannel()) return false; if (!getChaincodesList() .equals(other.getChaincodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Properties parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); ledgerHeight_ = 0L; leftChannel_ = false; if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); } else { chaincodes_ = null; chaincodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Properties_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Properties getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Properties.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.ledgerHeight_ = ledgerHeight_; result.leftChannel_ = leftChannel_; if (chaincodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureChaincodesIsMutable(); chaincodes_.addAll(other.chaincodes_); } onChanged(); } } else { if (!other.chaincodes_.isEmpty()) { if (chaincodesBuilder_.isEmpty()) { chaincodesBuilder_.dispose(); chaincodesBuilder_ = null; chaincodes_ = other.chaincodes_; bitField0_ = (bitField0_ & ~0x00000001); chaincodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChaincodesFieldBuilder() : null; } else { chaincodesBuilder_.addAllMessages(other.chaincodes_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { ledgerHeight_ = input.readUInt64(); break; } // case 8 case 16: { leftChannel_ = input.readBool(); break; } // case 16 case 26: { org.hyperledger.fabric.protos.gossip.Message.Chaincode m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Chaincode.parser(), extensionRegistry); if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(m); } else { chaincodesBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long ledgerHeight_ ; /** * uint64 ledger_height = 1; * @return The ledgerHeight. */ @java.lang.Override public long getLedgerHeight() { return ledgerHeight_; } /** * uint64 ledger_height = 1; * @param value The ledgerHeight to set. * @return This builder for chaining. */ public Builder setLedgerHeight(long value) { ledgerHeight_ = value; onChanged(); return this; } /** * uint64 ledger_height = 1; * @return This builder for chaining. */ public Builder clearLedgerHeight() { ledgerHeight_ = 0L; onChanged(); return this; } private boolean leftChannel_ ; /** * bool left_channel = 2; * @return The leftChannel. */ @java.lang.Override public boolean getLeftChannel() { return leftChannel_; } /** * bool left_channel = 2; * @param value The leftChannel to set. * @return This builder for chaining. */ public Builder setLeftChannel(boolean value) { leftChannel_ = value; onChanged(); return this; } /** * bool left_channel = 2; * @return This builder for chaining. */ public Builder clearLeftChannel() { leftChannel_ = false; onChanged(); return this; } private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Properties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StateInfoSnapshot(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getElementsList() { return elements_; } /** * repeated .gossip.Envelope elements = 1; */ @java.lang.Override public java.util.List getElementsOrBuilderList() { return elements_; } /** * repeated .gossip.Envelope elements = 1; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** * repeated .gossip.Envelope elements = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getElements(int index) { return elements_.get(index); } /** * repeated .gossip.Envelope elements = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getElementsList() .equals(other.getElementsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); } else { elements_ = null; elementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoSnapshot_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfoSnapshot.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.gossip.Message.Envelope m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(m); } else { elementsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public StateInfoSnapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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.
     * 
* * bytes channel_MAC = 1; * @return The channelMAC. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StateInfoPullRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_descriptor; } @java.lang.Override 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.
     * 
* * bytes channel_MAC = 1; * @return The channelMAC. */ @java.lang.Override public com.google.protobuf.ByteString getChannelMAC() { return channelMAC_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!channelMAC_.isEmpty()) { output.writeBytes(1, channelMAC_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!channelMAC_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, channelMAC_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getChannelMAC() .equals(other.getChannelMAC())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CHANNEL_MAC_FIELD_NUMBER; hash = (53 * hash) + getChannelMAC().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); channelMAC_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_StateInfoPullRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.StateInfoPullRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { channelMAC_ = input.readBytes(); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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.
       * 
* * bytes channel_MAC = 1; * @return The channelMAC. */ @java.lang.Override 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.
       * 
* * bytes channel_MAC = 1; * @param value The channelMAC to set. * @return This builder for chaining. */ 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.
       * 
* * bytes channel_MAC = 1; * @return This builder for chaining. */ public Builder clearChannelMAC() { channelMAC_ = getDefaultInstance().getChannelMAC(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public StateInfoPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * bytes pki_id = 1; * @return The pkiId. */ com.google.protobuf.ByteString getPkiId(); /** * bytes identity = 2; * @return The identity. */ com.google.protobuf.ByteString getIdentity(); /** * bytes tls_cert_hash = 3; * @return The tlsCertHash. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConnEstablish(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_descriptor; } @java.lang.Override 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_; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int IDENTITY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString identity_; /** * bytes identity = 2; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } public static final int TLS_CERT_HASH_FIELD_NUMBER = 3; private com.google.protobuf.ByteString tlsCertHash_; /** * bytes tls_cert_hash = 3; * @return The tlsCertHash. */ @java.lang.Override public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPkiId() .equals(other.getPkiId())) return false; if (!getIdentity() .equals(other.getIdentity())) return false; if (!getTlsCertHash() .equals(other.getTlsCertHash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.ConnEstablish parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_ConnEstablish_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.ConnEstablish getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.ConnEstablish.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { pkiId_ = input.readBytes(); break; } // case 10 case 18: { identity_ = input.readBytes(); break; } // case 18 case 26: { tlsCertHash_ = input.readBytes(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * bytes pki_id = 1; * @param value The pkiId to set. * @return This builder for chaining. */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * bytes pki_id = 1; * @return This builder for chaining. */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** * bytes identity = 2; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } /** * bytes identity = 2; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** * bytes identity = 2; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } private com.google.protobuf.ByteString tlsCertHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes tls_cert_hash = 3; * @return The tlsCertHash. */ @java.lang.Override public com.google.protobuf.ByteString getTlsCertHash() { return tlsCertHash_; } /** * bytes tls_cert_hash = 3; * @param value The tlsCertHash to set. * @return This builder for chaining. */ public Builder setTlsCertHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tlsCertHash_ = value; onChanged(); return this; } /** * bytes tls_cert_hash = 3; * @return This builder for chaining. */ public Builder clearTlsCertHash() { tlsCertHash_ = getDefaultInstance().getTlsCertHash(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public ConnEstablish parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * bytes pki_id = 1; * @return The pkiId. */ com.google.protobuf.ByteString getPkiId(); /** * bytes cert = 2; * @return The cert. */ com.google.protobuf.ByteString getCert(); /** * bytes metadata = 3; * @return The metadata. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerIdentity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_descriptor; } @java.lang.Override 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_; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } public static final int CERT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString cert_; /** * bytes cert = 2; * @return The cert. */ @java.lang.Override public com.google.protobuf.ByteString getCert() { return cert_; } public static final int METADATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString metadata_; /** * bytes metadata = 3; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPkiId() .equals(other.getPkiId())) return false; if (!getCert() .equals(other.getCert())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerIdentity parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerIdentity_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerIdentity getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PeerIdentity.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { pkiId_ = input.readBytes(); break; } // case 10 case 18: { cert_ = input.readBytes(); break; } // case 18 case 26: { metadata_ = input.readBytes(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * bytes pki_id = 1; * @param value The pkiId to set. * @return This builder for chaining. */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * bytes pki_id = 1; * @return This builder for chaining. */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private com.google.protobuf.ByteString cert_ = com.google.protobuf.ByteString.EMPTY; /** * bytes cert = 2; * @return The cert. */ @java.lang.Override public com.google.protobuf.ByteString getCert() { return cert_; } /** * bytes cert = 2; * @param value The cert to set. * @return This builder for chaining. */ public Builder setCert(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } cert_ = value; onChanged(); return this; } /** * bytes cert = 2; * @return This builder for chaining. */ public Builder clearCert() { cert_ = getDefaultInstance().getCert(); onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * bytes metadata = 3; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 3; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 3; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PeerIdentity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 nonce = 1; * @return The nonce. */ long getNonce(); /** * repeated bytes digests = 2; * @return A list containing the digests. */ java.util.List getDigestsList(); /** * repeated bytes digests = 2; * @return The count of digests. */ int getDigestsCount(); /** * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ com.google.protobuf.ByteString getDigests(int index); /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ int getMsgTypeValue(); /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ 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 { private static final long serialVersionUID = 0L; // Use DataRequest.newBuilder() to construct. private DataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataRequest() { digests_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_descriptor; } @java.lang.Override 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); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } public static final int DIGESTS_FIELD_NUMBER = 2; private java.util.List digests_; /** * repeated bytes digests = 2; * @return A list containing the digests. */ @java.lang.Override public java.util.List getDigestsList() { return digests_; } /** * repeated bytes digests = 2; * @return The count of digests. */ public int getDigestsCount() { return digests_.size(); } /** * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getNonce() != other.getNonce()) return false; if (!getDigestsList() .equals(other.getDigestsList())) return false; if (msgType_ != other.msgType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataRequest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); nonce_ = 0L; digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); msgType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.DataRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.nonce_ = nonce_; if (((bitField0_ & 0x00000001) != 0)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000001); } result.digests_ = digests_; result.msgType_ = msgType_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureDigestsIsMutable(); digests_.addAll(other.digests_); } onChanged(); } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nonce_ = input.readUInt64(); break; } // case 8 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureDigestsIsMutable(); digests_.add(v); break; } // case 18 case 24: { msgType_ = input.readEnum(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long nonce_ ; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** * uint64 nonce = 1; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * uint64 nonce = 1; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { digests_ = new java.util.ArrayList(digests_); bitField0_ |= 0x00000001; } } /** * repeated bytes digests = 2; * @return A list containing the digests. */ public java.util.List getDigestsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(digests_) : digests_; } /** * repeated bytes digests = 2; * @return The count of digests. */ public int getDigestsCount() { return digests_.size(); } /** * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } /** * repeated bytes digests = 2; * @param index The index to set the value at. * @param value The digests to set. * @return This builder for chaining. */ 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; * @param value The digests to add. * @return This builder for chaining. */ 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; * @param values The digests to add. * @return This builder for chaining. */ public Builder addAllDigests( java.lang.Iterable values) { ensureDigestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, digests_); onChanged(); return this; } /** * repeated bytes digests = 2; * @return This builder for chaining. */ public Builder clearDigests() { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private int msgType_ = 0; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @param value The enum numeric value on the wire for msgType to set. * @return This builder for chaining. */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; } /** * .gossip.PullMsgType msg_type = 3; * @param value The msgType to set. * @return This builder for chaining. */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return This builder for chaining. */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public DataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 nonce = 1; * @return The nonce. */ long getNonce(); /** * bytes metadata = 2; * @return The metadata. */ com.google.protobuf.ByteString getMetadata(); /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ int getMsgTypeValue(); /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ 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 { private static final long serialVersionUID = 0L; // Use GossipHello.newBuilder() to construct. private GossipHello(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GossipHello() { metadata_ = com.google.protobuf.ByteString.EMPTY; msgType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GossipHello(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_descriptor; } @java.lang.Override 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_; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } public static final int METADATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString metadata_; /** * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getNonce() != other.getNonce()) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (msgType_ != other.msgType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.GossipHello parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); nonce_ = 0L; metadata_ = com.google.protobuf.ByteString.EMPTY; msgType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_GossipHello_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.GossipHello getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.GossipHello.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nonce_ = input.readUInt64(); break; } // case 8 case 18: { metadata_ = input.readBytes(); break; } // case 18 case 24: { msgType_ = input.readEnum(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long nonce_ ; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** * uint64 nonce = 1; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * uint64 nonce = 1; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 2; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 2; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private int msgType_ = 0; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @param value The enum numeric value on the wire for msgType to set. * @return This builder for chaining. */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; } /** * .gossip.PullMsgType msg_type = 3; * @param value The msgType to set. * @return This builder for chaining. */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return This builder for chaining. */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public GossipHello parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 nonce = 1; * @return The nonce. */ 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); /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ int getMsgTypeValue(); /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ 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 { private static final long serialVersionUID = 0L; // Use DataUpdate.newBuilder() to construct. private DataUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataUpdate() { data_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataUpdate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_descriptor; } @java.lang.Override 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); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } public static final int DATA_FIELD_NUMBER = 2; private java.util.List data_; /** * repeated .gossip.Envelope data = 2; */ @java.lang.Override public java.util.List getDataList() { return data_; } /** * repeated .gossip.Envelope data = 2; */ @java.lang.Override public java.util.List getDataOrBuilderList() { return data_; } /** * repeated .gossip.Envelope data = 2; */ @java.lang.Override public int getDataCount() { return data_.size(); } /** * repeated .gossip.Envelope data = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getData(int index) { return data_.get(index); } /** * repeated .gossip.Envelope data = 2; */ @java.lang.Override 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_; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getNonce() != other.getNonce()) return false; if (!getDataList() .equals(other.getDataList())) return false; if (msgType_ != other.msgType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataUpdate parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); nonce_ = 0L; if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); } else { data_ = null; dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); msgType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataUpdate_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.DataUpdate getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataUpdate.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.nonce_ = nonce_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000001); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.msgType_ = msgType_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000001); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nonce_ = input.readUInt64(); break; } // case 8 case 18: { org.hyperledger.fabric.protos.gossip.Message.Envelope m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(m); } else { dataBuilder_.addMessage(m); } break; } // case 18 case 24: { msgType_ = input.readEnum(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long nonce_ ; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** * uint64 nonce = 1; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * uint64 nonce = 1; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { data_ = new java.util.ArrayList(data_); 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> 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private int msgType_ = 0; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @param value The enum numeric value on the wire for msgType to set. * @return This builder for chaining. */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; } /** * .gossip.PullMsgType msg_type = 3; * @param value The msgType to set. * @return This builder for chaining. */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return This builder for chaining. */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public DataUpdate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 nonce = 1; * @return The nonce. */ long getNonce(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; * @return A list containing the digests. */ java.util.List getDigestsList(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; * @return The count of digests. */ int getDigestsCount(); /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ com.google.protobuf.ByteString getDigests(int index); /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ int getMsgTypeValue(); /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ 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 { private static final long serialVersionUID = 0L; // Use DataDigest.newBuilder() to construct. private DataDigest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataDigest() { digests_ = java.util.Collections.emptyList(); msgType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataDigest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_descriptor; } @java.lang.Override 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); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override 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; * @return A list containing the digests. */ @java.lang.Override public java.util.List getDigestsList() { return digests_; } /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; * @return The count of digests. */ public int getDigestsCount() { return digests_.size(); } /** *
     * Maybe change this to bitmap later on
     * 
* * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } public static final int MSG_TYPE_FIELD_NUMBER = 3; private int msgType_; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getNonce() != other.getNonce()) return false; if (!getDigestsList() .equals(other.getDigestsList())) return false; if (msgType_ != other.msgType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataDigest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); nonce_ = 0L; digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); msgType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataDigest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.DataDigest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataDigest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.nonce_ = nonce_; if (((bitField0_ & 0x00000001) != 0)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000001); } result.digests_ = digests_; result.msgType_ = msgType_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureDigestsIsMutable(); digests_.addAll(other.digests_); } onChanged(); } if (other.msgType_ != 0) { setMsgTypeValue(other.getMsgTypeValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { nonce_ = input.readUInt64(); break; } // case 8 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureDigestsIsMutable(); digests_.add(v); break; } // case 18 case 24: { msgType_ = input.readEnum(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long nonce_ ; /** * uint64 nonce = 1; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** * uint64 nonce = 1; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(long value) { nonce_ = value; onChanged(); return this; } /** * uint64 nonce = 1; * @return This builder for chaining. */ public Builder clearNonce() { nonce_ = 0L; onChanged(); return this; } private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { digests_ = new java.util.ArrayList(digests_); bitField0_ |= 0x00000001; } } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; * @return A list containing the digests. */ public java.util.List getDigestsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(digests_) : digests_; } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; * @return The count of digests. */ public int getDigestsCount() { return digests_.size(); } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; * @param index The index of the element to return. * @return The digests at the given index. */ public com.google.protobuf.ByteString getDigests(int index) { return digests_.get(index); } /** *
       * Maybe change this to bitmap later on
       * 
* * repeated bytes digests = 2; * @param index The index to set the value at. * @param value The digests to set. * @return This builder for chaining. */ 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; * @param value The digests to add. * @return This builder for chaining. */ 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; * @param values The digests to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearDigests() { digests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private int msgType_ = 0; /** * .gossip.PullMsgType msg_type = 3; * @return The enum numeric value on the wire for msgType. */ @java.lang.Override public int getMsgTypeValue() { return msgType_; } /** * .gossip.PullMsgType msg_type = 3; * @param value The enum numeric value on the wire for msgType to set. * @return This builder for chaining. */ public Builder setMsgTypeValue(int value) { msgType_ = value; onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return The msgType. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PullMsgType getMsgType() { @SuppressWarnings("deprecation") 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; } /** * .gossip.PullMsgType msg_type = 3; * @param value The msgType to set. * @return This builder for chaining. */ public Builder setMsgType(org.hyperledger.fabric.protos.gossip.Message.PullMsgType value) { if (value == null) { throw new NullPointerException(); } msgType_ = value.getNumber(); onChanged(); return this; } /** * .gossip.PullMsgType msg_type = 3; * @return This builder for chaining. */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public DataDigest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.Payload payload = 1; * @return Whether the payload field is set. */ boolean hasPayload(); /** * .gossip.Payload payload = 1; * @return The payload. */ org.hyperledger.fabric.protos.gossip.Message.Payload getPayload(); /** * .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 { private static final long serialVersionUID = 0L; // Use DataMessage.newBuilder() to construct. private DataMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_descriptor; } @java.lang.Override 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_; /** * .gossip.Payload payload = 1; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return payload_ != null; } /** * .gossip.Payload payload = 1; * @return The payload. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Payload getPayload() { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance() : payload_; } /** * .gossip.Payload payload = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadOrBuilder() { return getPayload(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payload_ != null) { output.writeMessage(1, getPayload()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPayload()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload() .equals(other.getPayload())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.DataMessage parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_DataMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.DataMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.DataMessage.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPayloadFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.gossip.Message.Payload payload_; 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_; /** * .gossip.Payload payload = 1; * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** * .gossip.Payload payload = 1; * @return The payload. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.Payload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** * .gossip.Payload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Payload.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public DataMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.PrivatePayload payload = 1; * @return Whether the payload field is set. */ boolean hasPayload(); /** * .gossip.PrivatePayload payload = 1; * @return The payload. */ org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getPayload(); /** * .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 { private static final long serialVersionUID = 0L; // Use PrivateDataMessage.newBuilder() to construct. private PrivateDataMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrivateDataMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrivateDataMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_descriptor; } @java.lang.Override 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_; /** * .gossip.PrivatePayload payload = 1; * @return Whether the payload field is set. */ @java.lang.Override public boolean hasPayload() { return payload_ != null; } /** * .gossip.PrivatePayload payload = 1; * @return The payload. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getPayload() { return payload_ == null ? org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance() : payload_; } /** * .gossip.PrivatePayload payload = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PrivatePayloadOrBuilder getPayloadOrBuilder() { return getPayload(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (payload_ != null) { output.writeMessage(1, getPayload()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (payload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPayload()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { if (!getPayload() .equals(other.getPayload())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivateDataMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PrivateDataMessage.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPayloadFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.gossip.Message.PrivatePayload payload_; 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_; /** * .gossip.PrivatePayload payload = 1; * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** * .gossip.PrivatePayload payload = 1; * @return The payload. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.PrivatePayload payload = 1; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** * .gossip.PrivatePayload payload = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PrivateDataMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 seq_num = 1; * @return The seqNum. */ long getSeqNum(); /** * bytes data = 2; * @return The data. */ com.google.protobuf.ByteString getData(); /** * repeated bytes private_data = 3; * @return A list containing the privateData. */ java.util.List getPrivateDataList(); /** * repeated bytes private_data = 3; * @return The count of privateData. */ int getPrivateDataCount(); /** * repeated bytes private_data = 3; * @param index The index of the element to return. * @return The privateData at the given index. */ 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 { private static final long serialVersionUID = 0L; // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Payload() { data_ = com.google.protobuf.ByteString.EMPTY; privateData_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Payload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_descriptor; } @java.lang.Override 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); } public static final int SEQ_NUM_FIELD_NUMBER = 1; private long seqNum_; /** * uint64 seq_num = 1; * @return The seqNum. */ @java.lang.Override public long getSeqNum() { return seqNum_; } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * bytes data = 2; * @return The data. */ @java.lang.Override 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; * @return A list containing the privateData. */ @java.lang.Override public java.util.List getPrivateDataList() { return privateData_; } /** * repeated bytes private_data = 3; * @return The count of privateData. */ public int getPrivateDataCount() { return privateData_.size(); } /** * repeated bytes private_data = 3; * @param index The index of the element to return. * @return The privateData at the given index. */ public com.google.protobuf.ByteString getPrivateData(int index) { return privateData_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getSeqNum() != other.getSeqNum()) return false; if (!getData() .equals(other.getData())) return false; if (!getPrivateDataList() .equals(other.getPrivateDataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Payload parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); seqNum_ = 0L; data_ = com.google.protobuf.ByteString.EMPTY; privateData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Payload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Payload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Payload.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.seqNum_ = seqNum_; result.data_ = data_; if (((bitField0_ & 0x00000001) != 0)) { privateData_ = java.util.Collections.unmodifiableList(privateData_); bitField0_ = (bitField0_ & ~0x00000001); } result.privateData_ = privateData_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensurePrivateDataIsMutable(); privateData_.addAll(other.privateData_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { seqNum_ = input.readUInt64(); break; } // case 8 case 18: { data_ = input.readBytes(); break; } // case 18 case 26: { com.google.protobuf.ByteString v = input.readBytes(); ensurePrivateDataIsMutable(); privateData_.add(v); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long seqNum_ ; /** * uint64 seq_num = 1; * @return The seqNum. */ @java.lang.Override public long getSeqNum() { return seqNum_; } /** * uint64 seq_num = 1; * @param value The seqNum to set. * @return This builder for chaining. */ public Builder setSeqNum(long value) { seqNum_ = value; onChanged(); return this; } /** * uint64 seq_num = 1; * @return This builder for chaining. */ public Builder clearSeqNum() { seqNum_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 2; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 2; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private java.util.List privateData_ = java.util.Collections.emptyList(); private void ensurePrivateDataIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { privateData_ = new java.util.ArrayList(privateData_); bitField0_ |= 0x00000001; } } /** * repeated bytes private_data = 3; * @return A list containing the privateData. */ public java.util.List getPrivateDataList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(privateData_) : privateData_; } /** * repeated bytes private_data = 3; * @return The count of privateData. */ public int getPrivateDataCount() { return privateData_.size(); } /** * repeated bytes private_data = 3; * @param index The index of the element to return. * @return The privateData at the given index. */ public com.google.protobuf.ByteString getPrivateData(int index) { return privateData_.get(index); } /** * repeated bytes private_data = 3; * @param index The index to set the value at. * @param value The privateData to set. * @return This builder for chaining. */ 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; * @param value The privateData to add. * @return This builder for chaining. */ 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; * @param values The privateData to add. * @return This builder for chaining. */ public Builder addAllPrivateData( java.lang.Iterable values) { ensurePrivateDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, privateData_); onChanged(); return this; } /** * repeated bytes private_data = 3; * @return This builder for chaining. */ public Builder clearPrivateData() { privateData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Payload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string collection_name = 1; * @return The collectionName. */ java.lang.String getCollectionName(); /** * string collection_name = 1; * @return The bytes for collectionName. */ com.google.protobuf.ByteString getCollectionNameBytes(); /** * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * string tx_id = 3; * @return The txId. */ java.lang.String getTxId(); /** * string tx_id = 3; * @return The bytes for txId. */ com.google.protobuf.ByteString getTxIdBytes(); /** * bytes private_rwset = 4; * @return The privateRwset. */ com.google.protobuf.ByteString getPrivateRwset(); /** * uint64 private_sim_height = 5; * @return The privateSimHeight. */ long getPrivateSimHeight(); /** * .protos.CollectionConfigPackage collection_configs = 6; * @return Whether the collectionConfigs field is set. */ boolean hasCollectionConfigs(); /** * .protos.CollectionConfigPackage collection_configs = 6; * @return The collectionConfigs. */ org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollectionConfigs(); /** * .protos.CollectionConfigPackage collection_configs = 6; */ org.hyperledger.fabric.protos.peer.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 { private static final long serialVersionUID = 0L; // 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; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrivatePayload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_descriptor; } @java.lang.Override 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_; /** * string collection_name = 1; * @return The collectionName. */ @java.lang.Override 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; } } /** * string collection_name = 1; * @return The bytes for collectionName. */ @java.lang.Override 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_; /** * string namespace = 2; * @return The namespace. */ @java.lang.Override 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; } } /** * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override 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_; /** * string tx_id = 3; * @return The txId. */ @java.lang.Override 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; } } /** * string tx_id = 3; * @return The bytes for txId. */ @java.lang.Override 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_; /** * bytes private_rwset = 4; * @return The privateRwset. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateRwset() { return privateRwset_; } public static final int PRIVATE_SIM_HEIGHT_FIELD_NUMBER = 5; private long privateSimHeight_; /** * uint64 private_sim_height = 5; * @return The privateSimHeight. */ @java.lang.Override public long getPrivateSimHeight() { return privateSimHeight_; } public static final int COLLECTION_CONFIGS_FIELD_NUMBER = 6; private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collectionConfigs_; /** * .protos.CollectionConfigPackage collection_configs = 6; * @return Whether the collectionConfigs field is set. */ @java.lang.Override public boolean hasCollectionConfigs() { return collectionConfigs_ != null; } /** * .protos.CollectionConfigPackage collection_configs = 6; * @return The collectionConfigs. */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollectionConfigs() { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } /** * .protos.CollectionConfigPackage collection_configs = 6; */ @java.lang.Override public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionConfigsOrBuilder() { return getCollectionConfigs(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) { 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()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) { 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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getCollectionName() .equals(other.getCollectionName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getTxId() .equals(other.getTxId())) return false; if (!getPrivateRwset() .equals(other.getPrivateRwset())) return false; if (getPrivateSimHeight() != other.getPrivateSimHeight()) return false; if (hasCollectionConfigs() != other.hasCollectionConfigs()) return false; if (hasCollectionConfigs()) { if (!getCollectionConfigs() .equals(other.getCollectionConfigs())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PrivatePayload parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PrivatePayload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PrivatePayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PrivatePayload.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { collectionName_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { txId_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { privateRwset_ = input.readBytes(); break; } // case 34 case 40: { privateSimHeight_ = input.readUInt64(); break; } // case 40 case 50: { input.readMessage( getCollectionConfigsFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object collectionName_ = ""; /** * string collection_name = 1; * @return The collectionName. */ 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; } } /** * string collection_name = 1; * @return The bytes for collectionName. */ 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; } } /** * string collection_name = 1; * @param value The collectionName to set. * @return This builder for chaining. */ public Builder setCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectionName_ = value; onChanged(); return this; } /** * string collection_name = 1; * @return This builder for chaining. */ public Builder clearCollectionName() { collectionName_ = getDefaultInstance().getCollectionName(); onChanged(); return this; } /** * string collection_name = 1; * @param value The bytes for collectionName to set. * @return This builder for chaining. */ 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_ = ""; /** * string namespace = 2; * @return The namespace. */ 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; } } /** * string namespace = 2; * @return The bytes for namespace. */ 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; } } /** * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ 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_ = ""; /** * string tx_id = 3; * @return The txId. */ 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; } } /** * string tx_id = 3; * @return The bytes for txId. */ 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; } } /** * string tx_id = 3; * @param value The txId to set. * @return This builder for chaining. */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** * string tx_id = 3; * @return This builder for chaining. */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** * string tx_id = 3; * @param value The bytes for txId to set. * @return This builder for chaining. */ 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; /** * bytes private_rwset = 4; * @return The privateRwset. */ @java.lang.Override public com.google.protobuf.ByteString getPrivateRwset() { return privateRwset_; } /** * bytes private_rwset = 4; * @param value The privateRwset to set. * @return This builder for chaining. */ public Builder setPrivateRwset(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } privateRwset_ = value; onChanged(); return this; } /** * bytes private_rwset = 4; * @return This builder for chaining. */ public Builder clearPrivateRwset() { privateRwset_ = getDefaultInstance().getPrivateRwset(); onChanged(); return this; } private long privateSimHeight_ ; /** * uint64 private_sim_height = 5; * @return The privateSimHeight. */ @java.lang.Override public long getPrivateSimHeight() { return privateSimHeight_; } /** * uint64 private_sim_height = 5; * @param value The privateSimHeight to set. * @return This builder for chaining. */ public Builder setPrivateSimHeight(long value) { privateSimHeight_ = value; onChanged(); return this; } /** * uint64 private_sim_height = 5; * @return This builder for chaining. */ public Builder clearPrivateSimHeight() { privateSimHeight_ = 0L; onChanged(); return this; } private org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage collectionConfigs_; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> collectionConfigsBuilder_; /** * .protos.CollectionConfigPackage collection_configs = 6; * @return Whether the collectionConfigs field is set. */ public boolean hasCollectionConfigs() { return collectionConfigsBuilder_ != null || collectionConfigs_ != null; } /** * .protos.CollectionConfigPackage collection_configs = 6; * @return The collectionConfigs. */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage getCollectionConfigs() { if (collectionConfigsBuilder_ == null) { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } else { return collectionConfigsBuilder_.getMessage(); } } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public Builder setCollectionConfigs(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } collectionConfigs_ = value; onChanged(); } else { collectionConfigsBuilder_.setMessage(value); } return this; } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public Builder setCollectionConfigs( org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder builderForValue) { if (collectionConfigsBuilder_ == null) { collectionConfigs_ = builderForValue.build(); onChanged(); } else { collectionConfigsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public Builder mergeCollectionConfigs(org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage value) { if (collectionConfigsBuilder_ == null) { if (collectionConfigs_ != null) { collectionConfigs_ = org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.newBuilder(collectionConfigs_).mergeFrom(value).buildPartial(); } else { collectionConfigs_ = value; } onChanged(); } else { collectionConfigsBuilder_.mergeFrom(value); } return this; } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public Builder clearCollectionConfigs() { if (collectionConfigsBuilder_ == null) { collectionConfigs_ = null; onChanged(); } else { collectionConfigs_ = null; collectionConfigsBuilder_ = null; } return this; } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder getCollectionConfigsBuilder() { onChanged(); return getCollectionConfigsFieldBuilder().getBuilder(); } /** * .protos.CollectionConfigPackage collection_configs = 6; */ public org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder getCollectionConfigsOrBuilder() { if (collectionConfigsBuilder_ != null) { return collectionConfigsBuilder_.getMessageOrBuilder(); } else { return collectionConfigs_ == null ? org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.getDefaultInstance() : collectionConfigs_; } } /** * .protos.CollectionConfigPackage collection_configs = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder> getCollectionConfigsFieldBuilder() { if (collectionConfigsBuilder_ == null) { collectionConfigsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackage.Builder, org.hyperledger.fabric.protos.peer.Collection.CollectionConfigPackageOrBuilder>( getCollectionConfigs(), getParentForChildren(), isClean()); collectionConfigs_ = null; } return collectionConfigsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PrivatePayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.Member membership = 1; * @return Whether the membership field is set. */ boolean hasMembership(); /** * .gossip.Member membership = 1; * @return The membership. */ org.hyperledger.fabric.protos.gossip.Message.Member getMembership(); /** * .gossip.Member membership = 1; */ org.hyperledger.fabric.protos.gossip.Message.MemberOrBuilder getMembershipOrBuilder(); /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * bytes identity = 4; * @return The identity. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AliveMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_descriptor; } @java.lang.Override 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_; /** * .gossip.Member membership = 1; * @return Whether the membership field is set. */ @java.lang.Override public boolean hasMembership() { return membership_ != null; } /** * .gossip.Member membership = 1; * @return The membership. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Member getMembership() { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance() : membership_; } /** * .gossip.Member membership = 1; */ @java.lang.Override 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * .gossip.PeerTime timestamp = 2; */ @java.lang.Override 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_; /** * bytes identity = 4; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasMembership() != other.hasMembership()) return false; if (hasMembership()) { if (!getMembership() .equals(other.getMembership())) return false; } if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getIdentity() .equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.AliveMessage parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_AliveMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.AliveMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.AliveMessage.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMembershipFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 34: { identity_ = input.readBytes(); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.gossip.Message.Member membership_; 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_; /** * .gossip.Member membership = 1; * @return Whether the membership field is set. */ public boolean hasMembership() { return membershipBuilder_ != null || membership_ != null; } /** * .gossip.Member membership = 1; * @return The membership. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.Member membership = 1; */ public Builder clearMembership() { if (membershipBuilder_ == null) { membership_ = null; onChanged(); } else { membership_ = null; membershipBuilder_ = null; } return this; } /** * .gossip.Member membership = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Member.Builder getMembershipBuilder() { onChanged(); return getMembershipFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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; /** * bytes identity = 4; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } /** * bytes identity = 4; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** * bytes identity = 4; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public AliveMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * bytes pki_id = 1; * @return The pkiId. */ com.google.protobuf.ByteString getPkiId(); /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp(); /** * .gossip.PeerTime timestamp = 2; */ org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder(); /** * bool is_declaration = 3; * @return The isDeclaration. */ 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 { private static final long serialVersionUID = 0L; // Use LeadershipMessage.newBuilder() to construct. private LeadershipMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeadershipMessage() { pkiId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LeadershipMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_descriptor; } @java.lang.Override 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_; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance() : timestamp_; } /** * .gossip.PeerTime timestamp = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerTimeOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int IS_DECLARATION_FIELD_NUMBER = 3; private boolean isDeclaration_; /** * bool is_declaration = 3; * @return The isDeclaration. */ @java.lang.Override public boolean getIsDeclaration() { return isDeclaration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPkiId() .equals(other.getPkiId())) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (getIsDeclaration() != other.getIsDeclaration()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_LeadershipMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.LeadershipMessage.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { pkiId_ = input.readBytes(); break; } // case 10 case 18: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 24: { isDeclaration_ = input.readBool(); break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pki_id = 1; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * bytes pki_id = 1; * @param value The pkiId to set. * @return This builder for chaining. */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * bytes pki_id = 1; * @return This builder for chaining. */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } private org.hyperledger.fabric.protos.gossip.Message.PeerTime timestamp_; 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_; /** * .gossip.PeerTime timestamp = 2; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .gossip.PeerTime timestamp = 2; * @return The timestamp. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.PeerTime timestamp = 2; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .gossip.PeerTime timestamp = 2; */ public org.hyperledger.fabric.protos.gossip.Message.PeerTime.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_ ; /** * bool is_declaration = 3; * @return The isDeclaration. */ @java.lang.Override public boolean getIsDeclaration() { return isDeclaration_; } /** * bool is_declaration = 3; * @param value The isDeclaration to set. * @return This builder for chaining. */ public Builder setIsDeclaration(boolean value) { isDeclaration_ = value; onChanged(); return this; } /** * bool is_declaration = 3; * @return This builder for chaining. */ public Builder clearIsDeclaration() { isDeclaration_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public LeadershipMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 inc_num = 1; * @return The incNum. */ long getIncNum(); /** * uint64 seq_num = 2; * @return The seqNum. */ 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 { private static final long serialVersionUID = 0L; // Use PeerTime.newBuilder() to construct. private PeerTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerTime() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerTime(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_descriptor; } @java.lang.Override 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_; /** * uint64 inc_num = 1; * @return The incNum. */ @java.lang.Override public long getIncNum() { return incNum_; } public static final int SEQ_NUM_FIELD_NUMBER = 2; private long seqNum_; /** * uint64 seq_num = 2; * @return The seqNum. */ @java.lang.Override public long getSeqNum() { return seqNum_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getIncNum() != other.getIncNum()) return false; if (getSeqNum() != other.getSeqNum()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PeerTime parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); incNum_ = 0L; seqNum_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PeerTime_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PeerTime getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PeerTime.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { incNum_ = input.readUInt64(); break; } // case 8 case 16: { seqNum_ = input.readUInt64(); break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long incNum_ ; /** * uint64 inc_num = 1; * @return The incNum. */ @java.lang.Override public long getIncNum() { return incNum_; } /** * uint64 inc_num = 1; * @param value The incNum to set. * @return This builder for chaining. */ public Builder setIncNum(long value) { incNum_ = value; onChanged(); return this; } /** * uint64 inc_num = 1; * @return This builder for chaining. */ public Builder clearIncNum() { incNum_ = 0L; onChanged(); return this; } private long seqNum_ ; /** * uint64 seq_num = 2; * @return The seqNum. */ @java.lang.Override public long getSeqNum() { return seqNum_; } /** * uint64 seq_num = 2; * @param value The seqNum to set. * @return This builder for chaining. */ public Builder setSeqNum(long value) { seqNum_ = value; onChanged(); return this; } /** * uint64 seq_num = 2; * @return This builder for chaining. */ public Builder clearSeqNum() { seqNum_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PeerTime parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.Envelope self_information = 1; * @return Whether the selfInformation field is set. */ boolean hasSelfInformation(); /** * .gossip.Envelope self_information = 1; * @return The selfInformation. */ org.hyperledger.fabric.protos.gossip.Message.Envelope getSelfInformation(); /** * .gossip.Envelope self_information = 1; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getSelfInformationOrBuilder(); /** * repeated bytes known = 2; * @return A list containing the known. */ java.util.List getKnownList(); /** * repeated bytes known = 2; * @return The count of known. */ int getKnownCount(); /** * repeated bytes known = 2; * @param index The index of the element to return. * @return The known at the given index. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MembershipRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_descriptor; } @java.lang.Override 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); } public static final int SELF_INFORMATION_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.Envelope selfInformation_; /** * .gossip.Envelope self_information = 1; * @return Whether the selfInformation field is set. */ @java.lang.Override public boolean hasSelfInformation() { return selfInformation_ != null; } /** * .gossip.Envelope self_information = 1; * @return The selfInformation. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getSelfInformation() { return selfInformation_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : selfInformation_; } /** * .gossip.Envelope self_information = 1; */ @java.lang.Override 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; * @return A list containing the known. */ @java.lang.Override public java.util.List getKnownList() { return known_; } /** * repeated bytes known = 2; * @return The count of known. */ public int getKnownCount() { return known_.size(); } /** * repeated bytes known = 2; * @param index The index of the element to return. * @return The known at the given index. */ public com.google.protobuf.ByteString getKnown(int index) { return known_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasSelfInformation() != other.hasSelfInformation()) return false; if (hasSelfInformation()) { if (!getSelfInformation() .equals(other.getSelfInformation())) return false; } if (!getKnownList() .equals(other.getKnownList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipRequest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (selfInformationBuilder_ == null) { selfInformation_ = null; } else { selfInformation_ = null; selfInformationBuilder_ = null; } known_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.MembershipRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.MembershipRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; if (selfInformationBuilder_ == null) { result.selfInformation_ = selfInformation_; } else { result.selfInformation_ = selfInformationBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { known_ = java.util.Collections.unmodifiableList(known_); bitField0_ = (bitField0_ & ~0x00000001); } result.known_ = known_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensureKnownIsMutable(); known_.addAll(other.known_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSelfInformationFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensureKnownIsMutable(); known_.add(v); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.hyperledger.fabric.protos.gossip.Message.Envelope selfInformation_; 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_; /** * .gossip.Envelope self_information = 1; * @return Whether the selfInformation field is set. */ public boolean hasSelfInformation() { return selfInformationBuilder_ != null || selfInformation_ != null; } /** * .gossip.Envelope self_information = 1; * @return The selfInformation. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.Envelope self_information = 1; */ public Builder clearSelfInformation() { if (selfInformationBuilder_ == null) { selfInformation_ = null; onChanged(); } else { selfInformation_ = null; selfInformationBuilder_ = null; } return this; } /** * .gossip.Envelope self_information = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getSelfInformationBuilder() { onChanged(); return getSelfInformationFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_ & 0x00000001) != 0)) { known_ = new java.util.ArrayList(known_); bitField0_ |= 0x00000001; } } /** * repeated bytes known = 2; * @return A list containing the known. */ public java.util.List getKnownList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(known_) : known_; } /** * repeated bytes known = 2; * @return The count of known. */ public int getKnownCount() { return known_.size(); } /** * repeated bytes known = 2; * @param index The index of the element to return. * @return The known at the given index. */ public com.google.protobuf.ByteString getKnown(int index) { return known_.get(index); } /** * repeated bytes known = 2; * @param index The index to set the value at. * @param value The known to set. * @return This builder for chaining. */ 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; * @param value The known to add. * @return This builder for chaining. */ 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; * @param values The known to add. * @return This builder for chaining. */ public Builder addAllKnown( java.lang.Iterable values) { ensureKnownIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, known_); onChanged(); return this; } /** * repeated bytes known = 2; * @return This builder for chaining. */ public Builder clearKnown() { known_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public MembershipRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MembershipResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getAliveList() { return alive_; } /** * repeated .gossip.Envelope alive = 1; */ @java.lang.Override public java.util.List getAliveOrBuilderList() { return alive_; } /** * repeated .gossip.Envelope alive = 1; */ @java.lang.Override public int getAliveCount() { return alive_.size(); } /** * repeated .gossip.Envelope alive = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getAlive(int index) { return alive_.get(index); } /** * repeated .gossip.Envelope alive = 1; */ @java.lang.Override 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; */ @java.lang.Override public java.util.List getDeadList() { return dead_; } /** * repeated .gossip.Envelope dead = 2; */ @java.lang.Override public java.util.List getDeadOrBuilderList() { return dead_; } /** * repeated .gossip.Envelope dead = 2; */ @java.lang.Override public int getDeadCount() { return dead_.size(); } /** * repeated .gossip.Envelope dead = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Envelope getDead(int index) { return dead_.get(index); } /** * repeated .gossip.Envelope dead = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getDeadOrBuilder( int index) { return dead_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getAliveList() .equals(other.getAliveList())) return false; if (!getDeadList() .equals(other.getDeadList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.MembershipResponse parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (aliveBuilder_ == null) { alive_ = java.util.Collections.emptyList(); } else { alive_ = null; aliveBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (deadBuilder_ == null) { dead_ = java.util.Collections.emptyList(); } else { dead_ = null; deadBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_MembershipResponse_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.MembershipResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.MembershipResponse.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { alive_ = java.util.Collections.unmodifiableList(alive_); bitField0_ = (bitField0_ & ~0x00000001); } result.alive_ = alive_; } else { result.alive_ = aliveBuilder_.build(); } if (deadBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { dead_ = java.util.Collections.unmodifiableList(dead_); bitField0_ = (bitField0_ & ~0x00000002); } result.dead_ = dead_; } else { result.dead_ = deadBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.gossip.Message.Envelope m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (aliveBuilder_ == null) { ensureAliveIsMutable(); alive_.add(m); } else { aliveBuilder_.addMessage(m); } break; } // case 10 case 18: { org.hyperledger.fabric.protos.gossip.Message.Envelope m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (deadBuilder_ == null) { ensureDeadIsMutable(); dead_.add(m); } else { deadBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List alive_ = java.util.Collections.emptyList(); private void ensureAliveIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); alive_ = null; } return aliveBuilder_; } private java.util.List dead_ = java.util.Collections.emptyList(); private void ensureDeadIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { 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) != 0), getParentForChildren(), isClean()); dead_ = null; } return deadBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public MembershipResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string endpoint = 1; * @return The endpoint. */ java.lang.String getEndpoint(); /** * string endpoint = 1; * @return The bytes for endpoint. */ com.google.protobuf.ByteString getEndpointBytes(); /** * bytes metadata = 2; * @return The metadata. */ com.google.protobuf.ByteString getMetadata(); /** * bytes pki_id = 3; * @return The pkiId. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Member(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_descriptor; } @java.lang.Override 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_; /** * string endpoint = 1; * @return The endpoint. */ @java.lang.Override 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; } } /** * string endpoint = 1; * @return The bytes for endpoint. */ @java.lang.Override 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_; /** * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int PKI_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString pkiId_; /** * bytes pki_id = 3; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } if (!metadata_.isEmpty()) { output.writeBytes(2, metadata_); } if (!pkiId_.isEmpty()) { output.writeBytes(3, pkiId_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getEndpoint() .equals(other.getEndpoint())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (!getPkiId() .equals(other.getPkiId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Member parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); endpoint_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; pkiId_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Member_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Member getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Member.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { endpoint_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { metadata_ = input.readBytes(); break; } // case 18 case 26: { pkiId_ = input.readBytes(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object endpoint_ = ""; /** * string endpoint = 1; * @return The endpoint. */ 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; } } /** * string endpoint = 1; * @return The bytes for endpoint. */ 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; } } /** * string endpoint = 1; * @param value The endpoint to set. * @return This builder for chaining. */ public Builder setEndpoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endpoint_ = value; onChanged(); return this; } /** * string endpoint = 1; * @return This builder for chaining. */ public Builder clearEndpoint() { endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** * string endpoint = 1; * @param value The bytes for endpoint to set. * @return This builder for chaining. */ 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; /** * bytes metadata = 2; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 2; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 2; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private com.google.protobuf.ByteString pkiId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes pki_id = 3; * @return The pkiId. */ @java.lang.Override public com.google.protobuf.ByteString getPkiId() { return pkiId_; } /** * bytes pki_id = 3; * @param value The pkiId to set. * @return This builder for chaining. */ public Builder setPkiId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } pkiId_ = value; onChanged(); return this; } /** * bytes pki_id = 3; * @return This builder for chaining. */ public Builder clearPkiId() { pkiId_ = getDefaultInstance().getPkiId(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Member parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // Use Empty.newBuilder() to construct. private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Empty() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Empty(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_descriptor; } @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Empty parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Empty_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Empty getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Empty.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Empty parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 start_seq_num = 1; * @return The startSeqNum. */ long getStartSeqNum(); /** * uint64 end_seq_num = 2; * @return The endSeqNum. */ 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 { private static final long serialVersionUID = 0L; // Use RemoteStateRequest.newBuilder() to construct. private RemoteStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoteStateRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoteStateRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_descriptor; } @java.lang.Override 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_; /** * uint64 start_seq_num = 1; * @return The startSeqNum. */ @java.lang.Override public long getStartSeqNum() { return startSeqNum_; } public static final int END_SEQ_NUM_FIELD_NUMBER = 2; private long endSeqNum_; /** * uint64 end_seq_num = 2; * @return The endSeqNum. */ @java.lang.Override public long getEndSeqNum() { return endSeqNum_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getStartSeqNum() != other.getStartSeqNum()) return false; if (getEndSeqNum() != other.getEndSeqNum()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); startSeqNum_ = 0L; endSeqNum_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemoteStateRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { startSeqNum_ = input.readUInt64(); break; } // case 8 case 16: { endSeqNum_ = input.readUInt64(); break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long startSeqNum_ ; /** * uint64 start_seq_num = 1; * @return The startSeqNum. */ @java.lang.Override public long getStartSeqNum() { return startSeqNum_; } /** * uint64 start_seq_num = 1; * @param value The startSeqNum to set. * @return This builder for chaining. */ public Builder setStartSeqNum(long value) { startSeqNum_ = value; onChanged(); return this; } /** * uint64 start_seq_num = 1; * @return This builder for chaining. */ public Builder clearStartSeqNum() { startSeqNum_ = 0L; onChanged(); return this; } private long endSeqNum_ ; /** * uint64 end_seq_num = 2; * @return The endSeqNum. */ @java.lang.Override public long getEndSeqNum() { return endSeqNum_; } /** * uint64 end_seq_num = 2; * @param value The endSeqNum to set. * @return This builder for chaining. */ public Builder setEndSeqNum(long value) { endSeqNum_ = value; onChanged(); return this; } /** * uint64 end_seq_num = 2; * @return This builder for chaining. */ public Builder clearEndSeqNum() { endSeqNum_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public RemoteStateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoteStateResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getPayloadsList() { return payloads_; } /** * repeated .gossip.Payload payloads = 1; */ @java.lang.Override public java.util.List getPayloadsOrBuilderList() { return payloads_; } /** * repeated .gossip.Payload payloads = 1; */ @java.lang.Override public int getPayloadsCount() { return payloads_.size(); } /** * repeated .gossip.Payload payloads = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Payload getPayloads(int index) { return payloads_.get(index); } /** * repeated .gossip.Payload payloads = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PayloadOrBuilder getPayloadsOrBuilder( int index) { return payloads_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getPayloadsList() .equals(other.getPayloadsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPayloadsCount() > 0) { hash = (37 * hash) + PAYLOADS_FIELD_NUMBER; hash = (53 * hash) + getPayloadsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (payloadsBuilder_ == null) { payloads_ = java.util.Collections.emptyList(); } else { payloads_ = null; payloadsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemoteStateResponse_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemoteStateResponse.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { payloads_ = java.util.Collections.unmodifiableList(payloads_); bitField0_ = (bitField0_ & ~0x00000001); } result.payloads_ = payloads_; } else { result.payloads_ = payloadsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.gossip.Message.Payload m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.Payload.parser(), extensionRegistry); if (payloadsBuilder_ == null) { ensurePayloadsIsMutable(); payloads_.add(m); } else { payloadsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List payloads_ = java.util.Collections.emptyList(); private void ensurePayloadsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); payloads_ = null; } return payloadsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public RemoteStateResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemotePvtDataRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getDigestsList() { return digests_; } /** * repeated .gossip.PvtDataDigest digests = 1; */ @java.lang.Override public java.util.List getDigestsOrBuilderList() { return digests_; } /** * repeated .gossip.PvtDataDigest digests = 1; */ @java.lang.Override public int getDigestsCount() { return digests_.size(); } /** * repeated .gossip.PvtDataDigest digests = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigests(int index) { return digests_.get(index); } /** * repeated .gossip.PvtDataDigest digests = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestsOrBuilder( int index) { return digests_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getDigestsList() .equals(other.getDigestsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDigestsCount() > 0) { hash = (37 * hash) + DIGESTS_FIELD_NUMBER; hash = (53 * hash) + getDigestsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (digestsBuilder_ == null) { digests_ = java.util.Collections.emptyList(); } else { digests_ = null; digestsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { digests_ = java.util.Collections.unmodifiableList(digests_); bitField0_ = (bitField0_ & ~0x00000001); } result.digests_ = digests_; } else { result.digests_ = digestsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.parser(), extensionRegistry); if (digestsBuilder_ == null) { ensureDigestsIsMutable(); digests_.add(m); } else { digestsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List digests_ = java.util.Collections.emptyList(); private void ensureDigestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); digests_ = null; } return digestsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public RemotePvtDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string tx_id = 1; * @return The txId. */ java.lang.String getTxId(); /** * string tx_id = 1; * @return The bytes for txId. */ com.google.protobuf.ByteString getTxIdBytes(); /** * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * string collection = 3; * @return The collection. */ java.lang.String getCollection(); /** * string collection = 3; * @return The bytes for collection. */ com.google.protobuf.ByteString getCollectionBytes(); /** * uint64 block_seq = 4; * @return The blockSeq. */ long getBlockSeq(); /** * uint64 seq_in_block = 5; * @return The seqInBlock. */ 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 { private static final long serialVersionUID = 0L; // Use PvtDataDigest.newBuilder() to construct. private PvtDataDigest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PvtDataDigest() { txId_ = ""; namespace_ = ""; collection_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PvtDataDigest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_descriptor; } @java.lang.Override 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_; /** * string tx_id = 1; * @return The txId. */ @java.lang.Override 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; } } /** * string tx_id = 1; * @return The bytes for txId. */ @java.lang.Override 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_; /** * string namespace = 2; * @return The namespace. */ @java.lang.Override 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; } } /** * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override 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_; /** * string collection = 3; * @return The collection. */ @java.lang.Override 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; } } /** * string collection = 3; * @return The bytes for collection. */ @java.lang.Override 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_; /** * uint64 block_seq = 4; * @return The blockSeq. */ @java.lang.Override public long getBlockSeq() { return blockSeq_; } public static final int SEQ_IN_BLOCK_FIELD_NUMBER = 5; private long seqInBlock_; /** * uint64 seq_in_block = 5; * @return The seqInBlock. */ @java.lang.Override public long getSeqInBlock() { return seqInBlock_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, txId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collection_); } if (blockSeq_ != 0L) { output.writeUInt64(4, blockSeq_); } if (seqInBlock_ != 0L) { output.writeUInt64(5, seqInBlock_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(txId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, txId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collection_)) { 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getTxId() .equals(other.getTxId())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getCollection() .equals(other.getCollection())) return false; if (getBlockSeq() != other.getBlockSeq()) return false; if (getSeqInBlock() != other.getSeqInBlock()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); txId_ = ""; namespace_ = ""; collection_ = ""; blockSeq_ = 0L; seqInBlock_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataDigest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { txId_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { collection_ = input.readStringRequireUtf8(); break; } // case 26 case 32: { blockSeq_ = input.readUInt64(); break; } // case 32 case 40: { seqInBlock_ = input.readUInt64(); break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object txId_ = ""; /** * string tx_id = 1; * @return The txId. */ 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; } } /** * string tx_id = 1; * @return The bytes for txId. */ 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; } } /** * string tx_id = 1; * @param value The txId to set. * @return This builder for chaining. */ public Builder setTxId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } txId_ = value; onChanged(); return this; } /** * string tx_id = 1; * @return This builder for chaining. */ public Builder clearTxId() { txId_ = getDefaultInstance().getTxId(); onChanged(); return this; } /** * string tx_id = 1; * @param value The bytes for txId to set. * @return This builder for chaining. */ 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_ = ""; /** * string namespace = 2; * @return The namespace. */ 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; } } /** * string namespace = 2; * @return The bytes for namespace. */ 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; } } /** * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ 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_ = ""; /** * string collection = 3; * @return The collection. */ 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; } } /** * string collection = 3; * @return The bytes for collection. */ 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; } } /** * string collection = 3; * @param value The collection to set. * @return This builder for chaining. */ public Builder setCollection( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collection_ = value; onChanged(); return this; } /** * string collection = 3; * @return This builder for chaining. */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /** * string collection = 3; * @param value The bytes for collection to set. * @return This builder for chaining. */ public Builder setCollectionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collection_ = value; onChanged(); return this; } private long blockSeq_ ; /** * uint64 block_seq = 4; * @return The blockSeq. */ @java.lang.Override public long getBlockSeq() { return blockSeq_; } /** * uint64 block_seq = 4; * @param value The blockSeq to set. * @return This builder for chaining. */ public Builder setBlockSeq(long value) { blockSeq_ = value; onChanged(); return this; } /** * uint64 block_seq = 4; * @return This builder for chaining. */ public Builder clearBlockSeq() { blockSeq_ = 0L; onChanged(); return this; } private long seqInBlock_ ; /** * uint64 seq_in_block = 5; * @return The seqInBlock. */ @java.lang.Override public long getSeqInBlock() { return seqInBlock_; } /** * uint64 seq_in_block = 5; * @param value The seqInBlock to set. * @return This builder for chaining. */ public Builder setSeqInBlock(long value) { seqInBlock_ = value; onChanged(); return this; } /** * uint64 seq_in_block = 5; * @return This builder for chaining. */ public Builder clearSeqInBlock() { seqInBlock_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PvtDataDigest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemotePvtDataResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getElementsList() { return elements_; } /** * repeated .gossip.PvtDataElement elements = 1; */ @java.lang.Override public java.util.List getElementsOrBuilderList() { return elements_; } /** * repeated .gossip.PvtDataElement elements = 1; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** * repeated .gossip.PvtDataElement elements = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getElements(int index) { return elements_.get(index); } /** * repeated .gossip.PvtDataElement elements = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataElementOrBuilder getElementsOrBuilder( int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getElementsList() .equals(other.getElementsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getElementsCount() > 0) { hash = (37 * hash) + ELEMENTS_FIELD_NUMBER; hash = (53 * hash) + getElementsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (elementsBuilder_ == null) { elements_ = java.util.Collections.emptyList(); } else { elements_ = null; elementsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_RemotePvtDataResponse_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.RemotePvtDataResponse.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); bitField0_ = (bitField0_ & ~0x00000001); } result.elements_ = elements_; } else { result.elements_ = elementsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.gossip.Message.PvtDataElement m = input.readMessage( org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.parser(), extensionRegistry); if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(m); } else { elementsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List elements_ = java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public RemotePvtDataResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * .gossip.PvtDataDigest digest = 1; * @return Whether the digest field is set. */ boolean hasDigest(); /** * .gossip.PvtDataDigest digest = 1; * @return The digest. */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigest(); /** * .gossip.PvtDataDigest digest = 1; */ org.hyperledger.fabric.protos.gossip.Message.PvtDataDigestOrBuilder getDigestOrBuilder(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; * @return A list containing the payload. */ java.util.List getPayloadList(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; * @return The count of payload. */ int getPayloadCount(); /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; * @param index The index of the element to return. * @return The payload at the given index. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PvtDataElement(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_descriptor; } @java.lang.Override 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); } public static final int DIGEST_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest digest_; /** * .gossip.PvtDataDigest digest = 1; * @return Whether the digest field is set. */ @java.lang.Override public boolean hasDigest() { return digest_ != null; } /** * .gossip.PvtDataDigest digest = 1; * @return The digest. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest getDigest() { return digest_ == null ? org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.getDefaultInstance() : digest_; } /** * .gossip.PvtDataDigest digest = 1; */ @java.lang.Override 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; * @return A list containing the payload. */ @java.lang.Override public java.util.List getPayloadList() { return payload_; } /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; * @return The count of payload. */ public int getPayloadCount() { return payload_.size(); } /** *
     * the payload is a marshaled kvrwset.KVRWSet
     * 
* * repeated bytes payload = 2; * @param index The index of the element to return. * @return The payload at the given index. */ public com.google.protobuf.ByteString getPayload(int index) { return payload_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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)); } getUnknownFields().writeTo(output); } @java.lang.Override 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(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (hasDigest() != other.hasDigest()) return false; if (hasDigest()) { if (!getDigest() .equals(other.getDigest())) return false; } if (!getPayloadList() .equals(other.getPayloadList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataElement parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (digestBuilder_ == null) { digest_ = null; } else { digest_ = null; digestBuilder_ = null; } payload_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataElement_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataElement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataElement.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; if (digestBuilder_ == null) { result.digest_ = digest_; } else { result.digest_ = digestBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { payload_ = java.util.Collections.unmodifiableList(payload_); bitField0_ = (bitField0_ & ~0x00000001); } result.payload_ = payload_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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_ & ~0x00000001); } else { ensurePayloadIsMutable(); payload_.addAll(other.payload_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDigestFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { com.google.protobuf.ByteString v = input.readBytes(); ensurePayloadIsMutable(); payload_.add(v); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest digest_; 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_; /** * .gossip.PvtDataDigest digest = 1; * @return Whether the digest field is set. */ public boolean hasDigest() { return digestBuilder_ != null || digest_ != null; } /** * .gossip.PvtDataDigest digest = 1; * @return The digest. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .gossip.PvtDataDigest digest = 1; */ public Builder clearDigest() { if (digestBuilder_ == null) { digest_ = null; onChanged(); } else { digest_ = null; digestBuilder_ = null; } return this; } /** * .gossip.PvtDataDigest digest = 1; */ public org.hyperledger.fabric.protos.gossip.Message.PvtDataDigest.Builder getDigestBuilder() { onChanged(); return getDigestFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_ & 0x00000001) != 0)) { payload_ = new java.util.ArrayList(payload_); bitField0_ |= 0x00000001; } } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; * @return A list containing the payload. */ public java.util.List getPayloadList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(payload_) : payload_; } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; * @return The count of payload. */ public int getPayloadCount() { return payload_.size(); } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; * @param index The index of the element to return. * @return The payload at the given index. */ public com.google.protobuf.ByteString getPayload(int index) { return payload_.get(index); } /** *
       * the payload is a marshaled kvrwset.KVRWSet
       * 
* * repeated bytes payload = 2; * @param index The index to set the value at. * @param value The payload to set. * @return This builder for chaining. */ 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; * @param value The payload to add. * @return This builder for chaining. */ 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; * @param values The payload to add. * @return This builder for chaining. */ 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; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PvtDataElement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * uint64 tx_seq_in_block = 1; * @return The txSeqInBlock. */ long getTxSeqInBlock(); /** *
     * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
     * defined in rwset.proto
     * 
* * bytes payload = 2; * @return The payload. */ 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 { private static final long serialVersionUID = 0L; // Use PvtDataPayload.newBuilder() to construct. private PvtDataPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PvtDataPayload() { payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PvtDataPayload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_descriptor; } @java.lang.Override 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_; /** * uint64 tx_seq_in_block = 1; * @return The txSeqInBlock. */ @java.lang.Override 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
     * 
* * bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override 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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (getTxSeqInBlock() != other.getTxSeqInBlock()) return false; if (!getPayload() .equals(other.getPayload())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); txSeqInBlock_ = 0L; payload_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_PvtDataPayload_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.PvtDataPayload.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { txSeqInBlock_ = input.readUInt64(); break; } // case 8 case 18: { payload_ = input.readBytes(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private long txSeqInBlock_ ; /** * uint64 tx_seq_in_block = 1; * @return The txSeqInBlock. */ @java.lang.Override public long getTxSeqInBlock() { return txSeqInBlock_; } /** * uint64 tx_seq_in_block = 1; * @param value The txSeqInBlock to set. * @return This builder for chaining. */ public Builder setTxSeqInBlock(long value) { txSeqInBlock_ = value; onChanged(); return this; } /** * uint64 tx_seq_in_block = 1; * @return This builder for chaining. */ 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
       * 
* * bytes payload = 2; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
       * Encodes marhslaed bytes of rwset.TxPvtReadWriteSet
       * defined in rwset.proto
       * 
* * bytes payload = 2; * @param value The payload to set. * @return This builder for chaining. */ 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
       * 
* * bytes payload = 2; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public PvtDataPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string error = 1; * @return The error. */ java.lang.String getError(); /** * string error = 1; * @return The bytes for error. */ 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 { private static final long serialVersionUID = 0L; // Use Acknowledgement.newBuilder() to construct. private Acknowledgement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Acknowledgement() { error_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Acknowledgement(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_descriptor; } @java.lang.Override 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_; /** * string error = 1; * @return The error. */ @java.lang.Override 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; } } /** * string error = 1; * @return The bytes for error. */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getError() .equals(other.getError())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Acknowledgement parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Acknowledgement_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Acknowledgement getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Acknowledgement.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { error_ = input.readStringRequireUtf8(); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object error_ = ""; /** * string error = 1; * @return The error. */ 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; } } /** * string error = 1; * @return The bytes for error. */ 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; } } /** * string error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; * @return This builder for chaining. */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; * @param value The bytes for error to set. * @return This builder for chaining. */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Acknowledgement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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 { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string version = 2; * @return The version. */ java.lang.String getVersion(); /** * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** * bytes metadata = 3; * @return The metadata. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Chaincode(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_descriptor; } @java.lang.Override 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_; /** * string name = 1; * @return The name. */ @java.lang.Override 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; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override 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_; /** * string version = 2; * @return The version. */ @java.lang.Override 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; } } /** * string version = 2; * @return The bytes for version. */ @java.lang.Override 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_; /** * bytes metadata = 3; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } if (!metadata_.isEmpty()) { output.writeBytes(3, metadata_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @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; if (!getName() .equals(other.getName())) return false; if (!getVersion() .equals(other.getVersion())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.Message.Chaincode parseFrom( java.nio.ByteBuffer 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( 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); } @java.lang.Override 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); } @java.lang.Override 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; version_ = ""; metadata_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.Message.internal_static_gossip_Chaincode_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.Message.Chaincode getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.Message.Chaincode.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override 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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { version_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { metadata_ = input.readBytes(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ 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; } } /** * string name = 1; * @return The bytes for name. */ 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; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ 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_ = ""; /** * string version = 2; * @return The version. */ 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; } } /** * string version = 2; * @return The bytes for version. */ 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; } } /** * string version = 2; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * string version = 2; * @param value The bytes for version to set. * @return This builder for chaining. */ 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; /** * bytes metadata = 3; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 3; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 3; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@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() { @java.lang.Override public Chaincode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override 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\025peer/col" + "lection.proto\"_\n\010Envelope\022\017\n\007payload\030\001 \001" + "(\014\022\021\n\tsignature\030\002 \001(\014\022/\n\017secret_envelope" + "\030\003 \001(\0132\026.gossip.SecretEnvelope\"4\n\016Secret" + "Envelope\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(\t" + "H\000B\t\n\007content\"\215\t\n\rGossipMessage\022\r\n\005nonce" + "\030\001 \001(\004\022\017\n\007channel\030\002 \001(\014\022&\n\003tag\030\003 \001(\0162\031.g" + "ossip.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\007mem_" + "res\030\007 \001(\0132\032.gossip.MembershipResponseH\000\022" + "\'\n\010data_msg\030\010 \001(\0132\023.gossip.DataMessageH\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.DataUpdate" + "H\000\022\036\n\005empty\030\r \001(\0132\r.gossip.EmptyH\000\022%\n\004co" + "nn\030\016 \001(\0132\025.gossip.ConnEstablishH\000\022\'\n\nsta" + "te_info\030\017 \001(\0132\021.gossip.StateInfoH\000\0223\n\016st" + "ate_snapshot\030\020 \001(\0132\031.gossip.StateInfoSna" + "pshotH\000\022;\n\023state_info_pull_req\030\021 \001(\0132\034.g" + "ossip.StateInfoPullRequestH\000\0223\n\rstate_re" + "quest\030\022 \001(\0132\032.gossip.RemoteStateRequestH" + "\000\0225\n\016state_response\030\023 \001(\0132\033.gossip.Remot" + "eStateResponseH\000\0223\n\016leadership_msg\030\024 \001(\013" + "2\031.gossip.LeadershipMessageH\000\022-\n\rpeer_id" + "entity\030\025 \001(\0132\024.gossip.PeerIdentityH\000\022&\n\003" + "ack\030\026 \001(\0132\027.gossip.AcknowledgementH\000\0222\n\n" + "privateReq\030\027 \001(\0132\034.gossip.RemotePvtDataR" + "equestH\000\0223\n\nprivateRes\030\030 \001(\0132\035.gossip.Re" + "motePvtDataResponseH\000\0222\n\014private_data\030\031 " + "\001(\0132\032.gossip.PrivateDataMessageH\000\"_\n\003Tag" + "\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\013CHA" + "N_OR_ORG\020\005B\t\n\007content\"}\n\tStateInfo\022#\n\tti" + "mestamp\030\002 \001(\0132\020.gossip.PeerTime\022\016\n\006pki_i" + "d\030\003 \001(\014\022\023\n\013channel_MAC\030\004 \001(\014\022&\n\nproperti" + "es\030\005 \001(\0132\022.gossip.Properties\"`\n\nProperti" + "es\022\025\n\rledger_height\030\001 \001(\004\022\024\n\014left_channe" + "l\030\002 \001(\010\022%\n\nchaincodes\030\003 \003(\0132\021.gossip.Cha" + "incode\"7\n\021StateInfoSnapshot\022\"\n\010elements\030" + "\001 \003(\0132\020.gossip.Envelope\"+\n\024StateInfoPull" + "Request\022\023\n\013channel_MAC\030\001 \001(\014\"H\n\rConnEsta" + "blish\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\010metadata" + "\030\003 \001(\014\"T\n\013DataRequest\022\r\n\005nonce\030\001 \001(\004\022\017\n\007" + "digests\030\002 \003(\014\022%\n\010msg_type\030\003 \001(\0162\023.gossip" + ".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(\0162\023" + ".gossip.PullMsgType\"b\n\nDataUpdate\022\r\n\005non" + "ce\030\001 \001(\004\022\036\n\004data\030\002 \003(\0132\020.gossip.Envelope" + "\022%\n\010msg_type\030\003 \001(\0162\023.gossip.PullMsgType\"" + "S\n\nDataDigest\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.gossip.PullMsg" + "Type\"/\n\013DataMessage\022 \n\007payload\030\001 \001(\0132\017.g" + "ossip.Payload\"=\n\022PrivateDataMessage\022\'\n\007p" + "ayload\030\001 \001(\0132\026.gossip.PrivatePayload\">\n\007" + "Payload\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\016PrivatePayload\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\022collect" + "ion_configs\030\006 \001(\0132\037.protos.CollectionCon" + "figPackage\"i\n\014AliveMessage\022\"\n\nmembership" + "\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\tti" + "mestamp\030\002 \001(\0132\020.gossip.PeerTime\022\026\n\016is_de" + "claration\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\021MembershipReque" + "st\022*\n\020self_information\030\001 \001(\0132\020.gossip.En" + "velope\022\r\n\005known\030\002 \003(\014\"U\n\022MembershipRespo" + "nse\022\037\n\005alive\030\001 \003(\0132\020.gossip.Envelope\022\036\n\004" + "dead\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\006pk" + "i_id\030\003 \001(\014\"\007\n\005Empty\"@\n\022RemoteStateReques" + "t\022\025\n\rstart_seq_num\030\001 \001(\004\022\023\n\013end_seq_num\030" + "\002 \001(\004\"8\n\023RemoteStateResponse\022!\n\010payloads" + "\030\001 \003(\0132\017.gossip.Payload\">\n\024RemotePvtData" + "Request\022&\n\007digests\030\001 \003(\0132\025.gossip.PvtDat" + "aDigest\"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\016PvtDataEle" + "ment\022%\n\006digest\030\001 \001(\0132\025.gossip.PvtDataDig" + "est\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\tCh" + "aincode\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\tUNDEF" + "INED\020\000\022\r\n\tBLOCK_MSG\020\001\022\020\n\014IDENTITY_MSG\020\0022" + "f\n\006Gossip\0226\n\014GossipStream\022\020.gossip.Envel" + "ope\032\020.gossip.Envelope(\0010\001\022$\n\004Ping\022\r.goss" + "ip.Empty\032\r.gossip.EmptyBV\n$org.hyperledg" + "er.fabric.protos.gossipZ.github.com/hype" + "rledger/fabric-protos-go/gossipb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.peer.Collection.getDescriptor(), }); 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.peer.Collection.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy