Package com.google.iam.v3beta
Class AccessPolicyRule.Operation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Operation.Builder>
com.google.iam.v3beta.AccessPolicyRule.Operation.Builder
- All Implemented Interfaces:
AccessPolicyRule.OperationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AccessPolicyRule.Operation
public static final class AccessPolicyRule.Operation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Operation.Builder>
implements AccessPolicyRule.OperationOrBuilder
Attributes that are used to determine whether this rule applies to a request.Protobuf type
google.iam.v3beta.AccessPolicyRule.Operation-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcludedPermissions(Iterable<String> values) Optional.addAllPermissions(Iterable<String> values) Optional.addExcludedPermissions(String value) Optional.addExcludedPermissionsBytes(com.google.protobuf.ByteString value) Optional.addPermissions(String value) Optional.addPermissionsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExcludedPermissions(int index) Optional.com.google.protobuf.ByteStringgetExcludedPermissionsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getPermissions(int index) Optional.com.google.protobuf.ByteStringgetPermissionsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExcludedPermissions(int index, String value) Optional.setPermissions(int index, String value) Optional.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<AccessPolicyRule.Operation.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<AccessPolicyRule.Operation.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<AccessPolicyRule.Operation.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<AccessPolicyRule.Operation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AccessPolicyRule.Operation.Builder>
-
mergeFrom
public AccessPolicyRule.Operation.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<AccessPolicyRule.Operation.Builder>- Throws:
IOException
-
getPermissionsList
public com.google.protobuf.ProtocolStringList getPermissionsList()Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPermissionsListin interfaceAccessPolicyRule.OperationOrBuilder- Returns:
- A list containing the permissions.
-
getPermissionsCount
public int getPermissionsCount()Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPermissionsCountin interfaceAccessPolicyRule.OperationOrBuilder- Returns:
- The count of permissions.
-
getPermissions
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPermissionsin interfaceAccessPolicyRule.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The permissions at the given index.
-
getPermissionsBytes
public com.google.protobuf.ByteString getPermissionsBytes(int index) Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPermissionsBytesin interfaceAccessPolicyRule.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the permissions at the given index.
-
setPermissions
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The permissions to set.- Returns:
- This builder for chaining.
-
addPermissions
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The permissions to add.- Returns:
- This builder for chaining.
-
addAllPermissions
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The permissions to add.- Returns:
- This builder for chaining.
-
clearPermissions
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addPermissionsBytes
Optional. The permissions that are explicitly affected by this rule. Each permission uses the format `{service_fqdn}/{resource}.{verb}`, where `{service_fqdn}` is the fully qualified domain name for the service. Currently supported permissions are as follows: * `eventarc.googleapis.com/messageBuses.publish`.repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the permissions to add.- Returns:
- This builder for chaining.
-
getExcludedPermissionsList
public com.google.protobuf.ProtocolStringList getExcludedPermissionsList()Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExcludedPermissionsListin interfaceAccessPolicyRule.OperationOrBuilder- Returns:
- A list containing the excludedPermissions.
-
getExcludedPermissionsCount
public int getExcludedPermissionsCount()Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExcludedPermissionsCountin interfaceAccessPolicyRule.OperationOrBuilder- Returns:
- The count of excludedPermissions.
-
getExcludedPermissions
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExcludedPermissionsin interfaceAccessPolicyRule.OperationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludedPermissions at the given index.
-
getExcludedPermissionsBytes
public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index) Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExcludedPermissionsBytesin interfaceAccessPolicyRule.OperationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludedPermissions at the given index.
-
setExcludedPermissions
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The excludedPermissions to set.- Returns:
- This builder for chaining.
-
addExcludedPermissions
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The excludedPermissions to add.- Returns:
- This builder for chaining.
-
addAllExcludedPermissions
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The excludedPermissions to add.- Returns:
- This builder for chaining.
-
clearExcludedPermissions
Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addExcludedPermissionsBytes
public AccessPolicyRule.Operation.Builder addExcludedPermissionsBytes(com.google.protobuf.ByteString value) Optional. Specifies the permissions that this rule excludes from the set of affected permissions given by `permissions`. If a permission appears in `permissions` _and_ in `excluded_permissions` then it will _not_ be subject to the policy effect. The excluded permissions can be specified using the same syntax as `permissions`.
repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the excludedPermissions to add.- Returns:
- This builder for chaining.
-