Class AppendRowsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
- com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder
-
- All Implemented Interfaces:
AppendRowsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AppendRowsRequest
public static final class AppendRowsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder> implements AppendRowsRequestOrBuilder
Request message for `AppendRows`. Because AppendRows is a bidirectional streaming RPC, certain parts of the AppendRowsRequest need only be specified for the first request before switching table destinations. You can also switch table destinations within the same connection for the default stream. The size of a single AppendRowsRequest must be less than 10 MB in size. Requests larger than this return an error, typically `INVALID_ARGUMENT`.
Protobuf typegoogle.cloud.bigquery.storage.v1.AppendRowsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AppendRowsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AppendRowsRequest
build()
AppendRowsRequest
buildPartial()
AppendRowsRequest.Builder
clear()
AppendRowsRequest.Builder
clearDefaultMissingValueInterpretation()
Optional.AppendRowsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AppendRowsRequest.Builder
clearMissingValueInterpretations()
AppendRowsRequest.Builder
clearOffset()
If present, the write is only performed if the next append offset is same as the provided value.AppendRowsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AppendRowsRequest.Builder
clearProtoRows()
Rows in proto format.AppendRowsRequest.Builder
clearRows()
AppendRowsRequest.Builder
clearTraceId()
Id set by client to annotate its identity.AppendRowsRequest.Builder
clearWriteStream()
Required.AppendRowsRequest.Builder
clone()
boolean
containsMissingValueInterpretations(String key)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest
getDefaultInstanceForType()
AppendRowsRequest.MissingValueInterpretation
getDefaultMissingValueInterpretation()
Optional.int
getDefaultMissingValueInterpretationValue()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,AppendRowsRequest.MissingValueInterpretation>
getMissingValueInterpretations()
Deprecated.int
getMissingValueInterpretationsCount()
A map to indicate how to interpret missing value for some fields.Map<String,AppendRowsRequest.MissingValueInterpretation>
getMissingValueInterpretationsMap()
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.MissingValueInterpretation
getMissingValueInterpretationsOrDefault(String key, AppendRowsRequest.MissingValueInterpretation defaultValue)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.MissingValueInterpretation
getMissingValueInterpretationsOrThrow(String key)
A map to indicate how to interpret missing value for some fields.Map<String,Integer>
getMissingValueInterpretationsValue()
Deprecated.Map<String,Integer>
getMissingValueInterpretationsValueMap()
A map to indicate how to interpret missing value for some fields.int
getMissingValueInterpretationsValueOrDefault(String key, int defaultValue)
A map to indicate how to interpret missing value for some fields.int
getMissingValueInterpretationsValueOrThrow(String key)
A map to indicate how to interpret missing value for some fields.Map<String,AppendRowsRequest.MissingValueInterpretation>
getMutableMissingValueInterpretations()
Deprecated.Map<String,Integer>
getMutableMissingValueInterpretationsValue()
Deprecated.com.google.protobuf.Int64Value
getOffset()
If present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Int64Value.Builder
getOffsetBuilder()
If present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Int64ValueOrBuilder
getOffsetOrBuilder()
If present, the write is only performed if the next append offset is same as the provided value.AppendRowsRequest.ProtoData
getProtoRows()
Rows in proto format.AppendRowsRequest.ProtoData.Builder
getProtoRowsBuilder()
Rows in proto format.AppendRowsRequest.ProtoDataOrBuilder
getProtoRowsOrBuilder()
Rows in proto format.AppendRowsRequest.RowsCase
getRowsCase()
String
getTraceId()
Id set by client to annotate its identity.com.google.protobuf.ByteString
getTraceIdBytes()
Id set by client to annotate its identity.String
getWriteStream()
Required.com.google.protobuf.ByteString
getWriteStreamBytes()
Required.boolean
hasOffset()
If present, the write is only performed if the next append offset is same as the provided value.boolean
hasProtoRows()
Rows in proto format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
AppendRowsRequest.Builder
mergeFrom(AppendRowsRequest other)
AppendRowsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AppendRowsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
AppendRowsRequest.Builder
mergeOffset(com.google.protobuf.Int64Value value)
If present, the write is only performed if the next append offset is same as the provided value.AppendRowsRequest.Builder
mergeProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.AppendRowsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AppendRowsRequest.Builder
putAllMissingValueInterpretations(Map<String,AppendRowsRequest.MissingValueInterpretation> values)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.Builder
putAllMissingValueInterpretationsValue(Map<String,Integer> values)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.Builder
putMissingValueInterpretations(String key, AppendRowsRequest.MissingValueInterpretation value)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.Builder
putMissingValueInterpretationsValue(String key, int value)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.Builder
removeMissingValueInterpretations(String key)
A map to indicate how to interpret missing value for some fields.AppendRowsRequest.Builder
setDefaultMissingValueInterpretation(AppendRowsRequest.MissingValueInterpretation value)
Optional.AppendRowsRequest.Builder
setDefaultMissingValueInterpretationValue(int value)
Optional.AppendRowsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AppendRowsRequest.Builder
setOffset(com.google.protobuf.Int64Value value)
If present, the write is only performed if the next append offset is same as the provided value.AppendRowsRequest.Builder
setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
If present, the write is only performed if the next append offset is same as the provided value.AppendRowsRequest.Builder
setProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.AppendRowsRequest.Builder
setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)
Rows in proto format.AppendRowsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AppendRowsRequest.Builder
setTraceId(String value)
Id set by client to annotate its identity.AppendRowsRequest.Builder
setTraceIdBytes(com.google.protobuf.ByteString value)
Id set by client to annotate its identity.AppendRowsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AppendRowsRequest.Builder
setWriteStream(String value)
Required.AppendRowsRequest.Builder
setWriteStreamBytes(com.google.protobuf.ByteString value)
Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clear
public AppendRowsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
getDefaultInstanceForType
public AppendRowsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AppendRowsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AppendRowsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AppendRowsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
setField
public AppendRowsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clearField
public AppendRowsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clearOneof
public AppendRowsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
setRepeatedField
public AppendRowsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
addRepeatedField
public AppendRowsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
mergeFrom
public AppendRowsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>
-
mergeFrom
public AppendRowsRequest.Builder mergeFrom(AppendRowsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
mergeFrom
public AppendRowsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>
- Throws:
IOException
-
getRowsCase
public AppendRowsRequest.RowsCase getRowsCase()
- Specified by:
getRowsCase
in interfaceAppendRowsRequestOrBuilder
-
clearRows
public AppendRowsRequest.Builder clearRows()
-
getWriteStream
public String getWriteStream()
Required. The write_stream identifies the append operation. It must be provided in the following scenarios: * In the first request to an AppendRows connection. * In all subsequent requests to an AppendRows connection, if you use the same connection to write to multiple tables or change the input schema for default streams. For explicitly created write streams, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}` For the special default stream, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. An example of a possible sequence of requests with write_stream fields within a single connection: * r1: {write_stream: stream_name_1} * r2: {write_stream: /*omit*/} * r3: {write_stream: /*omit*/} * r4: {write_stream: stream_name_2} * r5: {write_stream: stream_name_2} The destination changed in request_4, so the write_stream field must be populated in all subsequent requests in this stream.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getWriteStream
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The writeStream.
-
getWriteStreamBytes
public com.google.protobuf.ByteString getWriteStreamBytes()
Required. The write_stream identifies the append operation. It must be provided in the following scenarios: * In the first request to an AppendRows connection. * In all subsequent requests to an AppendRows connection, if you use the same connection to write to multiple tables or change the input schema for default streams. For explicitly created write streams, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}` For the special default stream, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. An example of a possible sequence of requests with write_stream fields within a single connection: * r1: {write_stream: stream_name_1} * r2: {write_stream: /*omit*/} * r3: {write_stream: /*omit*/} * r4: {write_stream: stream_name_2} * r5: {write_stream: stream_name_2} The destination changed in request_4, so the write_stream field must be populated in all subsequent requests in this stream.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getWriteStreamBytes
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The bytes for writeStream.
-
setWriteStream
public AppendRowsRequest.Builder setWriteStream(String value)
Required. The write_stream identifies the append operation. It must be provided in the following scenarios: * In the first request to an AppendRows connection. * In all subsequent requests to an AppendRows connection, if you use the same connection to write to multiple tables or change the input schema for default streams. For explicitly created write streams, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}` For the special default stream, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. An example of a possible sequence of requests with write_stream fields within a single connection: * r1: {write_stream: stream_name_1} * r2: {write_stream: /*omit*/} * r3: {write_stream: /*omit*/} * r4: {write_stream: stream_name_2} * r5: {write_stream: stream_name_2} The destination changed in request_4, so the write_stream field must be populated in all subsequent requests in this stream.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The writeStream to set.- Returns:
- This builder for chaining.
-
clearWriteStream
public AppendRowsRequest.Builder clearWriteStream()
Required. The write_stream identifies the append operation. It must be provided in the following scenarios: * In the first request to an AppendRows connection. * In all subsequent requests to an AppendRows connection, if you use the same connection to write to multiple tables or change the input schema for default streams. For explicitly created write streams, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}` For the special default stream, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. An example of a possible sequence of requests with write_stream fields within a single connection: * r1: {write_stream: stream_name_1} * r2: {write_stream: /*omit*/} * r3: {write_stream: /*omit*/} * r4: {write_stream: stream_name_2} * r5: {write_stream: stream_name_2} The destination changed in request_4, so the write_stream field must be populated in all subsequent requests in this stream.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setWriteStreamBytes
public AppendRowsRequest.Builder setWriteStreamBytes(com.google.protobuf.ByteString value)
Required. The write_stream identifies the append operation. It must be provided in the following scenarios: * In the first request to an AppendRows connection. * In all subsequent requests to an AppendRows connection, if you use the same connection to write to multiple tables or change the input schema for default streams. For explicitly created write streams, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}` For the special default stream, the format is: * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`. An example of a possible sequence of requests with write_stream fields within a single connection: * r1: {write_stream: stream_name_1} * r2: {write_stream: /*omit*/} * r3: {write_stream: /*omit*/} * r4: {write_stream: stream_name_2} * r5: {write_stream: stream_name_2} The destination changed in request_4, so the write_stream field must be populated in all subsequent requests in this stream.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for writeStream to set.- Returns:
- This builder for chaining.
-
hasOffset
public boolean hasOffset()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
hasOffset
in interfaceAppendRowsRequestOrBuilder
- Returns:
- Whether the offset field is set.
-
getOffset
public com.google.protobuf.Int64Value getOffset()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
getOffset
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The offset.
-
setOffset
public AppendRowsRequest.Builder setOffset(com.google.protobuf.Int64Value value)
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
-
setOffset
public AppendRowsRequest.Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
-
mergeOffset
public AppendRowsRequest.Builder mergeOffset(com.google.protobuf.Int64Value value)
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
-
clearOffset
public AppendRowsRequest.Builder clearOffset()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
-
getOffsetBuilder
public com.google.protobuf.Int64Value.Builder getOffsetBuilder()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
-
getOffsetOrBuilder
public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder()
If present, the write is only performed if the next append offset is same as the provided value. If not present, the write is performed at the current end of stream. Specifying a value for this field is not allowed when calling AppendRows for the '_default' stream.
.google.protobuf.Int64Value offset = 2;
- Specified by:
getOffsetOrBuilder
in interfaceAppendRowsRequestOrBuilder
-
hasProtoRows
public boolean hasProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
hasProtoRows
in interfaceAppendRowsRequestOrBuilder
- Returns:
- Whether the protoRows field is set.
-
getProtoRows
public AppendRowsRequest.ProtoData getProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
getProtoRows
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The protoRows.
-
setProtoRows
public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
-
setProtoRows
public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
-
mergeProtoRows
public AppendRowsRequest.Builder mergeProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
-
clearProtoRows
public AppendRowsRequest.Builder clearProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
-
getProtoRowsBuilder
public AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
-
getProtoRowsOrBuilder
public AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;
- Specified by:
getProtoRowsOrBuilder
in interfaceAppendRowsRequestOrBuilder
-
getTraceId
public String getTraceId()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Specified by:
getTraceId
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The traceId.
-
getTraceIdBytes
public com.google.protobuf.ByteString getTraceIdBytes()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Specified by:
getTraceIdBytes
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The bytes for traceId.
-
setTraceId
public AppendRowsRequest.Builder setTraceId(String value)
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Parameters:
value
- The traceId to set.- Returns:
- This builder for chaining.
-
clearTraceId
public AppendRowsRequest.Builder clearTraceId()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Returns:
- This builder for chaining.
-
setTraceIdBytes
public AppendRowsRequest.Builder setTraceIdBytes(com.google.protobuf.ByteString value)
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;
- Parameters:
value
- The bytes for traceId to set.- Returns:
- This builder for chaining.
-
getMissingValueInterpretationsCount
public int getMissingValueInterpretationsCount()
Description copied from interface:AppendRowsRequestOrBuilder
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsCount
in interfaceAppendRowsRequestOrBuilder
-
containsMissingValueInterpretations
public boolean containsMissingValueInterpretations(String key)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
containsMissingValueInterpretations
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretations
@Deprecated public Map<String,AppendRowsRequest.MissingValueInterpretation> getMissingValueInterpretations()
Deprecated.UsegetMissingValueInterpretationsMap()
instead.- Specified by:
getMissingValueInterpretations
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsMap
public Map<String,AppendRowsRequest.MissingValueInterpretation> getMissingValueInterpretationsMap()
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsMap
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsOrDefault
public AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault(String key, AppendRowsRequest.MissingValueInterpretation defaultValue)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsOrDefault
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsOrThrow
public AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow(String key)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsOrThrow
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsValue
@Deprecated public Map<String,Integer> getMissingValueInterpretationsValue()
Deprecated.UsegetMissingValueInterpretationsValueMap()
instead.- Specified by:
getMissingValueInterpretationsValue
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsValueMap
public Map<String,Integer> getMissingValueInterpretationsValueMap()
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsValueMap
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsValueOrDefault
public int getMissingValueInterpretationsValueOrDefault(String key, int defaultValue)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsValueOrDefault
in interfaceAppendRowsRequestOrBuilder
-
getMissingValueInterpretationsValueOrThrow
public int getMissingValueInterpretationsValueOrThrow(String key)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
- Specified by:
getMissingValueInterpretationsValueOrThrow
in interfaceAppendRowsRequestOrBuilder
-
clearMissingValueInterpretations
public AppendRowsRequest.Builder clearMissingValueInterpretations()
-
removeMissingValueInterpretations
public AppendRowsRequest.Builder removeMissingValueInterpretations(String key)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
-
getMutableMissingValueInterpretations
@Deprecated public Map<String,AppendRowsRequest.MissingValueInterpretation> getMutableMissingValueInterpretations()
Deprecated.Use alternate mutation accessors instead.
-
putMissingValueInterpretations
public AppendRowsRequest.Builder putMissingValueInterpretations(String key, AppendRowsRequest.MissingValueInterpretation value)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
-
putAllMissingValueInterpretations
public AppendRowsRequest.Builder putAllMissingValueInterpretations(Map<String,AppendRowsRequest.MissingValueInterpretation> values)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
-
getMutableMissingValueInterpretationsValue
@Deprecated public Map<String,Integer> getMutableMissingValueInterpretationsValue()
Deprecated.Use alternate mutation accessors instead.
-
putMissingValueInterpretationsValue
public AppendRowsRequest.Builder putMissingValueInterpretationsValue(String key, int value)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
-
putAllMissingValueInterpretationsValue
public AppendRowsRequest.Builder putAllMissingValueInterpretationsValue(Map<String,Integer> values)
A map to indicate how to interpret missing value for some fields. Missing values are fields present in user schema but missing in rows. The key is the field name. The value is the interpretation of missing values for the field. For example, a map {'foo': NULL_VALUE, 'bar': DEFAULT_VALUE} means all missing values in field foo are interpreted as NULL, all missing values in field bar are interpreted as the default value of field bar in table schema. If a field is not in this map and has missing values, the missing values in this field are interpreted as NULL. This field only applies to the current request, it won't affect other requests on the connection. Currently, field name can only be top-level column name, can't be a struct field path like 'foo.bar'.
map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7;
-
getDefaultMissingValueInterpretationValue
public int getDefaultMissingValueInterpretationValue()
Optional. Default missing value interpretation for all columns in the table. When a value is specified on an `AppendRowsRequest`, it is applied to all requests on the connection from that point forward, until a subsequent `AppendRowsRequest` sets it to a different value. `missing_value_interpretation` can override `default_missing_value_interpretation`. For example, if you want to write `NULL` instead of using default values for some columns, you can set `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultMissingValueInterpretationValue
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The enum numeric value on the wire for defaultMissingValueInterpretation.
-
setDefaultMissingValueInterpretationValue
public AppendRowsRequest.Builder setDefaultMissingValueInterpretationValue(int value)
Optional. Default missing value interpretation for all columns in the table. When a value is specified on an `AppendRowsRequest`, it is applied to all requests on the connection from that point forward, until a subsequent `AppendRowsRequest` sets it to a different value. `missing_value_interpretation` can override `default_missing_value_interpretation`. For example, if you want to write `NULL` instead of using default values for some columns, you can set `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for defaultMissingValueInterpretation to set.- Returns:
- This builder for chaining.
-
getDefaultMissingValueInterpretation
public AppendRowsRequest.MissingValueInterpretation getDefaultMissingValueInterpretation()
Optional. Default missing value interpretation for all columns in the table. When a value is specified on an `AppendRowsRequest`, it is applied to all requests on the connection from that point forward, until a subsequent `AppendRowsRequest` sets it to a different value. `missing_value_interpretation` can override `default_missing_value_interpretation`. For example, if you want to write `NULL` instead of using default values for some columns, you can set `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDefaultMissingValueInterpretation
in interfaceAppendRowsRequestOrBuilder
- Returns:
- The defaultMissingValueInterpretation.
-
setDefaultMissingValueInterpretation
public AppendRowsRequest.Builder setDefaultMissingValueInterpretation(AppendRowsRequest.MissingValueInterpretation value)
Optional. Default missing value interpretation for all columns in the table. When a value is specified on an `AppendRowsRequest`, it is applied to all requests on the connection from that point forward, until a subsequent `AppendRowsRequest` sets it to a different value. `missing_value_interpretation` can override `default_missing_value_interpretation`. For example, if you want to write `NULL` instead of using default values for some columns, you can set `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The defaultMissingValueInterpretation to set.- Returns:
- This builder for chaining.
-
clearDefaultMissingValueInterpretation
public AppendRowsRequest.Builder clearDefaultMissingValueInterpretation()
Optional. Default missing value interpretation for all columns in the table. When a value is specified on an `AppendRowsRequest`, it is applied to all requests on the connection from that point forward, until a subsequent `AppendRowsRequest` sets it to a different value. `missing_value_interpretation` can override `default_missing_value_interpretation`. For example, if you want to write `NULL` instead of using default values for some columns, you can set `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation default_missing_value_interpretation = 8 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final AppendRowsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
mergeUnknownFields
public final AppendRowsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
-