- 1.57.0 (latest)
 - 1.56.3
 - 1.55.0
 - 1.54.2
 - 1.53.0
 - 1.52.0
 - 1.51.0
 - 1.49.1
 - 1.48.0
 - 1.47.0
 - 1.46.0
 - 1.45.1
 - 1.44.0
 - 1.43.0
 - 1.41.0
 - 1.40.1
 - 1.39.0
 - 1.38.0
 - 1.37.0
 - 1.36.0
 - 1.35.0
 - 1.34.1
 - 1.33.0
 - 1.32.1
 - 1.31.0
 - 1.29.0
 - 1.28.0
 - 1.27.0
 - 1.25.0
 - 1.24.0
 - 1.23.0
 - 1.22.0
 - 1.21.0
 - 1.20.1
 - 1.19.0
 - 1.18.1
 - 1.17.1
 - 1.16.1
 - 1.10.0
 - 1.9.3
 - 1.8.0
 - 1.7.0
 - 1.6.23
 - 1.5.1
 - 1.4.1
 - 1.3.4
 - 1.2.12
 
public static final class PrincipalAccessBoundaryPolicyRule.Builder extends GeneratedMessageV3.Builder<PrincipalAccessBoundaryPolicyRule.Builder> implements PrincipalAccessBoundaryPolicyRuleOrBuilderPrincipal access boundary policy rule that defines the resource boundary.
 Protobuf type google.iam.v3.PrincipalAccessBoundaryPolicyRule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PrincipalAccessBoundaryPolicyRule.BuilderImplements
PrincipalAccessBoundaryPolicyRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllResources(Iterable<String> values)
public PrincipalAccessBoundaryPolicyRule.Builder addAllResources(Iterable<String> values)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<String>The resources to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrincipalAccessBoundaryPolicyRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
addResources(String value)
public PrincipalAccessBoundaryPolicyRule.Builder addResources(String value)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe resources to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
addResourcesBytes(ByteString value)
public PrincipalAccessBoundaryPolicyRule.Builder addResourcesBytes(ByteString value)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes of the resources to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
build()
public PrincipalAccessBoundaryPolicyRule build()| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule | 
        |
buildPartial()
public PrincipalAccessBoundaryPolicyRule buildPartial()| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule | 
        |
clear()
public PrincipalAccessBoundaryPolicyRule.Builder clear()| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
clearDescription()
public PrincipalAccessBoundaryPolicyRule.Builder clearDescription()Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
 string description = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
clearEffect()
public PrincipalAccessBoundaryPolicyRule.Builder clearEffect()Required. The access relationship of principals to the resources in this rule.
 
 .google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public PrincipalAccessBoundaryPolicyRule.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
clearOneof(Descriptors.OneofDescriptor oneof)
public PrincipalAccessBoundaryPolicyRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
clearResources()
public PrincipalAccessBoundaryPolicyRule.Builder clearResources()Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
clone()
public PrincipalAccessBoundaryPolicyRule.Builder clone()| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
getDefaultInstanceForType()
public PrincipalAccessBoundaryPolicyRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule | 
        |
getDescription()
public String getDescription()Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
 string description = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The description.  | 
      
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
 string description = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for description.  | 
      
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getEffect()
public PrincipalAccessBoundaryPolicyRule.Effect getEffect()Required. The access relationship of principals to the resources in this rule.
 
 .google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Effect | 
        The effect.  | 
      
getEffectValue()
public int getEffectValue()Required. The access relationship of principals to the resources in this rule.
 
 .google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        The enum numeric value on the wire for effect.  | 
      
getResources(int index)
public String getResources(int index)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        The resources at the given index.  | 
      
getResourcesBytes(int index)
public ByteString getResourcesBytes(int index)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes of the resources at the given index.  | 
      
getResourcesCount()
public int getResourcesCount()Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
int | 
        The count of resources.  | 
      
getResourcesList()
public ProtocolStringList getResourcesList()Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description | 
ProtocolStringList | 
        A list containing the resources.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeFrom(PrincipalAccessBoundaryPolicyRule other)
public PrincipalAccessBoundaryPolicyRule.Builder mergeFrom(PrincipalAccessBoundaryPolicyRule other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        PrincipalAccessBoundaryPolicyRule | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PrincipalAccessBoundaryPolicyRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public PrincipalAccessBoundaryPolicyRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrincipalAccessBoundaryPolicyRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
setDescription(String value)
public PrincipalAccessBoundaryPolicyRule.Builder setDescription(String value)Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
 string description = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
setDescriptionBytes(ByteString value)
public PrincipalAccessBoundaryPolicyRule.Builder setDescriptionBytes(ByteString value)Optional. The description of the principal access boundary policy rule. Must be less than or equal to 256 characters.
 string description = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
setEffect(PrincipalAccessBoundaryPolicyRule.Effect value)
public PrincipalAccessBoundaryPolicyRule.Builder setEffect(PrincipalAccessBoundaryPolicyRule.Effect value)Required. The access relationship of principals to the resources in this rule.
 
 .google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        PrincipalAccessBoundaryPolicyRule.EffectThe effect to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
setEffectValue(int value)
public PrincipalAccessBoundaryPolicyRule.Builder setEffectValue(int value)Required. The access relationship of principals to the resources in this rule.
 
 .google.iam.v3.PrincipalAccessBoundaryPolicyRule.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe enum numeric value on the wire for effect to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public PrincipalAccessBoundaryPolicyRule.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrincipalAccessBoundaryPolicyRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |
setResources(int index, String value)
public PrincipalAccessBoundaryPolicyRule.Builder setResources(int index, String value)Required. A list of Resource Manager resources. If a resource is listed in the rule, then the rule applies for that resource and its descendants. The number of resources in a policy is limited to 500 across all rules in the policy.
The following resource types are supported:
- Organizations, such as
//cloudresourcemanager.googleapis.com/organizations/123. - Folders, such as 
//cloudresourcemanager.googleapis.com/folders/123. - Projects, such as 
//cloudresourcemanager.googleapis.com/projects/123or//cloudresourcemanager.googleapis.com/projects/my-project-id. 
 repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        StringThe resources to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final PrincipalAccessBoundaryPolicyRule.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
PrincipalAccessBoundaryPolicyRule.Builder | 
        |