Class AnalyzeOrgPoliciesResponse.Builder (3.33.0)

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

The response message for AssetService.AnalyzeOrgPolicies.

Protobuf type google.cloud.asset.v1.AnalyzeOrgPoliciesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllOrgPolicyResults(Iterable<? extends AnalyzeOrgPoliciesResponse.OrgPolicyResult> values)

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

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult>
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

addOrgPolicyResults(AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

public AnalyzeOrgPoliciesResponse.Builder addOrgPolicyResults(AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
value AnalyzeOrgPoliciesResponse.OrgPolicyResult
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

addOrgPolicyResults(AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.Builder addOrgPolicyResults(AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
builderForValue AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

addOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

public AnalyzeOrgPoliciesResponse.Builder addOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameters
Name Description
index int
value AnalyzeOrgPoliciesResponse.OrgPolicyResult
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

addOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.Builder addOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameters
Name Description
index int
builderForValue AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

addOrgPolicyResultsBuilder()

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addOrgPolicyResultsBuilder()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addOrgPolicyResultsBuilder(int index)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder addOrgPolicyResultsBuilder(int index)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeOrgPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

build()

public AnalyzeOrgPoliciesResponse build()
Returns
Type Description
AnalyzeOrgPoliciesResponse

buildPartial()

public AnalyzeOrgPoliciesResponse buildPartial()
Returns
Type Description
AnalyzeOrgPoliciesResponse

clear()

public AnalyzeOrgPoliciesResponse.Builder clear()
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

clearConstraint()

public AnalyzeOrgPoliciesResponse.Builder clearConstraint()

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnalyzeOrgPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

clearNextPageToken()

public AnalyzeOrgPoliciesResponse.Builder clearNextPageToken()

The page token to fetch the next page for AnalyzeOrgPoliciesResponse.org_policy_results.

string next_page_token = 3;

Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeOrgPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

clearOrgPolicyResults()

public AnalyzeOrgPoliciesResponse.Builder clearOrgPolicyResults()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

clone()

public AnalyzeOrgPoliciesResponse.Builder clone()
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

getConstraint()

public AnalyzerOrgPolicyConstraint getConstraint()

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint

The constraint.

getConstraintBuilder()

public AnalyzerOrgPolicyConstraint.Builder getConstraintBuilder()

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraint.Builder

getConstraintOrBuilder()

public AnalyzerOrgPolicyConstraintOrBuilder getConstraintOrBuilder()

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Returns
Type Description
AnalyzerOrgPolicyConstraintOrBuilder

getDefaultInstanceForType()

public AnalyzeOrgPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
AnalyzeOrgPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The page token to fetch the next page for AnalyzeOrgPoliciesResponse.org_policy_results.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The page token to fetch the next page for AnalyzeOrgPoliciesResponse.org_policy_results.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getOrgPolicyResults(int index)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult getOrgPolicyResults(int index)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPoliciesResponse.OrgPolicyResult

getOrgPolicyResultsBuilder(int index)

public AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder getOrgPolicyResultsBuilder(int index)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder

getOrgPolicyResultsBuilderList()

public List<AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder> getOrgPolicyResultsBuilderList()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
List<Builder>

getOrgPolicyResultsCount()

public int getOrgPolicyResultsCount()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
int

getOrgPolicyResultsList()

public List<AnalyzeOrgPoliciesResponse.OrgPolicyResult> getOrgPolicyResultsList()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
List<OrgPolicyResult>

getOrgPolicyResultsOrBuilder(int index)

public AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder getOrgPolicyResultsOrBuilder(int index)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder

getOrgPolicyResultsOrBuilderList()

public List<? extends AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder> getOrgPolicyResultsOrBuilderList()

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Returns
Type Description
List<? extends com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResultOrBuilder>

hasConstraint()

public boolean hasConstraint()

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Returns
Type Description
boolean

Whether the constraint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConstraint(AnalyzerOrgPolicyConstraint value)

public AnalyzeOrgPoliciesResponse.Builder mergeConstraint(AnalyzerOrgPolicyConstraint value)

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

mergeFrom(AnalyzeOrgPoliciesResponse other)

public AnalyzeOrgPoliciesResponse.Builder mergeFrom(AnalyzeOrgPoliciesResponse other)
Parameter
Name Description
other AnalyzeOrgPoliciesResponse
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeOrgPoliciesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzeOrgPoliciesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

removeOrgPolicyResults(int index)

public AnalyzeOrgPoliciesResponse.Builder removeOrgPolicyResults(int index)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameter
Name Description
index int
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

setConstraint(AnalyzerOrgPolicyConstraint value)

public AnalyzeOrgPoliciesResponse.Builder setConstraint(AnalyzerOrgPolicyConstraint value)

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Parameter
Name Description
value AnalyzerOrgPolicyConstraint
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

setConstraint(AnalyzerOrgPolicyConstraint.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.Builder setConstraint(AnalyzerOrgPolicyConstraint.Builder builderForValue)

The definition of the constraint in the request.

.google.cloud.asset.v1.AnalyzerOrgPolicyConstraint constraint = 2;

Parameter
Name Description
builderForValue AnalyzerOrgPolicyConstraint.Builder
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeOrgPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

setNextPageToken(String value)

public AnalyzeOrgPoliciesResponse.Builder setNextPageToken(String value)

The page token to fetch the next page for AnalyzeOrgPoliciesResponse.org_policy_results.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public AnalyzeOrgPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

The page token to fetch the next page for AnalyzeOrgPoliciesResponse.org_policy_results.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

This builder for chaining.

setOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

public AnalyzeOrgPoliciesResponse.Builder setOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult value)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameters
Name Description
index int
value AnalyzeOrgPoliciesResponse.OrgPolicyResult
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

setOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

public AnalyzeOrgPoliciesResponse.Builder setOrgPolicyResults(int index, AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder builderForValue)

The organization policies under the AnalyzeOrgPoliciesRequest.scope with the AnalyzeOrgPoliciesRequest.constraint.

repeated .google.cloud.asset.v1.AnalyzeOrgPoliciesResponse.OrgPolicyResult org_policy_results = 1;

Parameters
Name Description
index int
builderForValue AnalyzeOrgPoliciesResponse.OrgPolicyResult.Builder
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder

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

public AnalyzeOrgPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeOrgPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeOrgPoliciesResponse.Builder
Overrides