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 TypeMethodDescriptionclearId()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.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".com.google.protobuf.ByteStringid 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".getType()type is the type of user.com.google.protobuf.ByteStringtype 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".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".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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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:
getTypein interfaceRobot.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:
getTypeBytesin interfaceRobot.UserOrBuilder- Returns:
- The bytes for type.
-
setType
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
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
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
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:
getIdin interfaceRobot.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:
getIdBytesin interfaceRobot.UserOrBuilder- Returns:
- The bytes for id.
-
setId
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
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
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.
-