Class Storage.StreamPosition (3.5.2)

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
Type Description
int

STREAM_FIELD_NUMBER

public static final int STREAM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Storage.StreamPosition getDefaultInstance()
Returns
Type Description
Storage.StreamPosition

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Storage.StreamPosition.Builder newBuilder()
Returns
Type Description
Storage.StreamPosition.Builder

newBuilder(Storage.StreamPosition prototype)

public static Storage.StreamPosition.Builder newBuilder(Storage.StreamPosition prototype)
Parameter
Name Description
prototype Storage.StreamPosition
Returns
Type Description
Storage.StreamPosition.Builder

parseDelimitedFrom(InputStream input)

public static Storage.StreamPosition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Storage.StreamPosition parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Storage.StreamPosition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Storage.StreamPosition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Storage.StreamPosition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Storage.StreamPosition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Storage.StreamPosition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Storage.StreamPosition
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Storage.StreamPosition getDefaultInstanceForType()
Returns
Type Description
Storage.StreamPosition

getOffset()

public long getOffset()

Position in the stream.

int64 offset = 2;

Returns
Type Description
long

The offset.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStream()

public Storage.Stream getStream()

Identifier for a given Stream.

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

Returns
Type Description
Storage.Stream

The stream.

getStreamOrBuilder()

public Storage.StreamOrBuilder getStreamOrBuilder()

Identifier for a given Stream.

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

Returns
Type Description
Storage.StreamOrBuilder

hasStream()

public boolean hasStream()

Identifier for a given Stream.

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

Returns
Type Description
boolean

Whether the stream field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Storage.StreamPosition.Builder newBuilderForType()
Returns
Type Description
Storage.StreamPosition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Storage.StreamPosition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Storage.StreamPosition.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Storage.StreamPosition.Builder toBuilder()
Returns
Type Description
Storage.StreamPosition.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException