Class CreateWriteStreamRequest.Builder (2.44.0)

public static final class CreateWriteStreamRequest.Builder extends GeneratedMessageV3.Builder<CreateWriteStreamRequest.Builder> implements CreateWriteStreamRequestOrBuilder

Request message for CreateWriteStream.

Protobuf type google.cloud.bigquery.storage.v1.CreateWriteStreamRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWriteStreamRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

build()

public CreateWriteStreamRequest build()
Returns
TypeDescription
CreateWriteStreamRequest

buildPartial()

public CreateWriteStreamRequest buildPartial()
Returns
TypeDescription
CreateWriteStreamRequest

clear()

public CreateWriteStreamRequest.Builder clear()
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateWriteStreamRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWriteStreamRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

clearParent()

public CreateWriteStreamRequest.Builder clearParent()

Required. Reference to the table to which the stream belongs, in the format of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CreateWriteStreamRequest.Builder

This builder for chaining.

clearWriteStream()

public CreateWriteStreamRequest.Builder clearWriteStream()

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateWriteStreamRequest.Builder

clone()

public CreateWriteStreamRequest.Builder clone()
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateWriteStreamRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateWriteStreamRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Reference to the table to which the stream belongs, in the format of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Reference to the table to which the stream belongs, in the format of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getWriteStream()

public WriteStream getWriteStream()

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteStream

The writeStream.

getWriteStreamBuilder()

public WriteStream.Builder getWriteStreamBuilder()

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteStream.Builder

getWriteStreamOrBuilder()

public WriteStreamOrBuilder getWriteStreamOrBuilder()

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteStreamOrBuilder

hasWriteStream()

public boolean hasWriteStream()

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the writeStream field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateWriteStreamRequest other)

public CreateWriteStreamRequest.Builder mergeFrom(CreateWriteStreamRequest other)
Parameter
NameDescription
otherCreateWriteStreamRequest
Returns
TypeDescription
CreateWriteStreamRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWriteStreamRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateWriteStreamRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWriteStreamRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

mergeWriteStream(WriteStream value)

public CreateWriteStreamRequest.Builder mergeWriteStream(WriteStream value)

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWriteStream
Returns
TypeDescription
CreateWriteStreamRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWriteStreamRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

setParent(String value)

public CreateWriteStreamRequest.Builder setParent(String value)

Required. Reference to the table to which the stream belongs, in the format of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateWriteStreamRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWriteStreamRequest.Builder setParentBytes(ByteString value)

Required. Reference to the table to which the stream belongs, in the format of projects/{project}/datasets/{dataset}/tables/{table}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateWriteStreamRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateWriteStreamRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWriteStreamRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateWriteStreamRequest.Builder
Overrides

setWriteStream(WriteStream value)

public CreateWriteStreamRequest.Builder setWriteStream(WriteStream value)

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWriteStream
Returns
TypeDescription
CreateWriteStreamRequest.Builder

setWriteStream(WriteStream.Builder builderForValue)

public CreateWriteStreamRequest.Builder setWriteStream(WriteStream.Builder builderForValue)

Required. Stream to be created.

.google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWriteStream.Builder
Returns
TypeDescription
CreateWriteStreamRequest.Builder