Class BatchCommitWriteStreamsRequest.Builder (3.20.0)

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

Request message for BatchCommitWriteStreams.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<String>

The writeStreams to add.

Returns
Type Description
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

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
Name Description
value String

The writeStreams to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the writeStreams to add.

Returns
Type Description
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

build()

public BatchCommitWriteStreamsRequest build()
Returns
Type Description
BatchCommitWriteStreamsRequest

buildPartial()

public BatchCommitWriteStreamsRequest buildPartial()
Returns
Type Description
BatchCommitWriteStreamsRequest

clear()

public BatchCommitWriteStreamsRequest.Builder clear()
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Returns
Type Description
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
Type Description
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public BatchCommitWriteStreamsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCommitWriteStreamsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the writeStreams.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCommitWriteStreamsRequest other)

public BatchCommitWriteStreamsRequest.Builder mergeFrom(BatchCommitWriteStreamsRequest other)
Parameter
Name Description
other BatchCommitWriteStreamsRequest
Returns
Type Description
BatchCommitWriteStreamsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCommitWriteStreamsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCommitWriteStreamsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCommitWriteStreamsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.

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
Name Description
index int

The index to set the value at.

value String

The writeStreams to set.

Returns
Type Description
BatchCommitWriteStreamsRequest.Builder

This builder for chaining.