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 {

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

    /**
     * bytes signature = 2;
     * @return The signature.
     */
    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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SignedRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_descriptor; } @java.lang.Override 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_; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, payload_); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest other = (org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest) obj; if (!getPayload() .equals(other.getPayload())) return false; if (!getSignature() .equals(other.getSignature())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); payload_ = com.google.protobuf.ByteString.EMPTY; signature_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_SignedRequest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.SignedRequest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { payload_ = input.readBytes(); break; } // case 10 case 18: { signature_ = input.readBytes(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 1; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); return this; } /** * bytes payload = 1; * @return This builder for chaining. */ public Builder clearPayload() { payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public SignedRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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.
     * 
* * .discovery.AuthInfo authentication = 1; * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1; * @return The authentication. */ org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getAuthentication(); /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_descriptor; } @java.lang.Override 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); } 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.
     * 
* * .discovery.AuthInfo authentication = 1; * @return Whether the authentication field is set. */ @java.lang.Override public boolean hasAuthentication() { return authentication_ != null; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1; * @return The authentication. */ @java.lang.Override 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.
     * 
* * .discovery.AuthInfo authentication = 1; */ @java.lang.Override 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; */ @java.lang.Override public java.util.List getQueriesList() { return queries_; } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ @java.lang.Override public java.util.List getQueriesOrBuilderList() { return queries_; } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ @java.lang.Override public int getQueriesCount() { return queries_.size(); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Query getQueries(int index) { return queries_.get(index); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.QueryOrBuilder getQueriesOrBuilder( int index) { return queries_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (authentication_ != null) { output.writeMessage(1, getAuthentication()); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(2, queries_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Request)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Request other = (org.hyperledger.fabric.protos.discovery.Protocol.Request) obj; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { if (!getAuthentication() .equals(other.getAuthentication())) return false; } if (!getQueriesList() .equals(other.getQueriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (authenticationBuilder_ == null) { authentication_ = null; } else { authentication_ = null; authenticationBuilder_ = null; } if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); } else { queries_ = null; queriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Request_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Request getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Request.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; if (authenticationBuilder_ == null) { result.authentication_ = authentication_; } else { result.authentication_ = authenticationBuilder_.build(); } if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000001); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000001); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000001); queriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getQueriesFieldBuilder() : null; } else { queriesBuilder_.addAllMessages(other.queries_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { org.hyperledger.fabric.protos.discovery.Protocol.Query m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.Query.parser(), extensionRegistry); if (queriesBuilder_ == null) { ensureQueriesIsMutable(); queries_.add(m); } else { queriesBuilder_.addMessage(m); } break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo authentication_; 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.
       * 
* * .discovery.AuthInfo authentication = 1; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** *
       * authentication contains information that the service uses to check
       * the client's eligibility for the queries.
       * 
* * .discovery.AuthInfo authentication = 1; * @return The authentication. */ 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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_ & 0x00000001) != 0)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000001; } } 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_ & ~0x00000001); 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Response(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getResultsList() { return results_; } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ @java.lang.Override public java.util.List getResultsOrBuilderList() { return results_; } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ @java.lang.Override public int getResultsCount() { return results_.size(); } /** *
     * The results are returned in the same order of the queries
     * 
* * repeated .discovery.QueryResult results = 1; */ @java.lang.Override 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.QueryResultOrBuilder getResultsOrBuilder( int index) { return results_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < results_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, results_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Response)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Response other = (org.hyperledger.fabric.protos.discovery.Protocol.Response) obj; if (!getResultsList() .equals(other.getResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResultsCount() > 0) { hash = (37 * hash) + RESULTS_FIELD_NUMBER; hash = (53 * hash) + getResultsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Response parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); } else { results_ = null; resultsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Response_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Response getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Response.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); bitField0_ = (bitField0_ & ~0x00000001); } result.results_ = results_; } else { result.results_ = resultsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.QueryResult m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.parser(), extensionRegistry); if (resultsBuilder_ == null) { ensureResultsIsMutable(); results_.add(m); } else { resultsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List results_ = java.util.Collections.emptyList(); private void ensureResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); results_ = null; } return resultsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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
     * 
* * bytes client_identity = 1; * @return The clientIdentity. */ 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.
     * 
* * bytes client_tls_cert_hash = 2; * @return The clientTlsCertHash. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AuthInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_descriptor; } @java.lang.Override 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
     * 
* * bytes client_identity = 1; * @return The clientIdentity. */ @java.lang.Override 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.
     * 
