Class IamPolicyAnalysisResult.Identity.Builder (3.87.0)

public static final class IamPolicyAnalysisResult.Identity.Builder extends GeneratedMessage.Builder<IamPolicyAnalysisResult.Identity.Builder> implements IamPolicyAnalysisResult.IdentityOrBuilder

An identity under analysis.

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

Static Methods

getDescriptor()

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

Methods

build()

public IamPolicyAnalysisResult.Identity build()
Returns
Type Description
IamPolicyAnalysisResult.Identity

buildPartial()

public IamPolicyAnalysisResult.Identity buildPartial()
Returns
Type Description
IamPolicyAnalysisResult.Identity

clear()

public IamPolicyAnalysisResult.Identity.Builder clear()
Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder
Overrides

clearAnalysisState()

public IamPolicyAnalysisResult.Identity.Builder clearAnalysisState()

The analysis state of this identity.

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

Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

clearName()

public IamPolicyAnalysisResult.Identity.Builder clearName()

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers

string name = 1;

Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

This builder for chaining.

getAnalysisState()

public IamPolicyAnalysisState getAnalysisState()

The analysis state of this identity.

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

Returns
Type Description
IamPolicyAnalysisState

The analysisState.

getAnalysisStateBuilder()

public IamPolicyAnalysisState.Builder getAnalysisStateBuilder()

The analysis state of this identity.

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

Returns
Type Description
IamPolicyAnalysisState.Builder

getAnalysisStateOrBuilder()

public IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder()

The analysis state of this identity.

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

Returns
Type Description
IamPolicyAnalysisStateOrBuilder

getDefaultInstanceForType()

public IamPolicyAnalysisResult.Identity getDefaultInstanceForType()
Returns
Type Description
IamPolicyAnalysisResult.Identity

getDescriptorForType()

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

getName()

public String getName()

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasAnalysisState()

public boolean hasAnalysisState()

The analysis state of this identity.

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

Returns
Type Description
boolean

Whether the analysisState field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnalysisState(IamPolicyAnalysisState value)

public IamPolicyAnalysisResult.Identity.Builder mergeAnalysisState(IamPolicyAnalysisState value)

The analysis state of this identity.

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

Parameter
Name Description
value IamPolicyAnalysisState
Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

mergeFrom(IamPolicyAnalysisResult.Identity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAnalysisState(IamPolicyAnalysisState value)

public IamPolicyAnalysisResult.Identity.Builder setAnalysisState(IamPolicyAnalysisState value)

The analysis state of this identity.

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

Parameter
Name Description
value IamPolicyAnalysisState
Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

setAnalysisState(IamPolicyAnalysisState.Builder builderForValue)

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

The analysis state of this identity.

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

Parameter
Name Description
builderForValue IamPolicyAnalysisState.Builder
Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

setName(String value)

public IamPolicyAnalysisResult.Identity.Builder setName(String value)

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public IamPolicyAnalysisResult.Identity.Builder setNameBytes(ByteString value)

The identity of members, formatted as appear in an IAM policy binding. For example, they might be formatted like the following:

  • user:foo@google.com
  • group:group1@google.com
  • serviceAccount:s1@prj1.iam.gserviceaccount.com
  • projectOwner:some_project_id
  • domain:google.com
  • allUsers

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
IamPolicyAnalysisResult.Identity.Builder

This builder for chaining.