Package namespace.cloud.iam.v1beta
Class Authz.Permission.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Authz.Permission.Builder>
com.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
namespace.cloud.iam.v1beta.Authz.Permission.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Authz.PermissionOrBuilder
- Enclosing class:
Authz.Permission
public static final class Authz.Permission.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
implements Authz.PermissionOrBuilder
Defines a permission grant on a resource. Permissions are used to restrict what a token is allowed to do. See https://namespace.so/docs/security/permissions for a list of available resource types and actions.Protobuf type
namespace.cloud.iam.v1beta.Permission-
Method Summary
Modifier and TypeMethodDescriptionaddActions(String value) The set of actions allowed on the resource, e.g.addActionsBytes(com.google.protobuf.ByteString value) The set of actions allowed on the resource, e.g.addAllActions(Iterable<String> values) The set of actions allowed on the resource, e.g.build()clear()The set of actions allowed on the resource, e.g.The specific resource ID, or empty for all resources of this type.The type of resource this permission applies to, e.g.getActions(int index) The set of actions allowed on the resource, e.g.com.google.protobuf.ByteStringgetActionsBytes(int index) The set of actions allowed on the resource, e.g.intThe set of actions allowed on the resource, e.g.com.google.protobuf.ProtocolStringListThe set of actions allowed on the resource, e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe specific resource ID, or empty for all resources of this type.com.google.protobuf.ByteStringThe specific resource ID, or empty for all resources of this type.The type of resource this permission applies to, e.g.com.google.protobuf.ByteStringThe type of resource this permission applies to, e.g.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Authz.Permission other) setActions(int index, String value) The set of actions allowed on the resource, e.g.setResourceId(String value) The specific resource ID, or empty for all resources of this type.setResourceIdBytes(com.google.protobuf.ByteString value) The specific resource ID, or empty for all resources of this type.setResourceType(String value) The type of resource this permission applies to, e.g.setResourceTypeBytes(com.google.protobuf.ByteString value) The type of resource this permission applies to, e.g.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Authz.Permission.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Authz.Permission.Builder>
-
mergeFrom
public Authz.Permission.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Authz.Permission.Builder>- Throws:
IOException
-
getResourceType
The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable".
string resource_type = 1;- Specified by:
getResourceTypein interfaceAuthz.PermissionOrBuilder- Returns:
- The resourceType.
-
getResourceTypeBytes
public com.google.protobuf.ByteString getResourceTypeBytes()The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable".
string resource_type = 1;- Specified by:
getResourceTypeBytesin interfaceAuthz.PermissionOrBuilder- Returns:
- The bytes for resourceType.
-
setResourceType
The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable".
string resource_type = 1;- Parameters:
value- The resourceType to set.- Returns:
- This builder for chaining.
-
clearResourceType
The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable".
string resource_type = 1;- Returns:
- This builder for chaining.
-
setResourceTypeBytes
The type of resource this permission applies to, e.g. "instance", "vault/object", "token/revokable".
string resource_type = 1;- Parameters:
value- The bytes for resourceType to set.- Returns:
- This builder for chaining.
-
getResourceId
The specific resource ID, or empty for all resources of this type.
string resource_id = 2;- Specified by:
getResourceIdin interfaceAuthz.PermissionOrBuilder- Returns:
- The resourceId.
-
getResourceIdBytes
public com.google.protobuf.ByteString getResourceIdBytes()The specific resource ID, or empty for all resources of this type.
string resource_id = 2;- Specified by:
getResourceIdBytesin interfaceAuthz.PermissionOrBuilder- Returns:
- The bytes for resourceId.
-
setResourceId
The specific resource ID, or empty for all resources of this type.
string resource_id = 2;- Parameters:
value- The resourceId to set.- Returns:
- This builder for chaining.
-
clearResourceId
The specific resource ID, or empty for all resources of this type.
string resource_id = 2;- Returns:
- This builder for chaining.
-
setResourceIdBytes
The specific resource ID, or empty for all resources of this type.
string resource_id = 2;- Parameters:
value- The bytes for resourceId to set.- Returns:
- This builder for chaining.
-
getActionsList
public com.google.protobuf.ProtocolStringList getActionsList()The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Specified by:
getActionsListin interfaceAuthz.PermissionOrBuilder- Returns:
- A list containing the actions.
-
getActionsCount
public int getActionsCount()The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Specified by:
getActionsCountin interfaceAuthz.PermissionOrBuilder- Returns:
- The count of actions.
-
getActions
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Specified by:
getActionsin interfaceAuthz.PermissionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The actions at the given index.
-
getActionsBytes
public com.google.protobuf.ByteString getActionsBytes(int index) The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Specified by:
getActionsBytesin interfaceAuthz.PermissionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the actions at the given index.
-
setActions
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Parameters:
index- The index to set the value at.value- The actions to set.- Returns:
- This builder for chaining.
-
addActions
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Parameters:
value- The actions to add.- Returns:
- This builder for chaining.
-
addAllActions
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Parameters:
values- The actions to add.- Returns:
- This builder for chaining.
-
clearActions
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Returns:
- This builder for chaining.
-
addActionsBytes
The set of actions allowed on the resource, e.g. "create", "list", "describe".
repeated string actions = 3;- Parameters:
value- The bytes of the actions to add.- Returns:
- This builder for chaining.
-