Package viam.app.v1
Class App.SharedSecret
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<App.SharedSecret,App.SharedSecret.Builder>
viam.app.v1.App.SharedSecret
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,App.SharedSecretOrBuilder
- Enclosing class:
- App
public static final class App.SharedSecret
extends com.google.protobuf.GeneratedMessageLite<App.SharedSecret,App.SharedSecret.Builder>
implements App.SharedSecretOrBuilder
SharedSecret is a secret used for LocationAuth and RobotParts.Protobuf type
viam.app.v1.SharedSecret
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
SharedSecret is a secret used for LocationAuth and RobotParts.static enum
Protobuf enumviam.app.v1.SharedSecret.State
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.Timestamp
Date/time the secret was first created.static App.SharedSecret
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.static App.SharedSecret.Builder
static App.SharedSecret.Builder
newBuilder
(App.SharedSecret prototype) static App.SharedSecret
parseDelimitedFrom
(InputStream input) static App.SharedSecret
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static App.SharedSecret
parseFrom
(byte[] data) static App.SharedSecret
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static App.SharedSecret
parseFrom
(com.google.protobuf.ByteString data) static App.SharedSecret
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static App.SharedSecret
parseFrom
(com.google.protobuf.CodedInputStream input) static App.SharedSecret
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static App.SharedSecret
parseFrom
(InputStream input) static App.SharedSecret
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static App.SharedSecret
parseFrom
(ByteBuffer data) static App.SharedSecret
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<App.SharedSecret>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
SECRET_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER- See Also:
-
CREATED_ON_FIELD_NUMBER
public static final int CREATED_ON_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getId
string id = 1 [json_name = "id", (.tagger.v1.tags) = "bson:\"id\""];
- Specified by:
getId
in interfaceApp.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 interfaceApp.SharedSecretOrBuilder
- Returns:
- The bytes for id.
-
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 interfaceApp.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 interfaceApp.SharedSecretOrBuilder
- Returns:
- The bytes for secret.
-
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 interfaceApp.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 interfaceApp.SharedSecretOrBuilder
- Returns:
- The createdOn.
-
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 interfaceApp.SharedSecretOrBuilder
- Returns:
- The enum numeric value on the wire for 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 interfaceApp.SharedSecretOrBuilder
- Returns:
- The state.
-
parseFrom
public static App.SharedSecret parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static App.SharedSecret parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static App.SharedSecret parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static App.SharedSecret parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static App.SharedSecret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static App.SharedSecret parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static App.SharedSecret parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static App.SharedSecret parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static App.SharedSecret parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static App.SharedSecret parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<App.SharedSecret,
App.SharedSecret.Builder>
-
getDefaultInstance
-
parser
-