Class BatchCommitWriteStreamsRequest.Builder (2.43.0)

public static final class BatchCommitWriteStreamsRequest.Builder extends GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder> implements BatchCommitWriteStreamsRequestOrBuilder

Request message for BatchCommitWriteStreams.

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

Static Methods

getDescriptor()

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

Methods

addAllWriteStreams(Iterable<String> values)

public BatchCommitWriteStreamsRequest.Builder addAllWriteStreams(Iterable<String> values)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The writeStreams to add.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWriteStreams(String value)

public BatchCommitWriteStreamsRequest.Builder addWriteStreams(String value)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The writeStreams to add.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

addWriteStreamsBytes(ByteString value)

public BatchCommitWriteStreamsRequest.Builder addWriteStreamsBytes(ByteString value)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the writeStreams to add.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

build()

public BatchCommitWriteStreamsRequest build()
Returns
TypeDescription
BatchCommitWriteStreamsRequest

buildPartial()

public BatchCommitWriteStreamsRequest buildPartial()
Returns
TypeDescription
BatchCommitWriteStreamsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchCommitWriteStreamsRequest.Builder clearParent()

Required. Parent table that all the streams should belong to, in the form of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

clearWriteStreams()

public BatchCommitWriteStreamsRequest.Builder clearWriteStreams()

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchCommitWriteStreamsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCommitWriteStreamsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Parent table that all the streams should belong to, in the form of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent table that all the streams should belong to, in the form of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

getWriteStreams(int index)

public String getWriteStreams(int index)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The writeStreams at the given index.

getWriteStreamsBytes(int index)

public ByteString getWriteStreamsBytes(int index)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the writeStreams at the given index.

getWriteStreamsCount()

public int getWriteStreamsCount()

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of writeStreams.

getWriteStreamsList()

public ProtocolStringList getWriteStreamsList()

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the writeStreams.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCommitWriteStreamsRequest other)

public BatchCommitWriteStreamsRequest.Builder mergeFrom(BatchCommitWriteStreamsRequest other)
Parameter
NameDescription
otherBatchCommitWriteStreamsRequest
Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchCommitWriteStreamsRequest.Builder setParent(String value)

Required. Parent table that all the streams should belong to, in the form of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCommitWriteStreamsRequest.Builder setParentBytes(ByteString value)

Required. Parent table that all the streams should belong to, in the form of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriteStreams(int index, String value)

public BatchCommitWriteStreamsRequest.Builder setWriteStreams(int index, String value)

Required. The group of streams that will be committed atomically.

repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The writeStreams to set.

Returns
TypeDescription
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.