Send feedback
Class StatusUpdate.Builder (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class StatusUpdate . Builder extends GeneratedMessageV3 . Builder<StatusUpdate . Builder > implements StatusUpdateOrBuilder
A StatusUpdate message given over the ADB protocol for the device state.
Protobuf type google.cloud.devicestreaming.v1.StatusUpdate
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StatusUpdate . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public StatusUpdate build ()
buildPartial()
public StatusUpdate buildPartial ()
clear()
public StatusUpdate . Builder clear ()
Overrides
clearFeatures()
public StatusUpdate . Builder clearFeatures ()
A comma-separated list of "features" that this device supports.
string features = 3;
clearField(Descriptors.FieldDescriptor field)
public StatusUpdate . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public StatusUpdate . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearProperties()
public StatusUpdate . Builder clearProperties ()
clearState()
public StatusUpdate . Builder clearState ()
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
clone()
public StatusUpdate . Builder clone ()
Overrides
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
getDefaultInstanceForType()
public StatusUpdate getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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.
getProperties() (deprecated)
public Map<String , String > getProperties ()
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;
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;
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;
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(StatusUpdate other)
public StatusUpdate . Builder mergeFrom ( StatusUpdate other )
public StatusUpdate . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public StatusUpdate . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StatusUpdate . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
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;
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;
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
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
String
The features to set.
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
ByteString
The bytes for features to set.
setField(Descriptors.FieldDescriptor field, Object value)
public StatusUpdate . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StatusUpdate . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setState(StatusUpdate.DeviceState value)
public StatusUpdate . Builder setState ( StatusUpdate . DeviceState value )
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
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
int
The enum numeric value on the wire for state to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final StatusUpdate . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[],[]]