Class IamPolicyAnalysisResult.Access.Builder (3.4.0)

public static final class IamPolicyAnalysisResult.Access.Builder extends GeneratedMessageV3.Builder<IamPolicyAnalysisResult.Access.Builder> implements IamPolicyAnalysisResult.AccessOrBuilder

An IAM role or permission under analysis.

Protobuf type google.cloud.asset.v1.IamPolicyAnalysisResult.Access

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IamPolicyAnalysisResult.Access build()
Returns
TypeDescription
IamPolicyAnalysisResult.Access

buildPartial()

public IamPolicyAnalysisResult.Access buildPartial()
Returns
TypeDescription
IamPolicyAnalysisResult.Access

clear()

public IamPolicyAnalysisResult.Access.Builder clear()
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder
Overrides

clearAnalysisState()

public IamPolicyAnalysisResult.Access.Builder clearAnalysisState()

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOneofAccess()

public IamPolicyAnalysisResult.Access.Builder clearOneofAccess()
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

clearPermission()

public IamPolicyAnalysisResult.Access.Builder clearPermission()

The permission.

string permission = 2;

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

clearRole()

public IamPolicyAnalysisResult.Access.Builder clearRole()

The role.

string role = 1;

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

clone()

public IamPolicyAnalysisResult.Access.Builder clone()
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder
Overrides

getAnalysisState()

public IamPolicyAnalysisState getAnalysisState()

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Returns
TypeDescription
IamPolicyAnalysisState

The analysisState.

getAnalysisStateBuilder()

public IamPolicyAnalysisState.Builder getAnalysisStateBuilder()

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Returns
TypeDescription
IamPolicyAnalysisState.Builder

getAnalysisStateOrBuilder()

public IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder()

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Returns
TypeDescription
IamPolicyAnalysisStateOrBuilder

getDefaultInstanceForType()

public IamPolicyAnalysisResult.Access getDefaultInstanceForType()
Returns
TypeDescription
IamPolicyAnalysisResult.Access

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getOneofAccessCase()

public IamPolicyAnalysisResult.Access.OneofAccessCase getOneofAccessCase()
Returns
TypeDescription
IamPolicyAnalysisResult.Access.OneofAccessCase

getPermission()

public String getPermission()

The permission.

string permission = 2;

Returns
TypeDescription
String

The permission.

getPermissionBytes()

public ByteString getPermissionBytes()

The permission.

string permission = 2;

Returns
TypeDescription
ByteString

The bytes for permission.

getRole()

public String getRole()

The role.

string role = 1;

Returns
TypeDescription
String

The role.

getRoleBytes()

public ByteString getRoleBytes()

The role.

string role = 1;

Returns
TypeDescription
ByteString

The bytes for role.

hasAnalysisState()

public boolean hasAnalysisState()

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Returns
TypeDescription
boolean

Whether the analysisState field is set.

hasPermission()

public boolean hasPermission()

The permission.

string permission = 2;

Returns
TypeDescription
boolean

Whether the permission field is set.

hasRole()

public boolean hasRole()

The role.

string role = 1;

Returns
TypeDescription
boolean

Whether the role field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnalysisState(IamPolicyAnalysisState value)

public IamPolicyAnalysisResult.Access.Builder mergeAnalysisState(IamPolicyAnalysisState value)

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Parameter
NameDescription
valueIamPolicyAnalysisState
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

mergeFrom(IamPolicyAnalysisResult.Access other)

public IamPolicyAnalysisResult.Access.Builder mergeFrom(IamPolicyAnalysisResult.Access other)
Parameter
NameDescription
otherIamPolicyAnalysisResult.Access
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnalysisState(IamPolicyAnalysisState value)

public IamPolicyAnalysisResult.Access.Builder setAnalysisState(IamPolicyAnalysisState value)

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Parameter
NameDescription
valueIamPolicyAnalysisState
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

setAnalysisState(IamPolicyAnalysisState.Builder builderForValue)

public IamPolicyAnalysisResult.Access.Builder setAnalysisState(IamPolicyAnalysisState.Builder builderForValue)

The analysis state of this access.

.google.cloud.asset.v1.IamPolicyAnalysisState analysis_state = 3;

Parameter
NameDescription
builderForValueIamPolicyAnalysisState.Builder
Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPermission(String value)

public IamPolicyAnalysisResult.Access.Builder setPermission(String value)

The permission.

string permission = 2;

Parameter
NameDescription
valueString

The permission to set.

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

setPermissionBytes(ByteString value)

public IamPolicyAnalysisResult.Access.Builder setPermissionBytes(ByteString value)

The permission.

string permission = 2;

Parameter
NameDescription
valueByteString

The bytes for permission to set.

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

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

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

setRole(String value)

public IamPolicyAnalysisResult.Access.Builder setRole(String value)

The role.

string role = 1;

Parameter
NameDescription
valueString

The role to set.

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

setRoleBytes(ByteString value)

public IamPolicyAnalysisResult.Access.Builder setRoleBytes(ByteString value)

The role.

string role = 1;

Parameter
NameDescription
valueByteString

The bytes for role to set.

Returns
TypeDescription
IamPolicyAnalysisResult.Access.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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