Class Storage.BatchCreateReadSessionStreamsRequest.Builder (2.43.0)

public static final class Storage.BatchCreateReadSessionStreamsRequest.Builder extends GeneratedMessageV3.Builder<Storage.BatchCreateReadSessionStreamsRequest.Builder> implements Storage.BatchCreateReadSessionStreamsRequestOrBuilder

Information needed to request additional streams for an established read session.

Protobuf type google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Storage.BatchCreateReadSessionStreamsRequest build()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest

buildPartial()

public Storage.BatchCreateReadSessionStreamsRequest buildPartial()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest

clear()

public Storage.BatchCreateReadSessionStreamsRequest.Builder clear()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestedStreams()

public Storage.BatchCreateReadSessionStreamsRequest.Builder clearRequestedStreams()

Required. Number of new streams requested. Must be positive. Number of added streams may be less than this, see CreateReadSessionRequest for more information.

int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

This builder for chaining.

clearSession()

public Storage.BatchCreateReadSessionStreamsRequest.Builder clearSession()

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

clone()

public Storage.BatchCreateReadSessionStreamsRequest.Builder clone()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder
Overrides

getDefaultInstanceForType()

public Storage.BatchCreateReadSessionStreamsRequest getDefaultInstanceForType()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRequestedStreams()

public int getRequestedStreams()

Required. Number of new streams requested. Must be positive. Number of added streams may be less than this, see CreateReadSessionRequest for more information.

int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The requestedStreams.

getSession()

public Storage.ReadSession getSession()

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Storage.ReadSession

The session.

getSessionBuilder()

public Storage.ReadSession.Builder getSessionBuilder()

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Storage.ReadSession.Builder

getSessionOrBuilder()

public Storage.ReadSessionOrBuilder getSessionOrBuilder()

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Storage.ReadSessionOrBuilder

hasSession()

public boolean hasSession()

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the session field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Storage.BatchCreateReadSessionStreamsRequest other)

public Storage.BatchCreateReadSessionStreamsRequest.Builder mergeFrom(Storage.BatchCreateReadSessionStreamsRequest other)
Parameter
NameDescription
otherStorage.BatchCreateReadSessionStreamsRequest
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSession(Storage.ReadSession value)

public Storage.BatchCreateReadSessionStreamsRequest.Builder mergeSession(Storage.ReadSession value)

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueStorage.ReadSession
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequestedStreams(int value)

public Storage.BatchCreateReadSessionStreamsRequest.Builder setRequestedStreams(int value)

Required. Number of new streams requested. Must be positive. Number of added streams may be less than this, see CreateReadSessionRequest for more information.

int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The requestedStreams to set.

Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

This builder for chaining.

setSession(Storage.ReadSession value)

public Storage.BatchCreateReadSessionStreamsRequest.Builder setSession(Storage.ReadSession value)

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueStorage.ReadSession
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

setSession(Storage.ReadSession.Builder builderForValue)

public Storage.BatchCreateReadSessionStreamsRequest.Builder setSession(Storage.ReadSession.Builder builderForValue)

Required. Must be a non-expired session obtained from a call to CreateReadSession. Only the name field needs to be set.

.google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueStorage.ReadSession.Builder
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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