Class AnalyzeIamPolicyResponse.Builder (3.4.0)

public static final class AnalyzeIamPolicyResponse.Builder extends GeneratedMessageV3.Builder<AnalyzeIamPolicyResponse.Builder> implements AnalyzeIamPolicyResponseOrBuilder

A response message for AssetService.AnalyzeIamPolicy.

Protobuf type google.cloud.asset.v1.AnalyzeIamPolicyResponse

Static Methods

getDescriptor()

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

Methods

addAllServiceAccountImpersonationAnalysis(Iterable<? extends AnalyzeIamPolicyResponse.IamPolicyAnalysis> values)

public AnalyzeIamPolicyResponse.Builder addAllServiceAccountImpersonationAnalysis(Iterable<? extends AnalyzeIamPolicyResponse.IamPolicyAnalysis> values)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis>
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAccountImpersonationAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

public AnalyzeIamPolicyResponse.Builder addServiceAccountImpersonationAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
valueAnalyzeIamPolicyResponse.IamPolicyAnalysis
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

addServiceAccountImpersonationAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

public AnalyzeIamPolicyResponse.Builder addServiceAccountImpersonationAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
builderForValueAnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

addServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

public AnalyzeIamPolicyResponse.Builder addServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameters
NameDescription
indexint
valueAnalyzeIamPolicyResponse.IamPolicyAnalysis
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

addServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

public AnalyzeIamPolicyResponse.Builder addServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameters
NameDescription
indexint
builderForValueAnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

addServiceAccountImpersonationAnalysisBuilder()

public AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder

addServiceAccountImpersonationAnalysisBuilder(int index)

public AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder addServiceAccountImpersonationAnalysisBuilder(int index)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder

build()

public AnalyzeIamPolicyResponse build()
Returns
TypeDescription
AnalyzeIamPolicyResponse

buildPartial()

public AnalyzeIamPolicyResponse buildPartial()
Returns
TypeDescription
AnalyzeIamPolicyResponse

clear()

public AnalyzeIamPolicyResponse.Builder clear()
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFullyExplored()

public AnalyzeIamPolicyResponse.Builder clearFullyExplored()

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

bool fully_explored = 3;

Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

This builder for chaining.

clearMainAnalysis()

public AnalyzeIamPolicyResponse.Builder clearMainAnalysis()

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountImpersonationAnalysis()

public AnalyzeIamPolicyResponse.Builder clearServiceAccountImpersonationAnalysis()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

clone()

public AnalyzeIamPolicyResponse.Builder clone()
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeIamPolicyResponse getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeIamPolicyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFullyExplored()

public boolean getFullyExplored()

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

bool fully_explored = 3;

Returns
TypeDescription
boolean

The fullyExplored.

getMainAnalysis()

public AnalyzeIamPolicyResponse.IamPolicyAnalysis getMainAnalysis()

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis

The mainAnalysis.

getMainAnalysisBuilder()

public AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getMainAnalysisBuilder()

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder

getMainAnalysisOrBuilder()

public AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getMainAnalysisOrBuilder()

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder

getServiceAccountImpersonationAnalysis(int index)

public AnalyzeIamPolicyResponse.IamPolicyAnalysis getServiceAccountImpersonationAnalysis(int index)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis

getServiceAccountImpersonationAnalysisBuilder(int index)

public AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder getServiceAccountImpersonationAnalysisBuilder(int index)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder

getServiceAccountImpersonationAnalysisBuilderList()

public List<AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder> getServiceAccountImpersonationAnalysisBuilderList()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
List<Builder>

getServiceAccountImpersonationAnalysisCount()

public int getServiceAccountImpersonationAnalysisCount()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
int

getServiceAccountImpersonationAnalysisList()

public List<AnalyzeIamPolicyResponse.IamPolicyAnalysis> getServiceAccountImpersonationAnalysisList()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Returns
TypeDescription
List<IamPolicyAnalysis>

getServiceAccountImpersonationAnalysisOrBuilder(int index)

public AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder getServiceAccountImpersonationAnalysisOrBuilder(int index)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder

getServiceAccountImpersonationAnalysisOrBuilderList()

public List<? extends AnalyzeIamPolicyResponse.IamPolicyAnalysisOrBuilder> getServiceAccountImpersonationAnalysisOrBuilderList()

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

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

hasMainAnalysis()

public boolean hasMainAnalysis()

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Returns
TypeDescription
boolean

Whether the mainAnalysis field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeIamPolicyResponse other)

public AnalyzeIamPolicyResponse.Builder mergeFrom(AnalyzeIamPolicyResponse other)
Parameter
NameDescription
otherAnalyzeIamPolicyResponse
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

public AnalyzeIamPolicyResponse.Builder mergeMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Parameter
NameDescription
valueAnalyzeIamPolicyResponse.IamPolicyAnalysis
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeServiceAccountImpersonationAnalysis(int index)

public AnalyzeIamPolicyResponse.Builder removeServiceAccountImpersonationAnalysis(int index)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFullyExplored(boolean value)

public AnalyzeIamPolicyResponse.Builder setFullyExplored(boolean value)

Represents whether all entries in the main_analysis and service_account_impersonation_analysis have been fully explored to answer the query in the request.

bool fully_explored = 3;

Parameter
NameDescription
valueboolean

The fullyExplored to set.

Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

This builder for chaining.

setMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

public AnalyzeIamPolicyResponse.Builder setMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Parameter
NameDescription
valueAnalyzeIamPolicyResponse.IamPolicyAnalysis
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

setMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

public AnalyzeIamPolicyResponse.Builder setMainAnalysis(AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

The main analysis that matches the original request.

.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis main_analysis = 1;

Parameter
NameDescription
builderForValueAnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

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

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

setServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

public AnalyzeIamPolicyResponse.Builder setServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis value)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameters
NameDescription
indexint
valueAnalyzeIamPolicyResponse.IamPolicyAnalysis
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

setServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

public AnalyzeIamPolicyResponse.Builder setServiceAccountImpersonationAnalysis(int index, AnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder builderForValue)

The service account impersonation analysis if [AnalyzeIamPolicyRequest.analyze_service_account_impersonation][] is enabled.

repeated .google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis service_account_impersonation_analysis = 2;

Parameters
NameDescription
indexint
builderForValueAnalyzeIamPolicyResponse.IamPolicyAnalysis.Builder
Returns
TypeDescription
AnalyzeIamPolicyResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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