Class ReadStream.Builder (3.20.0)

public static final class ReadStream.Builder extends GeneratedMessage.Builder<ReadStream.Builder> implements ReadStreamOrBuilder

Information about a single stream that gets data out of the storage system. Most of the information about ReadStream instances is aggregated, making ReadStream lightweight.

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

Implements

ReadStreamOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ReadStream build()
Returns
Type Description
ReadStream

buildPartial()

public ReadStream buildPartial()
Returns
Type Description
ReadStream

clear()

public ReadStream.Builder clear()
Returns
Type Description
ReadStream.Builder
Overrides

clearName()

public ReadStream.Builder clearName()

Output only. Name of the stream, in the form projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ReadStream.Builder

This builder for chaining.

getDefaultInstanceForType()

public ReadStream getDefaultInstanceForType()
Returns
Type Description
ReadStream

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Output only. Name of the stream, in the form projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the stream, in the form projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReadStream other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReadStream.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReadStream.Builder
Overrides

setName(String value)

public ReadStream.Builder setName(String value)

Output only. Name of the stream, in the form projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReadStream.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReadStream.Builder setNameBytes(ByteString value)

Output only. Name of the stream, in the form projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReadStream.Builder

This builder for chaining.