public static final class WriteStream.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder> implements WriteStreamOrBuilder
Information about a single stream that gets data inside the storage system.Protobuf type
google.cloud.bigquery.storage.v1beta2.WriteStream| Modifier and Type | Method and Description |
|---|---|
WriteStream.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteStream |
build() |
WriteStream |
buildPartial() |
WriteStream.Builder |
clear() |
WriteStream.Builder |
clearCommitTime()
Output only.
|
WriteStream.Builder |
clearCreateTime()
Output only.
|
WriteStream.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
WriteStream.Builder |
clearName()
Output only.
|
WriteStream.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
WriteStream.Builder |
clearTableSchema()
Output only.
|
WriteStream.Builder |
clearType()
Immutable.
|
WriteStream.Builder |
clone() |
com.google.protobuf.Timestamp |
getCommitTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCommitTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCommitTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
WriteStream |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
TableSchema |
getTableSchema()
Output only.
|
TableSchema.Builder |
getTableSchemaBuilder()
Output only.
|
TableSchemaOrBuilder |
getTableSchemaOrBuilder()
Output only.
|
WriteStream.Type |
getType()
Immutable.
|
int |
getTypeValue()
Immutable.
|
boolean |
hasCommitTime()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasTableSchema()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
WriteStream.Builder |
mergeCommitTime(com.google.protobuf.Timestamp value)
Output only.
|
WriteStream.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
WriteStream.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
WriteStream.Builder |
mergeFrom(com.google.protobuf.Message other) |
WriteStream.Builder |
mergeFrom(WriteStream other) |
WriteStream.Builder |
mergeTableSchema(TableSchema value)
Output only.
|
WriteStream.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
WriteStream.Builder |
setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
WriteStream.Builder |
setCommitTime(com.google.protobuf.Timestamp value)
Output only.
|
WriteStream.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
WriteStream.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
WriteStream.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
WriteStream.Builder |
setName(String value)
Output only.
|
WriteStream.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
WriteStream.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
WriteStream.Builder |
setTableSchema(TableSchema.Builder builderForValue)
Output only.
|
WriteStream.Builder |
setTableSchema(TableSchema value)
Output only.
|
WriteStream.Builder |
setType(WriteStream.Type value)
Immutable.
|
WriteStream.Builder |
setTypeValue(int value)
Immutable.
|
WriteStream.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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<WriteStream.Builder>public WriteStream.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.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<WriteStream.Builder>public WriteStream getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic WriteStream build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic WriteStream buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic WriteStream.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>public WriteStream.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<WriteStream.Builder>public WriteStream.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>public WriteStream.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>public WriteStream.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<WriteStream.Builder>public WriteStream.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<WriteStream.Builder>public WriteStream.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<WriteStream.Builder>public WriteStream.Builder mergeFrom(WriteStream other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>public WriteStream.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<WriteStream.Builder>IOExceptionpublic String getName()
Output only. Name of the stream, in the form
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface WriteStreamOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Name of the stream, in the form
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface WriteStreamOrBuilderpublic WriteStream.Builder setName(String value)
Output only. Name of the stream, in the form
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public WriteStream.Builder clearName()
Output only. Name of the stream, in the form
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public WriteStream.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Name of the stream, in the form
`projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public int getTypeValue()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
getTypeValue in interface WriteStreamOrBuilderpublic WriteStream.Builder setTypeValue(int value)
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
value - The enum numeric value on the wire for type to set.public WriteStream.Type getType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
getType in interface WriteStreamOrBuilderpublic WriteStream.Builder setType(WriteStream.Type value)
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
value - The type to set.public WriteStream.Builder clearType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
public boolean hasCreateTime()
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface WriteStreamOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface WriteStreamOrBuilderpublic WriteStream.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder clearCreateTime()
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time of the stream. For the _default stream, this is the creation_time of the table.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface WriteStreamOrBuilderpublic boolean hasCommitTime()
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCommitTime in interface WriteStreamOrBuilderpublic com.google.protobuf.Timestamp getCommitTime()
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitTime in interface WriteStreamOrBuilderpublic WriteStream.Builder setCommitTime(com.google.protobuf.Timestamp value)
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder mergeCommitTime(com.google.protobuf.Timestamp value)
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder clearCommitTime()
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder()
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()
Output only. Commit time of the stream. If a stream is of `COMMITTED` type, then it will have a commit_time same as `create_time`. If the stream is of `PENDING` type, commit_time being empty means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitTimeOrBuilder in interface WriteStreamOrBuilderpublic boolean hasTableSchema()
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasTableSchema in interface WriteStreamOrBuilderpublic TableSchema getTableSchema()
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTableSchema in interface WriteStreamOrBuilderpublic WriteStream.Builder setTableSchema(TableSchema value)
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder setTableSchema(TableSchema.Builder builderForValue)
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder mergeTableSchema(TableSchema value)
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public WriteStream.Builder clearTableSchema()
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TableSchema.Builder getTableSchemaBuilder()
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TableSchemaOrBuilder getTableSchemaOrBuilder()
Output only. The schema of the destination table. It is only returned in `CreateWriteStream` response. Caller should generate data that's compatible with this schema to send in initial `AppendRowsRequest`. The table schema could go out of date during the life time of the stream.
.google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getTableSchemaOrBuilder in interface WriteStreamOrBuilderpublic final WriteStream.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>public final WriteStream.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>Copyright © 2023 Google LLC. All rights reserved.