Class AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder (3.45.0)

public static final class AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder extends GeneratedMessageV3.Builder<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder> implements AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder

The organization policy result to the query.

Protobuf type google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult

Static Methods

getDescriptor()

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

Methods

addAllFolders(Iterable<String> values)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addAllFolders(Iterable<String> values)

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

repeated string folders = 4;

Parameter
NameDescription
valuesIterable<String>

The folders to add.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

addAllPolicyBundle(Iterable<? extends AnalyzerOrgPolicy> values)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addAllPolicyBundle(Iterable<? extends AnalyzerOrgPolicy> values)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicy>
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addFolders(String value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addFolders(String value)

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

repeated string folders = 4;

Parameter
NameDescription
valueString

The folders to add.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

addFoldersBytes(ByteString value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addFoldersBytes(ByteString value)

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

repeated string folders = 4;

Parameter
NameDescription
valueByteString

The bytes of the folders to add.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

addPolicyBundle(AnalyzerOrgPolicy value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
valueAnalyzerOrgPolicy
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addPolicyBundle(AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
builderForValueAnalyzerOrgPolicy.Builder
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addPolicyBundle(int index, AnalyzerOrgPolicy value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(int index, AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameters
NameDescription
indexint
valueAnalyzerOrgPolicy
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameters
NameDescription
indexint
builderForValueAnalyzerOrgPolicy.Builder
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addPolicyBundleBuilder()

public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
AnalyzerOrgPolicy.Builder

addPolicyBundleBuilder(int index)

public AnalyzerOrgPolicy.Builder addPolicyBundleBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerOrgPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult build()
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult

buildPartial()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult buildPartial()
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult

clear()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clear()
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

clearConsolidatedPolicy()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearConsolidatedPolicy()

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

clearField(Descriptors.FieldDescriptor field)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

clearFolders()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearFolders()

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

repeated string folders = 4;

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

clearOrganization()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearOrganization()

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

string organization = 5;

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

clearPolicyBundle()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearPolicyBundle()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

clearProject()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clearProject()

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

string project = 3;

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

clone()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder clone()
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

getConsolidatedPolicy()

public AnalyzerOrgPolicy getConsolidatedPolicy()

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Returns
TypeDescription
AnalyzerOrgPolicy

The consolidatedPolicy.

getConsolidatedPolicyBuilder()

public AnalyzerOrgPolicy.Builder getConsolidatedPolicyBuilder()

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Returns
TypeDescription
AnalyzerOrgPolicy.Builder

getConsolidatedPolicyOrBuilder()

public AnalyzerOrgPolicyOrBuilder getConsolidatedPolicyOrBuilder()

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Returns
TypeDescription
AnalyzerOrgPolicyOrBuilder

getDefaultInstanceForType()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFolders(int index)

public String getFolders(int index)

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

repeated string folders = 4;

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 consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 4;

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 consolidated policy belongs to, in the format of folders/{FOLDER_NUMBER}. This field is available when the consolidated policy belongs (directly or cascadingly) to one or more folders.

repeated string folders = 4;

Returns
TypeDescription
int

The count of folders.

getFoldersList()

public ProtocolStringList getFoldersList()

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

repeated string folders = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the folders.

getOrganization()

public String getOrganization()

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

string organization = 5;

Returns
TypeDescription
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

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

string organization = 5;

Returns
TypeDescription
ByteString

The bytes for organization.

getPolicyBundle(int index)

public AnalyzerOrgPolicy getPolicyBundle(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerOrgPolicy

getPolicyBundleBuilder(int index)

public AnalyzerOrgPolicy.Builder getPolicyBundleBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerOrgPolicy.Builder

getPolicyBundleBuilderList()

public List<AnalyzerOrgPolicy.Builder> getPolicyBundleBuilderList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
List<Builder>

getPolicyBundleCount()

public int getPolicyBundleCount()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
int

getPolicyBundleList()

public List<AnalyzerOrgPolicy> getPolicyBundleList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
List<AnalyzerOrgPolicy>

getPolicyBundleOrBuilder(int index)

public AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzerOrgPolicyOrBuilder

getPolicyBundleOrBuilderList()

public List<? extends AnalyzerOrgPolicyOrBuilder> getPolicyBundleOrBuilderList()

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Returns
TypeDescription
List<? extends com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder>

getProject()

public String getProject()

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

string project = 3;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

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

string project = 3;

Returns
TypeDescription
ByteString

The bytes for project.

hasConsolidatedPolicy()

public boolean hasConsolidatedPolicy()

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Returns
TypeDescription
boolean

Whether the consolidatedPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConsolidatedPolicy(AnalyzerOrgPolicy value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeConsolidatedPolicy(AnalyzerOrgPolicy value)

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Parameter
NameDescription
valueAnalyzerOrgPolicy
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

mergeFrom(AnalyzeOrgPoliciesResponse.OrgPolicyResult other)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeFrom(AnalyzeOrgPoliciesResponse.OrgPolicyResult other)
Parameter
NameDescription
otherAnalyzeOrgPoliciesResponse.OrgPolicyResult
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides

removePolicyBundle(int index)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder removePolicyBundle(int index)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

setConsolidatedPolicy(AnalyzerOrgPolicy value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setConsolidatedPolicy(AnalyzerOrgPolicy value)

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Parameter
NameDescription
valueAnalyzerOrgPolicy
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

setConsolidatedPolicy(AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setConsolidatedPolicy(AnalyzerOrgPolicy.Builder builderForValue)

The consolidated organization policy for the analyzed resource. The consolidated organization policy is computed by merging and evaluating [AnalyzeOrgPoliciesResponse.policy_bundle][]. The evaluation will respect the organization policy hierarchy rules.

.google.cloud.asset.v1.AnalyzerOrgPolicy consolidated_policy = 1;

Parameter
NameDescription
builderForValueAnalyzerOrgPolicy.Builder
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFolders(int index, String value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setFolders(int index, String value)

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

repeated string folders = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The folders to set.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

setOrganization(String value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setOrganization(String value)

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

string organization = 5;

Parameter
NameDescription
valueString

The organization to set.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setOrganizationBytes(ByteString value)

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

string organization = 5;

Parameter
NameDescription
valueByteString

The bytes for organization to set.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

setPolicyBundle(int index, AnalyzerOrgPolicy value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setPolicyBundle(int index, AnalyzerOrgPolicy value)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameters
NameDescription
indexint
valueAnalyzerOrgPolicy
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

setPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setPolicyBundle(int index, AnalyzerOrgPolicy.Builder builderForValue)

The ordered list of all organization policies from the [AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.attached_resource][]. to the scope specified in the request.

If the constraint is defined with default policy, it will also appear in the list.

repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;

Parameters
NameDescription
indexint
builderForValueAnalyzerOrgPolicy.Builder
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

setProject(String value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setProject(String value)

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

string project = 3;

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setProjectBytes(ByteString value)

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

string project = 3;

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Overrides