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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    A 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

    Fields
    Modifier and Type
    Field
    Description
    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 Type
    Method
    Description
    protected final Object
    dynamicMethod(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.ByteString
    allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.
    int
    allowed_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.
     
    getResources(int index)
    resources are the names of the resources this permission applies to, e.g.
    com.google.protobuf.ByteString
    getResourcesBytes(int index)
    resources are the names of the resources this permission applies to, e.g.
    int
    resources 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.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Robot.Permission>
     

    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, 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

    • 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

      public List<String> 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:
      getResourcesList in interface Robot.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:
      getResourcesCount in interface Robot.PermissionOrBuilder
      Returns:
      The count of resources.
    • getResources

      public String getResources(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:
      getResources in interface Robot.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:
      getResourcesBytes in interface Robot.PermissionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • getAllowedMethodsList

      public List<String> 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:
      getAllowedMethodsList in interface Robot.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:
      getAllowedMethodsCount in interface Robot.PermissionOrBuilder
      Returns:
      The count of allowedMethods.
    • getAllowedMethods

      public String getAllowedMethods(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:
      getAllowedMethods in interface Robot.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:
      getAllowedMethodsBytes in interface Robot.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

      public static Robot.Permission parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Robot.Permission parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Robot.Permission parseDelimitedFrom(InputStream input) throws IOException
      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

      public static Robot.Permission.Builder newBuilder()
    • newBuilder

      public static Robot.Permission.Builder newBuilder(Robot.Permission prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Robot.Permission,Robot.Permission.Builder>
    • getDefaultInstance

      public static Robot.Permission getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Robot.Permission> parser()