Package com.google.cloud.audit
Class AuthenticationInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.audit.AuthenticationInfo
-
- All Implemented Interfaces:
AuthenticationInfoOrBuilder
,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.io.Serializable
public final class AuthenticationInfo extends com.google.protobuf.GeneratedMessageV3 implements AuthenticationInfoOrBuilder
Authentication information for the operation.
Protobuf typegoogle.cloud.audit.AuthenticationInfo
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationInfo.Builder
Authentication information for the operation.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTHORITY_SELECTOR_FIELD_NUMBER
static int
PRINCIPAL_EMAIL_FIELD_NUMBER
static int
PRINCIPAL_SUBJECT_FIELD_NUMBER
static int
SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER
static int
SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER
static int
THIRD_PARTY_PRINCIPAL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAuthoritySelector()
The authority selector specified by the requestor, if any.com.google.protobuf.ByteString
getAuthoritySelectorBytes()
The authority selector specified by the requestor, if any.static AuthenticationInfo
getDefaultInstance()
AuthenticationInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<AuthenticationInfo>
getParserForType()
java.lang.String
getPrincipalEmail()
The email address of the authenticated user (or service account on behalf of third party principal) making the request.com.google.protobuf.ByteString
getPrincipalEmailBytes()
The email address of the authenticated user (or service account on behalf of third party principal) making the request.java.lang.String
getPrincipalSubject()
String representation of identity of requesting party.com.google.protobuf.ByteString
getPrincipalSubjectBytes()
String representation of identity of requesting party.int
getSerializedSize()
ServiceAccountDelegationInfo
getServiceAccountDelegationInfo(int index)
Identity delegation history of an authenticated service account that makes the request.int
getServiceAccountDelegationInfoCount()
Identity delegation history of an authenticated service account that makes the request.java.util.List<ServiceAccountDelegationInfo>
getServiceAccountDelegationInfoList()
Identity delegation history of an authenticated service account that makes the request.ServiceAccountDelegationInfoOrBuilder
getServiceAccountDelegationInfoOrBuilder(int index)
Identity delegation history of an authenticated service account that makes the request.java.util.List<? extends ServiceAccountDelegationInfoOrBuilder>
getServiceAccountDelegationInfoOrBuilderList()
Identity delegation history of an authenticated service account that makes the request.java.lang.String
getServiceAccountKeyName()
The name of the service account key used to create or exchange credentials for authenticating the service account making the request.com.google.protobuf.ByteString
getServiceAccountKeyNameBytes()
The name of the service account key used to create or exchange credentials for authenticating the service account making the request.com.google.protobuf.Struct
getThirdPartyPrincipal()
The third party identification (if any) of the authenticated user making the request.com.google.protobuf.StructOrBuilder
getThirdPartyPrincipalOrBuilder()
The third party identification (if any) of the authenticated user making the request.int
hashCode()
boolean
hasThirdPartyPrincipal()
The third party identification (if any) of the authenticated user making the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AuthenticationInfo.Builder
newBuilder()
static AuthenticationInfo.Builder
newBuilder(AuthenticationInfo prototype)
AuthenticationInfo.Builder
newBuilderForType()
protected AuthenticationInfo.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected java.lang.Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AuthenticationInfo
parseDelimitedFrom(java.io.InputStream input)
static AuthenticationInfo
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuthenticationInfo
parseFrom(byte[] data)
static AuthenticationInfo
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuthenticationInfo
parseFrom(com.google.protobuf.ByteString data)
static AuthenticationInfo
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuthenticationInfo
parseFrom(com.google.protobuf.CodedInputStream input)
static AuthenticationInfo
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuthenticationInfo
parseFrom(java.io.InputStream input)
static AuthenticationInfo
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AuthenticationInfo
parseFrom(java.nio.ByteBuffer data)
static AuthenticationInfo
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AuthenticationInfo>
parser()
AuthenticationInfo.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType
-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriter
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PRINCIPAL_EMAIL_FIELD_NUMBER
public static final int PRINCIPAL_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHORITY_SELECTOR_FIELD_NUMBER
public static final int AUTHORITY_SELECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
THIRD_PARTY_PRINCIPAL_FIELD_NUMBER
public static final int THIRD_PARTY_PRINCIPAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRINCIPAL_SUBJECT_FIELD_NUMBER
public static final int PRINCIPAL_SUBJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getPrincipalEmail
public java.lang.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](https://cloud.google.com/logging/docs/audit#user-id).
string principal_email = 1;
- Specified by:
getPrincipalEmail
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The principalEmail.
-
getPrincipalEmailBytes
public com.google.protobuf.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](https://cloud.google.com/logging/docs/audit#user-id).
string principal_email = 1;
- Specified by:
getPrincipalEmailBytes
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The bytes for principalEmail.
-
getAuthoritySelector
public java.lang.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;
- Specified by:
getAuthoritySelector
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The authoritySelector.
-
getAuthoritySelectorBytes
public com.google.protobuf.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;
- Specified by:
getAuthoritySelectorBytes
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The bytes for authoritySelector.
-
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;
- Specified by:
hasThirdPartyPrincipal
in interfaceAuthenticationInfoOrBuilder
- Returns:
- Whether the thirdPartyPrincipal field is set.
-
getThirdPartyPrincipal
public com.google.protobuf.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;
- Specified by:
getThirdPartyPrincipal
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The thirdPartyPrincipal.
-
getThirdPartyPrincipalOrBuilder
public com.google.protobuf.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;
- Specified by:
getThirdPartyPrincipalOrBuilder
in interfaceAuthenticationInfoOrBuilder
-
getServiceAccountKeyName
public java.lang.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;
- Specified by:
getServiceAccountKeyName
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The serviceAccountKeyName.
-
getServiceAccountKeyNameBytes
public com.google.protobuf.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;
- Specified by:
getServiceAccountKeyNameBytes
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The bytes for serviceAccountKeyName.
-
getServiceAccountDelegationInfoList
public java.util.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;
- Specified by:
getServiceAccountDelegationInfoList
in interfaceAuthenticationInfoOrBuilder
-
getServiceAccountDelegationInfoOrBuilderList
public java.util.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;
- Specified by:
getServiceAccountDelegationInfoOrBuilderList
in interfaceAuthenticationInfoOrBuilder
-
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;
- Specified by:
getServiceAccountDelegationInfoCount
in interfaceAuthenticationInfoOrBuilder
-
getServiceAccountDelegationInfo
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;
- Specified by:
getServiceAccountDelegationInfo
in interfaceAuthenticationInfoOrBuilder
-
getServiceAccountDelegationInfoOrBuilder
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;
- Specified by:
getServiceAccountDelegationInfoOrBuilder
in interfaceAuthenticationInfoOrBuilder
-
getPrincipalSubject
public java.lang.String getPrincipalSubject()
String representation of identity of requesting party. Populated for both first and third party identities.
string principal_subject = 8;
- Specified by:
getPrincipalSubject
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The principalSubject.
-
getPrincipalSubjectBytes
public com.google.protobuf.ByteString getPrincipalSubjectBytes()
String representation of identity of requesting party. Populated for both first and third party identities.
string principal_subject = 8;
- Specified by:
getPrincipalSubjectBytes
in interfaceAuthenticationInfoOrBuilder
- Returns:
- The bytes for principalSubject.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AuthenticationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationInfo parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuthenticationInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AuthenticationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static AuthenticationInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuthenticationInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static AuthenticationInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public AuthenticationInfo.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AuthenticationInfo.Builder newBuilder()
-
newBuilder
public static AuthenticationInfo.Builder newBuilder(AuthenticationInfo prototype)
-
toBuilder
public AuthenticationInfo.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AuthenticationInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AuthenticationInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AuthenticationInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<AuthenticationInfo> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public AuthenticationInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-