Class StatusUpdate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
com.google.cloud.devicestreaming.v1.StatusUpdate.Builder
- All Implemented Interfaces:
StatusUpdateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StatusUpdate
public static final class StatusUpdate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
implements StatusUpdateOrBuilder
A StatusUpdate message given over the ADB protocol for the device state.Protobuf type
google.cloud.devicestreaming.v1.StatusUpdate-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()A comma-separated list of "features" that this device supports.The device's statebooleancontainsProperties(String key) A map of properties with information about this device.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA comma-separated list of "features" that this device supports.com.google.protobuf.ByteStringA comma-separated list of "features" that this device supports.Deprecated.Deprecated.intA map of properties with information about this device.A map of properties with information about this device.getPropertiesOrDefault(String key, String defaultValue) A map of properties with information about this device.A map of properties with information about this device.getState()The device's stateintThe device's stateprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(StatusUpdate other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllProperties(Map<String, String> values) A map of properties with information about this device.putProperties(String key, String value) A map of properties with information about this device.removeProperties(String key) A map of properties with information about this device.setFeatures(String value) A comma-separated list of "features" that this device supports.setFeaturesBytes(com.google.protobuf.ByteString value) A comma-separated list of "features" that this device supports.setState(StatusUpdate.DeviceState value) The device's statesetStateValue(int value) The device's stateMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StatusUpdate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
-
mergeFrom
public StatusUpdate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StatusUpdate.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;- Specified by:
getStateValuein interfaceStatusUpdateOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;- Specified by:
getStatein interfaceStatusUpdateOrBuilder- Returns:
- The state.
-
setState
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The device's state
.google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;- Returns:
- This builder for chaining.
-
getPropertiesCount
public int getPropertiesCount()Description copied from interface:StatusUpdateOrBuilderA map of properties with information about this device.
map<string, string> properties = 2;- Specified by:
getPropertiesCountin interfaceStatusUpdateOrBuilder
-
containsProperties
A map of properties with information about this device.
map<string, string> properties = 2;- Specified by:
containsPropertiesin interfaceStatusUpdateOrBuilder
-
getProperties
Deprecated.UsegetPropertiesMap()instead.- Specified by:
getPropertiesin interfaceStatusUpdateOrBuilder
-
getPropertiesMap
A map of properties with information about this device.
map<string, string> properties = 2;- Specified by:
getPropertiesMapin interfaceStatusUpdateOrBuilder
-
getPropertiesOrDefault
A map of properties with information about this device.
map<string, string> properties = 2;- Specified by:
getPropertiesOrDefaultin interfaceStatusUpdateOrBuilder
-
getPropertiesOrThrow
A map of properties with information about this device.
map<string, string> properties = 2;- Specified by:
getPropertiesOrThrowin interfaceStatusUpdateOrBuilder
-
clearProperties
-
removeProperties
A map of properties with information about this device.
map<string, string> properties = 2; -
getMutableProperties
Deprecated.Use alternate mutation accessors instead. -
putProperties
A map of properties with information about this device.
map<string, string> properties = 2; -
putAllProperties
A map of properties with information about this device.
map<string, string> properties = 2; -
getFeatures
A comma-separated list of "features" that this device supports.
string features = 3;- Specified by:
getFeaturesin interfaceStatusUpdateOrBuilder- Returns:
- The features.
-
getFeaturesBytes
public com.google.protobuf.ByteString getFeaturesBytes()A comma-separated list of "features" that this device supports.
string features = 3;- Specified by:
getFeaturesBytesin interfaceStatusUpdateOrBuilder- Returns:
- The bytes for features.
-
setFeatures
A comma-separated list of "features" that this device supports.
string features = 3;- Parameters:
value- The features to set.- Returns:
- This builder for chaining.
-
clearFeatures
A comma-separated list of "features" that this device supports.
string features = 3;- Returns:
- This builder for chaining.
-
setFeaturesBytes
A comma-separated list of "features" that this device supports.
string features = 3;- Parameters:
value- The bytes for features to set.- Returns:
- This builder for chaining.
-