Class 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 type google.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
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

        com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,​T extends java.lang.Object>
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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 class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
      • 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 interface AuthenticationInfoOrBuilder
        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 interface AuthenticationInfoOrBuilder
        Returns:
        The bytes for principalSubject.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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 interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AuthenticationInfo.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AuthenticationInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AuthenticationInfo> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public AuthenticationInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder