Class AppendRowsRequest.ProtoData.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder
All Implemented Interfaces:
AppendRowsRequest.ProtoDataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AppendRowsRequest.ProtoData

public static final class AppendRowsRequest.ProtoData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder> implements AppendRowsRequest.ProtoDataOrBuilder
 ProtoData contains the data rows and schema when constructing append
 requests.
 
Protobuf type google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.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.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.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.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AppendRowsRequest.ProtoData buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • setField

      public AppendRowsRequest.ProtoData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • clearField

      public AppendRowsRequest.ProtoData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • clearOneof

      public AppendRowsRequest.ProtoData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • setRepeatedField

      public AppendRowsRequest.ProtoData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • addRepeatedField

      public AppendRowsRequest.ProtoData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • mergeFrom

      public AppendRowsRequest.ProtoData.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<AppendRowsRequest.ProtoData.Builder>
    • mergeFrom

    • isInitialized

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

      public AppendRowsRequest.ProtoData.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<AppendRowsRequest.ProtoData.Builder>
      Throws:
      IOException
    • hasWriterSchema

      public boolean hasWriterSchema()
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
      Specified by:
      hasWriterSchema in interface AppendRowsRequest.ProtoDataOrBuilder
      Returns:
      Whether the writerSchema field is set.
    • getWriterSchema

      public ProtoSchema getWriterSchema()
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
      Specified by:
      getWriterSchema in interface AppendRowsRequest.ProtoDataOrBuilder
      Returns:
      The writerSchema.
    • setWriterSchema

      public AppendRowsRequest.ProtoData.Builder setWriterSchema(ProtoSchema value)
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
    • setWriterSchema

      public AppendRowsRequest.ProtoData.Builder setWriterSchema(ProtoSchema.Builder builderForValue)
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
    • mergeWriterSchema

      public AppendRowsRequest.ProtoData.Builder mergeWriterSchema(ProtoSchema value)
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
    • clearWriterSchema

      public AppendRowsRequest.ProtoData.Builder clearWriterSchema()
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
    • getWriterSchemaBuilder

      public ProtoSchema.Builder getWriterSchemaBuilder()
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
    • getWriterSchemaOrBuilder

      public ProtoSchemaOrBuilder getWriterSchemaOrBuilder()
       Optional. The protocol buffer schema used to serialize the data. Provide
       this value whenever:
      
       * You send the first request of an RPC connection.
      
       * You change the input schema.
      
       * You specify a new destination table.
       
      .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
      Specified by:
      getWriterSchemaOrBuilder in interface AppendRowsRequest.ProtoDataOrBuilder
    • hasRows

      public boolean hasRows()
       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
      Specified by:
      hasRows in interface AppendRowsRequest.ProtoDataOrBuilder
      Returns:
      Whether the rows field is set.
    • getRows

      public ProtoRows getRows()
       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
      Specified by:
      getRows in interface AppendRowsRequest.ProtoDataOrBuilder
      Returns:
      The rows.
    • setRows

       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
    • setRows

      public AppendRowsRequest.ProtoData.Builder setRows(ProtoRows.Builder builderForValue)
       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
    • mergeRows

       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
    • clearRows

       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
    • getRowsBuilder

      public ProtoRows.Builder getRowsBuilder()
       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
    • getRowsOrBuilder

      public ProtoRowsOrBuilder getRowsOrBuilder()
       Required. Serialized row data in protobuf message format.
       Currently, the backend expects the serialized rows to adhere to
       proto2 semantics when appending rows, particularly with respect to
       how default values are encoded.
       
      .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
      Specified by:
      getRowsOrBuilder in interface AppendRowsRequest.ProtoDataOrBuilder
    • setUnknownFields

      public final AppendRowsRequest.ProtoData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>
    • mergeUnknownFields

      public final AppendRowsRequest.ProtoData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.ProtoData.Builder>