public static final class AppendRowsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder> implements AppendRowsRequestOrBuilder
Request message for `AppendRows`. Due to the nature of AppendRows being a bidirectional streaming RPC, certain parts of the AppendRowsRequest need only be specified for the first request sent each time the gRPC network connection is opened/reopened. 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 type
google.cloud.bigquery.storage.v1.AppendRowsRequest| Modifier and Type | Method and Description |
|---|---|
AppendRowsRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AppendRowsRequest |
build() |
AppendRowsRequest |
buildPartial() |
AppendRowsRequest.Builder |
clear() |
AppendRowsRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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() |
AppendRowsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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() |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object 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 |
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 |
setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)
Rows in proto format.
|
AppendRowsRequest.Builder |
setProtoRows(AppendRowsRequest.ProtoData value)
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.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AppendRowsRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AppendRowsRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AppendRowsRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder mergeFrom(AppendRowsRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public AppendRowsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>IOExceptionpublic AppendRowsRequest.RowsCase getRowsCase()
getRowsCase in interface AppendRowsRequestOrBuilderpublic AppendRowsRequest.Builder clearRows()
public String getWriteStream()
Required. The write_stream identifies the target of the append operation, and only
needs to be specified as part of the first request on the gRPC connection.
If provided for subsequent requests, it must match the value of the first
request.
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`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getWriteStream in interface AppendRowsRequestOrBuilderpublic com.google.protobuf.ByteString getWriteStreamBytes()
Required. The write_stream identifies the target of the append operation, and only
needs to be specified as part of the first request on the gRPC connection.
If provided for subsequent requests, it must match the value of the first
request.
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`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getWriteStreamBytes in interface AppendRowsRequestOrBuilderpublic AppendRowsRequest.Builder setWriteStream(String value)
Required. The write_stream identifies the target of the append operation, and only
needs to be specified as part of the first request on the gRPC connection.
If provided for subsequent requests, it must match the value of the first
request.
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`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The writeStream to set.public AppendRowsRequest.Builder clearWriteStream()
Required. The write_stream identifies the target of the append operation, and only
needs to be specified as part of the first request on the gRPC connection.
If provided for subsequent requests, it must match the value of the first
request.
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`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public AppendRowsRequest.Builder setWriteStreamBytes(com.google.protobuf.ByteString value)
Required. The write_stream identifies the target of the append operation, and only
needs to be specified as part of the first request on the gRPC connection.
If provided for subsequent requests, it must match the value of the first
request.
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`.
string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for writeStream to set.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;hasOffset in interface AppendRowsRequestOrBuilderpublic 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;getOffset in interface AppendRowsRequestOrBuilderpublic 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;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;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;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;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;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;getOffsetOrBuilder in interface AppendRowsRequestOrBuilderpublic boolean hasProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;hasProtoRows in interface AppendRowsRequestOrBuilderpublic AppendRowsRequest.ProtoData getProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;getProtoRows in interface AppendRowsRequestOrBuilderpublic AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;public AppendRowsRequest.Builder setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;public AppendRowsRequest.Builder mergeProtoRows(AppendRowsRequest.ProtoData value)
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;public AppendRowsRequest.Builder clearProtoRows()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;public AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;public AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder()
Rows in proto format.
.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4;getProtoRowsOrBuilder in interface AppendRowsRequestOrBuilderpublic String getTraceId()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;getTraceId in interface AppendRowsRequestOrBuilderpublic com.google.protobuf.ByteString getTraceIdBytes()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;getTraceIdBytes in interface AppendRowsRequestOrBuilderpublic AppendRowsRequest.Builder setTraceId(String value)
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;value - The traceId to set.public AppendRowsRequest.Builder clearTraceId()
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;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;value - The bytes for traceId to set.public final AppendRowsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>public final AppendRowsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.