Class DeviceMessage (0.2.0)

public final class DeviceMessage extends GeneratedMessageV3 implements DeviceMessageOrBuilder

A message returned from a device.

Protobuf type google.cloud.devicestreaming.v1.DeviceMessage

Static Fields

STATUS_UPDATE_FIELD_NUMBER

public static final int STATUS_UPDATE_FIELD_NUMBER
Field Value
Type Description
int

STREAM_DATA_FIELD_NUMBER

public static final int STREAM_DATA_FIELD_NUMBER
Field Value
Type Description
int

STREAM_STATUS_FIELD_NUMBER

public static final int STREAM_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeviceMessage getDefaultInstance()
Returns
Type Description
DeviceMessage

getDescriptor()

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

newBuilder()

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

newBuilder(DeviceMessage prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContentsCase()

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

getDefaultInstanceForType()

public DeviceMessage getDefaultInstanceForType()
Returns
Type Description
DeviceMessage

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStatusUpdate()

public StatusUpdate getStatusUpdate()

Information about the device's state.

.google.cloud.devicestreaming.v1.StatusUpdate status_update = 1;

Returns
Type Description
StatusUpdate

The statusUpdate.

getStatusUpdateOrBuilder()

public StatusUpdateOrBuilder getStatusUpdateOrBuilder()

Information about the device's state.

.google.cloud.devicestreaming.v1.StatusUpdate status_update = 1;

Returns
Type Description
StatusUpdateOrBuilder

getStreamData()

public StreamData getStreamData()

Data from an open stream.

.google.cloud.devicestreaming.v1.StreamData stream_data = 3;

Returns
Type Description
StreamData

The streamData.

getStreamDataOrBuilder()

public StreamDataOrBuilder getStreamDataOrBuilder()

Data from an open stream.

.google.cloud.devicestreaming.v1.StreamData stream_data = 3;

Returns
Type Description
StreamDataOrBuilder

getStreamStatus()

public StreamStatus getStreamStatus()

The result of a device stream from ADB.

.google.cloud.devicestreaming.v1.StreamStatus stream_status = 2;

Returns
Type Description
StreamStatus

The streamStatus.

getStreamStatusOrBuilder()

public StreamStatusOrBuilder getStreamStatusOrBuilder()

The result of a device stream from ADB.

.google.cloud.devicestreaming.v1.StreamStatus stream_status = 2;

Returns
Type Description
StreamStatusOrBuilder

hasStatusUpdate()

public boolean hasStatusUpdate()

Information about the device's state.

.google.cloud.devicestreaming.v1.StatusUpdate status_update = 1;

Returns
Type Description
boolean

Whether the statusUpdate field is set.

hasStreamData()

public boolean hasStreamData()

Data from an open stream.

.google.cloud.devicestreaming.v1.StreamData stream_data = 3;

Returns
Type Description
boolean

Whether the streamData field is set.

hasStreamStatus()

public boolean hasStreamStatus()

The result of a device stream from ADB.

.google.cloud.devicestreaming.v1.StreamStatus stream_status = 2;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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