Package viam.app.v1

Class Robot.User.Builder

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

public static final class Robot.User.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.User,Robot.User.Builder> implements Robot.UserOrBuilder
 A User describes a single user that a set of Permissions applies to.
 
Protobuf type viam.app.v1.User
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    id is the API Key ID if type is "api-key-id", the Viam app user ID if type is "app-user-id", and empty if type is "default".
    type is the type of user.
    id is the API Key ID if type is "api-key-id", the Viam app user ID if type is "app-user-id", and empty if type is "default".
    com.google.protobuf.ByteString
    id is the API Key ID if type is "api-key-id", the Viam app user ID if type is "app-user-id", and empty if type is "default".
    type is the type of user.
    com.google.protobuf.ByteString
    type is the type of user.
    setId(String value)
    id is the API Key ID if type is "api-key-id", the Viam app user ID if type is "app-user-id", and empty if type is "default".
    setIdBytes(com.google.protobuf.ByteString value)
    id is the API Key ID if type is "api-key-id", the Viam app user ID if type is "app-user-id", and empty if type is "default".
    setType(String value)
    type is the type of user.
    setTypeBytes(com.google.protobuf.ByteString value)
    type is the type of user.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getType

      public String getType()
       type is the type of user. Can be "api-key-id", "app-user-id", or "default".
       
      string type = 1 [json_name = "type"];
      Specified by:
      getType in interface Robot.UserOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       type is the type of user. Can be "api-key-id", "app-user-id", or "default".
       
      string type = 1 [json_name = "type"];
      Specified by:
      getTypeBytes in interface Robot.UserOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Robot.User.Builder setType(String value)
       type is the type of user. Can be "api-key-id", "app-user-id", or "default".
       
      string type = 1 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Robot.User.Builder clearType()
       type is the type of user. Can be "api-key-id", "app-user-id", or "default".
       
      string type = 1 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Robot.User.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type is the type of user. Can be "api-key-id", "app-user-id", or "default".
       
      string type = 1 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getId

      public String getId()
       id is the API Key ID if type is "api-key-id", the Viam app user ID if
       type is "app-user-id", and empty if type is "default".
       
      string id = 2 [json_name = "id"];
      Specified by:
      getId in interface Robot.UserOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       id is the API Key ID if type is "api-key-id", the Viam app user ID if
       type is "app-user-id", and empty if type is "default".
       
      string id = 2 [json_name = "id"];
      Specified by:
      getIdBytes in interface Robot.UserOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Robot.User.Builder setId(String value)
       id is the API Key ID if type is "api-key-id", the Viam app user ID if
       type is "app-user-id", and empty if type is "default".
       
      string id = 2 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Robot.User.Builder clearId()
       id is the API Key ID if type is "api-key-id", the Viam app user ID if
       type is "app-user-id", and empty if type is "default".
       
      string id = 2 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Robot.User.Builder setIdBytes(com.google.protobuf.ByteString value)
       id is the API Key ID if type is "api-key-id", the Viam app user ID if
       type is "app-user-id", and empty if type is "default".
       
      string id = 2 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.