Package viam.app.v1
Class AppOuterClass.SharedSecret.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.SharedSecret,AppOuterClass.SharedSecret.Builder>
viam.app.v1.AppOuterClass.SharedSecret.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,AppOuterClass.SharedSecretOrBuilder
- Enclosing class:
- AppOuterClass.SharedSecret
public static final class AppOuterClass.SharedSecret.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<AppOuterClass.SharedSecret,AppOuterClass.SharedSecret.Builder>
implements AppOuterClass.SharedSecretOrBuilder
SharedSecret is a secret used for LocationAuth and RobotParts.Protobuf type
viam.app.v1.SharedSecret
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionDate/time the secret was first created.clearId()
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
The payload of the secret.State of the shared secret.com.google.protobuf.Timestamp
Date/time the secret was first created.getId()
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
com.google.protobuf.ByteString
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
The payload of the secret.com.google.protobuf.ByteString
The payload of the secret.getState()
State of the shared secret.int
State of the shared secret.boolean
Date/time the secret was first created.mergeCreatedOn
(com.google.protobuf.Timestamp value) Date/time the secret was first created.setCreatedOn
(com.google.protobuf.Timestamp value) Date/time the secret was first created.setCreatedOn
(com.google.protobuf.Timestamp.Builder builderForValue) Date/time the secret was first created.string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
setIdBytes
(com.google.protobuf.ByteString value) string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
The payload of the secret.setSecretBytes
(com.google.protobuf.ByteString value) The payload of the secret.State of the shared secret.setStateValue
(int value) State of the shared secret.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
-
getId
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Specified by:
getId
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Specified by:
getIdBytes
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The bytes for id.
-
setId
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Returns:
- This builder for chaining.
-
setIdBytes
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getSecret
The payload of the secret. Used during authentication to the rpc framework.
string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""];
- Specified by:
getSecret
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The secret.
-
getSecretBytes
public com.google.protobuf.ByteString getSecretBytes()The payload of the secret. Used during authentication to the rpc framework.
string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""];
- Specified by:
getSecretBytes
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The bytes for secret.
-
setSecret
The payload of the secret. Used during authentication to the rpc framework.
string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""];
- Parameters:
value
- The secret to set.- Returns:
- This builder for chaining.
-
clearSecret
The payload of the secret. Used during authentication to the rpc framework.
string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""];
- Returns:
- This builder for chaining.
-
setSecretBytes
The payload of the secret. Used during authentication to the rpc framework.
string secret = 2 [json_name = "secret", (.tagger.v1.tags) = "bson:\"secret\""];
- Parameters:
value
- The bytes for secret to set.- Returns:
- This builder for chaining.
-
hasCreatedOn
public boolean hasCreatedOn()Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
- Specified by:
hasCreatedOn
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- Whether the createdOn field is set.
-
getCreatedOn
public com.google.protobuf.Timestamp getCreatedOn()Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
- Specified by:
getCreatedOn
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The createdOn.
-
setCreatedOn
Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
-
setCreatedOn
public AppOuterClass.SharedSecret.Builder setCreatedOn(com.google.protobuf.Timestamp.Builder builderForValue) Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
-
mergeCreatedOn
Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
-
clearCreatedOn
Date/time the secret was first created.
.google.protobuf.Timestamp created_on = 3 [json_name = "createdOn", (.tagger.v1.tags) = "bson:\"created_on\" json:\"created_on\""];
-
getStateValue
public int getStateValue()State of the shared secret. In most cases it should be enabled. We may support disabling a specific secret while keeping it in the database.
.viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""];
- Specified by:
getStateValue
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
State of the shared secret. In most cases it should be enabled. We may support disabling a specific secret while keeping it in the database.
.viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""];
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
getState
State of the shared secret. In most cases it should be enabled. We may support disabling a specific secret while keeping it in the database.
.viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""];
- Specified by:
getState
in interfaceAppOuterClass.SharedSecretOrBuilder
- Returns:
- The state.
-
clearState
State of the shared secret. In most cases it should be enabled. We may support disabling a specific secret while keeping it in the database.
.viam.app.v1.SharedSecret.State state = 4 [json_name = "state", (.tagger.v1.tags) = "bson:\"state\""];
- Returns:
- This builder for chaining.
-