Class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder (3.41.0)

public static final class AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder extends GeneratedMessageV3.Builder<AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder> implements AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicyOrBuilder

The IAM policies governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Protobuf type google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFolders(Iterable<String> values)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder addAllFolders(Iterable<String> values)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valuesIterable<String>

The folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

addFolders(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder addFolders(String value)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valueString

The folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

addFoldersBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder addFoldersBytes(ByteString value)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
valueByteString

The bytes of the folders to add.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

build()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy build()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

buildPartial()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy buildPartial()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

clear()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clear()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

clearAttachedResource()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearAttachedResource()

The full resource name of the resource on which this IAM policy is set. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Cloud Asset Inventory Resource Name Format for more information.

string attached_resource = 1;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

clearFolders()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearFolders()

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

clearOrganization()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearOrganization()

The organization that this IAM policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

clearPolicy()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearPolicy()

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

clearProject()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clearProject()

The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the IAM policy belongs to a project.

string project = 5;

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

clone()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder clone()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

getAttachedResource()

public String getAttachedResource()

The full resource name of the resource on which this IAM policy is set. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Cloud Asset Inventory Resource Name Format for more information.

string attached_resource = 1;

Returns
TypeDescription
String

The attachedResource.

getAttachedResourceBytes()

public ByteString getAttachedResourceBytes()

The full resource name of the resource on which this IAM policy is set. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Cloud Asset Inventory Resource Name Format for more information.

string attached_resource = 1;

Returns
TypeDescription
ByteString

The bytes for attachedResource.

getDefaultInstanceForType()

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolders(int index)

public String getFolders(int index)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The folders at the given index.

getFoldersBytes(int index)

public ByteString getFoldersBytes(int index)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the folders at the given index.

getFoldersCount()

public int getFoldersCount()

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
int

The count of folders.

getFoldersList()

public ProtocolStringList getFoldersList()

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the folders.

getOrganization()

public String getOrganization()

The organization that this IAM policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

The organization that this IAM policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to an organization.

string organization = 7;

Returns
TypeDescription
ByteString

The bytes for organization.

getPolicy()

public Policy getPolicy()

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Returns
TypeDescription
com.google.iam.v1.Policy

The policy.

getPolicyBuilder()

public Policy.Builder getPolicyBuilder()

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Returns
TypeDescription
com.google.iam.v1.Policy.Builder

getPolicyOrBuilder()

public PolicyOrBuilder getPolicyOrBuilder()

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Returns
TypeDescription
com.google.iam.v1.PolicyOrBuilder

getProject()

public String getProject()

The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the IAM policy belongs to a project.

string project = 5;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the IAM policy belongs to a project.

string project = 5;

Returns
TypeDescription
ByteString

The bytes for project.

hasPolicy()

public boolean hasPolicy()

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Returns
TypeDescription
boolean

Whether the policy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy other)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeFrom(AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy other)
Parameter
NameDescription
otherAnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

mergePolicy(Policy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergePolicy(Policy value)

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Parameter
NameDescription
valuecom.google.iam.v1.Policy
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

setAttachedResource(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setAttachedResource(String value)

The full resource name of the resource on which this IAM policy is set. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Cloud Asset Inventory Resource Name Format for more information.

string attached_resource = 1;

Parameter
NameDescription
valueString

The attachedResource to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setAttachedResourceBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setAttachedResourceBytes(ByteString value)

The full resource name of the resource on which this IAM policy is set. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Cloud Asset Inventory Resource Name Format for more information.

string attached_resource = 1;

Parameter
NameDescription
valueByteString

The bytes for attachedResource to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

setFolders(int index, String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setFolders(int index, String value)

The folder(s) that this IAM policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The folders to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setOrganization(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setOrganization(String value)

The organization that this IAM policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to an organization.

string organization = 7;

Parameter
NameDescription
valueString

The organization to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setOrganizationBytes(ByteString value)

The organization that this IAM policy belongs to, in the format of organizations/{ORGANIZATION_NUMBER}. This field is available when the IAM policy belongs (directly or cascadingly) to an organization.

string organization = 7;

Parameter
NameDescription
valueByteString

The bytes for organization to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setPolicy(Policy value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setPolicy(Policy value)

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Parameter
NameDescription
valuecom.google.iam.v1.Policy
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

setPolicy(Policy.Builder builderForValue)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setPolicy(Policy.Builder builderForValue)

The IAM policy directly set on the given resource.

.google.iam.v1.Policy policy = 2;

Parameter
NameDescription
builderForValuecom.google.iam.v1.Policy.Builder
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

setProject(String value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setProject(String value)

The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the IAM policy belongs to a project.

string project = 5;

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setProjectBytes(ByteString value)

The project that this IAM policy belongs to, in the format of projects/{PROJECT_NUMBER}. This field is available when the IAM policy belongs to a project.

string project = 5;

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.Builder
Overrides