Class AppendRowsRequest.Builder (3.0.1)

public static final class AppendRowsRequest.Builder extends GeneratedMessageV3.Builder<AppendRowsRequest.Builder> implements AppendRowsRequestOrBuilder

Request message for AppendRows.

Protobuf type google.cloud.bigquery.storage.v1beta2.AppendRowsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AppendRowsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

build()

public AppendRowsRequest build()
Returns
TypeDescription
AppendRowsRequest

buildPartial()

public AppendRowsRequest buildPartial()
Returns
TypeDescription
AppendRowsRequest

clear()

public AppendRowsRequest.Builder clear()
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AppendRowsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

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;

Returns
TypeDescription
AppendRowsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AppendRowsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

clearProtoRows()

public AppendRowsRequest.Builder clearProtoRows()

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Returns
TypeDescription
AppendRowsRequest.Builder

clearRows()

public AppendRowsRequest.Builder clearRows()
Returns
TypeDescription
AppendRowsRequest.Builder

clearTraceId()

public AppendRowsRequest.Builder clearTraceId()

Id set by client to annotate its identity. Only initial request setting is respected.

string trace_id = 6;

Returns
TypeDescription
AppendRowsRequest.Builder

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
TypeDescription
AppendRowsRequest.Builder

This builder for chaining.

clone()

public AppendRowsRequest.Builder clone()
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

getDefaultInstanceForType()

public AppendRowsRequest getDefaultInstanceForType()
Returns
TypeDescription
AppendRowsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOffset()

public 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;

Returns
TypeDescription
Int64Value

The offset.

getOffsetBuilder()

public 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;

Returns
TypeDescription
Builder

getOffsetOrBuilder()

public 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;

Returns
TypeDescription
Int64ValueOrBuilder

getProtoRows()

public AppendRowsRequest.ProtoData getProtoRows()

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Returns
TypeDescription
AppendRowsRequest.ProtoData

The protoRows.

getProtoRowsBuilder()

public AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder()

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

getProtoRowsOrBuilder()

public AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder()

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Returns
TypeDescription
AppendRowsRequest.ProtoDataOrBuilder

getRowsCase()

public AppendRowsRequest.RowsCase getRowsCase()
Returns
TypeDescription
AppendRowsRequest.RowsCase

getTraceId()

public String getTraceId()

Id set by client to annotate its identity. Only initial request setting is respected.

string trace_id = 6;

Returns
TypeDescription
String

The traceId.

getTraceIdBytes()

public ByteString getTraceIdBytes()

Id set by client to annotate its identity. Only initial request setting is respected.

string trace_id = 6;

Returns
TypeDescription
ByteString

The bytes for traceId.

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) = { ... }

Returns
TypeDescription
String

The writeStream.

getWriteStreamBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for writeStream.

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;

Returns
TypeDescription
boolean

Whether the offset field is set.

hasProtoRows()

public boolean hasProtoRows()

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Returns
TypeDescription
boolean

Whether the protoRows field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AppendRowsRequest other)

public AppendRowsRequest.Builder mergeFrom(AppendRowsRequest other)
Parameter
NameDescription
otherAppendRowsRequest
Returns
TypeDescription
AppendRowsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AppendRowsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AppendRowsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

mergeOffset(Int64Value value)

public AppendRowsRequest.Builder mergeOffset(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;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
AppendRowsRequest.Builder

mergeProtoRows(AppendRowsRequest.ProtoData value)

public AppendRowsRequest.Builder mergeProtoRows(AppendRowsRequest.ProtoData value)

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Parameter
NameDescription
valueAppendRowsRequest.ProtoData
Returns
TypeDescription
AppendRowsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AppendRowsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AppendRowsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

setOffset(Int64Value value)

public AppendRowsRequest.Builder setOffset(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;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
AppendRowsRequest.Builder

setOffset(Int64Value.Builder builderForValue)

public AppendRowsRequest.Builder setOffset(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AppendRowsRequest.Builder

setProtoRows(AppendRowsRequest.ProtoData value)

public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData value)

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Parameter
NameDescription
valueAppendRowsRequest.ProtoData
Returns
TypeDescription
AppendRowsRequest.Builder

setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)

public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)

Rows in proto format.

.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;

Parameter
NameDescription
builderForValueAppendRowsRequest.ProtoData.Builder
Returns
TypeDescription
AppendRowsRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AppendRowsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

setTraceId(String value)

public AppendRowsRequest.Builder setTraceId(String value)

Id set by client to annotate its identity. Only initial request setting is respected.

string trace_id = 6;

Parameter
NameDescription
valueString

The traceId to set.

Returns
TypeDescription
AppendRowsRequest.Builder

This builder for chaining.

setTraceIdBytes(ByteString value)

public AppendRowsRequest.Builder setTraceIdBytes(ByteString value)

Id set by client to annotate its identity. Only initial request setting is respected.

string trace_id = 6;

Parameter
NameDescription
valueByteString

The bytes for traceId to set.

Returns
TypeDescription
AppendRowsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AppendRowsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AppendRowsRequest.Builder
Overrides

setWriteStream(String value)

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) = { ... }

Parameter
NameDescription
valueString

The writeStream to set.

Returns
TypeDescription
AppendRowsRequest.Builder

This builder for chaining.

setWriteStreamBytes(ByteString value)

public AppendRowsRequest.Builder setWriteStreamBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for writeStream to set.

Returns
TypeDescription
AppendRowsRequest.Builder

This builder for chaining.