Class ServiceAccountDelegationInfo.Builder (2.23.0)

public static final class ServiceAccountDelegationInfo.Builder extends GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder> implements ServiceAccountDelegationInfoOrBuilder

Identity delegation history of an authenticated service account.

Protobuf type google.cloud.securitycenter.v1.ServiceAccountDelegationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceAccountDelegationInfo build()
Returns
TypeDescription
ServiceAccountDelegationInfo

buildPartial()

public ServiceAccountDelegationInfo buildPartial()
Returns
TypeDescription
ServiceAccountDelegationInfo

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrincipalEmail()

public ServiceAccountDelegationInfo.Builder clearPrincipalEmail()

The email address of a Google account.

string principal_email = 1;

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

clearPrincipalSubject()

public ServiceAccountDelegationInfo.Builder clearPrincipalSubject()

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

string principal_subject = 2;

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceAccountDelegationInfo getDefaultInstanceForType()
Returns
TypeDescription
ServiceAccountDelegationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrincipalEmail()

public String getPrincipalEmail()

The email address of a Google account.

string principal_email = 1;

Returns
TypeDescription
String

The principalEmail.

getPrincipalEmailBytes()

public ByteString getPrincipalEmailBytes()

The email address of a Google account.

string principal_email = 1;

Returns
TypeDescription
ByteString

The bytes for principalEmail.

getPrincipalSubject()

public String getPrincipalSubject()

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

string principal_subject = 2;

Returns
TypeDescription
String

The principalSubject.

getPrincipalSubjectBytes()

public ByteString getPrincipalSubjectBytes()

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

string principal_subject = 2;

Returns
TypeDescription
ByteString

The bytes for principalSubject.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceAccountDelegationInfo other)

public ServiceAccountDelegationInfo.Builder mergeFrom(ServiceAccountDelegationInfo other)
Parameter
NameDescription
otherServiceAccountDelegationInfo
Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrincipalEmail(String value)

public ServiceAccountDelegationInfo.Builder setPrincipalEmail(String value)

The email address of a Google account.

string principal_email = 1;

Parameter
NameDescription
valueString

The principalEmail to set.

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

setPrincipalEmailBytes(ByteString value)

public ServiceAccountDelegationInfo.Builder setPrincipalEmailBytes(ByteString value)

The email address of a Google account.

string principal_email = 1;

Parameter
NameDescription
valueByteString

The bytes for principalEmail to set.

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

setPrincipalSubject(String value)

public ServiceAccountDelegationInfo.Builder setPrincipalSubject(String value)

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

string principal_subject = 2;

Parameter
NameDescription
valueString

The principalSubject to set.

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

setPrincipalSubjectBytes(ByteString value)

public ServiceAccountDelegationInfo.Builder setPrincipalSubjectBytes(ByteString value)

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/{identity pool name}/subjects/{subject} except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format serviceAccount:{identity pool name}[{subject}]

string principal_subject = 2;

Parameter
NameDescription
valueByteString

The bytes for principalSubject to set.

Returns
TypeDescription
ServiceAccountDelegationInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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