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!
// source: discovery/protocol.proto

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.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; } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.hyperledger.fabric.protos.discovery.AuthInfo.Builder subBuilder = null; if (authentication_ != null) { subBuilder = authentication_.toBuilder(); } authentication_ = input.readMessage(org.hyperledger.fabric.protos.discovery.AuthInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(authentication_); authentication_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { queries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } queries_.add( input.readMessage(org.hyperledger.fabric.protos.discovery.Query.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { queries_ = java.util.Collections.unmodifiableList(queries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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.GeneratedMessageV3.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); } 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 authentication_ != null; } /** *
   * 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 getAuthentication(); } public static final int QUERIES_FIELD_NUMBER = 2; 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 (authentication_ != null) { output.writeMessage(1, getAuthentication()); } for (int i = 0; i < queries_.size(); i++) { output.writeMessage(2, queries_.get(i)); } unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.GeneratedMessageV3 .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.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.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.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.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getQueriesFieldBuilder(); } } @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(); bitField0_ = (bitField0_ & ~0x00000001); } else { queriesBuilder_.clear(); } 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); 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.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_ & ~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.unknownFields); 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 { org.hyperledger.fabric.protos.discovery.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.discovery.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.hyperledger.fabric.protos.discovery.AuthInfo authentication_; private com.google.protobuf.SingleFieldBuilderV3< 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 authenticationBuilder_ != null || authentication_ != null; } /** *
     * 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; 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 [json_name = "authentication"]; */ public Builder setAuthentication( org.hyperledger.fabric.protos.discovery.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 [json_name = "authentication"]; */ public Builder mergeAuthentication(org.hyperledger.fabric.protos.discovery.AuthInfo value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = org.hyperledger.fabric.protos.discovery.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 [json_name = "authentication"]; */ 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 [json_name = "authentication"]; */ public org.hyperledger.fabric.protos.discovery.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 [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.SingleFieldBuilderV3< 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.SingleFieldBuilderV3< 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_ & 0x00000001) != 0)) { queries_ = new java.util.ArrayList(queries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< 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_ & ~0x00000001); 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.RepeatedFieldBuilderV3< 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.RepeatedFieldBuilderV3< org.hyperledger.fabric.protos.discovery.Query, org.hyperledger.fabric.protos.discovery.Query.Builder, org.hyperledger.fabric.protos.discovery.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.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 { return new Request(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy