Package viam.app.v1

Class App.SharedSecret.Builder

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

public static final class App.SharedSecret.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<App.SharedSecret,App.SharedSecret.Builder> implements App.SharedSecretOrBuilder
 SharedSecret is a secret used for LocationAuth and RobotParts.
 
Protobuf type viam.app.v1.SharedSecret
  • Method Details

    • getId

      public String getId()
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
      Specified by:
      getId in interface App.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 interface App.SharedSecretOrBuilder
      Returns:
      The bytes for id.
    • setId

      public App.SharedSecret.Builder setId(String value)
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public App.SharedSecret.Builder clearId()
      string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
      Returns:
      This builder for chaining.
    • setIdBytes

      public App.SharedSecret.Builder setIdBytes(com.google.protobuf.ByteString value)
      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

      public String 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 interface App.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 interface App.SharedSecretOrBuilder
      Returns:
      The bytes for secret.
    • setSecret

      public App.SharedSecret.Builder setSecret(String value)
       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

      public App.SharedSecret.Builder 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

      public App.SharedSecret.Builder setSecretBytes(com.google.protobuf.ByteString value)
       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 interface App.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 interface App.SharedSecretOrBuilder
      Returns:
      The createdOn.
    • setCreatedOn

      public App.SharedSecret.Builder setCreatedOn(com.google.protobuf.Timestamp value)
       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 App.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

      public App.SharedSecret.Builder mergeCreatedOn(com.google.protobuf.Timestamp value)
       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

      public App.SharedSecret.Builder 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 interface App.SharedSecretOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public App.SharedSecret.Builder setStateValue(int value)
       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

      public App.SharedSecret.State 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 interface App.SharedSecretOrBuilder
      Returns:
      The state.
    • setState

       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 enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • clearState

      public App.SharedSecret.Builder 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.