Package viam.app.v1
Class Robot.RemoteAuth.Credentials.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.RemoteAuth.Credentials,Robot.RemoteAuth.Credentials.Builder>
viam.app.v1.Robot.RemoteAuth.Credentials.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Robot.RemoteAuth.CredentialsOrBuilder
- Enclosing class:
- Robot.RemoteAuth.Credentials
public static final class Robot.RemoteAuth.Credentials.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.RemoteAuth.Credentials,Robot.RemoteAuth.Credentials.Builder>
implements Robot.RemoteAuth.CredentialsOrBuilder
Credentials packages up both a type of credential along with its payload which is formatted specific to the type.Protobuf type
viam.app.v1.RemoteAuth.Credentials
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionstring payload = 2 [json_name = "payload"];
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
string payload = 2 [json_name = "payload"];
com.google.protobuf.ByteString
string payload = 2 [json_name = "payload"];
getType()
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
int
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
setPayload
(String value) string payload = 2 [json_name = "payload"];
setPayloadBytes
(com.google.protobuf.ByteString value) string payload = 2 [json_name = "payload"];
setType
(Robot.CredentialsType value) .viam.app.v1.CredentialsType type = 1 [json_name = "type"];
setTypeValue
(int value) .viam.app.v1.CredentialsType type = 1 [json_name = "type"];
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
-
getTypeValue
public int getTypeValue().viam.app.v1.CredentialsType type = 1 [json_name = "type"];
- Specified by:
getTypeValue
in interfaceRobot.RemoteAuth.CredentialsOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
getType
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
- Specified by:
getType
in interfaceRobot.RemoteAuth.CredentialsOrBuilder
- Returns:
- The type.
-
setType
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
clearType
.viam.app.v1.CredentialsType type = 1 [json_name = "type"];
- Returns:
- This builder for chaining.
-
getPayload
string payload = 2 [json_name = "payload"];
- Specified by:
getPayload
in interfaceRobot.RemoteAuth.CredentialsOrBuilder
- Returns:
- The payload.
-
getPayloadBytes
public com.google.protobuf.ByteString getPayloadBytes()string payload = 2 [json_name = "payload"];
- Specified by:
getPayloadBytes
in interfaceRobot.RemoteAuth.CredentialsOrBuilder
- Returns:
- The bytes for payload.
-
setPayload
string payload = 2 [json_name = "payload"];
- Parameters:
value
- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
string payload = 2 [json_name = "payload"];
- Returns:
- This builder for chaining.
-
setPayloadBytes
string payload = 2 [json_name = "payload"];
- Parameters:
value
- The bytes for payload to set.- Returns:
- This builder for chaining.
-