public final class StreamData extends GeneratedMessage implements StreamDataOrBuilderData for a stream.
Protobuf type google.cloud.devicestreaming.v1.StreamData
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > StreamDataImplements
StreamDataOrBuilderStatic 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 |
|
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> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public StreamData.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected StreamData.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
|
toBuilder()
public StreamData.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
StreamData.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|