Class AppendRowsRequest.ProtoData.Builder (3.1.0)

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

ProtoData contains the data rows and schema when constructing append requests.

Protobuf type google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AppendRowsRequest.ProtoData build()
Returns
TypeDescription
AppendRowsRequest.ProtoData

buildPartial()

public AppendRowsRequest.ProtoData buildPartial()
Returns
TypeDescription
AppendRowsRequest.ProtoData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRows()

public AppendRowsRequest.ProtoData.Builder clearRows()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

clearWriterSchema()

public AppendRowsRequest.ProtoData.Builder clearWriterSchema()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

clone()

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

getDefaultInstanceForType()

public AppendRowsRequest.ProtoData getDefaultInstanceForType()
Returns
TypeDescription
AppendRowsRequest.ProtoData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRows()

public ProtoRows getRows()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
ProtoRows

The rows.

getRowsBuilder()

public ProtoRows.Builder getRowsBuilder()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
ProtoRows.Builder

getRowsOrBuilder()

public ProtoRowsOrBuilder getRowsOrBuilder()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
ProtoRowsOrBuilder

getWriterSchema()

public ProtoSchema getWriterSchema()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
ProtoSchema

The writerSchema.

getWriterSchemaBuilder()

public ProtoSchema.Builder getWriterSchemaBuilder()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
ProtoSchema.Builder

getWriterSchemaOrBuilder()

public ProtoSchemaOrBuilder getWriterSchemaOrBuilder()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
ProtoSchemaOrBuilder

hasRows()

public boolean hasRows()

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Returns
TypeDescription
boolean

Whether the rows field is set.

hasWriterSchema()

public boolean hasWriterSchema()

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Returns
TypeDescription
boolean

Whether the writerSchema field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AppendRowsRequest.ProtoData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRows(ProtoRows value)

public AppendRowsRequest.ProtoData.Builder mergeRows(ProtoRows value)

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Parameter
NameDescription
valueProtoRows
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWriterSchema(ProtoSchema value)

public AppendRowsRequest.ProtoData.Builder mergeWriterSchema(ProtoSchema value)

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Parameter
NameDescription
valueProtoSchema
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRows(ProtoRows value)

public AppendRowsRequest.ProtoData.Builder setRows(ProtoRows value)

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

Parameter
NameDescription
valueProtoRows
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

setRows(ProtoRows.Builder builderForValue)

public AppendRowsRequest.ProtoData.Builder setRows(ProtoRows.Builder builderForValue)

Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded.

.google.cloud.bigquery.storage.v1.ProtoRows rows = 2;

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriterSchema(ProtoSchema value)

public AppendRowsRequest.ProtoData.Builder setWriterSchema(ProtoSchema value)

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

Parameter
NameDescription
valueProtoSchema
Returns
TypeDescription
AppendRowsRequest.ProtoData.Builder

setWriterSchema(ProtoSchema.Builder builderForValue)

public AppendRowsRequest.ProtoData.Builder setWriterSchema(ProtoSchema.Builder builderForValue)

The protocol buffer schema used to serialize the data. Provide this value whenever:

  • You send the first request of an RPC connection.

  • You change the input schema.

  • You specify a new destination table.

.google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;

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