Class StreamData (0.2.0)

public final class StreamData extends GeneratedMessageV3 implements StreamDataOrBuilder

Data for a stream.

Protobuf type google.cloud.devicestreaming.v1.StreamData

Implements

StreamDataOrBuilder

Static Fields

CLOSE_FIELD_NUMBER

public static final int CLOSE_FIELD_NUMBER
Field Value
Type Description
int

DATA_FIELD_NUMBER

public static final int DATA_FIELD_NUMBER
Field Value
Type Description
int

STREAM_ID_FIELD_NUMBER

public static final int STREAM_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StreamData getDefaultInstance()
Returns
Type Description
StreamData

getDescriptor()

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

newBuilder()

public static StreamData.Builder newBuilder()
Returns
Type Description
StreamData.Builder

newBuilder(StreamData prototype)

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

parseDelimitedFrom(InputStream input)

public static StreamData parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamData
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static StreamData parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StreamData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static StreamData parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StreamData
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static StreamData parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StreamData
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static StreamData parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StreamData
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<StreamData> parser()
Returns
Type Description
Parser<StreamData>

Methods

equals(Object obj)

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

getClose()

public Close getClose()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
Close

The close.

getCloseOrBuilder()

public CloseOrBuilder getCloseOrBuilder()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
CloseOrBuilder

getContentsCase()

public StreamData.ContentsCase getContentsCase()
Returns
Type Description
StreamData.ContentsCase

getData()

public ByteString getData()

Data in the stream.

bytes data = 2;

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public StreamData getDefaultInstanceForType()
Returns
Type Description
StreamData

getParserForType()

public Parser<StreamData> getParserForType()
Returns
Type Description
Parser<StreamData>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStreamId()

public int getStreamId()

Required. The unique ID of this stream, assigned by the client.

int32 stream_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The streamId.

hasClose()

public boolean hasClose()

The stream is closing. EOF.

.google.cloud.devicestreaming.v1.Close close = 3;

Returns
Type Description
boolean

Whether the close field is set.

hasData()

public boolean hasData()

Data in the stream.

bytes data = 2;

Returns
Type Description
boolean

Whether the data 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 StreamData.Builder newBuilderForType()
Returns
Type Description
StreamData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public StreamData.Builder toBuilder()
Returns
Type Description
StreamData.Builder

writeTo(CodedOutputStream output)

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