Class Open.Builder (0.25.0)

public static final class Open.Builder extends GeneratedMessage.Builder<Open.Builder> implements OpenOrBuilder

Message for opening a new stream.

Protobuf type google.cloud.devicestreaming.v1.Open

Implements

OpenOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Open build()
Returns
Type Description
Open

buildPartial()

public Open buildPartial()
Returns
Type Description
Open

clear()

public Open.Builder clear()
Returns
Type Description
Open.Builder
Overrides

clearService()

public Open.Builder clearService()

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

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

Returns
Type Description
Open.Builder

This builder for chaining.

clearStreamId()

public Open.Builder clearStreamId()

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
Open.Builder

This builder for chaining.

getDefaultInstanceForType()

public Open getDefaultInstanceForType()
Returns
Type Description
Open

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Open other)

public Open.Builder mergeFrom(Open other)
Parameter
Name Description
other Open
Returns
Type Description
Open.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Open.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Open.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Open.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Open.Builder
Overrides

setService(String value)

public Open.Builder setService(String value)

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

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

Parameter
Name Description
value String

The service to set.

Returns
Type Description
Open.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public Open.Builder setServiceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
Open.Builder

This builder for chaining.

setStreamId(int value)

public Open.Builder setStreamId(int value)

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];

Parameter
Name Description
value int

The streamId to set.

Returns
Type Description
Open.Builder

This builder for chaining.