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

org.hyperledger.fabric.protos.discovery.Protocol 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: discovery/protocol.proto

package org.hyperledger.fabric.protos.discovery;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface SignedRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:discovery.SignedRequest)
      com.google.protobuf.MessageOrBuilder {

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

    /**
     * optional bytes signature = 2;
     */
    com.google.protobuf.ByteString getSignature();
  }
  /**
   * 
   * SignedRequest contains a serialized Request in the payload field
   * and a signature.
   * The identity that is used to verify the signature
   * can be extracted from the authentication field of type AuthInfo
   * in the Request itself after deserializing it.
   * 
* * Protobuf type {@code discovery.SignedRequest} */ public static final class SignedRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.SignedRequest) SignedRequestOrBuilder { // Use SignedRequest.newBuilder() to construct. private SignedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignedRequest() { payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignedRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { payload_ = input.readBytes(); break; } case 18: { signature_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.class, org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest other = (org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest) obj; boolean result = true; result = result && getPayload() .equals(other.getPayload()); result = result && getSignature() .equals(other.getSignature()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest 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.discovery.Protocol.SignedRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest 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.discovery.Protocol.SignedRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest 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.discovery.Protocol.SignedRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * SignedRequest contains a serialized Request in the payload field
     * and a signature.
     * The identity that is used to verify the signature
     * can be extracted from the authentication field of type AuthInfo
     * in the Request itself after deserializing it.
     * 
* * Protobuf type {@code discovery.SignedRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.SignedRequest) org.hyperledger.fabric.protos.discovery.Protocol.SignedRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.class, org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest build() { org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest result = new org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest(this); result.payload_ = payload_; result.signature_ = signature_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.getDefaultInstance()) return this; if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes payload = 1; */ public com.google.protobuf.ByteString getPayload() { return payload_; } /** * optional bytes payload = 1; */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * optional bytes payload = 1; */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes signature = 2; */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** * optional bytes signature = 2; */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * optional bytes signature = 2; */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.SignedRequest) } // @@protoc_insertion_point(class_scope:discovery.SignedRequest) private static final org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest(); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SignedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SignedRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Request) com.google.protobuf.MessageOrBuilder { /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ boolean hasAuthentication(); /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getAuthentication(); /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder getAuthenticationOrBuilder(); /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ java.util.List getQueriesList(); /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.Query getQueries(int index); /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ int getQueriesCount(); /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ java.util.List getQueriesOrBuilderList(); /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder getQueriesOrBuilder( int index); } /** *
   * Request contains authentication info about the client that sent the request
   * and the queries it wishes to query the service
   * 
