Class ProtoRows.Builder (3.20.0)

public static final class ProtoRows.Builder extends GeneratedMessage.Builder<ProtoRows.Builder> implements ProtoRowsOrBuilder

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

Implements

ProtoRowsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllSerializedRows(Iterable<? extends ByteString> values)

public ProtoRows.Builder addAllSerializedRows(Iterable<? extends ByteString> values)

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The serializedRows to add.

Returns
Type Description
ProtoRows.Builder

This builder for chaining.

addSerializedRows(ByteString value)

public ProtoRows.Builder addSerializedRows(ByteString value)

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Parameter
Name Description
value ByteString

The serializedRows to add.

Returns
Type Description
ProtoRows.Builder

This builder for chaining.

build()

public ProtoRows build()
Returns
Type Description
ProtoRows

buildPartial()

public ProtoRows buildPartial()
Returns
Type Description
ProtoRows

clear()

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

clearSerializedRows()

public ProtoRows.Builder clearSerializedRows()

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Returns
Type Description
ProtoRows.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProtoRows getDefaultInstanceForType()
Returns
Type Description
ProtoRows

getDescriptorForType()

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

getSerializedRows(int index)

public ByteString getSerializedRows(int index)

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The serializedRows at the given index.

getSerializedRowsCount()

public int getSerializedRowsCount()

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Returns
Type Description
int

The count of serializedRows.

getSerializedRowsList()

public List<ByteString> getSerializedRowsList()

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Returns
Type Description
List<ByteString>

A list containing the serializedRows.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProtoRows other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSerializedRows(int index, ByteString value)

public ProtoRows.Builder setSerializedRows(int index, ByteString value)

A sequence of rows serialized as a Protocol Buffer.

See https://developers.google.com/protocol-buffers/docs/overview for more information on deserializing this field.

repeated bytes serialized_rows = 1;

Parameters
Name Description
index int

The index to set the value at.

value ByteString

The serializedRows to set.

Returns
Type Description
ProtoRows.Builder

This builder for chaining.