Package viam.app.v1
Class Robot.Permission
java.lang.Object
com.google.protobuf.AbstractMessageLite<Robot.Permission,Robot.Permission.Builder>
com.google.protobuf.GeneratedMessageLite<Robot.Permission,Robot.Permission.Builder>
viam.app.v1.Robot.Permission
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Robot.PermissionOrBuilder
- Enclosing class:
Robot
public static final class Robot.Permission
extends com.google.protobuf.GeneratedMessageLite<Robot.Permission,Robot.Permission.Builder>
implements Robot.PermissionOrBuilder
A Permission describes a User's ability to invoke methods on resources.Protobuf type
viam.app.v1.Permission-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA Permission describes a User's ability to invoke methods on resources.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>, 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getAllowedMethods(int index) allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.com.google.protobuf.ByteStringgetAllowedMethodsBytes(int index) allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.intallowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.static Robot.PermissiongetResources(int index) resources are the names of the resources this permission applies to, e.g.com.google.protobuf.ByteStringgetResourcesBytes(int index) resources are the names of the resources this permission applies to, e.g.intresources are the names of the resources this permission applies to, e.g.resources are the names of the resources this permission applies to, e.g.static Robot.Permission.Builderstatic Robot.Permission.BuildernewBuilder(Robot.Permission prototype) static Robot.PermissionparseDelimitedFrom(InputStream input) static Robot.PermissionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PermissionparseFrom(byte[] data) static Robot.PermissionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PermissionparseFrom(com.google.protobuf.ByteString data) static Robot.PermissionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PermissionparseFrom(com.google.protobuf.CodedInputStream input) static Robot.PermissionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PermissionparseFrom(InputStream input) static Robot.PermissionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.PermissionparseFrom(ByteBuffer data) static Robot.PermissionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Robot.Permission> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, 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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER- See Also:
-
ALLOWED_METHODS_FIELD_NUMBER
public static final int ALLOWED_METHODS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getResourcesList
resources are the names of the resources this permission applies to, e.g. ["cam1", "cam2", "cam3"].
repeated string resources = 1 [json_name = "resources"];- Specified by:
getResourcesListin interfaceRobot.PermissionOrBuilder- Returns:
- A list containing the resources.
-
getResourcesCount
public int getResourcesCount()resources are the names of the resources this permission applies to, e.g. ["cam1", "cam2", "cam3"].
repeated string resources = 1 [json_name = "resources"];- Specified by:
getResourcesCountin interfaceRobot.PermissionOrBuilder- Returns:
- The count of resources.
-
getResources
resources are the names of the resources this permission applies to, e.g. ["cam1", "cam2", "cam3"].
repeated string resources = 1 [json_name = "resources"];- Specified by:
getResourcesin interfaceRobot.PermissionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resources at the given index.
-
getResourcesBytes
public com.google.protobuf.ByteString getResourcesBytes(int index) resources are the names of the resources this permission applies to, e.g. ["cam1", "cam2", "cam3"].
repeated string resources = 1 [json_name = "resources"];- Specified by:
getResourcesBytesin interfaceRobot.PermissionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resources at the given index.
-
getAllowedMethodsList
allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g. ["/viam.component.camera.v1.CameraService/GetImages", "/viam.component.camera.v1.CameraService/GetProperties"].
repeated string allowed_methods = 2 [json_name = "allowedMethods"];- Specified by:
getAllowedMethodsListin interfaceRobot.PermissionOrBuilder- Returns:
- A list containing the allowedMethods.
-
getAllowedMethodsCount
public int getAllowedMethodsCount()allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g. ["/viam.component.camera.v1.CameraService/GetImages", "/viam.component.camera.v1.CameraService/GetProperties"].
repeated string allowed_methods = 2 [json_name = "allowedMethods"];- Specified by:
getAllowedMethodsCountin interfaceRobot.PermissionOrBuilder- Returns:
- The count of allowedMethods.
-
getAllowedMethods
allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g. ["/viam.component.camera.v1.CameraService/GetImages", "/viam.component.camera.v1.CameraService/GetProperties"].
repeated string allowed_methods = 2 [json_name = "allowedMethods"];- Specified by:
getAllowedMethodsin interfaceRobot.PermissionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedMethods at the given index.
-
getAllowedMethodsBytes
public com.google.protobuf.ByteString getAllowedMethodsBytes(int index) allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g. ["/viam.component.camera.v1.CameraService/GetImages", "/viam.component.camera.v1.CameraService/GetProperties"].
repeated string allowed_methods = 2 [json_name = "allowedMethods"];- Specified by:
getAllowedMethodsBytesin interfaceRobot.PermissionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedMethods at the given index.
-
parseFrom
public static Robot.Permission parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Permission parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Permission parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Permission parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Permission parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.Permission parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Robot.Permission parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Robot.Permission parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.Permission parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.Permission parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Robot.Permission,Robot.Permission.Builder>
-
getDefaultInstance
-
parser
-