* * bytes client_tls_cert_hash = 2; * @return The clientTlsCertHash. */ @java.lang.Override public com.google.protobuf.ByteString getClientTlsCertHash() { return clientTlsCertHash_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!clientIdentity_.isEmpty()) { output.writeBytes(1, clientIdentity_); } if (!clientTlsCertHash_.isEmpty()) { output.writeBytes(2, clientTlsCertHash_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo other = (org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo) obj; if (!getClientIdentity() .equals(other.getClientIdentity())) return false; if (!getClientTlsCertHash() .equals(other.getClientTlsCertHash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); clientIdentity_ = com.google.protobuf.ByteString.EMPTY; clientTlsCertHash_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_AuthInfo_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { clientIdentity_ = input.readBytes(); break; } // case 10 case 18: { clientTlsCertHash_ = input.readBytes(); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private com.google.protobuf.ByteString 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
       * 
* * bytes client_identity = 1; * @return The clientIdentity. */ @java.lang.Override 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
       * 
* * bytes client_identity = 1; * @param value The clientIdentity to set. * @return This builder for chaining. */ 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
       * 
* * bytes client_identity = 1; * @return This builder for chaining. */ 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.
       * 
* * bytes client_tls_cert_hash = 2; * @return The clientTlsCertHash. */ @java.lang.Override 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.
       * 
* * bytes client_tls_cert_hash = 2; * @param value The clientTlsCertHash to set. * @return This builder for chaining. */ 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.
       * 
* * bytes client_tls_cert_hash = 2; * @return This builder for chaining. */ public Builder clearClientTlsCertHash() { clientTlsCertHash_ = getDefaultInstance().getClientTlsCertHash(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public AuthInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.AuthInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface QueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Query) com.google.protobuf.MessageOrBuilder { /** * string channel = 1; * @return The channel. */ java.lang.String getChannel(); /** * string channel = 1; * @return The bytes for channel. */ 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.
     * 
* * .discovery.ConfigQuery config_query = 2; * @return Whether the configQuery field is set. */ boolean hasConfigQuery(); /** *
     * 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.
     * 
* * .discovery.ConfigQuery config_query = 2; * @return The configQuery. */ 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.
     * 
* * .discovery.ConfigQuery config_query = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigQueryOrBuilder getConfigQueryOrBuilder(); /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return Whether the peerQuery field is set. */ boolean hasPeerQuery(); /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return The peerQuery. */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getPeerQuery(); /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * .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.
     * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return Whether the ccQuery field is set. */ boolean hasCcQuery(); /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return The ccQuery. */ 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.
     * 
* * .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
     * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return Whether the localPeers field is set. */ boolean hasLocalPeers(); /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return The localPeers. */ org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getLocalPeers(); /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * .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 { private static final long serialVersionUID = 0L; // Use Query.newBuilder() to construct. private Query(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Query() { channel_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Query(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_descriptor; } @java.lang.Override 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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static 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_; /** * string channel = 1; * @return The channel. */ @java.lang.Override 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; } } /** * string channel = 1; * @return The bytes for channel. */ @java.lang.Override 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.
     * 
* * .discovery.ConfigQuery config_query = 2; * @return Whether the configQuery field is set. */ @java.lang.Override public boolean hasConfigQuery() { return queryCase_ == 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.
     * 
* * .discovery.ConfigQuery config_query = 2; * @return The configQuery. */ @java.lang.Override 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.
     * 
* * .discovery.ConfigQuery config_query = 2; */ @java.lang.Override 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
     * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return Whether the peerQuery field is set. */ @java.lang.Override public boolean hasPeerQuery() { return queryCase_ == 3; } /** *
     * PeerMembershipQuery queries for peers in a channel context,
     * and returns PeerMembershipResult
     * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return The peerQuery. */ @java.lang.Override 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
     * 
* * .discovery.PeerMembershipQuery peer_query = 3; */ @java.lang.Override 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.
     * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return Whether the ccQuery field is set. */ @java.lang.Override public boolean hasCcQuery() { return queryCase_ == 4; } /** *
     * ChaincodeQuery queries for chaincodes by their name and version.
     * An empty version means any version can by returned.
     * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return The ccQuery. */ @java.lang.Override 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.
     * 
* * .discovery.ChaincodeQuery cc_query = 4; */ @java.lang.Override 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
     * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return Whether the localPeers field is set. */ @java.lang.Override public boolean hasLocalPeers() { return queryCase_ == 5; } /** *
     * LocalPeerQuery queries for peers in a non channel context,
     * and returns PeerMembershipResult
     * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return The localPeers. */ @java.lang.Override 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
     * 
* * .discovery.LocalPeerQuery local_peers = 5; */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Query)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Query other = (org.hyperledger.fabric.protos.discovery.Protocol.Query) obj; if (!getChannel() .equals(other.getChannel())) return false; if (!getQueryCase().equals(other.getQueryCase())) return false; switch (queryCase_) { case 2: if (!getConfigQuery() .equals(other.getConfigQuery())) return false; break; case 3: if (!getPeerQuery() .equals(other.getPeerQuery())) return false; break; case 4: if (!getCcQuery() .equals(other.getCcQuery())) return false; break; case 5: if (!getLocalPeers() .equals(other.getLocalPeers())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Query parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); channel_ = ""; if (configQueryBuilder_ != null) { configQueryBuilder_.clear(); } if (peerQueryBuilder_ != null) { peerQueryBuilder_.clear(); } if (ccQueryBuilder_ != null) { ccQueryBuilder_.clear(); } if (localPeersBuilder_ != null) { localPeersBuilder_.clear(); } queryCase_ = 0; query_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Query_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Query getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Query.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { channel_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getConfigQueryFieldBuilder().getBuilder(), extensionRegistry); queryCase_ = 2; break; } // case 18 case 26: { input.readMessage( getPeerQueryFieldBuilder().getBuilder(), extensionRegistry); queryCase_ = 3; break; } // case 26 case 34: { input.readMessage( getCcQueryFieldBuilder().getBuilder(), extensionRegistry); queryCase_ = 4; break; } // case 34 case 42: { input.readMessage( getLocalPeersFieldBuilder().getBuilder(), extensionRegistry); queryCase_ = 5; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private 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_ = ""; /** * string channel = 1; * @return The channel. */ 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; } } /** * string channel = 1; * @return The bytes for channel. */ 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; } } /** * string channel = 1; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channel_ = value; onChanged(); return this; } /** * string channel = 1; * @return This builder for chaining. */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** * string channel = 1; * @param value The bytes for channel to set. * @return This builder for chaining. */ 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.
       * 
* * .discovery.ConfigQuery config_query = 2; * @return Whether the configQuery field is set. */ @java.lang.Override public boolean hasConfigQuery() { return queryCase_ == 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.
       * 
* * .discovery.ConfigQuery config_query = 2; * @return The configQuery. */ @java.lang.Override 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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); } 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .discovery.ConfigQuery config_query = 2; */ @java.lang.Override 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.
       * 
* * .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
       * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return Whether the peerQuery field is set. */ @java.lang.Override public boolean hasPeerQuery() { return queryCase_ == 3; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * .discovery.PeerMembershipQuery peer_query = 3; * @return The peerQuery. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { peerQueryBuilder_.setMessage(value); } } queryCase_ = 3; return this; } /** *
       * PeerMembershipQuery queries for peers in a channel context,
       * and returns PeerMembershipResult
       * 
* * .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
       * 
* * .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
       * 
* * .discovery.PeerMembershipQuery peer_query = 3; */ @java.lang.Override 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
       * 
* * .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.
       * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return Whether the ccQuery field is set. */ @java.lang.Override public boolean hasCcQuery() { return queryCase_ == 4; } /** *
       * ChaincodeQuery queries for chaincodes by their name and version.
       * An empty version means any version can by returned.
       * 
* * .discovery.ChaincodeQuery cc_query = 4; * @return The ccQuery. */ @java.lang.Override 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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); } 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .discovery.ChaincodeQuery cc_query = 4; */ @java.lang.Override 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.
       * 
* * .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
       * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return Whether the localPeers field is set. */ @java.lang.Override public boolean hasLocalPeers() { return queryCase_ == 5; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * .discovery.LocalPeerQuery local_peers = 5; * @return The localPeers. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { localPeersBuilder_.setMessage(value); } } queryCase_ = 5; return this; } /** *
       * LocalPeerQuery queries for peers in a non channel context,
       * and returns PeerMembershipResult
       * 
* * .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
       * 
* * .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
       * 
* * .discovery.LocalPeerQuery local_peers = 5; */ @java.lang.Override 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
       * 
* * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Query parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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
     * 
* * .discovery.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** *
     * Error indicates failure or refusal to process the query
     * 
* * .discovery.Error error = 1; * @return The error. */ org.hyperledger.fabric.protos.discovery.Protocol.Error getError(); /** *
     * Error indicates failure or refusal to process the query
     * 
* * .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
     * 
* * .discovery.ConfigResult config_result = 2; * @return Whether the configResult field is set. */ boolean hasConfigResult(); /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * .discovery.ConfigResult config_result = 2; * @return The configResult. */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getConfigResult(); /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * .discovery.ConfigResult config_result = 2; */ org.hyperledger.fabric.protos.discovery.Protocol.ConfigResultOrBuilder getConfigResultOrBuilder(); /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return Whether the ccQueryRes field is set. */ boolean hasCcQueryRes(); /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return The ccQueryRes. */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getCcQueryRes(); /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * .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.
     * 
* * .discovery.PeerMembershipResult members = 4; * @return Whether the members field is set. */ boolean hasMembers(); /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * .discovery.PeerMembershipResult members = 4; * @return The members. */ org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getMembers(); /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * .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 { private static final long serialVersionUID = 0L; // Use QueryResult.newBuilder() to construct. private QueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private QueryResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new QueryResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_descriptor; } @java.lang.Override 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, com.google.protobuf.AbstractMessage.InternalOneOfEnum { 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; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static 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
     * 
* * .discovery.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return resultCase_ == 1; } /** *
     * Error indicates failure or refusal to process the query
     * 
* * .discovery.Error error = 1; * @return The error. */ @java.lang.Override 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
     * 
* * .discovery.Error error = 1; */ @java.lang.Override 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
     * 
* * .discovery.ConfigResult config_result = 2; * @return Whether the configResult field is set. */ @java.lang.Override public boolean hasConfigResult() { return resultCase_ == 2; } /** *
     * ConfigResult contains the configuration of the channel,
     * such as FabricMSPConfig and orderer endpoints
     * 
* * .discovery.ConfigResult config_result = 2; * @return The configResult. */ @java.lang.Override 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
     * 
* * .discovery.ConfigResult config_result = 2; */ @java.lang.Override 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
     * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return Whether the ccQueryRes field is set. */ @java.lang.Override public boolean hasCcQueryRes() { return resultCase_ == 3; } /** *
     * ChaincodeQueryResult contains information about chaincodes,
     * and their corresponding endorsers
     * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return The ccQueryRes. */ @java.lang.Override 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
     * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; */ @java.lang.Override 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.
     * 
* * .discovery.PeerMembershipResult members = 4; * @return Whether the members field is set. */ @java.lang.Override public boolean hasMembers() { return resultCase_ == 4; } /** *
     * PeerMembershipResult contains information about peers,
     * such as their identity, endpoints, and channel related state.
     * 
* * .discovery.PeerMembershipResult members = 4; * @return The members. */ @java.lang.Override 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.
     * 
* * .discovery.PeerMembershipResult members = 4; */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (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_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.QueryResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.QueryResult other = (org.hyperledger.fabric.protos.discovery.Protocol.QueryResult) obj; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 1: if (!getError() .equals(other.getError())) return false; break; case 2: if (!getConfigResult() .equals(other.getConfigResult())) return false; break; case 3: if (!getCcQueryRes() .equals(other.getCcQueryRes())) return false; break; case 4: if (!getMembers() .equals(other.getMembers())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.QueryResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (errorBuilder_ != null) { errorBuilder_.clear(); } if (configResultBuilder_ != null) { configResultBuilder_.clear(); } if (ccQueryResBuilder_ != null) { ccQueryResBuilder_.clear(); } if (membersBuilder_ != null) { membersBuilder_.clear(); } resultCase_ = 0; result_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_QueryResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.QueryResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.QueryResult.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getErrorFieldBuilder().getBuilder(), extensionRegistry); resultCase_ = 1; break; } // case 10 case 18: { input.readMessage( getConfigResultFieldBuilder().getBuilder(), extensionRegistry); resultCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCcQueryResFieldBuilder().getBuilder(), extensionRegistry); resultCase_ = 3; break; } // case 26 case 34: { input.readMessage( getMembersFieldBuilder().getBuilder(), extensionRegistry); resultCase_ = 4; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private 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
       * 
* * .discovery.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return resultCase_ == 1; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * .discovery.Error error = 1; * @return The error. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { errorBuilder_.setMessage(value); } } resultCase_ = 1; return this; } /** *
       * Error indicates failure or refusal to process the query
       * 
* * .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
       * 
* * .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
       * 
* * .discovery.Error error = 1; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .discovery.ConfigResult config_result = 2; * @return Whether the configResult field is set. */ @java.lang.Override public boolean hasConfigResult() { return resultCase_ == 2; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * .discovery.ConfigResult config_result = 2; * @return The configResult. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { configResultBuilder_.setMessage(value); } } resultCase_ = 2; return this; } /** *
       * ConfigResult contains the configuration of the channel,
       * such as FabricMSPConfig and orderer endpoints
       * 
* * .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
       * 
* * .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
       * 
* * .discovery.ConfigResult config_result = 2; */ @java.lang.Override 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
       * 
