Class AuthenticationInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.cloud.audit.AuthenticationInfo
All Implemented Interfaces:
AuthenticationInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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:
  • Field Details

    • PRINCIPAL_EMAIL_FIELD_NUMBER

      public static final int PRINCIPAL_EMAIL_FIELD_NUMBER
      See Also:
    • AUTHORITY_SELECTOR_FIELD_NUMBER

      public static final int AUTHORITY_SELECTOR_FIELD_NUMBER
      See Also:
    • THIRD_PARTY_PRINCIPAL_FIELD_NUMBER

      public static final int THIRD_PARTY_PRINCIPAL_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_KEY_NAME_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_DELEGATION_INFO_FIELD_NUMBER
      See Also:
    • PRINCIPAL_SUBJECT_FIELD_NUMBER

      public static final int PRINCIPAL_SUBJECT_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • 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
       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
       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 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 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 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 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 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 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 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.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

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

      public boolean equals(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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthenticationInfo parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthenticationInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthenticationInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthenticationInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthenticationInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthenticationInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AuthenticationInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 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
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AuthenticationInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder