Class BatchCommitWriteStreamsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder
- All Implemented Interfaces:
BatchCommitWriteStreamsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BatchCommitWriteStreamsRequest
public static final class BatchCommitWriteStreamsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
implements BatchCommitWriteStreamsRequestOrBuilder
Request message for `BatchCommitWriteStreams`.Protobuf type
google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllWriteStreams(Iterable<String> values) Required.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addWriteStreams(String value) Required.addWriteStreamsBytes(com.google.protobuf.ByteString value) Required.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.Required.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getWriteStreams(int index) Required.com.google.protobuf.ByteStringgetWriteStreamsBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Required.setParentBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWriteStreams(int index, String value) Required.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
-
setField
public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
-
clearField
public BatchCommitWriteStreamsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
-
clearOneof
public BatchCommitWriteStreamsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
-
setRepeatedField
public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
-
addRepeatedField
public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCommitWriteStreamsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
-
mergeFrom
public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>- Throws:
IOException
-
getParent
Required. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentin interfaceBatchCommitWriteStreamsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getParentBytesin interfaceBatchCommitWriteStreamsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setParentBytes
Required. Parent table that all the streams should belong to, in the form of `projects/{project}/datasets/{dataset}/tables/{table}`.string parent = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getWriteStreamsList
public com.google.protobuf.ProtocolStringList getWriteStreamsList()Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getWriteStreamsListin interfaceBatchCommitWriteStreamsRequestOrBuilder- Returns:
- A list containing the writeStreams.
-
getWriteStreamsCount
public int getWriteStreamsCount()Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getWriteStreamsCountin interfaceBatchCommitWriteStreamsRequestOrBuilder- Returns:
- The count of writeStreams.
-
getWriteStreams
Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getWriteStreamsin interfaceBatchCommitWriteStreamsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The writeStreams at the given index.
-
getWriteStreamsBytes
public com.google.protobuf.ByteString getWriteStreamsBytes(int index) Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getWriteStreamsBytesin interfaceBatchCommitWriteStreamsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the writeStreams at the given index.
-
setWriteStreams
Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The writeStreams to set.- Returns:
- This builder for chaining.
-
addWriteStreams
Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The writeStreams to add.- Returns:
- This builder for chaining.
-
addAllWriteStreams
Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The writeStreams to add.- Returns:
- This builder for chaining.
-
clearWriteStreams
Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addWriteStreamsBytes
public BatchCommitWriteStreamsRequest.Builder addWriteStreamsBytes(com.google.protobuf.ByteString value) Required. The group of streams that will be committed atomically.
repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the writeStreams to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BatchCommitWriteStreamsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
-
mergeUnknownFields
public final BatchCommitWriteStreamsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder>
-