* * .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
       * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return Whether the ccQueryRes field is set. */ @java.lang.Override public boolean hasCcQueryRes() { return resultCase_ == 3; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; * @return The ccQueryRes. */ @java.lang.Override 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
       * 
* * .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
       * 
* * .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
       * 
* * .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); } else { ccQueryResBuilder_.setMessage(value); } } resultCase_ = 3; return this; } /** *
       * ChaincodeQueryResult contains information about chaincodes,
       * and their corresponding endorsers
       * 
* * .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
       * 
* * .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
       * 
* * .discovery.ChaincodeQueryResult cc_query_res = 3; */ @java.lang.Override 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
       * 
* * .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.
       * 
* * .discovery.PeerMembershipResult members = 4; * @return Whether the members field is set. */ @java.lang.Override public boolean hasMembers() { return resultCase_ == 4; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * .discovery.PeerMembershipResult members = 4; * @return The members. */ @java.lang.Override 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.
       * 
* * .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.
       * 
* * .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.
       * 
* * .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); } else { membersBuilder_.setMessage(value); } } resultCase_ = 4; return this; } /** *
       * PeerMembershipResult contains information about peers,
       * such as their identity, endpoints, and channel related state.
       * 
* * .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.
       * 
* * .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.
       * 
* * .discovery.PeerMembershipResult members = 4; */ @java.lang.Override 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.
       * 
* * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public QueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // Use ConfigQuery.newBuilder() to construct. private ConfigQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigQuery() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_descriptor; } @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigQuery_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ConfigQuery.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ConfigQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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; */ /* nullable */ org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig getMspsOrDefault( java.lang.String key, /* nullable */ org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig defaultValue); /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ org.hyperledger.fabric.protos.msp.MspConfigPackage.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; */ /* nullable */ org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrDefault( java.lang.String key, /* nullable */ 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 { private static final long serialVersionUID = 0L; // Use ConfigResult.newBuilder() to construct. private ConfigResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override 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); } } @java.lang.Override 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.MspConfigPackage.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.MspConfigPackage.FabricMSPConfig.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.msp.MspConfigPackage.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; */ @java.lang.Override public boolean containsMsps( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMsps().getMap().containsKey(key); } /** * Use {@link #getMspsMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override public java.util.Map getMspsMap() { return internalGetMsps().getMap(); } /** *
     * msps is a map from MSP_ID to FabricMSPConfig
     * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig getMspsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig getMspsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public boolean containsOrderers( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetOrderers().getMap().containsKey(key); } /** * Use {@link #getOrderersMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override 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 NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetOrderers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMsps(), MspsDefaultEntryHolder.defaultEntry, 1); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetOrderers(), OrderersDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override 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__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult other = (org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult) obj; if (!internalGetMsps().equals( other.internalGetMsps())) return false; if (!internalGetOrderers().equals( other.internalGetOrderers())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code 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); } } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableMsps().clear(); internalGetMutableOrderers().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ConfigResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry msps__ = input.readMessage( MspsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMsps().getMutableMap().put( msps__.getKey(), msps__.getValue()); break; } // case 10 case 18: { com.google.protobuf.MapEntry orderers__ = input.readMessage( OrderersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableOrderers().getMutableMap().put( orderers__.getKey(), orderers__.getValue()); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, org.hyperledger.fabric.protos.msp.MspConfigPackage.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; */ @java.lang.Override public boolean containsMsps( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMsps().getMap().containsKey(key); } /** * Use {@link #getMspsMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override public java.util.Map getMspsMap() { return internalGetMsps().getMap(); } /** *
       * msps is a map from MSP_ID to FabricMSPConfig
       * 
* * map<string, .msp.FabricMSPConfig> msps = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig getMspsOrDefault( java.lang.String key, org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.msp.MspConfigPackage.FabricMSPConfig getMspsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMsps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMsps() { internalGetMutableMsps().getMutableMap() .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 NullPointerException("map key"); } internalGetMutableMsps().getMutableMap() .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.MspConfigPackage.FabricMSPConfig value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMsps().getMutableMap() .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) { internalGetMutableMsps().getMutableMap() .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; */ @java.lang.Override public boolean containsOrderers( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetOrderers().getMap().containsKey(key); } /** * Use {@link #getOrderersMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override 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 NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getOrderersOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetOrderers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearOrderers() { internalGetMutableOrderers().getMutableMap() .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 NullPointerException("map key"); } internalGetMutableOrderers().getMutableMap() .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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableOrderers().getMutableMap() .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) { internalGetMutableOrderers().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ConfigResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ConfigResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PeerMembershipQueryOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.PeerMembershipQuery) com.google.protobuf.MessageOrBuilder { /** * .discovery.ChaincodeInterest filter = 1; * @return Whether the filter field is set. */ boolean hasFilter(); /** * .discovery.ChaincodeInterest filter = 1; * @return The filter. */ org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getFilter(); /** * .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 { private static final long serialVersionUID = 0L; // Use PeerMembershipQuery.newBuilder() to construct. private PeerMembershipQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerMembershipQuery() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerMembershipQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_descriptor; } @java.lang.Override 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_; /** * .discovery.ChaincodeInterest filter = 1; * @return Whether the filter field is set. */ @java.lang.Override public boolean hasFilter() { return filter_ != null; } /** * .discovery.ChaincodeInterest filter = 1; * @return The filter. */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getFilter() { return filter_ == null ? org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance() : filter_; } /** * .discovery.ChaincodeInterest filter = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getFilterOrBuilder() { return getFilter(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (filter_ != null) { output.writeMessage(1, getFilter()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (filter_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFilter()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery) obj; if (hasFilter() != other.hasFilter()) return false; if (hasFilter()) { if (!getFilter() .equals(other.getFilter())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFilter()) { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (filterBuilder_ == null) { filter_ = null; } else { filter_ = null; filterBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipQuery_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipQuery.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getFilterFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest filter_; 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_; /** * .discovery.ChaincodeInterest filter = 1; * @return Whether the filter field is set. */ public boolean hasFilter() { return filterBuilder_ != null || filter_ != null; } /** * .discovery.ChaincodeInterest filter = 1; * @return The filter. */ 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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .discovery.ChaincodeInterest filter = 1; */ public Builder clearFilter() { if (filterBuilder_ == null) { filter_ = null; onChanged(); } else { filter_ = null; filterBuilder_ = null; } return this; } /** * .discovery.ChaincodeInterest filter = 1; */ public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.Builder getFilterBuilder() { onChanged(); return getFilterFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public PeerMembershipQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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; */ /* nullable */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrDefault( java.lang.String key, /* nullable */ 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 { private static final long serialVersionUID = 0L; // Use PeerMembershipResult.newBuilder() to construct. private PeerMembershipResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerMembershipResult() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PeerMembershipResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetPeersByOrg(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override 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; */ @java.lang.Override public boolean containsPeersByOrg( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPeersByOrg().getMap().containsKey(key); } /** * Use {@link #getPeersByOrgMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPeersByOrg() { return getPeersByOrgMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override public java.util.Map getPeersByOrgMap() { return internalGetPeersByOrg().getMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override 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 NullPointerException("map key"); } java.util.Map map = internalGetPeersByOrg().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPeersByOrg().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetPeersByOrg(), PeersByOrgDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override 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__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult other = (org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult) obj; if (!internalGetPeersByOrg().equals( other.internalGetPeersByOrg())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetPeersByOrg().getMap().isEmpty()) { hash = (37 * hash) + PEERS_BY_ORG_FIELD_NUMBER; hash = (53 * hash) + internalGetPeersByOrg().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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); } } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutablePeersByOrg().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_PeerMembershipResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.PeerMembershipResult.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry peersByOrg__ = input.readMessage( PeersByOrgDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutablePeersByOrg().getMutableMap().put( peersByOrg__.getKey(), peersByOrg__.getValue()); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; */ @java.lang.Override public boolean containsPeersByOrg( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetPeersByOrg().getMap().containsKey(key); } /** * Use {@link #getPeersByOrgMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getPeersByOrg() { return getPeersByOrgMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override public java.util.Map getPeersByOrgMap() { return internalGetPeersByOrg().getMap(); } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override 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 NullPointerException("map key"); } java.util.Map map = internalGetPeersByOrg().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peers getPeersByOrgOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetPeersByOrg().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearPeersByOrg() { internalGetMutablePeersByOrg().getMutableMap() .clear(); return this; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public Builder removePeersByOrg( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutablePeersByOrg().getMutableMap() .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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutablePeersByOrg().getMutableMap() .put(key, value); return this; } /** * map<string, .discovery.Peers> peers_by_org = 1; */ public Builder putAllPeersByOrg( java.util.Map values) { internalGetMutablePeersByOrg().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public PeerMembershipResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getInterestsList() { return interests_; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ @java.lang.Override public java.util.List getInterestsOrBuilderList() { return interests_; } /** * repeated .discovery.ChaincodeInterest interests = 1; */ @java.lang.Override public int getInterestsCount() { return interests_.size(); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getInterests(int index) { return interests_.get(index); } /** * repeated .discovery.ChaincodeInterest interests = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterestOrBuilder getInterestsOrBuilder( int index) { return interests_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < interests_.size(); i++) { output.writeMessage(1, interests_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < interests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, interests_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery) obj; if (!getInterestsList() .equals(other.getInterestsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getInterestsCount() > 0) { hash = (37 * hash) + INTERESTS_FIELD_NUMBER; hash = (53 * hash) + getInterestsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (interestsBuilder_ == null) { interests_ = java.util.Collections.emptyList(); } else { interests_ = null; interestsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQuery_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQuery.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { interests_ = java.util.Collections.unmodifiableList(interests_); bitField0_ = (bitField0_ & ~0x00000001); } result.interests_ = interests_; } else { result.interests_ = interestsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.parser(), extensionRegistry); if (interestsBuilder_ == null) { ensureInterestsIsMutable(); interests_.add(m); } else { interestsBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List interests_ = java.util.Collections.emptyList(); private void ensureInterestsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); interests_ = null; } return interestsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ChaincodeQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeInterest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getChaincodesList() { return chaincodes_; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ @java.lang.Override public java.util.List getChaincodesOrBuilderList() { return chaincodes_; } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ @java.lang.Override public int getChaincodesCount() { return chaincodes_.size(); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getChaincodes(int index) { return chaincodes_.get(index); } /** * repeated .discovery.ChaincodeCall chaincodes = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCallOrBuilder getChaincodesOrBuilder( int index) { return chaincodes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < chaincodes_.size(); i++) { output.writeMessage(1, chaincodes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < chaincodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, chaincodes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest) obj; if (!getChaincodesList() .equals(other.getChaincodesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getChaincodesCount() > 0) { hash = (37 * hash) + CHAINCODES_FIELD_NUMBER; hash = (53 * hash) + getChaincodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (chaincodesBuilder_ == null) { chaincodes_ = java.util.Collections.emptyList(); } else { chaincodes_ = null; chaincodesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeInterest_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.chaincodes_ = chaincodes_; } else { result.chaincodes_ = chaincodesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.parser(), extensionRegistry); if (chaincodesBuilder_ == null) { ensureChaincodesIsMutable(); chaincodes_.add(m); } else { chaincodesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List chaincodes_ = java.util.Collections.emptyList(); private void ensureChaincodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { chaincodes_ = new java.util.ArrayList(chaincodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.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) != 0), getParentForChildren(), isClean()); chaincodes_ = null; } return chaincodesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ChaincodeInterest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeInterest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChaincodeCallOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.ChaincodeCall) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * repeated string collection_names = 2; * @return A list containing the collectionNames. */ java.util.List getCollectionNamesList(); /** * repeated string collection_names = 2; * @return The count of collectionNames. */ int getCollectionNamesCount(); /** * repeated string collection_names = 2; * @param index The index of the element to return. * @return The collectionNames at the given index. */ java.lang.String getCollectionNames(int index); /** * repeated string collection_names = 2; * @param index The index of the value to return. * @return The bytes of the collectionNames at the given index. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeCall(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_descriptor; } @java.lang.Override 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); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList collectionNames_; /** * repeated string collection_names = 2; * @return A list containing the collectionNames. */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { return collectionNames_; } /** * repeated string collection_names = 2; * @return The count of collectionNames. */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2; * @param index The index of the element to return. * @return The collectionNames at the given index. */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2; * @param index The index of the value to return. * @return The bytes of the collectionNames at the given index. */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 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)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < collectionNames_.size(); i++) { dataSize += computeStringSizeNoTag(collectionNames_.getRaw(i)); } size += dataSize; size += 1 * getCollectionNamesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall) obj; if (!getName() .equals(other.getName())) return false; if (!getCollectionNamesList() .equals(other.getCollectionNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getCollectionNamesCount() > 0) { hash = (37 * hash) + COLLECTION_NAMES_FIELD_NUMBER; hash = (53 * hash) + getCollectionNamesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeCall_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeCall.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.name_ = name_; if (((bitField0_ & 0x00000001) != 0)) { collectionNames_ = collectionNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.collectionNames_ = collectionNames_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000001); } else { ensureCollectionNamesIsMutable(); collectionNames_.addAll(other.collectionNames_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureCollectionNamesIsMutable(); collectionNames_.add(s); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCollectionNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { collectionNames_ = new com.google.protobuf.LazyStringArrayList(collectionNames_); bitField0_ |= 0x00000001; } } /** * repeated string collection_names = 2; * @return A list containing the collectionNames. */ public com.google.protobuf.ProtocolStringList getCollectionNamesList() { return collectionNames_.getUnmodifiableView(); } /** * repeated string collection_names = 2; * @return The count of collectionNames. */ public int getCollectionNamesCount() { return collectionNames_.size(); } /** * repeated string collection_names = 2; * @param index The index of the element to return. * @return The collectionNames at the given index. */ public java.lang.String getCollectionNames(int index) { return collectionNames_.get(index); } /** * repeated string collection_names = 2; * @param index The index of the value to return. * @return The bytes of the collectionNames at the given index. */ public com.google.protobuf.ByteString getCollectionNamesBytes(int index) { return collectionNames_.getByteString(index); } /** * repeated string collection_names = 2; * @param index The index to set the value at. * @param value The collectionNames to set. * @return This builder for chaining. */ 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; * @param value The collectionNames to add. * @return This builder for chaining. */ 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; * @param values The collectionNames to add. * @return This builder for chaining. */ public Builder addAllCollectionNames( java.lang.Iterable values) { ensureCollectionNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collectionNames_); onChanged(); return this; } /** * repeated string collection_names = 2; * @return This builder for chaining. */ public Builder clearCollectionNames() { collectionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string collection_names = 2; * @param value The bytes of the collectionNames to add. * @return This builder for chaining. */ public Builder addCollectionNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCollectionNamesIsMutable(); collectionNames_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ChaincodeCall parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChaincodeQueryResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getContentList() { return content_; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ @java.lang.Override public java.util.List getContentOrBuilderList() { return content_; } /** * repeated .discovery.EndorsementDescriptor content = 1; */ @java.lang.Override public int getContentCount() { return content_.size(); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getContent(int index) { return content_.get(index); } /** * repeated .discovery.EndorsementDescriptor content = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptorOrBuilder getContentOrBuilder( int index) { return content_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < content_.size(); i++) { output.writeMessage(1, content_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < content_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, content_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult other = (org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult) obj; if (!getContentList() .equals(other.getContentList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getContentCount() > 0) { hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContentList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (contentBuilder_ == null) { content_ = java.util.Collections.emptyList(); } else { content_ = null; contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_ChaincodeQueryResult_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.ChaincodeQueryResult.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { content_ = java.util.Collections.unmodifiableList(content_); bitField0_ = (bitField0_ & ~0x00000001); } result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.parser(), extensionRegistry); if (contentBuilder_ == null) { ensureContentIsMutable(); content_.add(m); } else { contentBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List content_ = java.util.Collections.emptyList(); private void ensureContentIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public ChaincodeQueryResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // Use LocalPeerQuery.newBuilder() to construct. private LocalPeerQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalPeerQuery() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocalPeerQuery(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_descriptor; } @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery other = (org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_LocalPeerQuery_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public LocalPeerQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.LocalPeerQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndorsementDescriptorOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.EndorsementDescriptor) com.google.protobuf.MessageOrBuilder { /** * string chaincode = 1; * @return The chaincode. */ java.lang.String getChaincode(); /** * string chaincode = 1; * @return The bytes for chaincode. */ 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; */ /* nullable */ org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrDefault( java.lang.String key, /* nullable */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EndorsementDescriptor(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetEndorsersByGroups(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override 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); } public static final int CHAINCODE_FIELD_NUMBER = 1; private volatile java.lang.Object chaincode_; /** * string chaincode = 1; * @return The chaincode. */ @java.lang.Override 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; } } /** * string chaincode = 1; * @return The bytes for chaincode. */ @java.lang.Override 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; */ @java.lang.Override public boolean containsEndorsersByGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEndorsersByGroups().getMap().containsKey(key); } /** * Use {@link #getEndorsersByGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndorsersByGroups() { return getEndorsersByGroupsMap(); } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ @java.lang.Override public java.util.Map getEndorsersByGroupsMap() { return internalGetEndorsersByGroups().getMap(); } /** *
     * Specifies the endorsers, separated to groups.
     * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ @java.lang.Override 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 NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.LayoutOrBuilder getLayoutsOrBuilder( int index) { return layouts_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chaincode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, chaincode_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEndorsersByGroups(), EndorsersByGroupsDefaultEntryHolder.defaultEntry, 2); for (int i = 0; i < layouts_.size(); i++) { output.writeMessage(3, layouts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chaincode_)) { 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)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor other = (org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor) obj; if (!getChaincode() .equals(other.getChaincode())) return false; if (!internalGetEndorsersByGroups().equals( other.internalGetEndorsersByGroups())) return false; if (!getLayoutsList() .equals(other.getLayoutsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + 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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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); } } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); chaincode_ = ""; internalGetMutableEndorsersByGroups().clear(); if (layoutsBuilder_ == null) { layouts_ = java.util.Collections.emptyList(); } else { layouts_ = null; layoutsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_EndorsementDescriptor_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.EndorsementDescriptor.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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_; result.chaincode_ = chaincode_; result.endorsersByGroups_ = internalGetEndorsersByGroups(); result.endorsersByGroups_.makeImmutable(); if (layoutsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { layouts_ = java.util.Collections.unmodifiableList(layouts_); bitField0_ = (bitField0_ & ~0x00000002); } result.layouts_ = layouts_; } else { result.layouts_ = layoutsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_ & ~0x00000002); } else { ensureLayoutsIsMutable(); layouts_.addAll(other.layouts_); } onChanged(); } } else { if (!other.layouts_.isEmpty()) { if (layoutsBuilder_.isEmpty()) { layoutsBuilder_.dispose(); layoutsBuilder_ = null; layouts_ = other.layouts_; bitField0_ = (bitField0_ & ~0x00000002); layoutsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLayoutsFieldBuilder() : null; } else { layoutsBuilder_.addAllMessages(other.layouts_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { chaincode_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { com.google.protobuf.MapEntry endorsersByGroups__ = input.readMessage( EndorsersByGroupsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableEndorsersByGroups().getMutableMap().put( endorsersByGroups__.getKey(), endorsersByGroups__.getValue()); break; } // case 18 case 26: { org.hyperledger.fabric.protos.discovery.Protocol.Layout m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.Layout.parser(), extensionRegistry); if (layoutsBuilder_ == null) { ensureLayoutsIsMutable(); layouts_.add(m); } else { layoutsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object chaincode_ = ""; /** * string chaincode = 1; * @return The chaincode. */ 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; } } /** * string chaincode = 1; * @return The bytes for chaincode. */ 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; } } /** * string chaincode = 1; * @param value The chaincode to set. * @return This builder for chaining. */ public Builder setChaincode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chaincode_ = value; onChanged(); return this; } /** * string chaincode = 1; * @return This builder for chaining. */ public Builder clearChaincode() { chaincode_ = getDefaultInstance().getChaincode(); onChanged(); return this; } /** * string chaincode = 1; * @param value The bytes for chaincode to set. * @return This builder for chaining. */ 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; */ @java.lang.Override public boolean containsEndorsersByGroups( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEndorsersByGroups().getMap().containsKey(key); } /** * Use {@link #getEndorsersByGroupsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEndorsersByGroups() { return getEndorsersByGroupsMap(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ @java.lang.Override public java.util.Map getEndorsersByGroupsMap() { return internalGetEndorsersByGroups().getMap(); } /** *
       * Specifies the endorsers, separated to groups.
       * 
* * map<string, .discovery.Peers> endorsers_by_groups = 2; */ @java.lang.Override 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 NullPointerException("map key"); } 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; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peers getEndorsersByGroupsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEndorsersByGroups().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearEndorsersByGroups() { internalGetMutableEndorsersByGroups().getMutableMap() .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 NullPointerException("map key"); } internalGetMutableEndorsersByGroups().getMutableMap() .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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEndorsersByGroups().getMutableMap() .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) { internalGetMutableEndorsersByGroups().getMutableMap() .putAll(values); return this; } private java.util.List layouts_ = java.util.Collections.emptyList(); private void ensureLayoutsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { layouts_ = new java.util.ArrayList(layouts_); bitField0_ |= 0x00000002; } } 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_ & ~0x00000002); 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); layouts_ = null; } return layoutsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public EndorsementDescriptor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // Use Layout.newBuilder() to construct. private Layout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Layout() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Layout(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetQuantitiesByGroup(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override 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; */ @java.lang.Override public boolean containsQuantitiesByGroup( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetQuantitiesByGroup().getMap().containsKey(key); } /** * Use {@link #getQuantitiesByGroupMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override public int getQuantitiesByGroupOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public int getQuantitiesByGroupOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetQuantitiesByGroup(), QuantitiesByGroupDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override 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__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Layout)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Layout other = (org.hyperledger.fabric.protos.discovery.Protocol.Layout) obj; if (!internalGetQuantitiesByGroup().equals( other.internalGetQuantitiesByGroup())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetQuantitiesByGroup().getMap().isEmpty()) { hash = (37 * hash) + QUANTITIES_BY_GROUP_FIELD_NUMBER; hash = (53 * hash) + internalGetQuantitiesByGroup().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Layout parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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); } } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableQuantitiesByGroup().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Layout_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Layout getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Layout.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry quantitiesByGroup__ = input.readMessage( QuantitiesByGroupDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableQuantitiesByGroup().getMutableMap().put( quantitiesByGroup__.getKey(), quantitiesByGroup__.getValue()); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private 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; */ @java.lang.Override public boolean containsQuantitiesByGroup( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetQuantitiesByGroup().getMap().containsKey(key); } /** * Use {@link #getQuantitiesByGroupMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override public int getQuantitiesByGroupOrDefault( java.lang.String key, int defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public int getQuantitiesByGroupOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetQuantitiesByGroup().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQuantitiesByGroup() { internalGetMutableQuantitiesByGroup().getMutableMap() .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 NullPointerException("map key"); } internalGetMutableQuantitiesByGroup().getMutableMap() .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 NullPointerException("map key"); } internalGetMutableQuantitiesByGroup().getMutableMap() .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) { internalGetMutableQuantitiesByGroup().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Layout parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Peers(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getPeersList() { return peers_; } /** * repeated .discovery.Peer peers = 1; */ @java.lang.Override public java.util.List getPeersOrBuilderList() { return peers_; } /** * repeated .discovery.Peer peers = 1; */ @java.lang.Override public int getPeersCount() { return peers_.size(); } /** * repeated .discovery.Peer peers = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peer getPeers(int index) { return peers_.get(index); } /** * repeated .discovery.Peer peers = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.PeerOrBuilder getPeersOrBuilder( int index) { return peers_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peers_.size(); i++) { output.writeMessage(1, peers_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < peers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peers_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peers)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Peers other = (org.hyperledger.fabric.protos.discovery.Protocol.Peers) obj; if (!getPeersList() .equals(other.getPeersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPeersCount() > 0) { hash = (37 * hash) + PEERS_FIELD_NUMBER; hash = (53 * hash) + getPeersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peers parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (peersBuilder_ == null) { peers_ = java.util.Collections.emptyList(); } else { peers_ = null; peersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peers_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peers getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Peers.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { peers_ = java.util.Collections.unmodifiableList(peers_); bitField0_ = (bitField0_ & ~0x00000001); } result.peers_ = peers_; } else { result.peers_ = peersBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.Peer m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.Peer.parser(), extensionRegistry); if (peersBuilder_ == null) { ensurePeersIsMutable(); peers_.add(m); } else { peersBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List peers_ = java.util.Collections.emptyList(); private void ensurePeersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); peers_ = null; } return peersBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Peers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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
     * 
