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.v1beta2.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`.Protobuf type
google.cloud.bigquery.storage.v1beta2.AppendRowsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If present, the write is only performed if the next append offset is same as the provided value.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Rows in proto format.Id set by client to annotate its identity.Required.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Int64ValueIf present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Int64Value.BuilderIf present, the write is only performed if the next append offset is same as the provided value.com.google.protobuf.Int64ValueOrBuilderIf present, the write is only performed if the next append offset is same as the provided value.Rows in proto format.Rows in proto format.Rows in proto format.Id set by client to annotate its identity.com.google.protobuf.ByteStringId set by client to annotate its identity.Required.com.google.protobuf.ByteStringRequired.booleanIf present, the write is only performed if the next append offset is same as the provided value.booleanRows in proto format.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(AppendRowsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOffset(com.google.protobuf.Int64Value value) If present, the write is only performed if the next append offset is same as the provided value.Rows in proto format.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setOffset(com.google.protobuf.Int64Value value) If present, the write is only performed if the next append offset is same as the provided value.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.Rows in proto format.setProtoRows(AppendRowsRequest.ProtoData.Builder builderForValue) Rows in proto format.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTraceId(String value) Id set by client to annotate its identity.setTraceIdBytes(com.google.protobuf.ByteString value) Id set by client to annotate its identity.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWriteStream(String value) Required.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, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
setField
public AppendRowsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
setRepeatedField
public AppendRowsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
addRepeatedField
public AppendRowsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AppendRowsRequest.Builder>- Throws:
IOException
-
getRowsCase
- Specified by:
getRowsCasein interfaceAppendRowsRequestOrBuilder
-
clearRows
-
getWriteStream
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getWriteStreamin interfaceAppendRowsRequestOrBuilder- Returns:
- The writeStream.
-
getWriteStreamBytes
public com.google.protobuf.ByteString getWriteStreamBytes()Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getWriteStreamBytesin interfaceAppendRowsRequestOrBuilder- Returns:
- The bytes for writeStream.
-
setWriteStream
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.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
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setWriteStreamBytes
Required. The stream that is the target of the append operation. This value must be specified for the initial request. If subsequent requests specify the stream name, it must equal to the value provided in the first request. To write to the _default stream, populate this field with a string in the format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.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:
hasOffsetin 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:
getOffsetin interfaceAppendRowsRequestOrBuilder- Returns:
- The offset.
-
setOffset
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
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
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
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:
getOffsetOrBuilderin interfaceAppendRowsRequestOrBuilder
-
hasProtoRows
public boolean hasProtoRows()Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;- Specified by:
hasProtoRowsin interfaceAppendRowsRequestOrBuilder- Returns:
- Whether the protoRows field is set.
-
getProtoRows
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;- Specified by:
getProtoRowsin interfaceAppendRowsRequestOrBuilder- Returns:
- The protoRows.
-
setProtoRows
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; -
setProtoRows
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; -
mergeProtoRows
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; -
clearProtoRows
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; -
getProtoRowsBuilder
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; -
getProtoRowsOrBuilder
Rows in proto format.
.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4;- Specified by:
getProtoRowsOrBuilderin interfaceAppendRowsRequestOrBuilder
-
getTraceId
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;- Specified by:
getTraceIdin 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:
getTraceIdBytesin interfaceAppendRowsRequestOrBuilder- Returns:
- The bytes for traceId.
-
setTraceId
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
Id set by client to annotate its identity. Only initial request setting is respected.
string trace_id = 6;- Returns:
- This builder for chaining.
-
setTraceIdBytes
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.
-
setUnknownFields
public final AppendRowsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-
mergeUnknownFields
public final AppendRowsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AppendRowsRequest.Builder>
-