Class Storage.StreamPosition (2.47.0)

public static final class Storage.StreamPosition extends GeneratedMessageV3 implements Storage.StreamPositionOrBuilder

Expresses a point within a given stream using an offset position.

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

Static Fields

OFFSET_FIELD_NUMBER

public static final int OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

STREAM_FIELD_NUMBER

public static final int STREAM_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Storage.StreamPosition prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getOffset()

public long getOffset()

Position in the stream.

int64 offset = 2;

Returns
TypeDescription
long

The offset.

getParserForType()

public Parser<Storage.StreamPosition> getParserForType()
Returns
TypeDescription
Parser<StreamPosition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStream()

public Storage.Stream getStream()

Identifier for a given Stream.

.google.cloud.bigquery.storage.v1beta1.Stream stream = 1;

Returns
TypeDescription
Storage.Stream

The stream.

getStreamOrBuilder()

public Storage.StreamOrBuilder getStreamOrBuilder()

Identifier for a given Stream.

.google.cloud.bigquery.storage.v1beta1.Stream stream = 1;

Returns
TypeDescription
Storage.StreamOrBuilder

hasStream()

public boolean hasStream()

Identifier for a given Stream.

.google.cloud.bigquery.storage.v1beta1.Stream stream = 1;

Returns
TypeDescription
boolean

Whether the stream 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.StreamPosition.Builder newBuilderForType()
Returns
TypeDescription
Storage.StreamPosition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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