public static final class Open.Builder extends GeneratedMessage.Builder<Open.Builder> implements OpenOrBuilderMessage for opening a new stream.
Protobuf type google.cloud.devicestreaming.v1.Open
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Open.BuilderImplements
OpenOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Open.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Open.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
intThe streamId to set. |
| Returns | |
|---|---|
| Type | Description |
Open.Builder |
This builder for chaining. |