public static final class StatusUpdate.Builder extends GeneratedMessage.Builder<StatusUpdate.Builder> implements StatusUpdateOrBuilderA StatusUpdate message given over the ADB protocol for the device state.
Protobuf type google.cloud.devicestreaming.v1.StatusUpdate
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StatusUpdate.BuilderImplements
StatusUpdateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StatusUpdate build()| Returns | |
|---|---|
| Type | Description |
StatusUpdate |
|
buildPartial()
public StatusUpdate buildPartial()| Returns | |
|---|---|
| Type | Description |
StatusUpdate |
|
clear()
public StatusUpdate.Builder clear()| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
clearFeatures()
public StatusUpdate.Builder clearFeatures()A comma-separated list of "features" that this device supports.
string features = 3;
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |
clearProperties()
public StatusUpdate.Builder clearProperties()| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
clearState()
public StatusUpdate.Builder clearState()The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |
containsProperties(String key)
public boolean containsProperties(String key)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public StatusUpdate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StatusUpdate |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getFeatures()
public String getFeatures()A comma-separated list of "features" that this device supports.
string features = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The features. |
getFeaturesBytes()
public ByteString getFeaturesBytes()A comma-separated list of "features" that this device supports.
string features = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for features. |
getMutableProperties() (deprecated)
public Map<String,String> getMutableProperties()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getProperties() (deprecated)
public Map<String,String> getProperties()Use #getPropertiesMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getPropertiesCount()
public int getPropertiesCount()A map of properties with information about this device.
map<string, string> properties = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPropertiesMap()
public Map<String,String> getPropertiesMap()A map of properties with information about this device.
map<string, string> properties = 2;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getPropertiesOrDefault(String key, String defaultValue)
public String getPropertiesOrDefault(String key, String defaultValue)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getPropertiesOrThrow(String key)
public String getPropertiesOrThrow(String key)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getState()
public StatusUpdate.DeviceState getState()The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.DeviceState |
The state. |
getStateValue()
public int getStateValue()The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StatusUpdate other)
public StatusUpdate.Builder mergeFrom(StatusUpdate other)| Parameter | |
|---|---|
| Name | Description |
other |
StatusUpdate |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StatusUpdate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StatusUpdate.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
putAllProperties(Map<String,String> values)
public StatusUpdate.Builder putAllProperties(Map<String,String> values)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
putProperties(String key, String value)
public StatusUpdate.Builder putProperties(String key, String value)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
removeProperties(String key)
public StatusUpdate.Builder removeProperties(String key)A map of properties with information about this device.
map<string, string> properties = 2;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
|
setFeatures(String value)
public StatusUpdate.Builder setFeatures(String value)A comma-separated list of "features" that this device supports.
string features = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe features to set. |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |
setFeaturesBytes(ByteString value)
public StatusUpdate.Builder setFeaturesBytes(ByteString value)A comma-separated list of "features" that this device supports.
string features = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for features to set. |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |
setState(StatusUpdate.DeviceState value)
public StatusUpdate.Builder setState(StatusUpdate.DeviceState value)The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StatusUpdate.DeviceStateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |
setStateValue(int value)
public StatusUpdate.Builder setStateValue(int value)The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
StatusUpdate.Builder |
This builder for chaining. |