Class Open (0.2.0)

public final class Open extends GeneratedMessageV3 implements OpenOrBuilder

Message for opening a new stream.

Protobuf type google.cloud.devicestreaming.v1.Open

Implements

OpenOrBuilder

Static Fields

SERVICE_FIELD_NUMBER

public static final int SERVICE_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 Open getDefaultInstance()
Returns
Type Description
Open

getDescriptor()

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

newBuilder()

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

newBuilder(Open prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Open getDefaultInstanceForType()
Returns
Type Description
Open

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getService()

public String getService()

Optional. An ADB service to use in the new stream.

string service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Optional. An ADB service to use in the new stream.

string service = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for service.

getStreamId()

public int getStreamId()

Required. The unique ID that will be used to talk to this stream. This should probably just be a number that increments for each new Open request.

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

Returns
Type Description
int

The streamId.

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 Open.Builder newBuilderForType()
Returns
Type Description
Open.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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