Class WriteStream.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
- com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder
-
- All Implemented Interfaces:
WriteStreamOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WriteStream
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 typegoogle.cloud.bigquery.storage.v1beta2.WriteStream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WriteStream.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WriteStreambuild()WriteStreambuildPartial()WriteStream.Builderclear()WriteStream.BuilderclearCommitTime()Output only.WriteStream.BuilderclearCreateTime()Output only.WriteStream.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WriteStream.BuilderclearName()Output only.WriteStream.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WriteStream.BuilderclearTableSchema()Output only.WriteStream.BuilderclearType()Immutable.WriteStream.Builderclone()com.google.protobuf.TimestampgetCommitTime()Output only.com.google.protobuf.Timestamp.BuildergetCommitTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCommitTimeOrBuilder()Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.WriteStreamgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.TableSchemagetTableSchema()Output only.TableSchema.BuildergetTableSchemaBuilder()Output only.TableSchemaOrBuildergetTableSchemaOrBuilder()Output only.WriteStream.TypegetType()Immutable.intgetTypeValue()Immutable.booleanhasCommitTime()Output only.booleanhasCreateTime()Output only.booleanhasTableSchema()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WriteStream.BuildermergeCommitTime(com.google.protobuf.Timestamp value)Output only.WriteStream.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.WriteStream.BuildermergeFrom(WriteStream other)WriteStream.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WriteStream.BuildermergeFrom(com.google.protobuf.Message other)WriteStream.BuildermergeTableSchema(TableSchema value)Output only.WriteStream.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WriteStream.BuildersetCommitTime(com.google.protobuf.Timestamp value)Output only.WriteStream.BuildersetCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.WriteStream.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.WriteStream.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.WriteStream.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WriteStream.BuildersetName(String value)Output only.WriteStream.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.WriteStream.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)WriteStream.BuildersetTableSchema(TableSchema value)Output only.WriteStream.BuildersetTableSchema(TableSchema.Builder builderForValue)Output only.WriteStream.BuildersetType(WriteStream.Type value)Immutable.WriteStream.BuildersetTypeValue(int value)Immutable.WriteStream.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
clear
public WriteStream.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<WriteStream.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<WriteStream.Builder>
-
getDefaultInstanceForType
public WriteStream getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WriteStream build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WriteStream buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WriteStream.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<WriteStream.Builder>
-
setField
public WriteStream.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<WriteStream.Builder>
-
clearField
public WriteStream.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
clearOneof
public WriteStream.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
setRepeatedField
public WriteStream.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<WriteStream.Builder>
-
addRepeatedField
public WriteStream.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<WriteStream.Builder>
-
mergeFrom
public WriteStream.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteStream.Builder>
-
mergeFrom
public WriteStream.Builder mergeFrom(WriteStream other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
mergeFrom
public WriteStream.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<WriteStream.Builder>- Throws:
IOException
-
getName
public 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];- Specified by:
getNamein interfaceWriteStreamOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceWriteStreamOrBuilder- Returns:
- The bytes for name.
-
setName
public 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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypeValuein interfaceWriteStreamOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public WriteStream.Builder setTypeValue(int value)
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public WriteStream.Type getType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getTypein interfaceWriteStreamOrBuilder- Returns:
- The type.
-
setType
public 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];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public WriteStream.Builder clearType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasCreateTime
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];- Specified by:
hasCreateTimein interfaceWriteStreamOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceWriteStreamOrBuilder- Returns:
- The createTime.
-
setCreateTime
public 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];
-
setCreateTime
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];
-
mergeCreateTime
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];
-
clearCreateTime
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];
-
getCreateTimeBuilder
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];
-
getCreateTimeOrBuilder
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];- Specified by:
getCreateTimeOrBuilderin interfaceWriteStreamOrBuilder
-
hasCommitTime
public 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];- Specified by:
hasCommitTimein interfaceWriteStreamOrBuilder- Returns:
- Whether the commitTime field is set.
-
getCommitTime
public 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];- Specified by:
getCommitTimein interfaceWriteStreamOrBuilder- Returns:
- The commitTime.
-
setCommitTime
public 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];
-
setCommitTime
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];
-
mergeCommitTime
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];
-
clearCommitTime
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];
-
getCommitTimeBuilder
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];
-
getCommitTimeOrBuilder
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];- Specified by:
getCommitTimeOrBuilderin interfaceWriteStreamOrBuilder
-
hasTableSchema
public 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];- Specified by:
hasTableSchemain interfaceWriteStreamOrBuilder- Returns:
- Whether the tableSchema field is set.
-
getTableSchema
public 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];- Specified by:
getTableSchemain interfaceWriteStreamOrBuilder- Returns:
- The tableSchema.
-
setTableSchema
public 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];
-
setTableSchema
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];
-
mergeTableSchema
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];
-
clearTableSchema
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];
-
getTableSchemaBuilder
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];
-
getTableSchemaOrBuilder
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];- Specified by:
getTableSchemaOrBuilderin interfaceWriteStreamOrBuilder
-
setUnknownFields
public final WriteStream.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
mergeUnknownFields
public final WriteStream.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WriteStream.Builder>
-
-