Class AuthenticationInfo.Builder (2.12.0)

public static final class AuthenticationInfo.Builder extends GeneratedMessageV3.Builder<AuthenticationInfo.Builder> implements AuthenticationInfoOrBuilder

Authentication information for the operation.

Protobuf type google.cloud.audit.AuthenticationInfo

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addAllServiceAccountDelegationInfo(Iterable<? extends ServiceAccountDelegationInfo> values)

public AuthenticationInfo.Builder addAllServiceAccountDelegationInfo(Iterable<? extends ServiceAccountDelegationInfo> values)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.audit.ServiceAccountDelegationInfo>
Returns

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceAccountDelegationInfo(ServiceAccountDelegationInfo value)

public AuthenticationInfo.Builder addServiceAccountDelegationInfo(ServiceAccountDelegationInfo value)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
valueServiceAccountDelegationInfo
Returns

addServiceAccountDelegationInfo(ServiceAccountDelegationInfo.Builder builderForValue)

public AuthenticationInfo.Builder addServiceAccountDelegationInfo(ServiceAccountDelegationInfo.Builder builderForValue)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
builderForValueServiceAccountDelegationInfo.Builder
Returns

addServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo value)

public AuthenticationInfo.Builder addServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo value)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameters
NameDescription
indexint
valueServiceAccountDelegationInfo
Returns

addServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo.Builder builderForValue)

public AuthenticationInfo.Builder addServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo.Builder builderForValue)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameters
NameDescription
indexint
builderForValueServiceAccountDelegationInfo.Builder
Returns

addServiceAccountDelegationInfoBuilder()

public ServiceAccountDelegationInfo.Builder addServiceAccountDelegationInfoBuilder()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns

addServiceAccountDelegationInfoBuilder(int index)

public ServiceAccountDelegationInfo.Builder addServiceAccountDelegationInfoBuilder(int index)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
indexint
Returns

build()

public AuthenticationInfo build()
Returns
TypeDescription
AuthenticationInfo

buildPartial()

public AuthenticationInfo buildPartial()
Returns
TypeDescription
AuthenticationInfo

clear()

public AuthenticationInfo.Builder clear()
Returns Overrides

clearAuthoritySelector()

public AuthenticationInfo.Builder clearAuthoritySelector()

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.

string authority_selector = 2;

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrincipalEmail()

public AuthenticationInfo.Builder clearPrincipalEmail()

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the principal_subject field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see Caller identities in audit logs.

string principal_email = 1;

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

clearPrincipalSubject()

public AuthenticationInfo.Builder clearPrincipalSubject()

String representation of identity of requesting party. Populated for both first and third party identities.

string principal_subject = 8;

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

clearServiceAccountDelegationInfo()

public AuthenticationInfo.Builder clearServiceAccountDelegationInfo()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns

clearServiceAccountKeyName()

public AuthenticationInfo.Builder clearServiceAccountKeyName()

The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"

string service_account_key_name = 5;

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

clearThirdPartyPrincipal()

public AuthenticationInfo.Builder clearThirdPartyPrincipal()

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Returns

clone()

public AuthenticationInfo.Builder clone()
Returns Overrides

getAuthoritySelector()

public String getAuthoritySelector()

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.

string authority_selector = 2;

Returns
TypeDescription
String

The authoritySelector.

getAuthoritySelectorBytes()

public ByteString getAuthoritySelectorBytes()

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.

string authority_selector = 2;

Returns
TypeDescription
ByteString

The bytes for authoritySelector.

getDefaultInstanceForType()

public AuthenticationInfo getDefaultInstanceForType()
Returns
TypeDescription
AuthenticationInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrincipalEmail()

public String getPrincipalEmail()

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the principal_subject field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see Caller identities in audit logs.

string principal_email = 1;

Returns
TypeDescription
String

The principalEmail.

getPrincipalEmailBytes()

public ByteString getPrincipalEmailBytes()

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the principal_subject field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see Caller identities in audit logs.

string principal_email = 1;

Returns
TypeDescription
ByteString

The bytes for principalEmail.

getPrincipalSubject()

public String getPrincipalSubject()

String representation of identity of requesting party. Populated for both first and third party identities.

string principal_subject = 8;

Returns
TypeDescription
String

The principalSubject.

getPrincipalSubjectBytes()

public ByteString getPrincipalSubjectBytes()

String representation of identity of requesting party. Populated for both first and third party identities.

string principal_subject = 8;

Returns
TypeDescription
ByteString

The bytes for principalSubject.

getServiceAccountDelegationInfo(int index)

public ServiceAccountDelegationInfo getServiceAccountDelegationInfo(int index)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
indexint
Returns

getServiceAccountDelegationInfoBuilder(int index)

public ServiceAccountDelegationInfo.Builder getServiceAccountDelegationInfoBuilder(int index)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
indexint
Returns

getServiceAccountDelegationInfoBuilderList()

public List<ServiceAccountDelegationInfo.Builder> getServiceAccountDelegationInfoBuilderList()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns
TypeDescription
List<Builder>

getServiceAccountDelegationInfoCount()

public int getServiceAccountDelegationInfoCount()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns
TypeDescription
int

getServiceAccountDelegationInfoList()

public List<ServiceAccountDelegationInfo> getServiceAccountDelegationInfoList()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns

