public static final class ServiceAccountDelegationInfo.Builder extends GeneratedMessage.Builder<ServiceAccountDelegationInfo.Builder> implements ServiceAccountDelegationInfoOrBuilderIdentity delegation history of an authenticated service account.
Protobuf type google.cloud.securitycenter.v2.ServiceAccountDelegationInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ServiceAccountDelegationInfo.BuilderImplements
ServiceAccountDelegationInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ServiceAccountDelegationInfo build()| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo |
|
buildPartial()
public ServiceAccountDelegationInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo |
|
clear()
public ServiceAccountDelegationInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
|
clearPrincipalEmail()
public ServiceAccountDelegationInfo.Builder clearPrincipalEmail()The email address of a Google account.
string principal_email = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ServiceAccountDelegationInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPrincipalEmail()
public String getPrincipalEmail()The email address of a Google account.
string principal_email = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The principalEmail. |
getPrincipalEmailBytes()
public ByteString getPrincipalEmailBytes()The email address of a Google account.
string principal_email = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for principalSubject. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ServiceAccountDelegationInfo other)
public ServiceAccountDelegationInfo.Builder mergeFrom(ServiceAccountDelegationInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
ServiceAccountDelegationInfo |
| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceAccountDelegationInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ServiceAccountDelegationInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
|
setPrincipalEmail(String value)
public ServiceAccountDelegationInfo.Builder setPrincipalEmail(String value)The email address of a Google account.
string principal_email = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe principalEmail to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for principalEmail to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe principalSubject to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for principalSubject to set. |
| Returns | |
|---|---|
| Type | Description |
ServiceAccountDelegationInfo.Builder |
This builder for chaining. |