* * .gossip.Envelope state_info = 1; * @return Whether the stateInfo field is set. */ boolean hasStateInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1; * @return The stateInfo. */ org.hyperledger.fabric.protos.gossip.Message.Envelope getStateInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .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
     * 
* * .gossip.Envelope membership_info = 2; * @return Whether the membershipInfo field is set. */ boolean hasMembershipInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2; * @return The membershipInfo. */ org.hyperledger.fabric.protos.gossip.Message.Envelope getMembershipInfo(); /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2; */ org.hyperledger.fabric.protos.gossip.Message.EnvelopeOrBuilder getMembershipInfoOrBuilder(); /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * bytes identity = 3; * @return The identity. */ 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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Peer(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_descriptor; } @java.lang.Override 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
     * 
* * .gossip.Envelope state_info = 1; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return stateInfo_ != null; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1; * @return The stateInfo. */ @java.lang.Override 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
     * 
* * .gossip.Envelope state_info = 1; */ @java.lang.Override 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
     * 
* * .gossip.Envelope membership_info = 2; * @return Whether the membershipInfo field is set. */ @java.lang.Override public boolean hasMembershipInfo() { return membershipInfo_ != null; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2; * @return The membershipInfo. */ @java.lang.Override 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
     * 
* * .gossip.Envelope membership_info = 2; */ @java.lang.Override 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.
     * 
* * bytes identity = 3; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stateInfo_ != null) { output.writeMessage(1, getStateInfo()); } if (membershipInfo_ != null) { output.writeMessage(2, getMembershipInfo()); } if (!identity_.isEmpty()) { output.writeBytes(3, identity_); } getUnknownFields().writeTo(output); } @java.lang.Override 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Peer)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Peer other = (org.hyperledger.fabric.protos.discovery.Protocol.Peer) obj; if (hasStateInfo() != other.hasStateInfo()) return false; if (hasStateInfo()) { if (!getStateInfo() .equals(other.getStateInfo())) return false; } if (hasMembershipInfo() != other.hasMembershipInfo()) return false; if (hasMembershipInfo()) { if (!getMembershipInfo() .equals(other.getMembershipInfo())) return false; } if (!getIdentity() .equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Peer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override 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; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Peer_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peer getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Peer.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getStateInfoFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getMembershipInfoFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { identity_ = input.readBytes(); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private org.hyperledger.fabric.protos.gossip.Message.Envelope stateInfo_; 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
       * 
* * .gossip.Envelope state_info = 1; * @return Whether the stateInfo field is set. */ public boolean hasStateInfo() { return stateInfoBuilder_ != null || stateInfo_ != null; } /** *
       * This is an Envelope of a GossipMessage with a gossip.StateInfo message
       * 
* * .gossip.Envelope state_info = 1; * @return The stateInfo. */ 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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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_; 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
       * 
* * .gossip.Envelope membership_info = 2; * @return Whether the membershipInfo field is set. */ public boolean hasMembershipInfo() { return membershipInfoBuilder_ != null || membershipInfo_ != null; } /** *
       * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
       * 
* * .gossip.Envelope membership_info = 2; * @return The membershipInfo. */ 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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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
       * 
* * .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.
       * 
* * bytes identity = 3; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } /** *
       * This is the msp.SerializedIdentity of the peer, represented in bytes.
       * 
* * bytes identity = 3; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
       * This is the msp.SerializedIdentity of the peer, represented in bytes.
       * 
* * bytes identity = 3; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Peer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Peer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Error) com.google.protobuf.MessageOrBuilder { /** * string content = 1; * @return The content. */ java.lang.String getContent(); /** * string content = 1; * @return The bytes for content. */ 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 { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_descriptor; } @java.lang.Override 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_; /** * string content = 1; * @return The content. */ @java.lang.Override 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; } } /** * string content = 1; * @return The bytes for content. */ @java.lang.Override 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; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Error)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Error other = (org.hyperledger.fabric.protos.discovery.Protocol.Error) obj; if (!getContent() .equals(other.getContent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); content_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Error_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Error getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Error.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { content_ = input.readStringRequireUtf8(); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object content_ = ""; /** * string content = 1; * @return The content. */ 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; } } /** * string content = 1; * @return The bytes for content. */ 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; } } /** * string content = 1; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); return this; } /** * string content = 1; * @return This builder for chaining. */ public Builder clearContent() { content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** * string content = 1; * @param value The bytes for content to set. * @return This builder for chaining. */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); content_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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 { private static final long serialVersionUID = 0L; // 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 @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Endpoints(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_descriptor; } @java.lang.Override 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; */ @java.lang.Override public java.util.List getEndpointList() { return endpoint_; } /** * repeated .discovery.Endpoint endpoint = 1; */ @java.lang.Override public java.util.List getEndpointOrBuilderList() { return endpoint_; } /** * repeated .discovery.Endpoint endpoint = 1; */ @java.lang.Override public int getEndpointCount() { return endpoint_.size(); } /** * repeated .discovery.Endpoint endpoint = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getEndpoint(int index) { return endpoint_.get(index); } /** * repeated .discovery.Endpoint endpoint = 1; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.EndpointOrBuilder getEndpointOrBuilder( int index) { return endpoint_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < endpoint_.size(); i++) { output.writeMessage(1, endpoint_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < endpoint_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, endpoint_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoints)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Endpoints other = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoints) obj; if (!getEndpointList() .equals(other.getEndpointList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEndpointCount() > 0) { hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpointList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoints parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (endpointBuilder_ == null) { endpoint_ = java.util.Collections.emptyList(); } else { endpoint_ = null; endpointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoints_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Endpoints.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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) != 0)) { endpoint_ = java.util.Collections.unmodifiableList(endpoint_); bitField0_ = (bitField0_ & ~0x00000001); } result.endpoint_ = endpoint_; } else { result.endpoint_ = endpointBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.Protocol.Endpoint m = input.readMessage( org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.parser(), extensionRegistry); if (endpointBuilder_ == null) { ensureEndpointIsMutable(); endpoint_.add(m); } else { endpointBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List endpoint_ = java.util.Collections.emptyList(); private void ensureEndpointIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { 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) != 0), getParentForChildren(), isClean()); endpoint_ = null; } return endpointBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Endpoints parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoints getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:discovery.Endpoint) com.google.protobuf.MessageOrBuilder { /** * string host = 1; * @return The host. */ java.lang.String getHost(); /** * string host = 1; * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** * uint32 port = 2; * @return The port. */ 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 { private static final long serialVersionUID = 0L; // Use Endpoint.newBuilder() to construct. private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Endpoint() { host_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Endpoint(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_descriptor; } @java.lang.Override 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_; /** * string host = 1; * @return The host. */ @java.lang.Override 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; } } /** * string host = 1; * @return The bytes for host. */ @java.lang.Override 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_; /** * uint32 port = 2; * @return The port. */ @java.lang.Override public int getPort() { return port_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); } if (port_ != 0) { output.writeUInt32(2, port_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); } if (port_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.discovery.Protocol.Endpoint)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Protocol.Endpoint other = (org.hyperledger.fabric.protos.discovery.Protocol.Endpoint) obj; if (!getHost() .equals(other.getHost())) return false; if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Protocol.Endpoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.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); } @java.lang.Override 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); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * 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; } @java.lang.Override 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); host_ = ""; port_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.Protocol.internal_static_discovery_Endpoint_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Protocol.Endpoint getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Protocol.Endpoint.getDefaultInstance(); } @java.lang.Override 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; } @java.lang.Override 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; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.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()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { host_ = input.readStringRequireUtf8(); break; } // case 10 case 16: { port_ = input.readUInt32(); break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private java.lang.Object host_ = ""; /** * string host = 1; * @return The host. */ 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; } } /** * string host = 1; * @return The bytes for host. */ 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; } } /** * string host = 1; * @param value The host to set. * @return This builder for chaining. */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /** * string host = 1; * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * string host = 1; * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; } private int port_ ; /** * uint32 port = 2; * @return The port. */ @java.lang.Override public int getPort() { return port_; } /** * uint32 port = 2; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { port_ = value; onChanged(); return this; } /** * uint32 port = 2; * @return This builder for chaining. */ public Builder clearPort() { port_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope: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() { @java.lang.Override public Endpoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.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\"3\n\rSignedRequest\022\017\n\007payload\030\001 \001(\014\022\021\n\ts" + "ignature\030\002 \001(\014\"Y\n\007Request\022+\n\016authenticat" + "ion\030\001 \001(\0132\023.discovery.AuthInfo\022!\n\007querie" + "s\030\002 \003(\0132\020.discovery.Query\"3\n\010Response\022\'\n" + "\007results\030\001 \003(\0132\026.discovery.QueryResult\"A" + "\n\010AuthInfo\022\027\n\017client_identity\030\001 \001(\014\022\034\n\024c" + "lient_tls_cert_hash\030\002 \001(\014\"\350\001\n\005Query\022\017\n\007c" + "hannel\030\001 \001(\t\022.\n\014config_query\030\002 \001(\0132\026.dis" + "covery.ConfigQueryH\000\0224\n\npeer_query\030\003 \001(\013" + "2\036.discovery.PeerMembershipQueryH\000\022-\n\010cc" + "_query\030\004 \001(\0132\031.discovery.ChaincodeQueryH" + "\000\0220\n\013local_peers\030\005 \001(\0132\031.discovery.Local" + "PeerQueryH\000B\007\n\005query\"\331\001\n\013QueryResult\022!\n\005" + "error\030\001 \001(\0132\020.discovery.ErrorH\000\0220\n\rconfi" + "g_result\030\002 \001(\0132\027.discovery.ConfigResultH" + "\000\0227\n\014cc_query_res\030\003 \001(\0132\037.discovery.Chai" + "ncodeQueryResultH\000\0222\n\007members\030\004 \001(\0132\037.di" + "scovery.PeerMembershipResultH\000B\010\n\006result" + "\"\r\n\013ConfigQuery\"\202\002\n\014ConfigResult\022/\n\004msps" + "\030\001 \003(\0132!.discovery.ConfigResult.MspsEntr" + "y\0227\n\010orderers\030\002 \003(\0132%.discovery.ConfigRe" + "sult.OrderersEntry\032A\n\tMspsEntry\022\013\n\003key\030\001" + " \001(\t\022#\n\005value\030\002 \001(\0132\024.msp.FabricMSPConfi" + "g:\0028\001\032E\n\rOrderersEntry\022\013\n\003key\030\001 \001(\t\022#\n\005v" + "alue\030\002 \001(\0132\024.discovery.Endpoints:\0028\001\"C\n\023" + "PeerMembershipQuery\022,\n\006filter\030\001 \001(\0132\034.di" + "scovery.ChaincodeInterest\"\242\001\n\024PeerMember" + "shipResult\022E\n\014peers_by_org\030\001 \003(\0132/.disco" + "very.PeerMembershipResult.PeersByOrgEntr" + "y\032C\n\017PeersByOrgEntry\022\013\n\003key\030\001 \001(\t\022\037\n\005val" + "ue\030\002 \001(\0132\020.discovery.Peers:\0028\001\"A\n\016Chainc" + "odeQuery\022/\n\tinterests\030\001 \003(\0132\034.discovery." + "ChaincodeInterest\"A\n\021ChaincodeInterest\022," + "\n\nchaincodes\030\001 \003(\0132\030.discovery.Chaincode" + "Call\"7\n\rChaincodeCall\022\014\n\004name\030\001 \001(\t\022\030\n\020c" + "ollection_names\030\002 \003(\t\"I\n\024ChaincodeQueryR" + "esult\0221\n\007content\030\001 \003(\0132 .discovery.Endor" + "sementDescriptor\"\020\n\016LocalPeerQuery\"\360\001\n\025E" + "ndorsementDescriptor\022\021\n\tchaincode\030\001 \001(\t\022" + "T\n\023endorsers_by_groups\030\002 \003(\01327.discovery" + ".EndorsementDescriptor.EndorsersByGroups" + "Entry\022\"\n\007layouts\030\003 \003(\0132\021.discovery.Layou" + "t\032J\n\026EndorsersByGroupsEntry\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\023quantities_by_group\030\001 \003(\0132(." + "discovery.Layout.QuantitiesByGroupEntry\032" + "8\n\026QuantitiesByGroupEntry\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.Envelope\022)\n\017membership_i" + "nfo\030\002 \001(\0132\020.gossip.Envelope\022\020\n\010identity\030" + "\003 \001(\014\"\030\n\005Error\022\017\n\007content\030\001 \001(\t\"2\n\tEndpo" + "ints\022%\n\010endpoint\030\001 \003(\0132\023.discovery.Endpo" + "int\"&\n\010Endpoint\022\014\n\004host\030\001 \001(\t\022\014\n\004port\030\002 " + "\001(\r2F\n\tDiscovery\0229\n\010Discover\022\030.discovery" + ".SignedRequest\032\023.discovery.ResponseB\\\n\'o" + "rg.hyperledger.fabric.protos.discoveryZ1" + "github.com/hyperledger/fabric-protos-go/" + "discoveryb\006proto3" }; descriptor = 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.MspConfigPackage.getDescriptor(), }); 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.MspConfigPackage.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy