Class AppendRowsRequest.Builder

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

public static final class AppendRowsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder> implements AppendRowsRequestOrBuilder
 Request message for `AppendRows`.
 
Protobuf type google.cloud.bigquery.storage.v1beta2.AppendRowsRequest
  • 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.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public AppendRowsRequest.Builder mergeFrom(AppendRowsRequest other)
    • isInitialized

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

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

      public AppendRowsRequest.RowsCase getRowsCase()
      Specified by:
      getRowsCase in interface AppendRowsRequestOrBuilder
    • clearRows

      public AppendRowsRequest.Builder clearRows()
    • getWriteStream

      public String getWriteStream()
       Required. The stream that is the target of the append operation. This value must be
       specified for the initial request. If subsequent requests specify the
       stream name, it must equal to the value provided in the first request.
       To write to the _default stream, populate this field with a string in the
       format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
       
      string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWriteStream in interface AppendRowsRequestOrBuilder
      Returns:
      The writeStream.
    • getWriteStreamBytes

      public com.google.protobuf.ByteString getWriteStreamBytes()
       Required. The stream that is the target of the append operation. This value must be
       specified for the initial request. If subsequent requests specify the
       stream name, it must equal to the value provided in the first request.
       To write to the _default stream, populate this field with a string in the
       format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
       
      string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getWriteStreamBytes in interface AppendRowsRequestOrBuilder
      Returns:
      The bytes for writeStream.
    • setWriteStream

      public AppendRowsRequest.Builder setWriteStream(String value)
       Required. The stream that is the target of the append operation. This value must be
       specified for the initial request. If subsequent requests specify the
       stream name, it must equal to the value provided in the first request.
       To write to the _default stream, populate this field with a string in the
       format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
       
      string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The writeStream to set.
      Returns:
      This builder for chaining.
    • clearWriteStream

      public AppendRowsRequest.Builder clearWriteStream()
       Required. The stream that is the target of the append operation. This value must be
       specified for the initial request. If subsequent requests specify the
       stream name, it must equal to the value provided in the first request.
       To write to the _default stream, populate this field with a string in the
       format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
       
      string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setWriteStreamBytes

      public AppendRowsRequest.Builder setWriteStreamBytes(com.google.protobuf.ByteString value)
       Required. The stream that is the target of the append operation. This value must be
       specified for the initial request. If subsequent requests specify the
       stream name, it must equal to the value provided in the first request.
       To write to the _default stream, populate this field with a string in the
       format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
       
      string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for writeStream to set.
      Returns:
      This builder for chaining.
    • hasOffset

      public boolean hasOffset()
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
      Specified by:
      hasOffset in interface AppendRowsRequestOrBuilder
      Returns:
      Whether the offset field is set.
    • getOffset

      public com.google.protobuf.Int64Value getOffset()
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
      Specified by:
      getOffset in interface AppendRowsRequestOrBuilder
      Returns:
      The offset.
    • setOffset

      public AppendRowsRequest.Builder setOffset(com.google.protobuf.Int64Value value)
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
    • setOffset

      public AppendRowsRequest.Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
    • mergeOffset

      public AppendRowsRequest.Builder mergeOffset(com.google.protobuf.Int64Value value)
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
    • clearOffset

      public AppendRowsRequest.Builder clearOffset()
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
    • getOffsetBuilder

      public com.google.protobuf.Int64Value.Builder getOffsetBuilder()
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
    • getOffsetOrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder()
       If present, the write is only performed if the next append offset is same
       as the provided value. If not present, the write is performed at the
       current end of stream. Specifying a value for this field is not allowed
       when calling AppendRows for the '_default' stream.
       
      .google.protobuf.Int64Value offset = 2;
      Specified by:
      getOffsetOrBuilder in interface AppendRowsRequestOrBuilder
    • hasProtoRows

      public boolean hasProtoRows()
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
      Specified by:
      hasProtoRows in interface AppendRowsRequestOrBuilder
      Returns:
      Whether the protoRows field is set.
    • getProtoRows

      public AppendRowsRequest.ProtoData getProtoRows()
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
      Specified by:
      getProtoRows in interface AppendRowsRequestOrBuilder
      Returns:
      The protoRows.
    • setProtoRows

       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
    • setProtoRows

      public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
    • mergeProtoRows

       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
    • clearProtoRows

      public AppendRowsRequest.Builder clearProtoRows()
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
    • getProtoRowsBuilder

      public AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder()
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
    • getProtoRowsOrBuilder

      public AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder()
       Rows in proto format.
       
      .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;
      Specified by:
      getProtoRowsOrBuilder in interface AppendRowsRequestOrBuilder
    • getTraceId

      public String getTraceId()
       Id set by client to annotate its identity. Only initial request setting is
       respected.
       
      string trace_id = 6;
      Specified by:
      getTraceId in interface AppendRowsRequestOrBuilder
      Returns:
      The traceId.
    • getTraceIdBytes

      public com.google.protobuf.ByteString getTraceIdBytes()
       Id set by client to annotate its identity. Only initial request setting is
       respected.
       
      string trace_id = 6;
      Specified by:
      getTraceIdBytes in interface AppendRowsRequestOrBuilder
      Returns:
      The bytes for traceId.
    • setTraceId

      public AppendRowsRequest.Builder setTraceId(String value)
       Id set by client to annotate its identity. Only initial request setting is
       respected.
       
      string trace_id = 6;
      Parameters:
      value - The traceId to set.
      Returns:
      This builder for chaining.
    • clearTraceId

      public AppendRowsRequest.Builder clearTraceId()
       Id set by client to annotate its identity. Only initial request setting is
       respected.
       
      string trace_id = 6;
      Returns:
      This builder for chaining.
    • setTraceIdBytes

      public AppendRowsRequest.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
       Id set by client to annotate its identity. Only initial request setting is
       respected.
       
      string trace_id = 6;
      Parameters:
      value - The bytes for traceId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AppendRowsRequest.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.Builder>
    • mergeUnknownFields

      public final AppendRowsRequest.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.Builder>