getServiceAccountDelegationInfoOrBuilder(int index)

public ServiceAccountDelegationInfoOrBuilder getServiceAccountDelegationInfoOrBuilder(int index)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
indexint
Returns

getServiceAccountDelegationInfoOrBuilderList()

public List<? extends ServiceAccountDelegationInfoOrBuilder> getServiceAccountDelegationInfoOrBuilderList()

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Returns
TypeDescription
List<? extends com.google.cloud.audit.ServiceAccountDelegationInfoOrBuilder>

getServiceAccountKeyName()

public String getServiceAccountKeyName()

The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"

string service_account_key_name = 5;

Returns
TypeDescription
String

The serviceAccountKeyName.

getServiceAccountKeyNameBytes()

public ByteString getServiceAccountKeyNameBytes()

The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"

string service_account_key_name = 5;

Returns
TypeDescription
ByteString

The bytes for serviceAccountKeyName.

getThirdPartyPrincipal()

public Struct getThirdPartyPrincipal()

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Returns
TypeDescription
Struct

The thirdPartyPrincipal.

getThirdPartyPrincipalBuilder()

public Struct.Builder getThirdPartyPrincipalBuilder()

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Returns
TypeDescription
Builder

getThirdPartyPrincipalOrBuilder()

public StructOrBuilder getThirdPartyPrincipalOrBuilder()

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Returns
TypeDescription
StructOrBuilder

hasThirdPartyPrincipal()

public boolean hasThirdPartyPrincipal()

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Returns
TypeDescription
boolean

Whether the thirdPartyPrincipal field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AuthenticationInfo other)

public AuthenticationInfo.Builder mergeFrom(AuthenticationInfo other)
Parameter
NameDescription
otherAuthenticationInfo
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeThirdPartyPrincipal(Struct value)

public AuthenticationInfo.Builder mergeThirdPartyPrincipal(Struct value)

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Parameter
NameDescription
valueStruct
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeServiceAccountDelegationInfo(int index)

public AuthenticationInfo.Builder removeServiceAccountDelegationInfo(int index)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameter
NameDescription
indexint
Returns

setAuthoritySelector(String value)

public AuthenticationInfo.Builder setAuthoritySelector(String value)

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.

string authority_selector = 2;

Parameter
NameDescription
valueString

The authoritySelector to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setAuthoritySelectorBytes(ByteString value)

public AuthenticationInfo.Builder setAuthoritySelectorBytes(ByteString value)

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority.

string authority_selector = 2;

Parameter
NameDescription
valueByteString

The bytes for authoritySelector to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrincipalEmail(String value)

public AuthenticationInfo.Builder setPrincipalEmail(String value)

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the principal_subject field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see Caller identities in audit logs.

string principal_email = 1;

Parameter
NameDescription
valueString

The principalEmail to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setPrincipalEmailBytes(ByteString value)

public AuthenticationInfo.Builder setPrincipalEmailBytes(ByteString value)

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the principal_subject field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see Caller identities in audit logs.

string principal_email = 1;

Parameter
NameDescription
valueByteString

The bytes for principalEmail to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setPrincipalSubject(String value)

public AuthenticationInfo.Builder setPrincipalSubject(String value)

String representation of identity of requesting party. Populated for both first and third party identities.

string principal_subject = 8;

Parameter
NameDescription
valueString

The principalSubject to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setPrincipalSubjectBytes(ByteString value)

public AuthenticationInfo.Builder setPrincipalSubjectBytes(ByteString value)

String representation of identity of requesting party. Populated for both first and third party identities.

string principal_subject = 8;

Parameter
NameDescription
valueByteString

The bytes for principalSubject to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

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

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

setServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo value)

public AuthenticationInfo.Builder setServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo value)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameters
NameDescription
indexint
valueServiceAccountDelegationInfo
Returns

setServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo.Builder builderForValue)

public AuthenticationInfo.Builder setServiceAccountDelegationInfo(int index, ServiceAccountDelegationInfo.Builder builderForValue)

Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.

repeated .google.cloud.audit.ServiceAccountDelegationInfo service_account_delegation_info = 6;

Parameters
NameDescription
indexint
builderForValueServiceAccountDelegationInfo.Builder
Returns

setServiceAccountKeyName(String value)

public AuthenticationInfo.Builder setServiceAccountKeyName(String value)

The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"

string service_account_key_name = 5;

Parameter
NameDescription
valueString

The serviceAccountKeyName to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setServiceAccountKeyNameBytes(ByteString value)

public AuthenticationInfo.Builder setServiceAccountKeyNameBytes(ByteString value)

The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"

string service_account_key_name = 5;

Parameter
NameDescription
valueByteString

The bytes for serviceAccountKeyName to set.

Returns
TypeDescription
AuthenticationInfo.Builder

This builder for chaining.

setThirdPartyPrincipal(Struct value)

public AuthenticationInfo.Builder setThirdPartyPrincipal(Struct value)

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Parameter
NameDescription
valueStruct
Returns

setThirdPartyPrincipal(Struct.Builder builderForValue)

public AuthenticationInfo.Builder setThirdPartyPrincipal(Struct.Builder builderForValue)

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property.

.google.protobuf.Struct third_party_principal = 4;

Parameter
NameDescription
builderForValueBuilder
Returns

setUnknownFields(UnknownFieldSet unknownFields)

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