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 TypeMethodDescriptionaddAllAllowedMethods(Iterable<String> values) allowed_methods is a list of fully qualified gRPC methods the user may invoke on the listed resources, e.g.addAllowedMethods(String value) 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.addAllResources(Iterable<String> values) resources are the names of the resources this permission applies to, e.g.addResources(String value) 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.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.getResources(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.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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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.
-
setResources
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
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
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
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
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
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.
-
setAllowedMethods
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
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
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
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
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.
-