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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
    • clear

      public StatusUpdate.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StatusUpdate.Builder>
    • getDefaultInstanceForType

      public StatusUpdate getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public StatusUpdate build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StatusUpdate buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StatusUpdate.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StatusUpdate.Builder>
    • mergeFrom

      public StatusUpdate.Builder mergeFrom(StatusUpdate other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getStateValue in interface StatusUpdateOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public StatusUpdate.Builder setStateValue(int value)
       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

      public StatusUpdate.DeviceState getState()
       The device's state
       
      .google.cloud.devicestreaming.v1.StatusUpdate.DeviceState state = 1;
      Specified by:
      getState in interface StatusUpdateOrBuilder
      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

      public StatusUpdate.Builder 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: StatusUpdateOrBuilder
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
      Specified by:
      getPropertiesCount in interface StatusUpdateOrBuilder
    • containsProperties

      public boolean containsProperties(String key)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
      Specified by:
      containsProperties in interface StatusUpdateOrBuilder
    • getProperties

      @Deprecated public Map<String,String> getProperties()
      Deprecated.
      Use getPropertiesMap() instead.
      Specified by:
      getProperties in interface StatusUpdateOrBuilder
    • getPropertiesMap

      public Map<String,String> getPropertiesMap()
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
      Specified by:
      getPropertiesMap in interface StatusUpdateOrBuilder
    • getPropertiesOrDefault

      public String getPropertiesOrDefault(String key, String defaultValue)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
      Specified by:
      getPropertiesOrDefault in interface StatusUpdateOrBuilder
    • getPropertiesOrThrow

      public String getPropertiesOrThrow(String key)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
      Specified by:
      getPropertiesOrThrow in interface StatusUpdateOrBuilder
    • clearProperties

      public StatusUpdate.Builder clearProperties()
    • removeProperties

      public StatusUpdate.Builder removeProperties(String key)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
    • getMutableProperties

      @Deprecated public Map<String,String> getMutableProperties()
      Deprecated.
      Use alternate mutation accessors instead.
    • putProperties

      public StatusUpdate.Builder putProperties(String key, String value)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
    • putAllProperties

      public StatusUpdate.Builder putAllProperties(Map<String,String> values)
       A map of properties with information about this device.
       
      map<string, string> properties = 2;
    • getFeatures

      public String getFeatures()
       A comma-separated list of "features" that this device supports.
       
      string features = 3;
      Specified by:
      getFeatures in interface StatusUpdateOrBuilder
      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:
      getFeaturesBytes in interface StatusUpdateOrBuilder
      Returns:
      The bytes for features.
    • setFeatures

      public StatusUpdate.Builder setFeatures(String value)
       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

      public StatusUpdate.Builder clearFeatures()
       A comma-separated list of "features" that this device supports.
       
      string features = 3;
      Returns:
      This builder for chaining.
    • setFeaturesBytes

      public StatusUpdate.Builder setFeaturesBytes(com.google.protobuf.ByteString value)
       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.