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

org.hyperledger.fabric.protos.discovery.Request Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: discovery/protocol.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.discovery;

/**
 * 
 * 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 final class Request extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:discovery.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", Request.class.getName()); } // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Request() { queries_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Request.class, org.hyperledger.fabric.protos.discovery.Request.Builder.class); } private int bitField0_; public static final int AUTHENTICATION_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.discovery.AuthInfo authentication_; /** *
   * authentication contains information that the service uses to check
   * the client's eligibility for the queries.
   * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; * @return Whether the authentication field is set. */ @java.lang.Override public boolean hasAuthentication() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * authentication contains information that the service uses to check
   * the client's eligibility for the queries.
   * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; * @return The authentication. */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.AuthInfo getAuthentication() { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.AuthInfo.getDefaultInstance() : authentication_; } /** *
   * authentication contains information that the service uses to check
   * the client's eligibility for the queries.
   * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.AuthInfoOrBuilder getAuthenticationOrBuilder() { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.AuthInfo.getDefaultInstance() : authentication_; } public static final int QUERIES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List queries_; /** *
   * queries
   * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ @java.lang.Override public java.util.List getQueriesList() { return queries_; } /** *
   * queries
   * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ @java.lang.Override public java.util.List getQueriesOrBuilderList() { return queries_; } /** *
   * queries
   * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ @java.lang.Override public int getQueriesCount() { return queries_.size(); } /** *
   * queries
   * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.Query getQueries(int index) { return queries_.get(index); } /** *
   * queries
   * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ @java.lang.Override public org.hyperledger.fabric.protos.discovery.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 (((bitField0_ & 0x00000001) != 0)) { 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 (((bitField0_ & 0x00000001) != 0)) { 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.Request)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Request other = (org.hyperledger.fabric.protos.discovery.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.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.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.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.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.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.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.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .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.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.GeneratedMessage.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.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Request) org.hyperledger.fabric.protos.discovery.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Request.class, org.hyperledger.fabric.protos.discovery.Request.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getAuthenticationFieldBuilder(); getQueriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); } else { queries_ = null; queriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Request_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Request getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Request.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Request build() { org.hyperledger.fabric.protos.discovery.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Request buildPartial() { org.hyperledger.fabric.protos.discovery.Request result = new org.hyperledger.fabric.protos.discovery.Request(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.discovery.Request result) { if (queriesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { queries_ = java.util.Collections.unmodifiableList(queries_); bitField0_ = (bitField0_ & ~0x00000002); } result.queries_ = queries_; } else { result.queries_ = queriesBuilder_.build(); } } private void buildPartial0(org.hyperledger.fabric.protos.discovery.Request result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.authentication_ = authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Request) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Request other) { if (other == org.hyperledger.fabric.protos.discovery.Request.getDefaultInstance()) return this; if (other.hasAuthentication()) { mergeAuthentication(other.getAuthentication()); } if (queriesBuilder_ == null) { if (!other.queries_.isEmpty()) { if (queries_.isEmpty()) { queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureQueriesIsMutable(); queries_.addAll(other.queries_); } onChanged(); } } else { if (!other.queries_.isEmpty()) { if (queriesBuilder_.isEmpty()) { queriesBuilder_.dispose(); queriesBuilder_ = null; queries_ = other.queries_; bitField0_ = (bitField0_ & ~0x00000002); queriesBuilder_ = com.google.protobuf.GeneratedMessage.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); bitField0_ |= 0x00000001; break; } // case 10 case 18: { org.hyperledger.fabric.protos.discovery.Query m = input.readMessage( org.hyperledger.fabric.protos.discovery.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.AuthInfo authentication_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.discovery.AuthInfo, org.hyperledger.fabric.protos.discovery.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.AuthInfoOrBuilder> authenticationBuilder_; /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; * @return The authentication. */ public org.hyperledger.fabric.protos.discovery.AuthInfo getAuthentication() { if (authenticationBuilder_ == null) { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.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 [json_name = "authentication"]; */ public Builder setAuthentication(org.hyperledger.fabric.protos.discovery.AuthInfo value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } authentication_ = value; } else { authenticationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ public Builder setAuthentication( org.hyperledger.fabric.protos.discovery.AuthInfo.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); } else { authenticationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ public Builder mergeAuthentication(org.hyperledger.fabric.protos.discovery.AuthInfo value) { if (authenticationBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && authentication_ != null && authentication_ != org.hyperledger.fabric.protos.discovery.AuthInfo.getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; } } else { authenticationBuilder_.mergeFrom(value); } if (authentication_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ public Builder clearAuthentication() { bitField0_ = (bitField0_ & ~0x00000001); authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } onChanged(); return this; } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ public org.hyperledger.fabric.protos.discovery.AuthInfo.Builder getAuthenticationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ public org.hyperledger.fabric.protos.discovery.AuthInfoOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { return authentication_ == null ? org.hyperledger.fabric.protos.discovery.AuthInfo.getDefaultInstance() : authentication_; } } /** *
     * authentication contains information that the service uses to check
     * the client's eligibility for the queries.
     * 
* * .discovery.AuthInfo authentication = 1 [json_name = "authentication"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.discovery.AuthInfo, org.hyperledger.fabric.protos.discovery.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.AuthInfoOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.discovery.AuthInfo, org.hyperledger.fabric.protos.discovery.AuthInfo.Builder, org.hyperledger.fabric.protos.discovery.AuthInfoOrBuilder>( getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; } private java.util.List queries_ = java.util.Collections.emptyList(); private void ensureQueriesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.discovery.Query, org.hyperledger.fabric.protos.discovery.Query.Builder, org.hyperledger.fabric.protos.discovery.QueryOrBuilder> queriesBuilder_; /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public java.util.List getQueriesList() { if (queriesBuilder_ == null) { return java.util.Collections.unmodifiableList(queries_); } else { return queriesBuilder_.getMessageList(); } } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public int getQueriesCount() { if (queriesBuilder_ == null) { return queries_.size(); } else { return queriesBuilder_.getCount(); } } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public org.hyperledger.fabric.protos.discovery.Query getQueries(int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessage(index); } } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public Builder setQueries( int index, org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ public Builder setQueries( int index, org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ public Builder addQueries(org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ public Builder addQueries( int index, org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ public Builder addQueries( org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ public Builder addQueries( int index, org.hyperledger.fabric.protos.discovery.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 [json_name = "queries"]; */ 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 [json_name = "queries"]; */ public Builder clearQueries() { if (queriesBuilder_ == null) { queries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { queriesBuilder_.clear(); } return this; } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ 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 [json_name = "queries"]; */ public org.hyperledger.fabric.protos.discovery.Query.Builder getQueriesBuilder( int index) { return getQueriesFieldBuilder().getBuilder(index); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public org.hyperledger.fabric.protos.discovery.QueryOrBuilder getQueriesOrBuilder( int index) { if (queriesBuilder_ == null) { return queries_.get(index); } else { return queriesBuilder_.getMessageOrBuilder(index); } } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public java.util.List getQueriesOrBuilderList() { if (queriesBuilder_ != null) { return queriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queries_); } } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public org.hyperledger.fabric.protos.discovery.Query.Builder addQueriesBuilder() { return getQueriesFieldBuilder().addBuilder( org.hyperledger.fabric.protos.discovery.Query.getDefaultInstance()); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public org.hyperledger.fabric.protos.discovery.Query.Builder addQueriesBuilder( int index) { return getQueriesFieldBuilder().addBuilder( index, org.hyperledger.fabric.protos.discovery.Query.getDefaultInstance()); } /** *
     * queries
     * 
* * repeated .discovery.Query queries = 2 [json_name = "queries"]; */ public java.util.List getQueriesBuilderList() { return getQueriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.discovery.Query, org.hyperledger.fabric.protos.discovery.Query.Builder, org.hyperledger.fabric.protos.discovery.QueryOrBuilder> getQueriesFieldBuilder() { if (queriesBuilder_ == null) { queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.hyperledger.fabric.protos.discovery.Query, org.hyperledger.fabric.protos.discovery.Query.Builder, org.hyperledger.fabric.protos.discovery.QueryOrBuilder>( queries_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); queries_ = null; } return queriesBuilder_; } // @@protoc_insertion_point(builder_scope:discovery.Request) } // @@protoc_insertion_point(class_scope:discovery.Request) private static final org.hyperledger.fabric.protos.discovery.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Request(); } public static org.hyperledger.fabric.protos.discovery.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.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy