Class BatchSizeTooLargeError.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchSizeTooLargeError.Builder>
com.google.cloud.bigquery.storage.v1beta.BatchSizeTooLargeError.Builder
All Implemented Interfaces:
BatchSizeTooLargeErrorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchSizeTooLargeError

public static final class BatchSizeTooLargeError.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchSizeTooLargeError.Builder> implements BatchSizeTooLargeErrorOrBuilder
 Structured custom error message for batch size too large error.
 The error can be attached as error details in the returned rpc Status for
 more structured error handling in the client.
 
Protobuf type google.cloud.bigquery.storage.v1beta.BatchSizeTooLargeError
  • 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.Builder<BatchSizeTooLargeError.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BatchSizeTooLargeError.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BatchSizeTooLargeError.Builder>
    • getDefaultInstanceForType

      public BatchSizeTooLargeError getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BatchSizeTooLargeError build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchSizeTooLargeError buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BatchSizeTooLargeError.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchSizeTooLargeError.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BatchSizeTooLargeError.Builder>
    • mergeFrom

      public BatchSizeTooLargeError.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchSizeTooLargeError.Builder>
      Throws:
      IOException
    • getMaxBatchSize

      public long getMaxBatchSize()
       The maximum number of items that are supported in a single batch. This is
       returned as a hint to the client to adjust the batch size.
       
      int64 max_batch_size = 1;
      Specified by:
      getMaxBatchSize in interface BatchSizeTooLargeErrorOrBuilder
      Returns:
      The maxBatchSize.
    • setMaxBatchSize

      public BatchSizeTooLargeError.Builder setMaxBatchSize(long value)
       The maximum number of items that are supported in a single batch. This is
       returned as a hint to the client to adjust the batch size.
       
      int64 max_batch_size = 1;
      Parameters:
      value - The maxBatchSize to set.
      Returns:
      This builder for chaining.
    • clearMaxBatchSize

      public BatchSizeTooLargeError.Builder clearMaxBatchSize()
       The maximum number of items that are supported in a single batch. This is
       returned as a hint to the client to adjust the batch size.
       
      int64 max_batch_size = 1;
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       Optional. The error message that is returned to the client.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorMessage in interface BatchSizeTooLargeErrorOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       Optional. The error message that is returned to the client.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getErrorMessageBytes in interface BatchSizeTooLargeErrorOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public BatchSizeTooLargeError.Builder setErrorMessage(String value)
       Optional. The error message that is returned to the client.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public BatchSizeTooLargeError.Builder clearErrorMessage()
       Optional. The error message that is returned to the client.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public BatchSizeTooLargeError.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       Optional. The error message that is returned to the client.
       
      string error_message = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.