Package viam.app.v1

Class Robot.Permission.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Robot.Permission,Robot.Permission.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.Permission,Robot.Permission.Builder>
viam.app.v1.Robot.Permission.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Robot.PermissionOrBuilder
Enclosing class:
Robot.Permission

public static final class Robot.Permission.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<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
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    addAllowedMethodsBytes(com.google.protobuf.ByteString value)
    allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.
    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.
    addResourcesBytes(com.google.protobuf.ByteString value)
    resources are the names of the resources this permission applies to, e.g.
    allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.
    resources are the names of the resources this permission applies to, e.g.
    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.
    setAllowedMethods(int index, String value)
    allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.
    setResources(int index, String value)
    resources are the names of the resources this permission applies to, e.g.

    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

    • 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.
    • setResources

      public Robot.Permission.Builder setResources(int index, String value)
       resources are the names of the resources this permission applies to,
       e.g. ["cam1", "cam2", "cam3"].
       
      repeated string resources = 1 [json_name = "resources"];
      Parameters:
      index - The index to set the value at.
      value - The resources to set.
      Returns:
      This builder for chaining.
    • addResources

      public Robot.Permission.Builder addResources(String value)
       resources are the names of the resources this permission applies to,
       e.g. ["cam1", "cam2", "cam3"].
       
      repeated string resources = 1 [json_name = "resources"];
      Parameters:
      value - The resources to add.
      Returns:
      This builder for chaining.
    • addAllResources

      public Robot.Permission.Builder addAllResources(Iterable<String> values)
       resources are the names of the resources this permission applies to,
       e.g. ["cam1", "cam2", "cam3"].
       
      repeated string resources = 1 [json_name = "resources"];
      Parameters:
      values - The resources to add.
      Returns:
      This builder for chaining.
    • clearResources

      public Robot.Permission.Builder clearResources()
       resources are the names of the resources this permission applies to,
       e.g. ["cam1", "cam2", "cam3"].
       
      repeated string resources = 1 [json_name = "resources"];
      Returns:
      This builder for chaining.
    • addResourcesBytes

      public Robot.Permission.Builder addResourcesBytes(com.google.protobuf.ByteString value)
       resources are the names of the resources this permission applies to,
       e.g. ["cam1", "cam2", "cam3"].
       
      repeated string resources = 1 [json_name = "resources"];
      Parameters:
      value - The bytes of the resources to add.
      Returns:
      This builder for chaining.
    • 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.
    • setAllowedMethods

      public Robot.Permission.Builder setAllowedMethods(int index, String value)
       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"];
      Parameters:
      index - The index to set the value at.
      value - The allowedMethods to set.
      Returns:
      This builder for chaining.
    • addAllowedMethods

      public Robot.Permission.Builder addAllowedMethods(String value)
       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"];
      Parameters:
      value - The allowedMethods to add.
      Returns:
      This builder for chaining.
    • addAllAllowedMethods

      public Robot.Permission.Builder addAllAllowedMethods(Iterable<String> values)
       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"];
      Parameters:
      values - The allowedMethods to add.
      Returns:
      This builder for chaining.
    • clearAllowedMethods

      public Robot.Permission.Builder clearAllowedMethods()
       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"];
      Returns:
      This builder for chaining.
    • addAllowedMethodsBytes

      public Robot.Permission.Builder addAllowedMethodsBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes of the allowedMethods to add.
      Returns:
      This builder for chaining.