Class BatchingDescriptorProto

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.BatchingDescriptorProto
All Implemented Interfaces:
BatchingDescriptorProtoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BatchingDescriptorProto extends com.google.protobuf.GeneratedMessage implements BatchingDescriptorProtoOrBuilder
 `BatchingDescriptorProto` specifies the fields of the request message to be
 used for batching, and, optionally, the fields of the response message to be
 used for demultiplexing.
 
Protobuf type google.api.BatchingDescriptorProto
See Also:
  • Field Details

    • BATCHED_FIELD_FIELD_NUMBER

      public static final int BATCHED_FIELD_FIELD_NUMBER
      See Also:
    • DISCRIMINATOR_FIELDS_FIELD_NUMBER

      public static final int DISCRIMINATOR_FIELDS_FIELD_NUMBER
      See Also:
    • SUBRESPONSE_FIELD_FIELD_NUMBER

      public static final int SUBRESPONSE_FIELD_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getBatchedField

      public String getBatchedField()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Specified by:
      getBatchedField in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The batchedField.
    • getBatchedFieldBytes

      public com.google.protobuf.ByteString getBatchedFieldBytes()
       The repeated field in the request message to be aggregated by batching.
       
      string batched_field = 1;
      Specified by:
      getBatchedFieldBytes in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The bytes for batchedField.
    • getDiscriminatorFieldsList

      public com.google.protobuf.ProtocolStringList getDiscriminatorFieldsList()
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsList in interface BatchingDescriptorProtoOrBuilder
      Returns:
      A list containing the discriminatorFields.
    • getDiscriminatorFieldsCount

      public int getDiscriminatorFieldsCount()
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsCount in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The count of discriminatorFields.
    • getDiscriminatorFields

      public String getDiscriminatorFields(int index)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFields in interface BatchingDescriptorProtoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The discriminatorFields at the given index.
    • getDiscriminatorFieldsBytes

      public com.google.protobuf.ByteString getDiscriminatorFieldsBytes(int index)
       A list of the fields in the request message. Two requests will be batched
       together only if the values of every field specified in
       `request_discriminator_fields` is equal between the two requests.
       
      repeated string discriminator_fields = 2;
      Specified by:
      getDiscriminatorFieldsBytes in interface BatchingDescriptorProtoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the discriminatorFields at the given index.
    • getSubresponseField

      public String getSubresponseField()
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Specified by:
      getSubresponseField in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The subresponseField.
    • getSubresponseFieldBytes

      public com.google.protobuf.ByteString getSubresponseFieldBytes()
       Optional. When present, indicates the field in the response message to be
       used to demultiplex the response into multiple response messages, in
       correspondence with the multiple request messages originally batched
       together.
       
      string subresponse_field = 3;
      Specified by:
      getSubresponseFieldBytes in interface BatchingDescriptorProtoOrBuilder
      Returns:
      The bytes for subresponseField.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BatchingDescriptorProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BatchingDescriptorProto parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BatchingDescriptorProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchingDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public BatchingDescriptorProto.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static BatchingDescriptorProto.Builder newBuilder()
    • newBuilder

      public static BatchingDescriptorProto.Builder newBuilder(BatchingDescriptorProto prototype)
    • toBuilder

      public BatchingDescriptorProto.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected BatchingDescriptorProto.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BatchingDescriptorProto getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BatchingDescriptorProto> parser()
    • getParserForType

      public com.google.protobuf.Parser<BatchingDescriptorProto> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public BatchingDescriptorProto getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder