public static final class WriteStream.Builder extends GeneratedMessageV3.Builder<WriteStream.Builder> implements WriteStreamOrBuilder
Information about a single stream that gets data inside the storage system.
Protobuf type google.cloud.bigquery.storage.v1.WriteStream
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > WriteStream.BuilderImplements
WriteStreamOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WriteStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WriteStream.Builder |
build()
public WriteStream build()
Type | Description |
WriteStream |
buildPartial()
public WriteStream buildPartial()
Type | Description |
WriteStream |
clear()
public WriteStream.Builder clear()
Type | Description |
WriteStream.Builder |
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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
WriteStream.Builder |
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];
Type | Description |
WriteStream.Builder |
clearField(Descriptors.FieldDescriptor field)
public WriteStream.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
WriteStream.Builder |
clearLocation()
public WriteStream.Builder clearLocation()
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
string location = 8 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
WriteStream.Builder | 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];
Type | Description |
WriteStream.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public WriteStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
WriteStream.Builder |
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
WriteStream.Builder |
clearType()
public WriteStream.Builder clearType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
WriteStream.Builder | This builder for chaining. |
clearWriteMode()
public WriteStream.Builder clearWriteMode()
Immutable. Mode of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
WriteStream.Builder | This builder for chaining. |
clone()
public WriteStream.Builder clone()
Type | Description |
WriteStream.Builder |
getCommitTime()
public 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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The commitTime. |
getCommitTimeBuilder()
public 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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCommitTimeOrBuilder()
public 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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getCreateTime()
public 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];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public 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];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public 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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public WriteStream getDefaultInstanceForType()
Type | Description |
WriteStream |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLocation()
public String getLocation()
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
string location = 8 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
String | The location. |
getLocationBytes()
public ByteString getLocationBytes()
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
string location = 8 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ByteString | The bytes for location. |
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];
Type | Description |
String | The name. |
getNameBytes()
public 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];
Type | Description |
ByteString | The bytes for name. |
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TableSchema | The tableSchema. |
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TableSchema.Builder |
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TableSchemaOrBuilder |
getType()
public WriteStream.Type getType()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
WriteStream.Type | The type. |
getTypeValue()
public int getTypeValue()
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The enum numeric value on the wire for type. |
getWriteMode()
public WriteStream.WriteMode getWriteMode()
Immutable. Mode of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
WriteStream.WriteMode | The writeMode. |
getWriteModeValue()
public int getWriteModeValue()
Immutable. Mode of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The enum numeric value on the wire for writeMode. |
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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the commitTime field is set. |
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];
Type | Description |
boolean | Whether the createTime field is set. |
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the tableSchema field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCommitTime(Timestamp value)
public WriteStream.Builder mergeCommitTime(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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
WriteStream.Builder |
mergeCreateTime(Timestamp value)
public WriteStream.Builder mergeCreateTime(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];
Name | Description |
value | Timestamp |
Type | Description |
WriteStream.Builder |
mergeFrom(WriteStream other)
public WriteStream.Builder mergeFrom(WriteStream other)
Name | Description |
other | WriteStream |
Type | Description |
WriteStream.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WriteStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
WriteStream.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public WriteStream.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
WriteStream.Builder |
mergeTableSchema(TableSchema value)
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | TableSchema |
Type | Description |
WriteStream.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WriteStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WriteStream.Builder |
setCommitTime(Timestamp value)
public WriteStream.Builder setCommitTime(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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
WriteStream.Builder |
setCommitTime(Timestamp.Builder builderForValue)
public WriteStream.Builder setCommitTime(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, empty commit_time
means it is not committed.
.google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
WriteStream.Builder |
setCreateTime(Timestamp value)
public WriteStream.Builder setCreateTime(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];
Name | Description |
value | Timestamp |
Type | Description |
WriteStream.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public WriteStream.Builder setCreateTime(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];
Name | Description |
builderForValue | Builder |
Type | Description |
WriteStream.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public WriteStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
WriteStream.Builder |
setLocation(String value)
public WriteStream.Builder setLocation(String value)
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
string location = 8 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | String The location to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public WriteStream.Builder setLocationBytes(ByteString value)
Immutable. The geographic location where the stream's dataset resides. See https://cloud.google.com/bigquery/docs/locations for supported locations.
string location = 8 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | ByteString The bytes for location to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setName(String value)
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];
Name | Description |
value | String The name to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public WriteStream.Builder setNameBytes(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];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WriteStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
WriteStream.Builder |
setTableSchema(TableSchema value)
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | TableSchema |
Type | Description |
WriteStream.Builder |
setTableSchema(TableSchema.Builder builderForValue)
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.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | TableSchema.Builder |
Type | Description |
WriteStream.Builder |
setType(WriteStream.Type value)
public WriteStream.Builder setType(WriteStream.Type value)
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | WriteStream.Type The type to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setTypeValue(int value)
public WriteStream.Builder setTypeValue(int value)
Immutable. Type of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for type to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final WriteStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
WriteStream.Builder |
setWriteMode(WriteStream.WriteMode value)
public WriteStream.Builder setWriteMode(WriteStream.WriteMode value)
Immutable. Mode of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | WriteStream.WriteMode The writeMode to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |
setWriteModeValue(int value)
public WriteStream.Builder setWriteModeValue(int value)
Immutable. Mode of the stream.
.google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for writeMode to set. |
Type | Description |
WriteStream.Builder | This builder for chaining. |