Class Storage.BatchCreateReadSessionStreamsRequest (2.45.0)

public static final class Storage.BatchCreateReadSessionStreamsRequest extends GeneratedMessageV3 implements Storage.BatchCreateReadSessionStreamsRequestOrBuilder

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

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Storage.BatchCreateReadSessionStreamsRequest

Static Fields

REQUESTED_STREAMS_FIELD_NUMBER

public static final int REQUESTED_STREAMS_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_FIELD_NUMBER

public static final int SESSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Storage.BatchCreateReadSessionStreamsRequest getDefaultInstance()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest

getDescriptor()

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

newBuilder()

public static Storage.BatchCreateReadSessionStreamsRequest.Builder newBuilder()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

newBuilder(Storage.BatchCreateReadSessionStreamsRequest prototype)

public static Storage.BatchCreateReadSessionStreamsRequest.Builder newBuilder(Storage.BatchCreateReadSessionStreamsRequest prototype)
Parameter
NameDescription
prototypeStorage.BatchCreateReadSessionStreamsRequest
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

parseDelimitedFrom(InputStream input)

public static Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Storage.BatchCreateReadSessionStreamsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Storage.BatchCreateReadSessionStreamsRequest> parser()
Returns
TypeDescription
Parser<BatchCreateReadSessionStreamsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<Storage.BatchCreateReadSessionStreamsRequest> getParserForType()
Returns
TypeDescription
Parser<BatchCreateReadSessionStreamsRequest>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Storage.BatchCreateReadSessionStreamsRequest.Builder newBuilderForType()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Storage.BatchCreateReadSessionStreamsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Storage.BatchCreateReadSessionStreamsRequest.Builder toBuilder()
Returns
TypeDescription
Storage.BatchCreateReadSessionStreamsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException