Package viam.app.v1

Class Robot.ResourceLevelServiceConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.ResourceLevelServiceConfig,Robot.ResourceLevelServiceConfig.Builder>
viam.app.v1.Robot.ResourceLevelServiceConfig.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Robot.ResourceLevelServiceConfigOrBuilder
Enclosing class:
Robot.ResourceLevelServiceConfig

public static final class Robot.ResourceLevelServiceConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ResourceLevelServiceConfig,Robot.ResourceLevelServiceConfig.Builder> implements Robot.ResourceLevelServiceConfigOrBuilder
 A ResourceLevelServiceConfig describes component or remote configuration for a service.
 
Protobuf type viam.app.v1.ResourceLevelServiceConfig
  • Method Details

    • getType

      public String getType()
      string type = 1 [json_name = "type"];
      Specified by:
      getType in interface Robot.ResourceLevelServiceConfigOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
      string type = 1 [json_name = "type"];
      Specified by:
      getTypeBytes in interface Robot.ResourceLevelServiceConfigOrBuilder
      Returns:
      The bytes for type.
    • setType

      string type = 1 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      string type = 1 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Robot.ResourceLevelServiceConfig.Builder setTypeBytes(com.google.protobuf.ByteString value)
      string type = 1 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasAttributes

      public boolean hasAttributes()
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];
      Specified by:
      hasAttributes in interface Robot.ResourceLevelServiceConfigOrBuilder
      Returns:
      Whether the attributes field is set.
    • getAttributes

      public com.google.protobuf.Struct getAttributes()
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];
      Specified by:
      getAttributes in interface Robot.ResourceLevelServiceConfigOrBuilder
      Returns:
      The attributes.
    • setAttributes

      public Robot.ResourceLevelServiceConfig.Builder setAttributes(com.google.protobuf.Struct value)
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];
    • setAttributes

      public Robot.ResourceLevelServiceConfig.Builder setAttributes(com.google.protobuf.Struct.Builder builderForValue)
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];
    • mergeAttributes

      public Robot.ResourceLevelServiceConfig.Builder mergeAttributes(com.google.protobuf.Struct value)
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];
    • clearAttributes

      public Robot.ResourceLevelServiceConfig.Builder clearAttributes()
       TODO(adam): Should this be move to a structured type as defined in the typescript frontend.
       
      .google.protobuf.Struct attributes = 2 [json_name = "attributes"];