* * Protobuf type {@code discovery.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Request) RequestOrBuilder { // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { queries_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder subBuilder = null; if (authentication_ != null) { subBuilder = authentication_.toBuilder(); } authentication_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(authentication_); authentication_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { queries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } queries_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.Query.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { queries_ = java.util.Collections.unmodifiableList(queries_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Request.class, org.hyperledger.fabric.protos.discovery.Protocol.Request.Builder.class); } private int bitField0_; public static final int AUTHENTICATION_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo authentication_; /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ public boolean hasAuthentication() { return authentication_ != null; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getAuthentication() { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance() : authentication_; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * optional .discovery.AuthInfo authentication = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int QUERIES_FIELD_NUMBER = 2; private java.util.List queries_; /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ public java.util.List getQueriesList() { return queries_; } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ public java.util.List getQueriesOrBuilderList() { return queries_; } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ public int getQueriesCount() { return queries_.size(); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Query getQueries(int index) { return queries_.get(index); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder getQueriesOrBuilder( int index) { return queries_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (authentication_ != null) { output.writeMessage(1, getAuthentication()); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(2, queries_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (authentication_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAuthentication()); } for (int i = 0; i < queries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, queries_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Request)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Request other = (org.hyperledger.fabric.protos.discovery.Protocol.Request) obj; boolean result = true; result = result && (hasAuthentication() == other.hasAuthentication()); if (hasAuthentication()) { result = result && getAuthentication() .equals(other.getAuthentication()); } result = result && getQueriesList() .equals(other.getQueriesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasAuthentication()) { hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; hash = (53 * hash) + getAuthentication().hashCode(); } if (getQueriesCount() > 0) { hash = (37 * hash) + QUERIES_FIELD_NUMBER; hash = (53 * hash) + getQueriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request 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.discovery.Protocol.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request 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.discovery.Protocol.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request 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.discovery.Protocol.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Request contains authentication info about the client that sent the request
     * and the queries it wishes to query the service
     * 
* * Protobuf type {@code discovery.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Request) org.hyperledger.fabric.protos.discovery.Protocol.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Request.class, org.hyperledger.fabric.protos.discovery.Protocol.Request.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQueriesFieldBuilder(); } } public Builder clear() { super.clear(); if (authenticationBuilder_ == null) { authentication_ = null; } else { authentication_ = null; authenticationBuilder_ = null; } if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { queriesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Request getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Request.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Request build() { org.hyperledger.fabric.protos.discovery.Protocol.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Request buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Request result = new org.hyperledger.fabric.protos.discovery.Protocol.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (authenticationBuilder_ == null) { result.authentication_ = authentication_; } else { result.authentication_ = authenticationBuilder_.build(); } if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000002); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Request) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Request other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Request.getDefaultInstance()) return this; if (other.hasAuthentication()) { mergeAuthentication(other.getAuthentication()); } if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000002); queriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueriesFieldBuilder() : null; } else { queriesBuilder_.addAllMessages(other.queries_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo authentication_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder> authenticationBuilder_; /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getAuthentication() { if (authenticationBuilder_ == null) { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public Builder setAuthentication(org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } authentication_ = value; onChanged(); } else { authenticationBuilder_.setMessage(value); } return this; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public Builder setAuthentication( org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); } else { authenticationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public Builder mergeAuthentication(org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } onChanged(); } else { authenticationBuilder_.mergeFrom(value); } return this; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { authentication_ = null; onChanged(); } else { authentication_ = null; authenticationBuilder_ = null; } return this; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder getAuthenticationBuilder() { onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance() : authentication_; } } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * optional .discovery.AuthInfo authentication = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder>( getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; } private java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Query, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder> queriesBuilder_; /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public java.util.List getQueriesList() { if (queriesBuilder_ == null) { return java.util.Collections.unmodifiableList(queries_); } else { return queriesBuilder_.getMessageList(); } } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public int getQueriesCount() { if (queriesBuilder_ == null) { return queries_.size(); } else { return queriesBuilder_.getCount(); } } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Query getQueries(int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessage(index); } } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder setQueries( int index, org.hyperledger.fabric.protos.discovery.Protocol.Query value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.set(index, value); onChanged(); } else { queriesBuilder_.setMessage(index, value); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder setQueries( int index, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.set(index, builderForValue.build()); onChanged(); } else { queriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder addQueries(org.hyperledger.fabric.protos.discovery.Protocol.Query value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.add(value); onChanged(); } else { queriesBuilder_.addMessage(value); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder addQueries( int index, org.hyperledger.fabric.protos.discovery.Protocol.Query value) { if (queriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueriesIsMutable(); queries_.add(index, value); onChanged(); } else { queriesBuilder_.addMessage(index, value); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder addQueries( org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.add(builderForValue.build()); onChanged(); } else { queriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder addQueries( int index, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder builderForValue) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.add(index, builderForValue.build()); onChanged(); } else { queriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder addAllQueries( java.lang.Iterable values) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, queries_); onChanged(); } else { queriesBuilder_.addAllMessages(values); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { queriesBuilder_.clear(); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public Builder removeQueries(int index) { if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.remove(index); onChanged(); } else { queriesBuilder_.remove(index); } return this; } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder getQueriesBuilder( int index) { return getQueriesFieldBuilder().getBuilder(index); } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder getQueriesOrBuilder( int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessageOrBuilder(index); } } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public java.util.List getQueriesOrBuilderList() { if (queriesBuilder_ != null) { return queriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queries_); } } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder addQueriesBuilder() { return getQueriesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.Query.getDefaultInstance()); } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder addQueriesBuilder( int index) { return getQueriesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.Query.getDefaultInstance()); } /** *
       * queries
       * 
* * repeated .discovery.Query queries = 2; */ public java.util.List getQueriesBuilderList() { return getQueriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Query, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder> getQueriesFieldBuilder() { if (queriesBuilder_ == null) { queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Query, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder>( queries_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Request) } // @@protoc_insertion_point(class_scope:discovery.Request) private static final org.hyperledger.fabric.protos.discovery.Protocol.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Request(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Response) com.google.protobuf.MessageOrBuilder { /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ java.util.List getResultsList(); /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getResults(int index); /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ int getResultsCount(); /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ java.util.List getResultsOrBuilderList(); /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder getResultsOrBuilder( int index); } /** * Protobuf type {@code discovery.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Response) ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { results_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } results_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Response.class, org.hyperledger.fabric.protos.discovery.Protocol.Response.Builder.class); } public static final int RESULTS_FIELD_NUMBER = 1; private java.util.List results_; /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ public java.util.List getResultsList() { return results_; } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ public java.util.List getResultsOrBuilderList() { return results_; } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ public int getResultsCount() { return results_.size(); } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getResults(int index) { return results_.get(index); } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Response)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Response other = (org.hyperledger.fabric.protos.discovery.Protocol.Response) obj; boolean result = true; result = result && getResultsList() .equals(other.getResultsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response 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.discovery.Protocol.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response 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.discovery.Protocol.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response 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.discovery.Protocol.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code discovery.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Response) org.hyperledger.fabric.protos.discovery.Protocol.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Response.class, org.hyperledger.fabric.protos.discovery.Protocol.Response.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResultsFieldBuilder(); } } public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Response getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Response.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Response build() { org.hyperledger.fabric.protos.discovery.Protocol.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Response buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Response result = new org.hyperledger.fabric.protos.discovery.Protocol.Response(this); int from_bitField0_ = bitField0_; if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Response) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Response other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Response.getDefaultInstance()) return this; if (resultsBuilder_ == null) { if (!other.results_.isEmpty()) { if (results_.isEmpty()) { results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultsIsMutable(); results_.addAll(other.results_); } onChanged(); } } else { if (!other.results_.isEmpty()) { if (resultsBuilder_.isEmpty()) { resultsBuilder_.dispose(); resultsBuilder_ = null; results_ = other.results_; bitField0_ = (bitField0_ & ~0x00000001); resultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResultsFieldBuilder() : null; } else { resultsBuilder_.addAllMessages(other.results_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { results_ = new java.util.ArrayList(results_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.QueryResult, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder> resultsBuilder_; /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public java.util.List getResultsList() { if (resultsBuilder_ == null) { return java.util.Collections.unmodifiableList(results_); } else { return resultsBuilder_.getMessageList(); } } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public int getResultsCount() { if (resultsBuilder_ == null) { return results_.size(); } else { return resultsBuilder_.getCount(); } } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getResults(int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessage(index); } } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder setResults( int index, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.set(index, value); onChanged(); } else { resultsBuilder_.setMessage(index, value); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder setResults( int index, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.set(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder addResults(org.hyperledger.fabric.protos.discovery.Protocol.QueryResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(value); onChanged(); } else { resultsBuilder_.addMessage(value); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder addResults( int index, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult value) { if (resultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultsIsMutable(); results_.add(index, value); onChanged(); } else { resultsBuilder_.addMessage(index, value); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder addResults( org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder addResults( int index, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder builderForValue) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(index, builderForValue.build()); onChanged(); } else { resultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder addAllResults( java.lang.Iterable values) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, results_); onChanged(); } else { resultsBuilder_.addAllMessages(values); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder clearResults() { if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultsBuilder_.clear(); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public Builder removeResults(int index) { if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.remove(index); onChanged(); } else { resultsBuilder_.remove(index); } return this; } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder getResultsBuilder( int index) { return getResultsFieldBuilder().getBuilder(index); } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder getResultsOrBuilder( int index) { if (resultsBuilder_ == null) { return results_.get(index); } else { return resultsBuilder_.getMessageOrBuilder(index); } } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public java.util.List getResultsOrBuilderList() { if (resultsBuilder_ != null) { return resultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(results_); } } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder addResultsBuilder() { return getResultsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.getDefaultInstance()); } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder addResultsBuilder( int index) { return getResultsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.getDefaultInstance()); } /** *
       * The results are returned in the same order of the queries
       * 
* * repeated .discovery.QueryResult results = 1; */ public java.util.List getResultsBuilderList() { return getResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.QueryResult, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder> getResultsFieldBuilder() { if (resultsBuilder_ == null) { resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.QueryResult, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder>( results_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Response) } // @@protoc_insertion_point(class_scope:discovery.Response) private static final org.hyperledger.fabric.protos.discovery.Protocol.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Response(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AuthInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.AuthInfo) com.google.protobuf.MessageOrBuilder { /** *
     * This is the identity of the client that is used to verify the signature
     * on the SignedRequest's payload.
     * It is a msp.SerializedIdentity in bytes form
     * 
* * optional bytes client_identity = 1; */ com.google.protobuf.ByteString getClientIdentity(); /** *
     * This is the hash of the client's TLS cert.
     * When the network is running with TLS, clients that don't include a certificate
     * will be denied access to the service.
     * Since the Request is encapsulated with a SignedRequest (which is signed),
     * this binds the TLS session to the enrollement identity of the client and
     * therefore both authenticates the client to the server,
     * and also prevents the server from relaying the request message to another server.
     * 
* * optional bytes client_tls_cert_hash = 2; */ com.google.protobuf.ByteString getClientTlsCertHash(); } /** *
   * AuthInfo aggregates authentication information that the server uses
   * to authenticate the client
   * 
* * Protobuf type {@code discovery.AuthInfo} */ public static final class AuthInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.AuthInfo) AuthInfoOrBuilder { // Use AuthInfo.newBuilder() to construct. private AuthInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthInfo() { clientIdentity_ = com.google.protobuf.ByteString.EMPTY; clientTlsCertHash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AuthInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { clientIdentity_ = input.readBytes(); break; } case 18: { clientTlsCertHash_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.class, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder.class); } public static final int CLIENT_IDENTITY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString clientIdentity_; /** *
     * This is the identity of the client that is used to verify the signature
     * on the SignedRequest's payload.
     * It is a msp.SerializedIdentity in bytes form
     * 
* * optional bytes client_identity = 1; */ public com.google.protobuf.ByteString getClientIdentity() { return clientIdentity_; } public static final int CLIENT_TLS_CERT_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString clientTlsCertHash_; /** *
     * This is the hash of the client's TLS cert.
     * When the network is running with TLS, clients that don't include a certificate
     * will be denied access to the service.
     * Since the Request is encapsulated with a SignedRequest (which is signed),
     * this binds the TLS session to the enrollement identity of the client and
     * therefore both authenticates the client to the server,
     * and also prevents the server from relaying the request message to another server.
     * 
* * optional bytes client_tls_cert_hash = 2; */ public com.google.protobuf.ByteString getClientTlsCertHash() { return clientTlsCertHash_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!clientIdentity_.isEmpty()) { output.writeBytes(1, clientIdentity_); } if (!clientTlsCertHash_.isEmpty()) { output.writeBytes(2, clientTlsCertHash_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!clientIdentity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, clientIdentity_); } if (!clientTlsCertHash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, clientTlsCertHash_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo other = (org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo) obj; boolean result = true; result = result && getClientIdentity() .equals(other.getClientIdentity()); result = result && getClientTlsCertHash() .equals(other.getClientTlsCertHash()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CLIENT_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getClientIdentity().hashCode(); hash = (37 * hash) + CLIENT_TLS_CERT_HASH_FIELD_NUMBER; hash = (53 * hash) + getClientTlsCertHash().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo 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.discovery.Protocol.AuthInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo 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.discovery.Protocol.AuthInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo 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.discovery.Protocol.AuthInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * AuthInfo aggregates authentication information that the server uses
     * to authenticate the client
     * 
* * Protobuf type {@code discovery.AuthInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.AuthInfo) org.hyperledger.fabric.protos.discovery.Protocol.AuthInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.class, org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clientIdentity_ = com.google.protobuf.ByteString.EMPTY; clientTlsCertHash_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo build() { org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo result = new org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo(this); result.clientIdentity_ = clientIdentity_; result.clientTlsCertHash_ = clientTlsCertHash_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance()) return this; if (other.getClientIdentity() != com.google.protobuf.ByteString.EMPTY) { setClientIdentity(other.getClientIdentity()); } if (other.getClientTlsCertHash() != com.google.protobuf.ByteString.EMPTY) { setClientTlsCertHash(other.getClientTlsCertHash()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString clientIdentity_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the identity of the client that is used to verify the signature
       * on the SignedRequest's payload.
       * It is a msp.SerializedIdentity in bytes form
       * 
* * optional bytes client_identity = 1; */ public com.google.protobuf.ByteString getClientIdentity() { return clientIdentity_; } /** *
       * This is the identity of the client that is used to verify the signature
       * on the SignedRequest's payload.
       * It is a msp.SerializedIdentity in bytes form
       * 
* * optional bytes client_identity = 1; */ public Builder setClientIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } clientIdentity_ = value; onChanged(); return this; } /** *
       * This is the identity of the client that is used to verify the signature
       * on the SignedRequest's payload.
       * It is a msp.SerializedIdentity in bytes form
       * 
* * optional bytes client_identity = 1; */ public Builder clearClientIdentity() { clientIdentity_ = getDefaultInstance().getClientIdentity(); onChanged(); return this; } private com.google.protobuf.ByteString clientTlsCertHash_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the hash of the client's TLS cert.
       * When the network is running with TLS, clients that don't include a certificate
       * will be denied access to the service.
       * Since the Request is encapsulated with a SignedRequest (which is signed),
       * this binds the TLS session to the enrollement identity of the client and
       * therefore both authenticates the client to the server,
       * and also prevents the server from relaying the request message to another server.
       * 
* * optional bytes client_tls_cert_hash = 2; */ public com.google.protobuf.ByteString getClientTlsCertHash() { return clientTlsCertHash_; } /** *
       * This is the hash of the client's TLS cert.
       * When the network is running with TLS, clients that don't include a certificate
       * will be denied access to the service.
       * Since the Request is encapsulated with a SignedRequest (which is signed),
       * this binds the TLS session to the enrollement identity of the client and
       * therefore both authenticates the client to the server,
       * and also prevents the server from relaying the request message to another server.
       * 
* * optional bytes client_tls_cert_hash = 2; */ public Builder setClientTlsCertHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } clientTlsCertHash_ = value; onChanged(); return this; } /** *
       * This is the hash of the client's TLS cert.
       * When the network is running with TLS, clients that don't include a certificate
       * will be denied access to the service.
       * Since the Request is encapsulated with a SignedRequest (which is signed),
       * this binds the TLS session to the enrollement identity of the client and
       * therefore both authenticates the client to the server,
       * and also prevents the server from relaying the request message to another server.
       * 
* * optional bytes client_tls_cert_hash = 2; */ public Builder clearClientTlsCertHash() { clientTlsCertHash_ = getDefaultInstance().getClientTlsCertHash(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.AuthInfo) } // @@protoc_insertion_point(class_scope:discovery.AuthInfo) private static final org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo(); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Query) com.google.protobuf.MessageOrBuilder { /** * optional string channel = 1; */ java.lang.String getChannel(); /** * optional string channel = 1; */ com.google.protobuf.ByteString getChannelBytes(); /** *
     * ConfigQuery is used to query for the configuration of the channel,
     * such as FabricMSPConfig, and rorderer endpoints.
     * The client has to query a peer it trusts as it doesn't have means to self-verify
     * the authenticity of the returned result.
     * The result is returned in the form of ConfigResult.
     * 
* * optional .discovery.ConfigQuery config_query = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getConfigQuery(); /** *
     * ConfigQuery is used to query for the configuration of the channel,
     * such as FabricMSPConfig, and rorderer endpoints.
     * The client has to query a peer it trusts as it doesn't have means to self-verify
     * the authenticity of the returned result.
     * The result is returned in the form of ConfigResult.
     * 
* * optional .discovery.ConfigQuery config_query = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder getConfigQueryOrBuilder(); /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getPeerQuery(); /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder getPeerQueryOrBuilder(); /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getCcQuery(); /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder getCcQueryOrBuilder(); /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getLocalPeers(); /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder getLocalPeersOrBuilder(); public org.hyperledger.fabric.protos.discovery.Protocol.Query.QueryCase getQueryCase(); } /** *
   * Query asks for information in the context of a specific channel
   * 
* * Protobuf type {@code discovery.Query} */ public static final class Query extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Query) QueryOrBuilder { // Use Query.newBuilder() to construct. private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Query() { channel_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Query( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); channel_ = s; break; } case 18: { org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder subBuilder = null; if (queryCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_).toBuilder(); } query_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 2; break; } case 26: { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder subBuilder = null; if (queryCase_ == 3) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_).toBuilder(); } query_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 3; break; } case 34: { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder subBuilder = null; if (queryCase_ == 4) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_).toBuilder(); } query_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 4; break; } case 42: { org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder subBuilder = null; if (queryCase_ == 5) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_).toBuilder(); } query_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_); query_ = subBuilder.buildPartial(); } queryCase_ = 5; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Query.class, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder.class); } private int queryCase_ = 0; private java.lang.Object query_; public enum QueryCase implements com.google.protobuf.Internal.EnumLite { CONFIG_QUERY(2), PEER_QUERY(3), CC_QUERY(4), LOCAL_PEERS(5), QUERY_NOT_SET(0); private final int value; private QueryCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static QueryCase valueOf(int value) { return forNumber(value); } public static QueryCase forNumber(int value) { switch (value) { case 2: return CONFIG_QUERY; case 3: return PEER_QUERY; case 4: return CC_QUERY; case 5: return LOCAL_PEERS; case 0: return QUERY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public QueryCase getQueryCase() { return QueryCase.forNumber( queryCase_); } public static final int CHANNEL_FIELD_NUMBER = 1; private volatile java.lang.Object channel_; /** * optional string channel = 1; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; } } /** * optional string channel = 1; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFIG_QUERY_FIELD_NUMBER = 2; /** *
     * ConfigQuery is used to query for the configuration of the channel,
     * such as FabricMSPConfig, and rorderer endpoints.
     * The client has to query a peer it trusts as it doesn't have means to self-verify
     * the authenticity of the returned result.
     * The result is returned in the form of ConfigResult.
     * 
* * optional .discovery.ConfigQuery config_query = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getConfigQuery() { if (queryCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } /** *
     * ConfigQuery is used to query for the configuration of the channel,
     * such as FabricMSPConfig, and rorderer endpoints.
     * The client has to query a peer it trusts as it doesn't have means to self-verify
     * the authenticity of the returned result.
     * The result is returned in the form of ConfigResult.
     * 
* * optional .discovery.ConfigQuery config_query = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder getConfigQueryOrBuilder() { if (queryCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } public static final int PEER_QUERY_FIELD_NUMBER = 3; /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getPeerQuery() { if (queryCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder getPeerQueryOrBuilder() { if (queryCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } public static final int CC_QUERY_FIELD_NUMBER = 4; /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getCcQuery() { if (queryCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder getCcQueryOrBuilder() { if (queryCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } public static final int LOCAL_PEERS_FIELD_NUMBER = 5; /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getLocalPeers() { if (queryCase_ == 5) { return (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder getLocalPeersOrBuilder() { if (queryCase_ == 5) { return (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChannelBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_); } if (queryCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_); } if (queryCase_ == 3) { output.writeMessage(3, (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_); } if (queryCase_ == 4) { output.writeMessage(4, (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_); } if (queryCase_ == 5) { output.writeMessage(5, (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChannelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_); } if (queryCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_); } if (queryCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_); } if (queryCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_); } if (queryCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Query)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Query other = (org.hyperledger.fabric.protos.discovery.Protocol.Query) obj; boolean result = true; result = result && getChannel() .equals(other.getChannel()); result = result && getQueryCase().equals( other.getQueryCase()); if (!result) return false; switch (queryCase_) { case 2: result = result && getConfigQuery() .equals(other.getConfigQuery()); break; case 3: result = result && getPeerQuery() .equals(other.getPeerQuery()); break; case 4: result = result && getCcQuery() .equals(other.getCcQuery()); break; case 5: result = result && getLocalPeers() .equals(other.getLocalPeers()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); switch (queryCase_) { case 2: hash = (37 * hash) + CONFIG_QUERY_FIELD_NUMBER; hash = (53 * hash) + getConfigQuery().hashCode(); break; case 3: hash = (37 * hash) + PEER_QUERY_FIELD_NUMBER; hash = (53 * hash) + getPeerQuery().hashCode(); break; case 4: hash = (37 * hash) + CC_QUERY_FIELD_NUMBER; hash = (53 * hash) + getCcQuery().hashCode(); break; case 5: hash = (37 * hash) + LOCAL_PEERS_FIELD_NUMBER; hash = (53 * hash) + getLocalPeers().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query 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.discovery.Protocol.Query parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query 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.discovery.Protocol.Query parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query 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.discovery.Protocol.Query parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Query prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Query asks for information in the context of a specific channel
     * 
* * Protobuf type {@code discovery.Query} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Query) org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Query.class, org.hyperledger.fabric.protos.discovery.Protocol.Query.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Query.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); channel_ = ""; queryCase_ = 0; query_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Query getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Query.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Query build() { org.hyperledger.fabric.protos.discovery.Protocol.Query result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Query buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Query result = new org.hyperledger.fabric.protos.discovery.Protocol.Query(this); result.channel_ = channel_; if (queryCase_ == 2) { if (configQueryBuilder_ == null) { result.query_ = query_; } else { result.query_ = configQueryBuilder_.build(); } } if (queryCase_ == 3) { if (peerQueryBuilder_ == null) { result.query_ = query_; } else { result.query_ = peerQueryBuilder_.build(); } } if (queryCase_ == 4) { if (ccQueryBuilder_ == null) { result.query_ = query_; } else { result.query_ = ccQueryBuilder_.build(); } } if (queryCase_ == 5) { if (localPeersBuilder_ == null) { result.query_ = query_; } else { result.query_ = localPeersBuilder_.build(); } } result.queryCase_ = queryCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Query) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Query)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Query other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Query.getDefaultInstance()) return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); } switch (other.getQueryCase()) { case CONFIG_QUERY: { mergeConfigQuery(other.getConfigQuery()); break; } case PEER_QUERY: { mergePeerQuery(other.getPeerQuery()); break; } case CC_QUERY: { mergeCcQuery(other.getCcQuery()); break; } case LOCAL_PEERS: { mergeLocalPeers(other.getLocalPeers()); break; } case QUERY_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Query parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Query) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int queryCase_ = 0; private java.lang.Object query_; public QueryCase getQueryCase() { return QueryCase.forNumber( queryCase_); } public Builder clearQuery() { queryCase_ = 0; query_ = null; onChanged(); return this; } private java.lang.Object channel_ = ""; /** * optional string channel = 1; */ public java.lang.String getChannel() { java.lang.Object ref = channel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channel_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string channel = 1; */ public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string channel = 1; */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** * optional string channel = 1; */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** * optional string channel = 1; */ public Builder setChannelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channel_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder> configQueryBuilder_; /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getConfigQuery() { if (configQueryBuilder_ == null) { if (queryCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } else { if (queryCase_ == 2) { return configQueryBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public Builder setConfigQuery(org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery value) { if (configQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { configQueryBuilder_.setMessage(value); } queryCase_ = 2; return this; } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public Builder setConfigQuery( org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder builderForValue) { if (configQueryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { configQueryBuilder_.setMessage(builderForValue.build()); } queryCase_ = 2; return this; } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public Builder mergeConfigQuery(org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery value) { if (configQueryBuilder_ == null) { if (queryCase_ == 2 && query_ != org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance()) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 2) { configQueryBuilder_.mergeFrom(value); } configQueryBuilder_.setMessage(value); } queryCase_ = 2; return this; } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public Builder clearConfigQuery() { if (configQueryBuilder_ == null) { if (queryCase_ == 2) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 2) { queryCase_ = 0; query_ = null; } configQueryBuilder_.clear(); } return this; } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder getConfigQueryBuilder() { return getConfigQueryFieldBuilder().getBuilder(); } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder getConfigQueryOrBuilder() { if ((queryCase_ == 2) && (configQueryBuilder_ != null)) { return configQueryBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } } /** *
       * ConfigQuery is used to query for the configuration of the channel,
       * such as FabricMSPConfig, and rorderer endpoints.
       * The client has to query a peer it trusts as it doesn't have means to self-verify
       * the authenticity of the returned result.
       * The result is returned in the form of ConfigResult.
       * 
* * optional .discovery.ConfigQuery config_query = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder> getConfigQueryFieldBuilder() { if (configQueryBuilder_ == null) { if (!(queryCase_ == 2)) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } configQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 2; onChanged();; return configQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder> peerQueryBuilder_; /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getPeerQuery() { if (peerQueryBuilder_ == null) { if (queryCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } else { if (queryCase_ == 3) { return peerQueryBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public Builder setPeerQuery(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery value) { if (peerQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { peerQueryBuilder_.setMessage(value); } queryCase_ = 3; return this; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public Builder setPeerQuery( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder builderForValue) { if (peerQueryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { peerQueryBuilder_.setMessage(builderForValue.build()); } queryCase_ = 3; return this; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public Builder mergePeerQuery(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery value) { if (peerQueryBuilder_ == null) { if (queryCase_ == 3 && query_ != org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance()) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 3) { peerQueryBuilder_.mergeFrom(value); } peerQueryBuilder_.setMessage(value); } queryCase_ = 3; return this; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public Builder clearPeerQuery() { if (peerQueryBuilder_ == null) { if (queryCase_ == 3) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 3) { queryCase_ = 0; query_ = null; } peerQueryBuilder_.clear(); } return this; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder getPeerQueryBuilder() { return getPeerQueryFieldBuilder().getBuilder(); } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder getPeerQueryOrBuilder() { if ((queryCase_ == 3) && (peerQueryBuilder_ != null)) { return peerQueryBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.PeerMembershipQuery peer_query = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder> getPeerQueryFieldBuilder() { if (peerQueryBuilder_ == null) { if (!(queryCase_ == 3)) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } peerQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 3; onChanged();; return peerQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder> ccQueryBuilder_; /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getCcQuery() { if (ccQueryBuilder_ == null) { if (queryCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } else { if (queryCase_ == 4) { return ccQueryBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public Builder setCcQuery(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery value) { if (ccQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { ccQueryBuilder_.setMessage(value); } queryCase_ = 4; return this; } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public Builder setCcQuery( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder builderForValue) { if (ccQueryBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { ccQueryBuilder_.setMessage(builderForValue.build()); } queryCase_ = 4; return this; } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public Builder mergeCcQuery(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery value) { if (ccQueryBuilder_ == null) { if (queryCase_ == 4 && query_ != org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance()) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 4) { ccQueryBuilder_.mergeFrom(value); } ccQueryBuilder_.setMessage(value); } queryCase_ = 4; return this; } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public Builder clearCcQuery() { if (ccQueryBuilder_ == null) { if (queryCase_ == 4) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 4) { queryCase_ = 0; query_ = null; } ccQueryBuilder_.clear(); } return this; } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder getCcQueryBuilder() { return getCcQueryFieldBuilder().getBuilder(); } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder getCcQueryOrBuilder() { if ((queryCase_ == 4) && (ccQueryBuilder_ != null)) { return ccQueryBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * optional .discovery.ChaincodeQuery cc_query = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder> getCcQueryFieldBuilder() { if (ccQueryBuilder_ == null) { if (!(queryCase_ == 4)) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } ccQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 4; onChanged();; return ccQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder> localPeersBuilder_; /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getLocalPeers() { if (localPeersBuilder_ == null) { if (queryCase_ == 5) { return (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } else { if (queryCase_ == 5) { return localPeersBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public Builder setLocalPeers(org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery value) { if (localPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); } else { localPeersBuilder_.setMessage(value); } queryCase_ = 5; return this; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public Builder setLocalPeers( org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder builderForValue) { if (localPeersBuilder_ == null) { query_ = builderForValue.build(); onChanged(); } else { localPeersBuilder_.setMessage(builderForValue.build()); } queryCase_ = 5; return this; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public Builder mergeLocalPeers(org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery value) { if (localPeersBuilder_ == null) { if (queryCase_ == 5 && query_ != org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance()) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_) .mergeFrom(value).buildPartial(); } else { query_ = value; } onChanged(); } else { if (queryCase_ == 5) { localPeersBuilder_.mergeFrom(value); } localPeersBuilder_.setMessage(value); } queryCase_ = 5; return this; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public Builder clearLocalPeers() { if (localPeersBuilder_ == null) { if (queryCase_ == 5) { queryCase_ = 0; query_ = null; onChanged(); } } else { if (queryCase_ == 5) { queryCase_ = 0; query_ = null; } localPeersBuilder_.clear(); } return this; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder getLocalPeersBuilder() { return getLocalPeersFieldBuilder().getBuilder(); } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder getLocalPeersOrBuilder() { if ((queryCase_ == 5) && (localPeersBuilder_ != null)) { return localPeersBuilder_.getMessageOrBuilder(); } else { if (queryCase_ == 5) { return (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_; } return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * optional .discovery.LocalPeerQuery local_peers = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder> getLocalPeersFieldBuilder() { if (localPeersBuilder_ == null) { if (!(queryCase_ == 5)) { query_ = org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } localPeersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) query_, getParentForChildren(), isClean()); query_ = null; } queryCase_ = 5; onChanged();; return localPeersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Query) } // @@protoc_insertion_point(class_scope:discovery.Query) private static final org.hyperledger.fabric.protos.discovery.Protocol.Query DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Query(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Query parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Query(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Query getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.QueryResult) com.google.protobuf.MessageOrBuilder { /** *
     * Error indicates failure or refusal to process the query
     * 
* * optional .discovery.Error error = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.Error getError(); /** *
     * Error indicates failure or refusal to process the query
     * 
* * optional .discovery.Error error = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder getErrorOrBuilder(); /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * optional .discovery.ConfigResult config_result = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getConfigResult(); /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * optional .discovery.ConfigResult config_result = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder getConfigResultOrBuilder(); /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getCcQueryRes(); /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder getCcQueryResOrBuilder(); /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * optional .discovery.PeerMembershipResult members = 4; */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getMembers(); /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * optional .discovery.PeerMembershipResult members = 4; */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder getMembersOrBuilder(); public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.ResultCase getResultCase(); } /** *
   * QueryResult contains a result for a given Query.
   * The corresponding Query can be inferred by the index of the QueryResult from
   * its enclosing Response message.
   * QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.
   * 
* * Protobuf type {@code discovery.QueryResult} */ public static final class QueryResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.QueryResult) QueryResultOrBuilder { // Use QueryResult.newBuilder() to construct. private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryResult() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private QueryResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder subBuilder = null; if (resultCase_ == 1) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.Error) result_).toBuilder(); } result_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Error) result_); result_ = subBuilder.buildPartial(); } resultCase_ = 1; break; } case 18: { org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder subBuilder = null; if (resultCase_ == 2) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_).toBuilder(); } result_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_); result_ = subBuilder.buildPartial(); } resultCase_ = 2; break; } case 26: { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder subBuilder = null; if (resultCase_ == 3) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_).toBuilder(); } result_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_); result_ = subBuilder.buildPartial(); } resultCase_ = 3; break; } case 34: { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder subBuilder = null; if (resultCase_ == 4) { subBuilder = ((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_).toBuilder(); } result_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_); result_ = subBuilder.buildPartial(); } resultCase_ = 4; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.class, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder.class); } private int resultCase_ = 0; private java.lang.Object result_; public enum ResultCase implements com.google.protobuf.Internal.EnumLite { ERROR(1), CONFIG_RESULT(2), CC_QUERY_RES(3), MEMBERS(4), RESULT_NOT_SET(0); private final int value; private ResultCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ResultCase valueOf(int value) { return forNumber(value); } public static ResultCase forNumber(int value) { switch (value) { case 1: return ERROR; case 2: return CONFIG_RESULT; case 3: return CC_QUERY_RES; case 4: return MEMBERS; case 0: return RESULT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResultCase getResultCase() { return ResultCase.forNumber( resultCase_); } public static final int ERROR_FIELD_NUMBER = 1; /** *
     * Error indicates failure or refusal to process the query
     * 
* * optional .discovery.Error error = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Error getError() { if (resultCase_ == 1) { return (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } /** *
     * Error indicates failure or refusal to process the query
     * 
* * optional .discovery.Error error = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder getErrorOrBuilder() { if (resultCase_ == 1) { return (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } public static final int CONFIG_RESULT_FIELD_NUMBER = 2; /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * optional .discovery.ConfigResult config_result = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getConfigResult() { if (resultCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * optional .discovery.ConfigResult config_result = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder getConfigResultOrBuilder() { if (resultCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } public static final int CC_QUERY_RES_FIELD_NUMBER = 3; /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getCcQueryRes() { if (resultCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder getCcQueryResOrBuilder() { if (resultCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } public static final int MEMBERS_FIELD_NUMBER = 4; /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * optional .discovery.PeerMembershipResult members = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getMembers() { if (resultCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * optional .discovery.PeerMembershipResult members = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder getMembersOrBuilder() { if (resultCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (resultCase_ == 1) { output.writeMessage(1, (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_); } if (resultCase_ == 2) { output.writeMessage(2, (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_); } if (resultCase_ == 3) { output.writeMessage(3, (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_); } if (resultCase_ == 4) { output.writeMessage(4, (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (resultCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_); } if (resultCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_); } if (resultCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_); } if (resultCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.QueryResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.QueryResult other = (org.hyperledger.fabric.protos.discovery.Protocol.QueryResult) obj; boolean result = true; result = result && getResultCase().equals( other.getResultCase()); if (!result) return false; switch (resultCase_) { case 1: result = result && getError() .equals(other.getError()); break; case 2: result = result && getConfigResult() .equals(other.getConfigResult()); break; case 3: result = result && getCcQueryRes() .equals(other.getCcQueryRes()); break; case 4: result = result && getMembers() .equals(other.getMembers()); break; case 0: default: } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); switch (resultCase_) { case 1: hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); break; case 2: hash = (37 * hash) + CONFIG_RESULT_FIELD_NUMBER; hash = (53 * hash) + getConfigResult().hashCode(); break; case 3: hash = (37 * hash) + CC_QUERY_RES_FIELD_NUMBER; hash = (53 * hash) + getCcQueryRes().hashCode(); break; case 4: hash = (37 * hash) + MEMBERS_FIELD_NUMBER; hash = (53 * hash) + getMembers().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult 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.discovery.Protocol.QueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult 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.discovery.Protocol.QueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult 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.discovery.Protocol.QueryResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.QueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * QueryResult contains a result for a given Query.
     * The corresponding Query can be inferred by the index of the QueryResult from
     * its enclosing Response message.
     * QueryResults are ordered in the same order as the Queries are ordered in their enclosing Request.
     * 
* * Protobuf type {@code discovery.QueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.QueryResult) org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.class, org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); resultCase_ = 0; result_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult build() { org.hyperledger.fabric.protos.discovery.Protocol.QueryResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.QueryResult result = new org.hyperledger.fabric.protos.discovery.Protocol.QueryResult(this); if (resultCase_ == 1) { if (errorBuilder_ == null) { result.result_ = result_; } else { result.result_ = errorBuilder_.build(); } } if (resultCase_ == 2) { if (configResultBuilder_ == null) { result.result_ = result_; } else { result.result_ = configResultBuilder_.build(); } } if (resultCase_ == 3) { if (ccQueryResBuilder_ == null) { result.result_ = result_; } else { result.result_ = ccQueryResBuilder_.build(); } } if (resultCase_ == 4) { if (membersBuilder_ == null) { result.result_ = result_; } else { result.result_ = membersBuilder_.build(); } } result.resultCase_ = resultCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.QueryResult) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.QueryResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.QueryResult other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.getDefaultInstance()) return this; switch (other.getResultCase()) { case ERROR: { mergeError(other.getError()); break; } case CONFIG_RESULT: { mergeConfigResult(other.getConfigResult()); break; } case CC_QUERY_RES: { mergeCcQueryRes(other.getCcQueryRes()); break; } case MEMBERS: { mergeMembers(other.getMembers()); break; } case RESULT_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.QueryResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int resultCase_ = 0; private java.lang.Object result_; public ResultCase getResultCase() { return ResultCase.forNumber( resultCase_); } public Builder clearResult() { resultCase_ = 0; result_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Error, org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder> errorBuilder_; /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Error getError() { if (errorBuilder_ == null) { if (resultCase_ == 1) { return (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } else { if (resultCase_ == 1) { return errorBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public Builder setError(org.hyperledger.fabric.protos.discovery.Protocol.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } resultCase_ = 1; return this; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public Builder setError( org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder builderForValue) { if (errorBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } resultCase_ = 1; return this; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public Builder mergeError(org.hyperledger.fabric.protos.discovery.Protocol.Error value) { if (errorBuilder_ == null) { if (resultCase_ == 1 && result_ != org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance()) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.Error.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.Error) result_) .mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { if (resultCase_ == 1) { errorBuilder_.mergeFrom(value); } errorBuilder_.setMessage(value); } resultCase_ = 1; return this; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { if (resultCase_ == 1) { resultCase_ = 0; result_ = null; onChanged(); } } else { if (resultCase_ == 1) { resultCase_ = 0; result_ = null; } errorBuilder_.clear(); } return this; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder getErrorOrBuilder() { if ((resultCase_ == 1) && (errorBuilder_ != null)) { return errorBuilder_.getMessageOrBuilder(); } else { if (resultCase_ == 1) { return (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } } /** *
       * Error indicates failure or refusal to process the query
       * 
* * optional .discovery.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Error, org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(resultCase_ == 1)) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Error, org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.Error) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 1; onChanged();; return errorBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder> configResultBuilder_; /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getConfigResult() { if (configResultBuilder_ == null) { if (resultCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } else { if (resultCase_ == 2) { return configResultBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public Builder setConfigResult(org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult value) { if (configResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { configResultBuilder_.setMessage(value); } resultCase_ = 2; return this; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public Builder setConfigResult( org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder builderForValue) { if (configResultBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { configResultBuilder_.setMessage(builderForValue.build()); } resultCase_ = 2; return this; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public Builder mergeConfigResult(org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult value) { if (configResultBuilder_ == null) { if (resultCase_ == 2 && result_ != org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance()) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_) .mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { if (resultCase_ == 2) { configResultBuilder_.mergeFrom(value); } configResultBuilder_.setMessage(value); } resultCase_ = 2; return this; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public Builder clearConfigResult() { if (configResultBuilder_ == null) { if (resultCase_ == 2) { resultCase_ = 0; result_ = null; onChanged(); } } else { if (resultCase_ == 2) { resultCase_ = 0; result_ = null; } configResultBuilder_.clear(); } return this; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder getConfigResultBuilder() { return getConfigResultFieldBuilder().getBuilder(); } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder getConfigResultOrBuilder() { if ((resultCase_ == 2) && (configResultBuilder_ != null)) { return configResultBuilder_.getMessageOrBuilder(); } else { if (resultCase_ == 2) { return (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * optional .discovery.ConfigResult config_result = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder> getConfigResultFieldBuilder() { if (configResultBuilder_ == null) { if (!(resultCase_ == 2)) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } configResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 2; onChanged();; return configResultBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder> ccQueryResBuilder_; /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getCcQueryRes() { if (ccQueryResBuilder_ == null) { if (resultCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } else { if (resultCase_ == 3) { return ccQueryResBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public Builder setCcQueryRes(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult value) { if (ccQueryResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { ccQueryResBuilder_.setMessage(value); } resultCase_ = 3; return this; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public Builder setCcQueryRes( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder builderForValue) { if (ccQueryResBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { ccQueryResBuilder_.setMessage(builderForValue.build()); } resultCase_ = 3; return this; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public Builder mergeCcQueryRes(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult value) { if (ccQueryResBuilder_ == null) { if (resultCase_ == 3 && result_ != org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance()) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_) .mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { if (resultCase_ == 3) { ccQueryResBuilder_.mergeFrom(value); } ccQueryResBuilder_.setMessage(value); } resultCase_ = 3; return this; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public Builder clearCcQueryRes() { if (ccQueryResBuilder_ == null) { if (resultCase_ == 3) { resultCase_ = 0; result_ = null; onChanged(); } } else { if (resultCase_ == 3) { resultCase_ = 0; result_ = null; } ccQueryResBuilder_.clear(); } return this; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder getCcQueryResBuilder() { return getCcQueryResFieldBuilder().getBuilder(); } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder getCcQueryResOrBuilder() { if ((resultCase_ == 3) && (ccQueryResBuilder_ != null)) { return ccQueryResBuilder_.getMessageOrBuilder(); } else { if (resultCase_ == 3) { return (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * optional .discovery.ChaincodeQueryResult cc_query_res = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder> getCcQueryResFieldBuilder() { if (ccQueryResBuilder_ == null) { if (!(resultCase_ == 3)) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } ccQueryResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 3; onChanged();; return ccQueryResBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder> membersBuilder_; /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getMembers() { if (membersBuilder_ == null) { if (resultCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } else { if (resultCase_ == 4) { return membersBuilder_.getMessage(); } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public Builder setMembers(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } result_ = value; onChanged(); } else { membersBuilder_.setMessage(value); } resultCase_ = 4; return this; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public Builder setMembers( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder builderForValue) { if (membersBuilder_ == null) { result_ = builderForValue.build(); onChanged(); } else { membersBuilder_.setMessage(builderForValue.build()); } resultCase_ = 4; return this; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public Builder mergeMembers(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult value) { if (membersBuilder_ == null) { if (resultCase_ == 4 && result_ != org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance()) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.newBuilder((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_) .mergeFrom(value).buildPartial(); } else { result_ = value; } onChanged(); } else { if (resultCase_ == 4) { membersBuilder_.mergeFrom(value); } membersBuilder_.setMessage(value); } resultCase_ = 4; return this; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public Builder clearMembers() { if (membersBuilder_ == null) { if (resultCase_ == 4) { resultCase_ = 0; result_ = null; onChanged(); } } else { if (resultCase_ == 4) { resultCase_ = 0; result_ = null; } membersBuilder_.clear(); } return this; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder getMembersBuilder() { return getMembersFieldBuilder().getBuilder(); } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder getMembersOrBuilder() { if ((resultCase_ == 4) && (membersBuilder_ != null)) { return membersBuilder_.getMessageOrBuilder(); } else { if (resultCase_ == 4) { return (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_; } return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * optional .discovery.PeerMembershipResult members = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { if (!(resultCase_ == 4)) { result_ = org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } membersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder>( (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) result_, getParentForChildren(), isClean()); result_ = null; } resultCase_ = 4; onChanged();; return membersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.QueryResult) } // @@protoc_insertion_point(class_scope:discovery.QueryResult) private static final org.hyperledger.fabric.protos.discovery.Protocol.QueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.QueryResult(); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public QueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ConfigQuery) com.google.protobuf.MessageOrBuilder { } /** *
   * ConfigQuery requests a ConfigResult
   * 
* * Protobuf type {@code discovery.ConfigQuery} */ public static final class ConfigQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ConfigQuery) ConfigQueryOrBuilder { // Use ConfigQuery.newBuilder() to construct. private ConfigQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigQuery() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConfigQuery( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery 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.discovery.Protocol.ConfigQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery 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.discovery.Protocol.ConfigQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery 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.discovery.Protocol.ConfigQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ConfigQuery requests a ConfigResult
     * 
* * Protobuf type {@code discovery.ConfigQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ConfigQuery) org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery build() { org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery result = new org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ConfigQuery) } // @@protoc_insertion_point(class_scope:discovery.ConfigQuery) private static final org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConfigQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigQuery(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigResultOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ConfigResult) com.google.protobuf.MessageOrBuilder { /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ int getMspsCount(); /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ boolean containsMsps( java.lang.String key); /** * Use {@link #getMspsMap()} instead. */ @java.lang.Deprecated java.util.Map getMsps(); /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ java.util.Map getMspsMap(); /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig defaultValue); /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrThrow( java.lang.String key); /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ int getOrderersCount(); /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ boolean containsOrderers( java.lang.String key); /** * Use {@link #getOrderersMap()} instead. */ @java.lang.Deprecated java.util.Map getOrderers(); /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ java.util.Map getOrderersMap(); /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints defaultValue); /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrThrow( java.lang.String key); } /** * Protobuf type {@code discovery.ConfigResult} */ public static final class ConfigResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ConfigResult) ConfigResultOrBuilder { // Use ConfigResult.newBuilder() to construct. private ConfigResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigResult() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConfigResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { msps_ = com.google.protobuf.MapField.newMapField( MspsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry msps = input.readMessage( MspsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); msps_.getMutableMap().put(msps.getKey(), msps.getValue()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { orderers_ = com.google.protobuf.MapField.newMapField( OrderersDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry orderers = input.readMessage( OrderersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); orderers_.getMutableMap().put(orderers.getKey(), orderers.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMsps(); case 2: return internalGetOrderers(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.class, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder.class); } public static final int MSPS_FIELD_NUMBER = 1; private static final class MspsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_MspsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig> msps_; private com.google.protobuf.MapField internalGetMsps() { if (msps_ == null) { return com.google.protobuf.MapField.emptyMapField( MspsDefaultEntryHolder.defaultEntry); } return msps_; } public int getMspsCount() { return internalGetMsps().getMap().size(); } /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public boolean containsMsps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMsps().getMap().containsKey(key); } /** * Use {@link #getMspsMap()} instead. */ @java.lang.Deprecated public java.util.Map getMsps() { return getMspsMap(); } /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public java.util.Map getMspsMap() { return internalGetMsps().getMap(); } /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMsps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMsps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ORDERERS_FIELD_NUMBER = 2; private static final class OrderersDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_OrderersEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints> orderers_; private com.google.protobuf.MapField internalGetOrderers() { if (orderers_ == null) { return com.google.protobuf.MapField.emptyMapField( OrderersDefaultEntryHolder.defaultEntry); } return orderers_; } public int getOrderersCount() { return internalGetOrderers().getMap().size(); } /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public boolean containsOrderers( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOrderers().getMap().containsKey(key); } /** * Use {@link #getOrderersMap()} instead. */ @java.lang.Deprecated public java.util.Map getOrderers() { return getOrderersMap(); } /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public java.util.Map getOrderersMap() { return internalGetOrderers().getMap(); } /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOrderers().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * orderers is a map from MSP_ID to endpoint lists of orderers
     * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOrderers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (java.util.Map.Entry entry : internalGetMsps().getMap().entrySet()) { com.google.protobuf.MapEntry msps = MspsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1, msps); } for (java.util.Map.Entry entry : internalGetOrderers().getMap().entrySet()) { com.google.protobuf.MapEntry orderers = OrderersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, orderers); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMsps().getMap().entrySet()) { com.google.protobuf.MapEntry msps = MspsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, msps); } for (java.util.Map.Entry entry : internalGetOrderers().getMap().entrySet()) { com.google.protobuf.MapEntry orderers = OrderersDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, orderers); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult other = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) obj; boolean result = true; result = result && internalGetMsps().equals( other.internalGetMsps()); result = result && internalGetOrderers().equals( other.internalGetOrderers()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetMsps().getMap().isEmpty()) { hash = (37 * hash) + MSPS_FIELD_NUMBER; hash = (53 * hash) + internalGetMsps().hashCode(); } if (!internalGetOrderers().getMap().isEmpty()) { hash = (37 * hash) + ORDERERS_FIELD_NUMBER; hash = (53 * hash) + internalGetOrderers().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult 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.discovery.Protocol.ConfigResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult 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.discovery.Protocol.ConfigResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult 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.discovery.Protocol.ConfigResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code discovery.ConfigResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ConfigResult) org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMsps(); case 2: return internalGetOrderers(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableMsps(); case 2: return internalGetMutableOrderers(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.class, org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableMsps().clear(); internalGetMutableOrderers().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult build() { org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult result = new org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult(this); int from_bitField0_ = bitField0_; result.msps_ = internalGetMsps(); result.msps_.makeImmutable(); result.orderers_ = internalGetOrderers(); result.orderers_.makeImmutable(); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance()) return this; internalGetMutableMsps().mergeFrom( other.internalGetMsps()); internalGetMutableOrderers().mergeFrom( other.internalGetOrderers()); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig> msps_; private com.google.protobuf.MapField internalGetMsps() { if (msps_ == null) { return com.google.protobuf.MapField.emptyMapField( MspsDefaultEntryHolder.defaultEntry); } return msps_; } private com.google.protobuf.MapField internalGetMutableMsps() { onChanged();; if (msps_ == null) { msps_ = com.google.protobuf.MapField.newMapField( MspsDefaultEntryHolder.defaultEntry); } if (!msps_.isMutable()) { msps_ = msps_.copy(); } return msps_; } public int getMspsCount() { return internalGetMsps().getMap().size(); } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public boolean containsMsps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMsps().getMap().containsKey(key); } /** * Use {@link #getMspsMap()} instead. */ @java.lang.Deprecated public java.util.Map getMsps() { return getMspsMap(); } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public java.util.Map getMspsMap() { return internalGetMsps().getMap(); } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMsps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig getMspsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMsps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMsps() { getMutableMsps().clear(); return this; } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public Builder removeMsps( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableMsps().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMsps() { return internalGetMutableMsps().getMutableMap(); } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public Builder putMsps( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfig.FabricMSPConfig value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableMsps().put(key, value); return this; } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ public Builder putAllMsps( java.util.Map values) { getMutableMsps().putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints> orderers_; private com.google.protobuf.MapField internalGetOrderers() { if (orderers_ == null) { return com.google.protobuf.MapField.emptyMapField( OrderersDefaultEntryHolder.defaultEntry); } return orderers_; } private com.google.protobuf.MapField internalGetMutableOrderers() { onChanged();; if (orderers_ == null) { orderers_ = com.google.protobuf.MapField.newMapField( OrderersDefaultEntryHolder.defaultEntry); } if (!orderers_.isMutable()) { orderers_ = orderers_.copy(); } return orderers_; } public int getOrderersCount() { return internalGetOrderers().getMap().size(); } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public boolean containsOrderers( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetOrderers().getMap().containsKey(key); } /** * Use {@link #getOrderersMap()} instead. */ @java.lang.Deprecated public java.util.Map getOrderers() { return getOrderersMap(); } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public java.util.Map getOrderersMap() { return internalGetOrderers().getMap(); } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOrderers().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetOrderers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOrderers() { getMutableOrderers().clear(); return this; } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public Builder removeOrderers( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableOrderers().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableOrderers() { return internalGetMutableOrderers().getMutableMap(); } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public Builder putOrderers( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableOrderers().put(key, value); return this; } /** *
       * orderers is a map from MSP_ID to endpoint lists of orderers
       * 
* * map<string, .discovery.Endpoints> orderers = 2; */ public Builder putAllOrderers( java.util.Map values) { getMutableOrderers().putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ConfigResult) } // @@protoc_insertion_point(class_scope:discovery.ConfigResult) private static final org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConfigResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerMembershipQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.PeerMembershipQuery) com.google.protobuf.MessageOrBuilder { /** * optional .discovery.ChaincodeInterest filter = 1; */ boolean hasFilter(); /** * optional .discovery.ChaincodeInterest filter = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getFilter(); /** * optional .discovery.ChaincodeInterest filter = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getFilterOrBuilder(); } /** *
   * PeerMembershipQuery requests PeerMembershipResult.
   * The filter field may be optionally populated in order
   * for the peer membership to be filtered according to
   * chaincodes that are installed on peers and collection
   * access control policies.
   * 
* * Protobuf type {@code discovery.PeerMembershipQuery} */ public static final class PeerMembershipQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.PeerMembershipQuery) PeerMembershipQueryOrBuilder { // Use PeerMembershipQuery.newBuilder() to construct. private PeerMembershipQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerMembershipQuery() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerMembershipQuery( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder subBuilder = null; if (filter_ != null) { subBuilder = filter_.toBuilder(); } filter_ = input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(filter_); filter_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder.class); } public static final int FILTER_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest filter_; /** * optional .discovery.ChaincodeInterest filter = 1; */ public boolean hasFilter() { return filter_ != null; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getFilter() { return filter_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance() : filter_; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getFilterOrBuilder() { return getFilter(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filter_ != null) { output.writeMessage(1, getFilter()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (filter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFilter()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) obj; boolean result = true; result = result && (hasFilter() == other.hasFilter()); if (hasFilter()) { result = result && getFilter() .equals(other.getFilter()); } return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery 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.discovery.Protocol.PeerMembershipQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery 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.discovery.Protocol.PeerMembershipQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery 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.discovery.Protocol.PeerMembershipQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PeerMembershipQuery requests PeerMembershipResult.
     * The filter field may be optionally populated in order
     * for the peer membership to be filtered according to
     * chaincodes that are installed on peers and collection
     * access control policies.
     * 
* * Protobuf type {@code discovery.PeerMembershipQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.PeerMembershipQuery) org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (filterBuilder_ == null) { filter_ = null; } else { filter_ = null; filterBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery build() { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery result = new org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery(this); if (filterBuilder_ == null) { result.filter_ = filter_; } else { result.filter_ = filterBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance()) return this; if (other.hasFilter()) { mergeFilter(other.getFilter()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest filter_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder> filterBuilder_; /** * optional .discovery.ChaincodeInterest filter = 1; */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getFilter() { if (filterBuilder_ == null) { return filter_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance() : filter_; } else { return filterBuilder_.getMessage(); } } /** * optional .discovery.ChaincodeInterest filter = 1; */ public Builder setFilter(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest value) { if (filterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); } else { filterBuilder_.setMessage(value); } return this; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public Builder setFilter( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder builderForValue) { if (filterBuilder_ == null) { filter_ = builderForValue.build(); onChanged(); } else { filterBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public Builder mergeFilter(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest value) { if (filterBuilder_ == null) { if (filter_ != null) { filter_ = org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.newBuilder(filter_).mergeFrom(value).buildPartial(); } else { filter_ = value; } onChanged(); } else { filterBuilder_.mergeFrom(value); } return this; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public Builder clearFilter() { if (filterBuilder_ == null) { filter_ = null; onChanged(); } else { filter_ = null; filterBuilder_ = null; } return this; } /** * optional .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder getFilterBuilder() { onChanged(); return getFilterFieldBuilder().getBuilder(); } /** * optional .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getFilterOrBuilder() { if (filterBuilder_ != null) { return filterBuilder_.getMessageOrBuilder(); } else { return filter_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance() : filter_; } } /** * optional .discovery.ChaincodeInterest filter = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder> getFilterFieldBuilder() { if (filterBuilder_ == null) { filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder>( getFilter(), getParentForChildren(), isClean()); filter_ = null; } return filterBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.PeerMembershipQuery) } // @@protoc_insertion_point(class_scope:discovery.PeerMembershipQuery) private static final org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery(); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PeerMembershipQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerMembershipQuery(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerMembershipResultOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.PeerMembershipResult) com.google.protobuf.MessageOrBuilder { /** * map<string, .discovery.Peers> peers_by_org = 1; */ int getPeersByOrgCount(); /** * map<string, .discovery.Peers> peers_by_org = 1; */ boolean containsPeersByOrg( java.lang.String key); /** * Use {@link #getPeersByOrgMap()} instead. */ @java.lang.Deprecated java.util.Map getPeersByOrg(); /** * map<string, .discovery.Peers> peers_by_org = 1; */ java.util.Map getPeersByOrgMap(); /** * map<string, .discovery.Peers> peers_by_org = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue); /** * map<string, .discovery.Peers> peers_by_org = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrThrow( java.lang.String key); } /** *
   * PeerMembershipResult contains peers mapped by their organizations (MSP_ID)
   * 
* * Protobuf type {@code discovery.PeerMembershipResult} */ public static final class PeerMembershipResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.PeerMembershipResult) PeerMembershipResultOrBuilder { // Use PeerMembershipResult.newBuilder() to construct. private PeerMembershipResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerMembershipResult() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerMembershipResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peersByOrg_ = com.google.protobuf.MapField.newMapField( PeersByOrgDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry peersByOrg = input.readMessage( PeersByOrgDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); peersByOrg_.getMutableMap().put(peersByOrg.getKey(), peersByOrg.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetPeersByOrg(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.class, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder.class); } public static final int PEERS_BY_ORG_FIELD_NUMBER = 1; private static final class PeersByOrgDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.discovery.Protocol.Peers.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> peersByOrg_; private com.google.protobuf.MapField internalGetPeersByOrg() { if (peersByOrg_ == null) { return com.google.protobuf.MapField.emptyMapField( PeersByOrgDefaultEntryHolder.defaultEntry); } return peersByOrg_; } public int getPeersByOrgCount() { return internalGetPeersByOrg().getMap().size(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public boolean containsPeersByOrg( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetPeersByOrg().getMap().containsKey(key); } /** * Use {@link #getPeersByOrgMap()} instead. */ @java.lang.Deprecated public java.util.Map getPeersByOrg() { return getPeersByOrgMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public java.util.Map getPeersByOrgMap() { return internalGetPeersByOrg().getMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetPeersByOrg().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetPeersByOrg().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (java.util.Map.Entry entry : internalGetPeersByOrg().getMap().entrySet()) { com.google.protobuf.MapEntry peersByOrg = PeersByOrgDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1, peersByOrg); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetPeersByOrg().getMap().entrySet()) { com.google.protobuf.MapEntry peersByOrg = PeersByOrgDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peersByOrg); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult other = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) obj; boolean result = true; result = result && internalGetPeersByOrg().equals( other.internalGetPeersByOrg()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetPeersByOrg().getMap().isEmpty()) { hash = (37 * hash) + PEERS_BY_ORG_FIELD_NUMBER; hash = (53 * hash) + internalGetPeersByOrg().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult 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.discovery.Protocol.PeerMembershipResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult 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.discovery.Protocol.PeerMembershipResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult 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.discovery.Protocol.PeerMembershipResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * PeerMembershipResult contains peers mapped by their organizations (MSP_ID)
     * 
* * Protobuf type {@code discovery.PeerMembershipResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.PeerMembershipResult) org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetPeersByOrg(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutablePeersByOrg(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.class, org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutablePeersByOrg().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult build() { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult result = new org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult(this); int from_bitField0_ = bitField0_; result.peersByOrg_ = internalGetPeersByOrg(); result.peersByOrg_.makeImmutable(); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance()) return this; internalGetMutablePeersByOrg().mergeFrom( other.internalGetPeersByOrg()); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> peersByOrg_; private com.google.protobuf.MapField internalGetPeersByOrg() { if (peersByOrg_ == null) { return com.google.protobuf.MapField.emptyMapField( PeersByOrgDefaultEntryHolder.defaultEntry); } return peersByOrg_; } private com.google.protobuf.MapField internalGetMutablePeersByOrg() { onChanged();; if (peersByOrg_ == null) { peersByOrg_ = com.google.protobuf.MapField.newMapField( PeersByOrgDefaultEntryHolder.defaultEntry); } if (!peersByOrg_.isMutable()) { peersByOrg_ = peersByOrg_.copy(); } return peersByOrg_; } public int getPeersByOrgCount() { return internalGetPeersByOrg().getMap().size(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public boolean containsPeersByOrg( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetPeersByOrg().getMap().containsKey(key); } /** * Use {@link #getPeersByOrgMap()} instead. */ @java.lang.Deprecated public java.util.Map getPeersByOrg() { return getPeersByOrgMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public java.util.Map getPeersByOrgMap() { return internalGetPeersByOrg().getMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetPeersByOrg().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetPeersByOrg().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPeersByOrg() { getMutablePeersByOrg().clear(); return this; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public Builder removePeersByOrg( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutablePeersByOrg().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutablePeersByOrg() { return internalGetMutablePeersByOrg().getMutableMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public Builder putPeersByOrg( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutablePeersByOrg().put(key, value); return this; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public Builder putAllPeersByOrg( java.util.Map values) { getMutablePeersByOrg().putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.PeerMembershipResult) } // @@protoc_insertion_point(class_scope:discovery.PeerMembershipResult) private static final org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult(); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PeerMembershipResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PeerMembershipResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ChaincodeQuery) com.google.protobuf.MessageOrBuilder { /** * repeated .discovery.ChaincodeInterest interests = 1; */ java.util.List getInterestsList(); /** * repeated .discovery.ChaincodeInterest interests = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getInterests(int index); /** * repeated .discovery.ChaincodeInterest interests = 1; */ int getInterestsCount(); /** * repeated .discovery.ChaincodeInterest interests = 1; */ java.util.List getInterestsOrBuilderList(); /** * repeated .discovery.ChaincodeInterest interests = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getInterestsOrBuilder( int index); } /** *
   * ChaincodeQuery requests ChaincodeQueryResults for a given
   * list of chaincode invocations.
   * Each invocation is a separate one, and the endorsement policy
   * is evaluated independantly for each given interest.
   * 
* * Protobuf type {@code discovery.ChaincodeQuery} */ public static final class ChaincodeQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ChaincodeQuery) ChaincodeQueryOrBuilder { // Use ChaincodeQuery.newBuilder() to construct. private ChaincodeQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeQuery() { interests_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ChaincodeQuery( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { interests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } interests_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { interests_ = java.util.Collections.unmodifiableList(interests_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder.class); } public static final int INTERESTS_FIELD_NUMBER = 1; private java.util.List interests_; /** * repeated .discovery.ChaincodeInterest interests = 1; */ public java.util.List getInterestsList() { return interests_; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public java.util.List getInterestsOrBuilderList() { return interests_; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public int getInterestsCount() { return interests_.size(); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getInterests(int index) { return interests_.get(index); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getInterestsOrBuilder( int index) { return interests_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < interests_.size(); i++) { output.writeMessage(1, interests_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < interests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, interests_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) obj; boolean result = true; result = result && getInterestsList() .equals(other.getInterestsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getInterestsCount() > 0) { hash = (37 * hash) + INTERESTS_FIELD_NUMBER; hash = (53 * hash) + getInterestsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery 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.discovery.Protocol.ChaincodeQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery 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.discovery.Protocol.ChaincodeQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery 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.discovery.Protocol.ChaincodeQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChaincodeQuery requests ChaincodeQueryResults for a given
     * list of chaincode invocations.
     * Each invocation is a separate one, and the endorsement policy
     * is evaluated independantly for each given interest.
     * 
* * Protobuf type {@code discovery.ChaincodeQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ChaincodeQuery) org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInterestsFieldBuilder(); } } public Builder clear() { super.clear(); if (interestsBuilder_ == null) { interests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { interestsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery build() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery result = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery(this); int from_bitField0_ = bitField0_; if (interestsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { interests_ = java.util.Collections.unmodifiableList(interests_); bitField0_ = (bitField0_ & ~0x00000001); } result.interests_ = interests_; } else { result.interests_ = interestsBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance()) return this; if (interestsBuilder_ == null) { if (!other.interests_.isEmpty()) { if (interests_.isEmpty()) { interests_ = other.interests_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInterestsIsMutable(); interests_.addAll(other.interests_); } onChanged(); } } else { if (!other.interests_.isEmpty()) { if (interestsBuilder_.isEmpty()) { interestsBuilder_.dispose(); interestsBuilder_ = null; interests_ = other.interests_; bitField0_ = (bitField0_ & ~0x00000001); interestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInterestsFieldBuilder() : null; } else { interestsBuilder_.addAllMessages(other.interests_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List interests_ = java.util.Collections.emptyList(); private void ensureInterestsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { interests_ = new java.util.ArrayList(interests_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder> interestsBuilder_; /** * repeated .discovery.ChaincodeInterest interests = 1; */ public java.util.List getInterestsList() { if (interestsBuilder_ == null) { return java.util.Collections.unmodifiableList(interests_); } else { return interestsBuilder_.getMessageList(); } } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public int getInterestsCount() { if (interestsBuilder_ == null) { return interests_.size(); } else { return interestsBuilder_.getCount(); } } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getInterests(int index) { if (interestsBuilder_ == null) { return interests_.get(index); } else { return interestsBuilder_.getMessage(index); } } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder setInterests( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest value) { if (interestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterestsIsMutable(); interests_.set(index, value); onChanged(); } else { interestsBuilder_.setMessage(index, value); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder setInterests( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder builderForValue) { if (interestsBuilder_ == null) { ensureInterestsIsMutable(); interests_.set(index, builderForValue.build()); onChanged(); } else { interestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder addInterests(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest value) { if (interestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterestsIsMutable(); interests_.add(value); onChanged(); } else { interestsBuilder_.addMessage(value); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder addInterests( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest value) { if (interestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInterestsIsMutable(); interests_.add(index, value); onChanged(); } else { interestsBuilder_.addMessage(index, value); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder addInterests( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder builderForValue) { if (interestsBuilder_ == null) { ensureInterestsIsMutable(); interests_.add(builderForValue.build()); onChanged(); } else { interestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder addInterests( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder builderForValue) { if (interestsBuilder_ == null) { ensureInterestsIsMutable(); interests_.add(index, builderForValue.build()); onChanged(); } else { interestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder addAllInterests( java.lang.Iterable values) { if (interestsBuilder_ == null) { ensureInterestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, interests_); onChanged(); } else { interestsBuilder_.addAllMessages(values); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder clearInterests() { if (interestsBuilder_ == null) { interests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { interestsBuilder_.clear(); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public Builder removeInterests(int index) { if (interestsBuilder_ == null) { ensureInterestsIsMutable(); interests_.remove(index); onChanged(); } else { interestsBuilder_.remove(index); } return this; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder getInterestsBuilder( int index) { return getInterestsFieldBuilder().getBuilder(index); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getInterestsOrBuilder( int index) { if (interestsBuilder_ == null) { return interests_.get(index); } else { return interestsBuilder_.getMessageOrBuilder(index); } } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public java.util.List getInterestsOrBuilderList() { if (interestsBuilder_ != null) { return interestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(interests_); } } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder addInterestsBuilder() { return getInterestsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance()); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder addInterestsBuilder( int index) { return getInterestsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance()); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ public java.util.List getInterestsBuilderList() { return getInterestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder> getInterestsFieldBuilder() { if (interestsBuilder_ == null) { interestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder>( interests_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); interests_ = null; } return interestsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ChaincodeQuery) } // @@protoc_insertion_point(class_scope:discovery.ChaincodeQuery) private static final org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChaincodeQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeQuery(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeInterestOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ChaincodeInterest) com.google.protobuf.MessageOrBuilder { /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ java.util.List getChaincodesList(); /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getChaincodes(int index); /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ int getChaincodesCount(); /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ java.util.List getChaincodesOrBuilderList(); /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder getChaincodesOrBuilder( int index); } /** *
   * ChaincodeInterest defines an interest about an endorsement
   * for a specific single chaincode invocation.
   * Multiple chaincodes indicate chaincode to chaincode invocations.
   * 
* * Protobuf type {@code discovery.ChaincodeInterest} */ public static final class ChaincodeInterest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ChaincodeInterest) ChaincodeInterestOrBuilder { // Use ChaincodeInterest.newBuilder() to construct. private ChaincodeInterest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeInterest() { chaincodes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ChaincodeInterest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { chaincodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } chaincodes_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder.class); } public static final int CHAINCODES_FIELD_NUMBER = 1; private java.util.List chaincodes_; /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chaincodes_.size(); i++) { output.writeMessage(1, chaincodes_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodes_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest) obj; boolean result = true; result = result && getChaincodesList() .equals(other.getChaincodesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getChaincodesCount() > 0) { hash = (37 * hash) + CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getChaincodesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest 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.discovery.Protocol.ChaincodeInterest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest 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.discovery.Protocol.ChaincodeInterest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest 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.discovery.Protocol.ChaincodeInterest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChaincodeInterest defines an interest about an endorsement
     * for a specific single chaincode invocation.
     * Multiple chaincodes indicate chaincode to chaincode invocations.
     * 
* * Protobuf type {@code discovery.ChaincodeInterest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ChaincodeInterest) org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChaincodesFieldBuilder(); } } public Builder clear() { super.clear(); if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { chaincodesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest build() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest result = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest(this); int from_bitField0_ = bitField0_; if (chaincodesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance()) return this; 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_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder> chaincodesBuilder_; /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public java.util.List getChaincodesList() { if (chaincodesBuilder_ == null) { return java.util.Collections.unmodifiableList(chaincodes_); } else { return chaincodesBuilder_.getMessageList(); } } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public int getChaincodesCount() { if (chaincodesBuilder_ == null) { return chaincodes_.size(); } else { return chaincodesBuilder_.getCount(); } } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getChaincodes(int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessage(index); } } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.set(index, value); onChanged(); } else { chaincodesBuilder_.setMessage(index, value); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder setChaincodes( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.set(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder addChaincodes(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(value); onChanged(); } else { chaincodesBuilder_.addMessage(value); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall value) { if (chaincodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChaincodesIsMutable(); chaincodes_.add(index, value); onChanged(); } else { chaincodesBuilder_.addMessage(index, value); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder addChaincodes( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder addChaincodes( int index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder builderForValue) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(index, builderForValue.build()); onChanged(); } else { chaincodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ 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 .discovery.ChaincodeCall chaincodes = 1; */ public Builder clearChaincodes() { if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { chaincodesBuilder_.clear(); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public Builder removeChaincodes(int index) { if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.remove(index); onChanged(); } else { chaincodesBuilder_.remove(index); } return this; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder getChaincodesBuilder( int index) { return getChaincodesFieldBuilder().getBuilder(index); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder getChaincodesOrBuilder( int index) { if (chaincodesBuilder_ == null) { return chaincodes_.get(index); } else { return chaincodesBuilder_.getMessageOrBuilder(index); } } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public java.util.List getChaincodesOrBuilderList() { if (chaincodesBuilder_ != null) { return chaincodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chaincodes_); } } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder addChaincodesBuilder() { return getChaincodesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.getDefaultInstance()); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder addChaincodesBuilder( int index) { return getChaincodesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.getDefaultInstance()); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ public java.util.List getChaincodesBuilderList() { return getChaincodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder> getChaincodesFieldBuilder() { if (chaincodesBuilder_ == null) { chaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder>( chaincodes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ChaincodeInterest) } // @@protoc_insertion_point(class_scope:discovery.ChaincodeInterest) private static final org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChaincodeInterest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeInterest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeCallOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ChaincodeCall) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * repeated string collection_names = 2; */ java.util.List getCollectionNamesList(); /** * repeated string collection_names = 2; */ int getCollectionNamesCount(); /** * repeated string collection_names = 2; */ java.lang.String getCollectionNames(int index); /** * repeated string collection_names = 2; */ com.google.protobuf.ByteString getCollectionNamesBytes(int index); } /** *
   * ChaincodeCall defines a call to a chaincode.
   * It may have collections that are related to the chaincode
   * 
* * Protobuf type {@code discovery.ChaincodeCall} */ public static final class ChaincodeCall extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ChaincodeCall) ChaincodeCallOrBuilder { // Use ChaincodeCall.newBuilder() to construct. private ChaincodeCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeCall() { name_ = ""; collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ChaincodeCall( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { collectionNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } collectionNames_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { collectionNames_ = collectionNames_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList collectionNames_; /** * repeated string collection_names = 2; */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { return collectionNames_; } /** * repeated string collection_names = 2; */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2; */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2; */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < collectionNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionNames_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < collectionNames_.size(); i++) { dataSize += computeStringSizeNoTag(collectionNames_.getRaw(i)); } size += dataSize; size += 1 * getCollectionNamesList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getCollectionNamesList() .equals(other.getCollectionNamesList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getCollectionNamesCount() > 0) { hash = (37 * hash) + COLLECTION_NAMES_FIELD_NUMBER; hash = (53 * hash) + getCollectionNamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall 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.discovery.Protocol.ChaincodeCall parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall 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.discovery.Protocol.ChaincodeCall parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall 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.discovery.Protocol.ChaincodeCall parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChaincodeCall defines a call to a chaincode.
     * It may have collections that are related to the chaincode
     * 
* * Protobuf type {@code discovery.ChaincodeCall} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ChaincodeCall) org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall build() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall result = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { collectionNames_ = collectionNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.collectionNames_ = collectionNames_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.collectionNames_.isEmpty()) { if (collectionNames_.isEmpty()) { collectionNames_ = other.collectionNames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCollectionNamesIsMutable(); collectionNames_.addAll(other.collectionNames_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCollectionNamesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { collectionNames_ = new com.google.protobuf.LazyStringArrayList(collectionNames_); bitField0_ |= 0x00000002; } } /** * repeated string collection_names = 2; */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { return collectionNames_.getUnmodifiableView(); } /** * repeated string collection_names = 2; */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2; */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2; */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } /** * repeated string collection_names = 2; */ public Builder setCollectionNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCollectionNamesIsMutable(); collectionNames_.set(index, value); onChanged(); return this; } /** * repeated string collection_names = 2; */ public Builder addCollectionNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCollectionNamesIsMutable(); collectionNames_.add(value); onChanged(); return this; } /** * repeated string collection_names = 2; */ public Builder addAllCollectionNames( java.lang.Iterable values) { ensureCollectionNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collectionNames_); onChanged(); return this; } /** * repeated string collection_names = 2; */ public Builder clearCollectionNames() { collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string collection_names = 2; */ public Builder addCollectionNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCollectionNamesIsMutable(); collectionNames_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ChaincodeCall) } // @@protoc_insertion_point(class_scope:discovery.ChaincodeCall) private static final org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChaincodeCall parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeCall(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeQueryResultOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ChaincodeQueryResult) com.google.protobuf.MessageOrBuilder { /** * repeated .discovery.EndorsementDescriptor content = 1; */ java.util.List getContentList(); /** * repeated .discovery.EndorsementDescriptor content = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getContent(int index); /** * repeated .discovery.EndorsementDescriptor content = 1; */ int getContentCount(); /** * repeated .discovery.EndorsementDescriptor content = 1; */ java.util.List getContentOrBuilderList(); /** * repeated .discovery.EndorsementDescriptor content = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder getContentOrBuilder( int index); } /** *
   * ChaincodeQueryResult contains EndorsementDescriptors for
   * chaincodes
   * 
* * Protobuf type {@code discovery.ChaincodeQueryResult} */ public static final class ChaincodeQueryResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.ChaincodeQueryResult) ChaincodeQueryResultOrBuilder { // Use ChaincodeQueryResult.newBuilder() to construct. private ChaincodeQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChaincodeQueryResult() { content_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ChaincodeQueryResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } content_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private java.util.List content_; /** * repeated .discovery.EndorsementDescriptor content = 1; */ public java.util.List getContentList() { return content_; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public java.util.List getContentOrBuilderList() { return content_; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public int getContentCount() { return content_.size(); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getContent(int index) { return content_.get(index); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder getContentOrBuilder( int index) { return content_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < content_.size(); i++) { output.writeMessage(1, content_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < content_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, content_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) obj; boolean result = true; result = result && getContentList() .equals(other.getContentList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getContentCount() > 0) { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContentList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult 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.discovery.Protocol.ChaincodeQueryResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult 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.discovery.Protocol.ChaincodeQueryResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult 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.discovery.Protocol.ChaincodeQueryResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * ChaincodeQueryResult contains EndorsementDescriptors for
     * chaincodes
     * 
* * Protobuf type {@code discovery.ChaincodeQueryResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.ChaincodeQueryResult) org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.class, org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getContentFieldBuilder(); } } public Builder clear() { super.clear(); if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { contentBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult build() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult result = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult(this); int from_bitField0_ = bitField0_; if (contentBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { content_ = java.util.Collections.unmodifiableList(content_); bitField0_ = (bitField0_ & ~0x00000001); } result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance()) return this; if (contentBuilder_ == null) { if (!other.content_.isEmpty()) { if (content_.isEmpty()) { content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContentIsMutable(); content_.addAll(other.content_); } onChanged(); } } else { if (!other.content_.isEmpty()) { if (contentBuilder_.isEmpty()) { contentBuilder_.dispose(); contentBuilder_ = null; content_ = other.content_; bitField0_ = (bitField0_ & ~0x00000001); contentBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getContentFieldBuilder() : null; } else { contentBuilder_.addAllMessages(other.content_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List content_ = java.util.Collections.emptyList(); private void ensureContentIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { content_ = new java.util.ArrayList(content_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder> contentBuilder_; /** * repeated .discovery.EndorsementDescriptor content = 1; */ public java.util.List getContentList() { if (contentBuilder_ == null) { return java.util.Collections.unmodifiableList(content_); } else { return contentBuilder_.getMessageList(); } } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public int getContentCount() { if (contentBuilder_ == null) { return content_.size(); } else { return contentBuilder_.getCount(); } } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getContent(int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessage(index); } } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder setContent( int index, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.set(index, value); onChanged(); } else { contentBuilder_.setMessage(index, value); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder setContent( int index, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.set(index, builderForValue.build()); onChanged(); } else { contentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder addContent(org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(value); onChanged(); } else { contentBuilder_.addMessage(value); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder addContent( int index, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContentIsMutable(); content_.add(index, value); onChanged(); } else { contentBuilder_.addMessage(index, value); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder addContent( org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder addContent( int index, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder builderForValue) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(index, builderForValue.build()); onChanged(); } else { contentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder addAllContent( java.lang.Iterable values) { if (contentBuilder_ == null) { ensureContentIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, content_); onChanged(); } else { contentBuilder_.addAllMessages(values); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { contentBuilder_.clear(); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public Builder removeContent(int index) { if (contentBuilder_ == null) { ensureContentIsMutable(); content_.remove(index); onChanged(); } else { contentBuilder_.remove(index); } return this; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder getContentBuilder( int index) { return getContentFieldBuilder().getBuilder(index); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder getContentOrBuilder( int index) { if (contentBuilder_ == null) { return content_.get(index); } else { return contentBuilder_.getMessageOrBuilder(index); } } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public java.util.List getContentOrBuilderList() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(content_); } } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder addContentBuilder() { return getContentFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.getDefaultInstance()); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder addContentBuilder( int index) { return getContentFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.getDefaultInstance()); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ public java.util.List getContentBuilderList() { return getContentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder>( content_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.ChaincodeQueryResult) } // @@protoc_insertion_point(class_scope:discovery.ChaincodeQueryResult) private static final org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult(); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChaincodeQueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChaincodeQueryResult(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalPeerQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.LocalPeerQuery) com.google.protobuf.MessageOrBuilder { } /** *
   * LocalPeerQuery queries for peers in a non channel context
   * 
* * Protobuf type {@code discovery.LocalPeerQuery} */ public static final class LocalPeerQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.LocalPeerQuery) LocalPeerQueryOrBuilder { // Use LocalPeerQuery.newBuilder() to construct. private LocalPeerQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalPeerQuery() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LocalPeerQuery( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder.class); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) obj; boolean result = true; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery 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.discovery.Protocol.LocalPeerQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery 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.discovery.Protocol.LocalPeerQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery 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.discovery.Protocol.LocalPeerQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * LocalPeerQuery queries for peers in a non channel context
     * 
* * Protobuf type {@code discovery.LocalPeerQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.LocalPeerQuery) org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.class, org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery build() { org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery result = new org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance()) return this; onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.LocalPeerQuery) } // @@protoc_insertion_point(class_scope:discovery.LocalPeerQuery) private static final org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery(); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LocalPeerQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LocalPeerQuery(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndorsementDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.EndorsementDescriptor) com.google.protobuf.MessageOrBuilder { /** * optional string chaincode = 1; */ java.lang.String getChaincode(); /** * optional string chaincode = 1; */ com.google.protobuf.ByteString getChaincodeBytes(); /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ int getEndorsersByGroupsCount(); /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ boolean containsEndorsersByGroups( java.lang.String key); /** * Use {@link #getEndorsersByGroupsMap()} instead. */ @java.lang.Deprecated java.util.Map getEndorsersByGroups(); /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ java.util.Map getEndorsersByGroupsMap(); /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue); /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrThrow( java.lang.String key); /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ java.util.List getLayoutsList(); /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.Layout getLayouts(int index); /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ int getLayoutsCount(); /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ java.util.List getLayoutsOrBuilderList(); /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder getLayoutsOrBuilder( int index); } /** *
   * EndorsementDescriptor contains information about which peers can be used
   * to request endorsement from, such that the endorsement policy would be fulfilled.
   * Here is how to compute a set of peers to ask an endorsement from, given an EndorsementDescriptor:
   * Let e: G --> P be the endorsers_by_groups field that maps a group to a set of peers.
   * Note that applying e on a group g yields a set of peers.
   * 1) Select a layout l: G --> N out of the layouts given.
   *    l is the quantities_by_group field of a Layout, and it maps a group to an integer.
   * 2) R = {}  (an empty set of peers)
   * 3) For each group g in the layout l, compute n = l(g)
   *    3.1) Denote P_g as a set of n random peers {p0, p1, ... p_n} selected from e(g)
   *    3.2) R = R U P_g  (add P_g to R)
   * 4) The set of peers R is the peers the client needs to request endorsements from
   * 
* * Protobuf type {@code discovery.EndorsementDescriptor} */ public static final class EndorsementDescriptor extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.EndorsementDescriptor) EndorsementDescriptorOrBuilder { // Use EndorsementDescriptor.newBuilder() to construct. private EndorsementDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EndorsementDescriptor() { chaincode_ = ""; layouts_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private EndorsementDescriptor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); chaincode_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { endorsersByGroups_ = com.google.protobuf.MapField.newMapField( EndorsersByGroupsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry endorsersByGroups = input.readMessage( EndorsersByGroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); endorsersByGroups_.getMutableMap().put(endorsersByGroups.getKey(), endorsersByGroups.getValue()); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { layouts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } layouts_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.Layout.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { layouts_ = java.util.Collections.unmodifiableList(layouts_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetEndorsersByGroups(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.class, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder.class); } private int bitField0_; public static final int CHAINCODE_FIELD_NUMBER = 1; private volatile java.lang.Object chaincode_; /** * optional string chaincode = 1; */ public java.lang.String getChaincode() { java.lang.Object ref = chaincode_; 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(); chaincode_ = s; return s; } } /** * optional string chaincode = 1; */ public com.google.protobuf.ByteString getChaincodeBytes() { java.lang.Object ref = chaincode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chaincode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENDORSERS_BY_GROUPS_FIELD_NUMBER = 2; private static final class EndorsersByGroupsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, org.hyperledger.fabric.protos.discovery.Protocol.Peers.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> endorsersByGroups_; private com.google.protobuf.MapField internalGetEndorsersByGroups() { if (endorsersByGroups_ == null) { return com.google.protobuf.MapField.emptyMapField( EndorsersByGroupsDefaultEntryHolder.defaultEntry); } return endorsersByGroups_; } public int getEndorsersByGroupsCount() { return internalGetEndorsersByGroups().getMap().size(); } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public boolean containsEndorsersByGroups( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetEndorsersByGroups().getMap().containsKey(key); } /** * Use {@link #getEndorsersByGroupsMap()} instead. */ @java.lang.Deprecated public java.util.Map getEndorsersByGroups() { return getEndorsersByGroupsMap(); } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public java.util.Map getEndorsersByGroupsMap() { return internalGetEndorsersByGroups().getMap(); } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEndorsersByGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEndorsersByGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int LAYOUTS_FIELD_NUMBER = 3; private java.util.List layouts_; /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ public java.util.List getLayoutsList() { return layouts_; } /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ public java.util.List getLayoutsOrBuilderList() { return layouts_; } /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ public int getLayoutsCount() { return layouts_.size(); } /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.Layout getLayouts(int index) { return layouts_.get(index); } /** *
     * Specifies options of fulfulling the endorsement policy.
     * Each option lists the group names, and the amount of signatures needed
     * from each group.
     * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder getLayoutsOrBuilder( int index) { return layouts_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChaincodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chaincode_); } for (java.util.Map.Entry entry : internalGetEndorsersByGroups().getMap().entrySet()) { com.google.protobuf.MapEntry endorsersByGroups = EndorsersByGroupsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(2, endorsersByGroups); } for (int i = 0; i < layouts_.size(); i++) { output.writeMessage(3, layouts_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getChaincodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, chaincode_); } for (java.util.Map.Entry entry : internalGetEndorsersByGroups().getMap().entrySet()) { com.google.protobuf.MapEntry endorsersByGroups = EndorsersByGroupsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, endorsersByGroups); } for (int i = 0; i < layouts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, layouts_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor other = (org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor) obj; boolean result = true; result = result && getChaincode() .equals(other.getChaincode()); result = result && internalGetEndorsersByGroups().equals( other.internalGetEndorsersByGroups()); result = result && getLayoutsList() .equals(other.getLayoutsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CHAINCODE_FIELD_NUMBER; hash = (53 * hash) + getChaincode().hashCode(); if (!internalGetEndorsersByGroups().getMap().isEmpty()) { hash = (37 * hash) + ENDORSERS_BY_GROUPS_FIELD_NUMBER; hash = (53 * hash) + internalGetEndorsersByGroups().hashCode(); } if (getLayoutsCount() > 0) { hash = (37 * hash) + LAYOUTS_FIELD_NUMBER; hash = (53 * hash) + getLayoutsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor 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.discovery.Protocol.EndorsementDescriptor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor 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.discovery.Protocol.EndorsementDescriptor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor 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.discovery.Protocol.EndorsementDescriptor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * EndorsementDescriptor contains information about which peers can be used
     * to request endorsement from, such that the endorsement policy would be fulfilled.
     * Here is how to compute a set of peers to ask an endorsement from, given an EndorsementDescriptor:
     * Let e: G --> P be the endorsers_by_groups field that maps a group to a set of peers.
     * Note that applying e on a group g yields a set of peers.
     * 1) Select a layout l: G --> N out of the layouts given.
     *    l is the quantities_by_group field of a Layout, and it maps a group to an integer.
     * 2) R = {}  (an empty set of peers)
     * 3) For each group g in the layout l, compute n = l(g)
     *    3.1) Denote P_g as a set of n random peers {p0, p1, ... p_n} selected from e(g)
     *    3.2) R = R U P_g  (add P_g to R)
     * 4) The set of peers R is the peers the client needs to request endorsements from
     * 
* * Protobuf type {@code discovery.EndorsementDescriptor} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.EndorsementDescriptor) org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetEndorsersByGroups(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableEndorsersByGroups(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.class, org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLayoutsFieldBuilder(); } } public Builder clear() { super.clear(); chaincode_ = ""; internalGetMutableEndorsersByGroups().clear(); if (layoutsBuilder_ == null) { layouts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { layoutsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor build() { org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor result = new org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.chaincode_ = chaincode_; result.endorsersByGroups_ = internalGetEndorsersByGroups(); result.endorsersByGroups_.makeImmutable(); if (layoutsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { layouts_ = java.util.Collections.unmodifiableList(layouts_); bitField0_ = (bitField0_ & ~0x00000004); } result.layouts_ = layouts_; } else { result.layouts_ = layoutsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.getDefaultInstance()) return this; if (!other.getChaincode().isEmpty()) { chaincode_ = other.chaincode_; onChanged(); } internalGetMutableEndorsersByGroups().mergeFrom( other.internalGetEndorsersByGroups()); if (layoutsBuilder_ == null) { if (!other.layouts_.isEmpty()) { if (layouts_.isEmpty()) { layouts_ = other.layouts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLayoutsIsMutable(); layouts_.addAll(other.layouts_); } onChanged(); } } else { if (!other.layouts_.isEmpty()) { if (layoutsBuilder_.isEmpty()) { layoutsBuilder_.dispose(); layoutsBuilder_ = null; layouts_ = other.layouts_; bitField0_ = (bitField0_ & ~0x00000004); layoutsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLayoutsFieldBuilder() : null; } else { layoutsBuilder_.addAllMessages(other.layouts_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object chaincode_ = ""; /** * optional string chaincode = 1; */ public java.lang.String getChaincode() { java.lang.Object ref = chaincode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chaincode_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string chaincode = 1; */ public com.google.protobuf.ByteString getChaincodeBytes() { java.lang.Object ref = chaincode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chaincode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string chaincode = 1; */ public Builder setChaincode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chaincode_ = value; onChanged(); return this; } /** * optional string chaincode = 1; */ public Builder clearChaincode() { chaincode_ = getDefaultInstance().getChaincode(); onChanged(); return this; } /** * optional string chaincode = 1; */ public Builder setChaincodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chaincode_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.discovery.Protocol.Peers> endorsersByGroups_; private com.google.protobuf.MapField internalGetEndorsersByGroups() { if (endorsersByGroups_ == null) { return com.google.protobuf.MapField.emptyMapField( EndorsersByGroupsDefaultEntryHolder.defaultEntry); } return endorsersByGroups_; } private com.google.protobuf.MapField internalGetMutableEndorsersByGroups() { onChanged();; if (endorsersByGroups_ == null) { endorsersByGroups_ = com.google.protobuf.MapField.newMapField( EndorsersByGroupsDefaultEntryHolder.defaultEntry); } if (!endorsersByGroups_.isMutable()) { endorsersByGroups_ = endorsersByGroups_.copy(); } return endorsersByGroups_; } public int getEndorsersByGroupsCount() { return internalGetEndorsersByGroups().getMap().size(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public boolean containsEndorsersByGroups( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetEndorsersByGroups().getMap().containsKey(key); } /** * Use {@link #getEndorsersByGroupsMap()} instead. */ @java.lang.Deprecated public java.util.Map getEndorsersByGroups() { return getEndorsersByGroupsMap(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public java.util.Map getEndorsersByGroupsMap() { return internalGetEndorsersByGroups().getMap(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEndorsersByGroups().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEndorsersByGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearEndorsersByGroups() { getMutableEndorsersByGroups().clear(); return this; } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public Builder removeEndorsersByGroups( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableEndorsersByGroups().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableEndorsersByGroups() { return internalGetMutableEndorsersByGroups().getMutableMap(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public Builder putEndorsersByGroups( java.lang.String key, org.hyperledger.fabric.protos.discovery.Protocol.Peers value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableEndorsersByGroups().put(key, value); return this; } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ public Builder putAllEndorsersByGroups( java.util.Map values) { getMutableEndorsersByGroups().putAll(values); return this; } private java.util.List layouts_ = java.util.Collections.emptyList(); private void ensureLayoutsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { layouts_ = new java.util.ArrayList(layouts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Layout, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder> layoutsBuilder_; /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public java.util.List getLayoutsList() { if (layoutsBuilder_ == null) { return java.util.Collections.unmodifiableList(layouts_); } else { return layoutsBuilder_.getMessageList(); } } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public int getLayoutsCount() { if (layoutsBuilder_ == null) { return layouts_.size(); } else { return layoutsBuilder_.getCount(); } } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.Layout getLayouts(int index) { if (layoutsBuilder_ == null) { return layouts_.get(index); } else { return layoutsBuilder_.getMessage(index); } } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder setLayouts( int index, org.hyperledger.fabric.protos.discovery.Protocol.Layout value) { if (layoutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayoutsIsMutable(); layouts_.set(index, value); onChanged(); } else { layoutsBuilder_.setMessage(index, value); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder setLayouts( int index, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder builderForValue) { if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); layouts_.set(index, builderForValue.build()); onChanged(); } else { layoutsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder addLayouts(org.hyperledger.fabric.protos.discovery.Protocol.Layout value) { if (layoutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayoutsIsMutable(); layouts_.add(value); onChanged(); } else { layoutsBuilder_.addMessage(value); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder addLayouts( int index, org.hyperledger.fabric.protos.discovery.Protocol.Layout value) { if (layoutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLayoutsIsMutable(); layouts_.add(index, value); onChanged(); } else { layoutsBuilder_.addMessage(index, value); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder addLayouts( org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder builderForValue) { if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); layouts_.add(builderForValue.build()); onChanged(); } else { layoutsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder addLayouts( int index, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder builderForValue) { if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); layouts_.add(index, builderForValue.build()); onChanged(); } else { layoutsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder addAllLayouts( java.lang.Iterable values) { if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, layouts_); onChanged(); } else { layoutsBuilder_.addAllMessages(values); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder clearLayouts() { if (layoutsBuilder_ == null) { layouts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { layoutsBuilder_.clear(); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public Builder removeLayouts(int index) { if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); layouts_.remove(index); onChanged(); } else { layoutsBuilder_.remove(index); } return this; } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder getLayoutsBuilder( int index) { return getLayoutsFieldBuilder().getBuilder(index); } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder getLayoutsOrBuilder( int index) { if (layoutsBuilder_ == null) { return layouts_.get(index); } else { return layoutsBuilder_.getMessageOrBuilder(index); } } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public java.util.List getLayoutsOrBuilderList() { if (layoutsBuilder_ != null) { return layoutsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(layouts_); } } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder addLayoutsBuilder() { return getLayoutsFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.Layout.getDefaultInstance()); } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder addLayoutsBuilder( int index) { return getLayoutsFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.Layout.getDefaultInstance()); } /** *
       * Specifies options of fulfulling the endorsement policy.
       * Each option lists the group names, and the amount of signatures needed
       * from each group.
       * 
* * repeated .discovery.Layout layouts = 3; */ public java.util.List getLayoutsBuilderList() { return getLayoutsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Layout, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder> getLayoutsFieldBuilder() { if (layoutsBuilder_ == null) { layoutsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Layout, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder, org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder>( layouts_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); layouts_ = null; } return layoutsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.EndorsementDescriptor) } // @@protoc_insertion_point(class_scope:discovery.EndorsementDescriptor) private static final org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor(); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EndorsementDescriptor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EndorsementDescriptor(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Layout) com.google.protobuf.MessageOrBuilder { /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ int getQuantitiesByGroupCount(); /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ boolean containsQuantitiesByGroup( java.lang.String key); /** * Use {@link #getQuantitiesByGroupMap()} instead. */ @java.lang.Deprecated java.util.Map getQuantitiesByGroup(); /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ java.util.Map getQuantitiesByGroupMap(); /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ int getQuantitiesByGroupOrDefault( java.lang.String key, int defaultValue); /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ int getQuantitiesByGroupOrThrow( java.lang.String key); } /** *
   * Layout contains a mapping from a group name to number of peers
   * that are needed for fulfilling an endorsement policy
   * 
* * Protobuf type {@code discovery.Layout} */ public static final class Layout extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Layout) LayoutOrBuilder { // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Layout() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Layout( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { quantitiesByGroup_ = com.google.protobuf.MapField.newMapField( QuantitiesByGroupDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry quantitiesByGroup = input.readMessage( QuantitiesByGroupDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); quantitiesByGroup_.getMutableMap().put(quantitiesByGroup.getKey(), quantitiesByGroup.getValue()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetQuantitiesByGroup(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Layout.class, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder.class); } public static final int QUANTITIES_BY_GROUP_FIELD_NUMBER = 1; private static final class QuantitiesByGroupDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Integer> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_QuantitiesByGroupEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.UINT32, 0); } private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> quantitiesByGroup_; private com.google.protobuf.MapField internalGetQuantitiesByGroup() { if (quantitiesByGroup_ == null) { return com.google.protobuf.MapField.emptyMapField( QuantitiesByGroupDefaultEntryHolder.defaultEntry); } return quantitiesByGroup_; } public int getQuantitiesByGroupCount() { return internalGetQuantitiesByGroup().getMap().size(); } /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ public boolean containsQuantitiesByGroup( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQuantitiesByGroup().getMap().containsKey(key); } /** * Use {@link #getQuantitiesByGroupMap()} instead. */ @java.lang.Deprecated public java.util.Map getQuantitiesByGroup() { return getQuantitiesByGroupMap(); } /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ public java.util.Map getQuantitiesByGroupMap() { return internalGetQuantitiesByGroup().getMap(); } /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ public int getQuantitiesByGroupOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Specifies how many non repeated signatures of each group
     * are needed for endorsement
     * 
* * map<string, uint32> quantities_by_group = 1; */ public int getQuantitiesByGroupOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (java.util.Map.Entry entry : internalGetQuantitiesByGroup().getMap().entrySet()) { com.google.protobuf.MapEntry quantitiesByGroup = QuantitiesByGroupDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); output.writeMessage(1, quantitiesByGroup); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetQuantitiesByGroup().getMap().entrySet()) { com.google.protobuf.MapEntry quantitiesByGroup = QuantitiesByGroupDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, quantitiesByGroup); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Layout)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Layout other = (org.hyperledger.fabric.protos.discovery.Protocol.Layout) obj; boolean result = true; result = result && internalGetQuantitiesByGroup().equals( other.internalGetQuantitiesByGroup()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (!internalGetQuantitiesByGroup().getMap().isEmpty()) { hash = (37 * hash) + QUANTITIES_BY_GROUP_FIELD_NUMBER; hash = (53 * hash) + internalGetQuantitiesByGroup().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout 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.discovery.Protocol.Layout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout 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.discovery.Protocol.Layout parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout 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.discovery.Protocol.Layout parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Layout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Layout contains a mapping from a group name to number of peers
     * that are needed for fulfilling an endorsement policy
     * 
* * Protobuf type {@code discovery.Layout} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Layout) org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetQuantitiesByGroup(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableQuantitiesByGroup(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Layout.class, org.hyperledger.fabric.protos.discovery.Protocol.Layout.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Layout.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); internalGetMutableQuantitiesByGroup().clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Layout getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Layout.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Layout build() { org.hyperledger.fabric.protos.discovery.Protocol.Layout result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Layout buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Layout result = new org.hyperledger.fabric.protos.discovery.Protocol.Layout(this); int from_bitField0_ = bitField0_; result.quantitiesByGroup_ = internalGetQuantitiesByGroup(); result.quantitiesByGroup_.makeImmutable(); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Layout) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Layout)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Layout other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Layout.getDefaultInstance()) return this; internalGetMutableQuantitiesByGroup().mergeFrom( other.internalGetQuantitiesByGroup()); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Layout parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Layout) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.Integer> quantitiesByGroup_; private com.google.protobuf.MapField internalGetQuantitiesByGroup() { if (quantitiesByGroup_ == null) { return com.google.protobuf.MapField.emptyMapField( QuantitiesByGroupDefaultEntryHolder.defaultEntry); } return quantitiesByGroup_; } private com.google.protobuf.MapField internalGetMutableQuantitiesByGroup() { onChanged();; if (quantitiesByGroup_ == null) { quantitiesByGroup_ = com.google.protobuf.MapField.newMapField( QuantitiesByGroupDefaultEntryHolder.defaultEntry); } if (!quantitiesByGroup_.isMutable()) { quantitiesByGroup_ = quantitiesByGroup_.copy(); } return quantitiesByGroup_; } public int getQuantitiesByGroupCount() { return internalGetQuantitiesByGroup().getMap().size(); } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public boolean containsQuantitiesByGroup( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetQuantitiesByGroup().getMap().containsKey(key); } /** * Use {@link #getQuantitiesByGroupMap()} instead. */ @java.lang.Deprecated public java.util.Map getQuantitiesByGroup() { return getQuantitiesByGroupMap(); } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public java.util.Map getQuantitiesByGroupMap() { return internalGetQuantitiesByGroup().getMap(); } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public int getQuantitiesByGroupOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public int getQuantitiesByGroupOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQuantitiesByGroup() { getMutableQuantitiesByGroup().clear(); return this; } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public Builder removeQuantitiesByGroup( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableQuantitiesByGroup().remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableQuantitiesByGroup() { return internalGetMutableQuantitiesByGroup().getMutableMap(); } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public Builder putQuantitiesByGroup( java.lang.String key, int value) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableQuantitiesByGroup().put(key, value); return this; } /** *
       * Specifies how many non repeated signatures of each group
       * are needed for endorsement
       * 
* * map<string, uint32> quantities_by_group = 1; */ public Builder putAllQuantitiesByGroup( java.util.Map values) { getMutableQuantitiesByGroup().putAll(values); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Layout) } // @@protoc_insertion_point(class_scope:discovery.Layout) private static final org.hyperledger.fabric.protos.discovery.Protocol.Layout DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Layout(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Layout parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Layout(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Layout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeersOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Peers) com.google.protobuf.MessageOrBuilder { /** * repeated .discovery.Peer peers = 1; */ java.util.List getPeersList(); /** * repeated .discovery.Peer peers = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.Peer getPeers(int index); /** * repeated .discovery.Peer peers = 1; */ int getPeersCount(); /** * repeated .discovery.Peer peers = 1; */ java.util.List getPeersOrBuilderList(); /** * repeated .discovery.Peer peers = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder getPeersOrBuilder( int index); } /** *
   * Peers contains a list of Peer(s)
   * 
* * Protobuf type {@code discovery.Peers} */ public static final class Peers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Peers) PeersOrBuilder { // Use Peers.newBuilder() to construct. private Peers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Peers() { peers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Peers( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } peers_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.Peer.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Peers.class, org.hyperledger.fabric.protos.discovery.Protocol.Peers.Builder.class); } public static final int PEERS_FIELD_NUMBER = 1; private java.util.List peers_; /** * repeated .discovery.Peer peers = 1; */ public java.util.List getPeersList() { return peers_; } /** * repeated .discovery.Peer peers = 1; */ public java.util.List getPeersOrBuilderList() { return peers_; } /** * repeated .discovery.Peer peers = 1; */ public int getPeersCount() { return peers_.size(); } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peer getPeers(int index) { return peers_.get(index); } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder getPeersOrBuilder( int index) { return peers_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peers_.size(); i++) { output.writeMessage(1, peers_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < peers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peers_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peers)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Peers other = (org.hyperledger.fabric.protos.discovery.Protocol.Peers) obj; boolean result = true; result = result && getPeersList() .equals(other.getPeersList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getPeersCount() > 0) { hash = (37 * hash) + PEERS_FIELD_NUMBER; hash = (53 * hash) + getPeersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers 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.discovery.Protocol.Peers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers 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.discovery.Protocol.Peers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers 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.discovery.Protocol.Peers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Peers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Peers contains a list of Peer(s)
     * 
* * Protobuf type {@code discovery.Peers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Peers) org.hyperledger.fabric.protos.discovery.Protocol.PeersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Peers.class, org.hyperledger.fabric.protos.discovery.Protocol.Peers.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Peers.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPeersFieldBuilder(); } } public Builder clear() { super.clear(); if (peersBuilder_ == null) { peers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { peersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Peers getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Peers.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Peers build() { org.hyperledger.fabric.protos.discovery.Protocol.Peers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Peers buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Peers result = new org.hyperledger.fabric.protos.discovery.Protocol.Peers(this); int from_bitField0_ = bitField0_; if (peersBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); bitField0_ = (bitField0_ & ~0x00000001); } result.peers_ = peers_; } else { result.peers_ = peersBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peers) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Peers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Peers other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Peers.getDefaultInstance()) return this; if (peersBuilder_ == null) { if (!other.peers_.isEmpty()) { if (peers_.isEmpty()) { peers_ = other.peers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePeersIsMutable(); peers_.addAll(other.peers_); } onChanged(); } } else { if (!other.peers_.isEmpty()) { if (peersBuilder_.isEmpty()) { peersBuilder_.dispose(); peersBuilder_ = null; peers_ = other.peers_; bitField0_ = (bitField0_ & ~0x00000001); peersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPeersFieldBuilder() : null; } else { peersBuilder_.addAllMessages(other.peers_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Peers parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Peers) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List peers_ = java.util.Collections.emptyList(); private void ensurePeersIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(peers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Peer, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder> peersBuilder_; /** * repeated .discovery.Peer peers = 1; */ public java.util.List getPeersList() { if (peersBuilder_ == null) { return java.util.Collections.unmodifiableList(peers_); } else { return peersBuilder_.getMessageList(); } } /** * repeated .discovery.Peer peers = 1; */ public int getPeersCount() { if (peersBuilder_ == null) { return peers_.size(); } else { return peersBuilder_.getCount(); } } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peer getPeers(int index) { if (peersBuilder_ == null) { return peers_.get(index); } else { return peersBuilder_.getMessage(index); } } /** * repeated .discovery.Peer peers = 1; */ public Builder setPeers( int index, org.hyperledger.fabric.protos.discovery.Protocol.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.set(index, value); onChanged(); } else { peersBuilder_.setMessage(index, value); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder setPeers( int index, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.set(index, builderForValue.build()); onChanged(); } else { peersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder addPeers(org.hyperledger.fabric.protos.discovery.Protocol.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.add(value); onChanged(); } else { peersBuilder_.addMessage(value); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder addPeers( int index, org.hyperledger.fabric.protos.discovery.Protocol.Peer value) { if (peersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePeersIsMutable(); peers_.add(index, value); onChanged(); } else { peersBuilder_.addMessage(index, value); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder addPeers( org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.add(builderForValue.build()); onChanged(); } else { peersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder addPeers( int index, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder builderForValue) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.add(index, builderForValue.build()); onChanged(); } else { peersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder addAllPeers( java.lang.Iterable values) { if (peersBuilder_ == null) { ensurePeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, peers_); onChanged(); } else { peersBuilder_.addAllMessages(values); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder clearPeers() { if (peersBuilder_ == null) { peers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { peersBuilder_.clear(); } return this; } /** * repeated .discovery.Peer peers = 1; */ public Builder removePeers(int index) { if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.remove(index); onChanged(); } else { peersBuilder_.remove(index); } return this; } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder getPeersBuilder( int index) { return getPeersFieldBuilder().getBuilder(index); } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder getPeersOrBuilder( int index) { if (peersBuilder_ == null) { return peers_.get(index); } else { return peersBuilder_.getMessageOrBuilder(index); } } /** * repeated .discovery.Peer peers = 1; */ public java.util.List getPeersOrBuilderList() { if (peersBuilder_ != null) { return peersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(peers_); } } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder addPeersBuilder() { return getPeersFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.Peer.getDefaultInstance()); } /** * repeated .discovery.Peer peers = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder addPeersBuilder( int index) { return getPeersFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.Peer.getDefaultInstance()); } /** * repeated .discovery.Peer peers = 1; */ public java.util.List getPeersBuilderList() { return getPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Peer, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder> getPeersFieldBuilder() { if (peersBuilder_ == null) { peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Peer, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder, org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder>( peers_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); peers_ = null; } return peersBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Peers) } // @@protoc_insertion_point(class_scope:discovery.Peers) private static final org.hyperledger.fabric.protos.discovery.Protocol.Peers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Peers(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Peers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Peers(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Peers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Peer) com.google.protobuf.MessageOrBuilder { /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ boolean hasStateInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getStateInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getStateInfoOrBuilder(); /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ boolean hasMembershipInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ org.hyperledger.fabric.protos.gossip.Message.Envelope getMembershipInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getMembershipInfoOrBuilder(); /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * optional bytes identity = 3; */ com.google.protobuf.ByteString getIdentity(); } /** *
   * Peer contains information about the peer such as its channel specific
   * state, and membership information.
   * 
* * Protobuf type {@code discovery.Peer} */ public static final class Peer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Peer) PeerOrBuilder { // Use Peer.newBuilder() to construct. private Peer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Peer() { identity_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Peer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder subBuilder = null; if (stateInfo_ != null) { subBuilder = stateInfo_.toBuilder(); } stateInfo_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stateInfo_); stateInfo_ = subBuilder.buildPartial(); } break; } case 18: { org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder subBuilder = null; if (membershipInfo_ != null) { subBuilder = membershipInfo_.toBuilder(); } membershipInfo_ = input.readMessage(org.hyperledger.fabric.protos.gossip.Message.Envelope.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(membershipInfo_); membershipInfo_ = subBuilder.buildPartial(); } break; } case 26: { identity_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Peer.class, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder.class); } public static final int STATE_INFO_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Message.Envelope stateInfo_; /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ public boolean hasStateInfo() { return stateInfo_ != null; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getStateInfo() { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : stateInfo_; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * optional .gossip.Envelope state_info = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getStateInfoOrBuilder() { return getStateInfo(); } public static final int MEMBERSHIP_INFO_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.Message.Envelope membershipInfo_; /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ public boolean hasMembershipInfo() { return membershipInfo_ != null; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getMembershipInfo() { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : membershipInfo_; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * optional .gossip.Envelope membership_info = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getMembershipInfoOrBuilder() { return getMembershipInfo(); } public static final int IDENTITY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString identity_; /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * optional bytes identity = 3; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stateInfo_ != null) { output.writeMessage(1, getStateInfo()); } if (membershipInfo_ != null) { output.writeMessage(2, getMembershipInfo()); } if (!identity_.isEmpty()) { output.writeBytes(3, identity_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stateInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStateInfo()); } if (membershipInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMembershipInfo()); } if (!identity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, identity_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peer)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Peer other = (org.hyperledger.fabric.protos.discovery.Protocol.Peer) obj; boolean result = true; result = result && (hasStateInfo() == other.hasStateInfo()); if (hasStateInfo()) { result = result && getStateInfo() .equals(other.getStateInfo()); } result = result && (hasMembershipInfo() == other.hasMembershipInfo()); if (hasMembershipInfo()) { result = result && getMembershipInfo() .equals(other.getMembershipInfo()); } result = result && getIdentity() .equals(other.getIdentity()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasStateInfo()) { hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); } if (hasMembershipInfo()) { hash = (37 * hash) + MEMBERSHIP_INFO_FIELD_NUMBER; hash = (53 * hash) + getMembershipInfo().hashCode(); } hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer 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.discovery.Protocol.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer 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.discovery.Protocol.Peer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer 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.discovery.Protocol.Peer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Peer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Peer contains information about the peer such as its channel specific
     * state, and membership information.
     * 
* * Protobuf type {@code discovery.Peer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Peer) org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Peer.class, org.hyperledger.fabric.protos.discovery.Protocol.Peer.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Peer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (stateInfoBuilder_ == null) { stateInfo_ = null; } else { stateInfo_ = null; stateInfoBuilder_ = null; } if (membershipInfoBuilder_ == null) { membershipInfo_ = null; } else { membershipInfo_ = null; membershipInfoBuilder_ = null; } identity_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Peer getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Peer.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Peer build() { org.hyperledger.fabric.protos.discovery.Protocol.Peer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Peer buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Peer result = new org.hyperledger.fabric.protos.discovery.Protocol.Peer(this); if (stateInfoBuilder_ == null) { result.stateInfo_ = stateInfo_; } else { result.stateInfo_ = stateInfoBuilder_.build(); } if (membershipInfoBuilder_ == null) { result.membershipInfo_ = membershipInfo_; } else { result.membershipInfo_ = membershipInfoBuilder_.build(); } result.identity_ = identity_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peer) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Peer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Peer other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Peer.getDefaultInstance()) return this; if (other.hasStateInfo()) { mergeStateInfo(other.getStateInfo()); } if (other.hasMembershipInfo()) { mergeMembershipInfo(other.getMembershipInfo()); } if (other.getIdentity() != com.google.protobuf.ByteString.EMPTY) { setIdentity(other.getIdentity()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Peer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Peer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.hyperledger.fabric.protos.gossip.Message.Envelope stateInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> stateInfoBuilder_; /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public boolean hasStateInfo() { return stateInfoBuilder_ != null || stateInfo_ != null; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getStateInfo() { if (stateInfoBuilder_ == null) { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : stateInfo_; } else { return stateInfoBuilder_.getMessage(); } } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public Builder setStateInfo(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (stateInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stateInfo_ = value; onChanged(); } else { stateInfoBuilder_.setMessage(value); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public Builder setStateInfo( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (stateInfoBuilder_ == null) { stateInfo_ = builderForValue.build(); onChanged(); } else { stateInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public Builder mergeStateInfo(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (stateInfoBuilder_ == null) { if (stateInfo_ != null) { stateInfo_ = org.hyperledger.fabric.protos.gossip.Message.Envelope.newBuilder(stateInfo_).mergeFrom(value).buildPartial(); } else { stateInfo_ = value; } onChanged(); } else { stateInfoBuilder_.mergeFrom(value); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public Builder clearStateInfo() { if (stateInfoBuilder_ == null) { stateInfo_ = null; onChanged(); } else { stateInfo_ = null; stateInfoBuilder_ = null; } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getStateInfoBuilder() { onChanged(); return getStateInfoFieldBuilder().getBuilder(); } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 1; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getStateInfoOrBuilder() { if (stateInfoBuilder_ != null) { return stateInfoBuilder_.getMessageOrBuilder(); } else { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : stateInfo_; } } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * optional .gossip.Envelope state_info = 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> getStateInfoFieldBuilder() { if (stateInfoBuilder_ == null) { stateInfoBuilder_ = 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>( getStateInfo(), getParentForChildren(), isClean()); stateInfo_ = null; } return stateInfoBuilder_; } private org.hyperledger.fabric.protos.gossip.Message.Envelope membershipInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.hyperledger.fabric.protos.gossip.Message.Envelope, org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder, org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder> membershipInfoBuilder_; /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public boolean hasMembershipInfo() { return membershipInfoBuilder_ != null || membershipInfo_ != null; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope getMembershipInfo() { if (membershipInfoBuilder_ == null) { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : membershipInfo_; } else { return membershipInfoBuilder_.getMessage(); } } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public Builder setMembershipInfo(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (membershipInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } membershipInfo_ = value; onChanged(); } else { membershipInfoBuilder_.setMessage(value); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public Builder setMembershipInfo( org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder builderForValue) { if (membershipInfoBuilder_ == null) { membershipInfo_ = builderForValue.build(); onChanged(); } else { membershipInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public Builder mergeMembershipInfo(org.hyperledger.fabric.protos.gossip.Message.Envelope value) { if (membershipInfoBuilder_ == null) { if (membershipInfo_ != null) { membershipInfo_ = org.hyperledger.fabric.protos.gossip.Message.Envelope.newBuilder(membershipInfo_).mergeFrom(value).buildPartial(); } else { membershipInfo_ = value; } onChanged(); } else { membershipInfoBuilder_.mergeFrom(value); } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public Builder clearMembershipInfo() { if (membershipInfoBuilder_ == null) { membershipInfo_ = null; onChanged(); } else { membershipInfo_ = null; membershipInfoBuilder_ = null; } return this; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public org.hyperledger.fabric.protos.gossip.Message.Envelope.Builder getMembershipInfoBuilder() { onChanged(); return getMembershipInfoFieldBuilder().getBuilder(); } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ public org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getMembershipInfoOrBuilder() { if (membershipInfoBuilder_ != null) { return membershipInfoBuilder_.getMessageOrBuilder(); } else { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Message.Envelope.getDefaultInstance() : membershipInfo_; } } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * optional .gossip.Envelope membership_info = 2; */ 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> getMembershipInfoFieldBuilder() { if (membershipInfoBuilder_ == null) { membershipInfoBuilder_ = 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>( getMembershipInfo(), getParentForChildren(), isClean()); membershipInfo_ = null; } return membershipInfoBuilder_; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This is the msp.SerializedIdentity of the peer, represented in bytes.
       * 
* * optional bytes identity = 3; */ public com.google.protobuf.ByteString getIdentity() { return identity_; } /** *
       * This is the msp.SerializedIdentity of the peer, represented in bytes.
       * 
* * optional bytes identity = 3; */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
       * This is the msp.SerializedIdentity of the peer, represented in bytes.
       * 
* * optional bytes identity = 3; */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Peer) } // @@protoc_insertion_point(class_scope:discovery.Peer) private static final org.hyperledger.fabric.protos.discovery.Protocol.Peer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Peer(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Peer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Peer(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Peer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Error) com.google.protobuf.MessageOrBuilder { /** * optional string content = 1; */ java.lang.String getContent(); /** * optional string content = 1; */ com.google.protobuf.ByteString getContentBytes(); } /** *
   * Error denotes that something went wrong and contains the error message
   * 
* * Protobuf type {@code discovery.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Error) ErrorOrBuilder { // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { content_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); content_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Error.class, org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder.class); } public static final int CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object content_; /** * optional string content = 1; */ public java.lang.String getContent() { java.lang.Object 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(); content_ = s; return s; } } /** * optional string content = 1; */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getContentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getContentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Error)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Error other = (org.hyperledger.fabric.protos.discovery.Protocol.Error) obj; boolean result = true; result = result && getContent() .equals(other.getContent()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error 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.discovery.Protocol.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error 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.discovery.Protocol.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error 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.discovery.Protocol.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Error denotes that something went wrong and contains the error message
     * 
* * Protobuf type {@code discovery.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Error) org.hyperledger.fabric.protos.discovery.Protocol.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Error.class, org.hyperledger.fabric.protos.discovery.Protocol.Error.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); content_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Error getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Error build() { org.hyperledger.fabric.protos.discovery.Protocol.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Error buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Error result = new org.hyperledger.fabric.protos.discovery.Protocol.Error(this); result.content_ = content_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Error) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Error other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance()) return this; if (!other.getContent().isEmpty()) { content_ = other.content_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object content_ = ""; /** * optional string content = 1; */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string content = 1; */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string content = 1; */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** * optional string content = 1; */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** * optional string content = 1; */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Error) } // @@protoc_insertion_point(class_scope:discovery.Error) private static final org.hyperledger.fabric.protos.discovery.Protocol.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Error(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointsOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Endpoints) com.google.protobuf.MessageOrBuilder { /** * repeated .discovery.Endpoint endpoint = 1; */ java.util.List getEndpointList(); /** * repeated .discovery.Endpoint endpoint = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getEndpoint(int index); /** * repeated .discovery.Endpoint endpoint = 1; */ int getEndpointCount(); /** * repeated .discovery.Endpoint endpoint = 1; */ java.util.List getEndpointOrBuilderList(); /** * repeated .discovery.Endpoint endpoint = 1; */ org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder getEndpointOrBuilder( int index); } /** *
   * Endpoints is a list of Endpoint(s)
   * 
* * Protobuf type {@code discovery.Endpoints} */ public static final class Endpoints extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Endpoints) EndpointsOrBuilder { // Use Endpoints.newBuilder() to construct. private Endpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endpoints() { endpoint_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Endpoints( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { endpoint_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } endpoint_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { endpoint_ = java.util.Collections.unmodifiableList(endpoint_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.class, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private java.util.List endpoint_; /** * repeated .discovery.Endpoint endpoint = 1; */ public java.util.List getEndpointList() { return endpoint_; } /** * repeated .discovery.Endpoint endpoint = 1; */ public java.util.List getEndpointOrBuilderList() { return endpoint_; } /** * repeated .discovery.Endpoint endpoint = 1; */ public int getEndpointCount() { return endpoint_.size(); } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getEndpoint(int index) { return endpoint_.get(index); } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder getEndpointOrBuilder( int index) { return endpoint_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < endpoint_.size(); i++) { output.writeMessage(1, endpoint_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < endpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, endpoint_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoints)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Endpoints other = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoints) obj; boolean result = true; result = result && getEndpointList() .equals(other.getEndpointList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEndpointCount() > 0) { hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpointList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints 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.discovery.Protocol.Endpoints parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints 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.discovery.Protocol.Endpoints parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints 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.discovery.Protocol.Endpoints parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Endpoints prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Endpoints is a list of Endpoint(s)
     * 
* * Protobuf type {@code discovery.Endpoints} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Endpoints) org.hyperledger.fabric.protos.discovery.Protocol.EndpointsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.class, org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEndpointFieldBuilder(); } } public Builder clear() { super.clear(); if (endpointBuilder_ == null) { endpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { endpointBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints build() { org.hyperledger.fabric.protos.discovery.Protocol.Endpoints result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Endpoints result = new org.hyperledger.fabric.protos.discovery.Protocol.Endpoints(this); int from_bitField0_ = bitField0_; if (endpointBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { endpoint_ = java.util.Collections.unmodifiableList(endpoint_); bitField0_ = (bitField0_ & ~0x00000001); } result.endpoint_ = endpoint_; } else { result.endpoint_ = endpointBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoints) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Endpoints)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Endpoints other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.getDefaultInstance()) return this; if (endpointBuilder_ == null) { if (!other.endpoint_.isEmpty()) { if (endpoint_.isEmpty()) { endpoint_ = other.endpoint_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEndpointIsMutable(); endpoint_.addAll(other.endpoint_); } onChanged(); } } else { if (!other.endpoint_.isEmpty()) { if (endpointBuilder_.isEmpty()) { endpointBuilder_.dispose(); endpointBuilder_ = null; endpoint_ = other.endpoint_; bitField0_ = (bitField0_ & ~0x00000001); endpointBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEndpointFieldBuilder() : null; } else { endpointBuilder_.addAllMessages(other.endpoint_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoints) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List endpoint_ = java.util.Collections.emptyList(); private void ensureEndpointIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { endpoint_ = new java.util.ArrayList(endpoint_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Endpoint, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder> endpointBuilder_; /** * repeated .discovery.Endpoint endpoint = 1; */ public java.util.List getEndpointList() { if (endpointBuilder_ == null) { return java.util.Collections.unmodifiableList(endpoint_); } else { return endpointBuilder_.getMessageList(); } } /** * repeated .discovery.Endpoint endpoint = 1; */ public int getEndpointCount() { if (endpointBuilder_ == null) { return endpoint_.size(); } else { return endpointBuilder_.getCount(); } } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getEndpoint(int index) { if (endpointBuilder_ == null) { return endpoint_.get(index); } else { return endpointBuilder_.getMessage(index); } } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder setEndpoint( int index, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.set(index, value); onChanged(); } else { endpointBuilder_.setMessage(index, value); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder setEndpoint( int index, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.set(index, builderForValue.build()); onChanged(); } else { endpointBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder addEndpoint(org.hyperledger.fabric.protos.discovery.Protocol.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.add(value); onChanged(); } else { endpointBuilder_.addMessage(value); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder addEndpoint( int index, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint value) { if (endpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEndpointIsMutable(); endpoint_.add(index, value); onChanged(); } else { endpointBuilder_.addMessage(index, value); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder addEndpoint( org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.add(builderForValue.build()); onChanged(); } else { endpointBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder addEndpoint( int index, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder builderForValue) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.add(index, builderForValue.build()); onChanged(); } else { endpointBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder addAllEndpoint( java.lang.Iterable values) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endpoint_); onChanged(); } else { endpointBuilder_.addAllMessages(values); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { endpoint_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { endpointBuilder_.clear(); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public Builder removeEndpoint(int index) { if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.remove(index); onChanged(); } else { endpointBuilder_.remove(index); } return this; } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder getEndpointBuilder( int index) { return getEndpointFieldBuilder().getBuilder(index); } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder getEndpointOrBuilder( int index) { if (endpointBuilder_ == null) { return endpoint_.get(index); } else { return endpointBuilder_.getMessageOrBuilder(index); } } /** * repeated .discovery.Endpoint endpoint = 1; */ public java.util.List getEndpointOrBuilderList() { if (endpointBuilder_ != null) { return endpointBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(endpoint_); } } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder addEndpointBuilder() { return getEndpointFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.getDefaultInstance()); } /** * repeated .discovery.Endpoint endpoint = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder addEndpointBuilder( int index) { return getEndpointFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.getDefaultInstance()); } /** * repeated .discovery.Endpoint endpoint = 1; */ public java.util.List getEndpointBuilderList() { return getEndpointFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Endpoint, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { endpointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Protocol.Endpoint, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder, org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder>( endpoint_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); endpoint_ = null; } return endpointBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Endpoints) } // @@protoc_insertion_point(class_scope:discovery.Endpoints) private static final org.hyperledger.fabric.protos.discovery.Protocol.Endpoints DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Endpoints(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Endpoints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Endpoints(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Endpoint) com.google.protobuf.MessageOrBuilder { /** * optional string host = 1; */ java.lang.String getHost(); /** * optional string host = 1; */ com.google.protobuf.ByteString getHostBytes(); /** * optional uint32 port = 2; */ int getPort(); } /** *
   * Endpoint is a combination of a host and a port
   * 
* * Protobuf type {@code discovery.Endpoint} */ public static final class Endpoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:discovery.Endpoint) EndpointOrBuilder { // Use Endpoint.newBuilder() to construct. private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endpoint() { host_ = ""; port_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Endpoint( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); host_ = s; break; } case 16: { port_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.class, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder.class); } public static final int HOST_FIELD_NUMBER = 1; private volatile java.lang.Object host_; /** * optional string host = 1; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; } } /** * optional string host = 1; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PORT_FIELD_NUMBER = 2; private int port_; /** * optional uint32 port = 2; */ public int getPort() { return port_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getHostBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } if (port_ != 0) { output.writeUInt32(2, port_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getHostBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, port_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoint)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Endpoint other = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoint) obj; boolean result = true; result = result && getHost() .equals(other.getHost()); result = result && (getPort() == other.getPort()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint 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.discovery.Protocol.Endpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint 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.discovery.Protocol.Endpoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint 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.discovery.Protocol.Endpoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.hyperledger.fabric.protos.discovery.Protocol.Endpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Endpoint is a combination of a host and a port
     * 
* * Protobuf type {@code discovery.Endpoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Endpoint) org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.class, org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); host_ = ""; port_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_descriptor; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.getDefaultInstance(); } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint build() { org.hyperledger.fabric.protos.discovery.Protocol.Endpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint buildPartial() { org.hyperledger.fabric.protos.discovery.Protocol.Endpoint result = new org.hyperledger.fabric.protos.discovery.Protocol.Endpoint(this); result.host_ = host_; result.port_ = port_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoint) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Protocol.Endpoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Protocol.Endpoint other) { if (other == org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object host_ = ""; /** * optional string host = 1; */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string host = 1; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string host = 1; */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /** * optional string host = 1; */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * optional string host = 1; */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; } private int port_ ; /** * optional uint32 port = 2; */ public int getPort() { return port_; } /** * optional uint32 port = 2; */ public Builder setPort(int value) { port_ = value; onChanged(); return this; } /** * optional uint32 port = 2; */ public Builder clearPort() { port_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:discovery.Endpoint) } // @@protoc_insertion_point(class_scope:discovery.Endpoint) private static final org.hyperledger.fabric.protos.discovery.Protocol.Endpoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Protocol.Endpoint(); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Endpoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Endpoint(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_SignedRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_SignedRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_AuthInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_AuthInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Query_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Query_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_QueryResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_QueryResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ConfigQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ConfigQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ConfigResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ConfigResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ConfigResult_MspsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ConfigResult_MspsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ConfigResult_OrderersEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ConfigResult_OrderersEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_PeerMembershipQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_PeerMembershipQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_PeerMembershipResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_PeerMembershipResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ChaincodeQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ChaincodeQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ChaincodeInterest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ChaincodeInterest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ChaincodeCall_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ChaincodeCall_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_ChaincodeQueryResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_ChaincodeQueryResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_LocalPeerQuery_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_LocalPeerQuery_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_EndorsementDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_EndorsementDescriptor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Layout_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Layout_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Layout_QuantitiesByGroupEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Layout_QuantitiesByGroupEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Peers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Peers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Peer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Peer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Endpoints_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Endpoints_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_discovery_Endpoint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_discovery_Endpoint_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\030discovery/protocol.proto\022\tdiscovery\032\024g" + "ossip/message.proto\032\024msp/msp_config.prot" + "o\032\024msp/identities.proto\"3\n\rSignedRequest" + "\022\017\n\007payload\030\001 \001(\014\022\021\n\tsignature\030\002 \001(\014\"Y\n\007" + "Request\022+\n\016authentication\030\001 \001(\0132\023.discov" + "ery.AuthInfo\022!\n\007queries\030\002 \003(\0132\020.discover" + "y.Query\"3\n\010Response\022\'\n\007results\030\001 \003(\0132\026.d" + "iscovery.QueryResult\"A\n\010AuthInfo\022\027\n\017clie" + "nt_identity\030\001 \001(\014\022\034\n\024client_tls_cert_has" + "h\030\002 \001(\014\"\350\001\n\005Query\022\017\n\007channel\030\001 \001(\t\022.\n\014co", "nfig_query\030\002 \001(\0132\026.discovery.ConfigQuery" + "H\000\0224\n\npeer_query\030\003 \001(\0132\036.discovery.PeerM" + "embershipQueryH\000\022-\n\010cc_query\030\004 \001(\0132\031.dis" + "covery.ChaincodeQueryH\000\0220\n\013local_peers\030\005" + " \001(\0132\031.discovery.LocalPeerQueryH\000B\007\n\005que" + "ry\"\331\001\n\013QueryResult\022!\n\005error\030\001 \001(\0132\020.disc" + "overy.ErrorH\000\0220\n\rconfig_result\030\002 \001(\0132\027.d" + "iscovery.ConfigResultH\000\0227\n\014cc_query_res\030" + "\003 \001(\0132\037.discovery.ChaincodeQueryResultH\000" + "\0222\n\007members\030\004 \001(\0132\037.discovery.PeerMember", "shipResultH\000B\010\n\006result\"\r\n\013ConfigQuery\"\202\002" + "\n\014ConfigResult\022/\n\004msps\030\001 \003(\0132!.discovery" + ".ConfigResult.MspsEntry\0227\n\010orderers\030\002 \003(" + "\0132%.discovery.ConfigResult.OrderersEntry" + "\032A\n\tMspsEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(" + "\0132\024.msp.FabricMSPConfig:\0028\001\032E\n\rOrderersE" + "ntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.disco" + "very.Endpoints:\0028\001\"C\n\023PeerMembershipQuer" + "y\022,\n\006filter\030\001 \001(\0132\034.discovery.ChaincodeI" + "nterest\"\242\001\n\024PeerMembershipResult\022E\n\014peer", "s_by_org\030\001 \003(\0132/.discovery.PeerMembershi" + "pResult.PeersByOrgEntry\032C\n\017PeersByOrgEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\037\n\005value\030\002 \001(\0132\020.discove" + "ry.Peers:\0028\001\"A\n\016ChaincodeQuery\022/\n\tintere" + "sts\030\001 \003(\0132\034.discovery.ChaincodeInterest\"" + "A\n\021ChaincodeInterest\022,\n\nchaincodes\030\001 \003(\013" + "2\030.discovery.ChaincodeCall\"7\n\rChaincodeC" + "all\022\014\n\004name\030\001 \001(\t\022\030\n\020collection_names\030\002 " + "\003(\t\"I\n\024ChaincodeQueryResult\0221\n\007content\030\001" + " \003(\0132 .discovery.EndorsementDescriptor\"\020", "\n\016LocalPeerQuery\"\360\001\n\025EndorsementDescript" + "or\022\021\n\tchaincode\030\001 \001(\t\022T\n\023endorsers_by_gr" + "oups\030\002 \003(\01327.discovery.EndorsementDescri" + "ptor.EndorsersByGroupsEntry\022\"\n\007layouts\030\003" + " \003(\0132\021.discovery.Layout\032J\n\026EndorsersByGr" + "oupsEntry\022\013\n\003key\030\001 \001(\t\022\037\n\005value\030\002 \001(\0132\020." + "discovery.Peers:\0028\001\"\211\001\n\006Layout\022E\n\023quanti" + "ties_by_group\030\001 \003(\0132(.discovery.Layout.Q" + "uantitiesByGroupEntry\0328\n\026QuantitiesByGro" + "upEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\r:\0028\001\"", "\'\n\005Peers\022\036\n\005peers\030\001 \003(\0132\017.discovery.Peer" + "\"i\n\004Peer\022$\n\nstate_info\030\001 \001(\0132\020.gossip.En" + "velope\022)\n\017membership_info\030\002 \001(\0132\020.gossip" + ".Envelope\022\020\n\010identity\030\003 \001(\014\"\030\n\005Error\022\017\n\007" + "content\030\001 \001(\t\"2\n\tEndpoints\022%\n\010endpoint\030\001" + " \003(\0132\023.discovery.Endpoint\"&\n\010Endpoint\022\014\n" + "\004host\030\001 \001(\t\022\014\n\004port\030\002 \001(\r2H\n\tDiscovery\022;" + "\n\010Discover\022\030.discovery.SignedRequest\032\023.d" + "iscovery.Response\"\000BY\n\'org.hyperledger.f" + "abric.protos.discoveryZ.github.com/hyper", "ledger/fabric/protos/discoveryb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.hyperledger.fabric.protos.gossip.Message.getDescriptor(), org.hyperledger.fabric.protos.msp.MspConfig.getDescriptor(), org.hyperledger.fabric.protos.msp.Identities.getDescriptor(), }, assigner); internal_static_discovery_SignedRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_discovery_SignedRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_SignedRequest_descriptor, new java.lang.String[] { "Payload", "Signature", }); internal_static_discovery_Request_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_discovery_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Request_descriptor, new java.lang.String[] { "Authentication", "Queries", }); internal_static_discovery_Response_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_discovery_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Response_descriptor, new java.lang.String[] { "Results", }); internal_static_discovery_AuthInfo_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_discovery_AuthInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_AuthInfo_descriptor, new java.lang.String[] { "ClientIdentity", "ClientTlsCertHash", }); internal_static_discovery_Query_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_discovery_Query_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Query_descriptor, new java.lang.String[] { "Channel", "ConfigQuery", "PeerQuery", "CcQuery", "LocalPeers", "Query", }); internal_static_discovery_QueryResult_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_discovery_QueryResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_QueryResult_descriptor, new java.lang.String[] { "Error", "ConfigResult", "CcQueryRes", "Members", "Result", }); internal_static_discovery_ConfigQuery_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_discovery_ConfigQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ConfigQuery_descriptor, new java.lang.String[] { }); internal_static_discovery_ConfigResult_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_discovery_ConfigResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ConfigResult_descriptor, new java.lang.String[] { "Msps", "Orderers", }); internal_static_discovery_ConfigResult_MspsEntry_descriptor = internal_static_discovery_ConfigResult_descriptor.getNestedTypes().get(0); internal_static_discovery_ConfigResult_MspsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ConfigResult_MspsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_discovery_ConfigResult_OrderersEntry_descriptor = internal_static_discovery_ConfigResult_descriptor.getNestedTypes().get(1); internal_static_discovery_ConfigResult_OrderersEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ConfigResult_OrderersEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_discovery_PeerMembershipQuery_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_discovery_PeerMembershipQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_PeerMembershipQuery_descriptor, new java.lang.String[] { "Filter", }); internal_static_discovery_PeerMembershipResult_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_discovery_PeerMembershipResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_PeerMembershipResult_descriptor, new java.lang.String[] { "PeersByOrg", }); internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_descriptor = internal_static_discovery_PeerMembershipResult_descriptor.getNestedTypes().get(0); internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_PeerMembershipResult_PeersByOrgEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_discovery_ChaincodeQuery_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_discovery_ChaincodeQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ChaincodeQuery_descriptor, new java.lang.String[] { "Interests", }); internal_static_discovery_ChaincodeInterest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_discovery_ChaincodeInterest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ChaincodeInterest_descriptor, new java.lang.String[] { "Chaincodes", }); internal_static_discovery_ChaincodeCall_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_discovery_ChaincodeCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ChaincodeCall_descriptor, new java.lang.String[] { "Name", "CollectionNames", }); internal_static_discovery_ChaincodeQueryResult_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_discovery_ChaincodeQueryResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_ChaincodeQueryResult_descriptor, new java.lang.String[] { "Content", }); internal_static_discovery_LocalPeerQuery_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_discovery_LocalPeerQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_LocalPeerQuery_descriptor, new java.lang.String[] { }); internal_static_discovery_EndorsementDescriptor_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_discovery_EndorsementDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_EndorsementDescriptor_descriptor, new java.lang.String[] { "Chaincode", "EndorsersByGroups", "Layouts", }); internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_descriptor = internal_static_discovery_EndorsementDescriptor_descriptor.getNestedTypes().get(0); internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_EndorsementDescriptor_EndorsersByGroupsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_discovery_Layout_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_discovery_Layout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Layout_descriptor, new java.lang.String[] { "QuantitiesByGroup", }); internal_static_discovery_Layout_QuantitiesByGroupEntry_descriptor = internal_static_discovery_Layout_descriptor.getNestedTypes().get(0); internal_static_discovery_Layout_QuantitiesByGroupEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Layout_QuantitiesByGroupEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_discovery_Peers_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_discovery_Peers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Peers_descriptor, new java.lang.String[] { "Peers", }); internal_static_discovery_Peer_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_discovery_Peer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Peer_descriptor, new java.lang.String[] { "StateInfo", "MembershipInfo", "Identity", }); internal_static_discovery_Error_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_discovery_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Error_descriptor, new java.lang.String[] { "Content", }); internal_static_discovery_Endpoints_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_discovery_Endpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Endpoints_descriptor, new java.lang.String[] { "Endpoint", }); internal_static_discovery_Endpoint_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_discovery_Endpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_discovery_Endpoint_descriptor, new java.lang.String[] { "Host", "Port", }); org.hyperledger.fabric.protos.gossip.Message.getDescriptor(); org.hyperledger.fabric.protos.msp.MspConfig.getDescriptor(); org.hyperledger.fabric.protos.msp.Identities.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy