Class ServiceAccountDelegationInfo.Builder

  • All Implemented Interfaces:
    ServiceAccountDelegationInfoOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ServiceAccountDelegationInfo

    public static final class ServiceAccountDelegationInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    implements ServiceAccountDelegationInfoOrBuilder
     Identity delegation history of an authenticated service account.
     
    Protobuf type google.cloud.audit.ServiceAccountDelegationInfo
    • Method Detail

      • 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.Builder<ServiceAccountDelegationInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ServiceAccountDelegationInfo.Builder>
      • getDefaultInstanceForType

        public ServiceAccountDelegationInfo 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
      • build

        public ServiceAccountDelegationInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ServiceAccountDelegationInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public ServiceAccountDelegationInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                     int index,
                                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
      • addRepeatedField

        public ServiceAccountDelegationInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,​ServiceAccountDelegationInfo.Builder>
      • mergeFrom

        public ServiceAccountDelegationInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceAccountDelegationInfo.Builder>
        Throws:
        java.io.IOException
      • getPrincipalSubject

        public java.lang.String getPrincipalSubject()
         A string representing the principal_subject associated with the identity.
         For most identities, the format will be
         `principal://iam.googleapis.com/{identity pool name}/subject/{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 = 3;
        Specified by:
        getPrincipalSubject in interface ServiceAccountDelegationInfoOrBuilder
        Returns:
        The principalSubject.
      • getPrincipalSubjectBytes

        public com.google.protobuf.ByteString getPrincipalSubjectBytes()
         A string representing the principal_subject associated with the identity.
         For most identities, the format will be
         `principal://iam.googleapis.com/{identity pool name}/subject/{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 = 3;
        Specified by:
        getPrincipalSubjectBytes in interface ServiceAccountDelegationInfoOrBuilder
        Returns:
        The bytes for principalSubject.
      • setPrincipalSubject

        public ServiceAccountDelegationInfo.Builder setPrincipalSubject​(java.lang.String value)
         A string representing the principal_subject associated with the identity.
         For most identities, the format will be
         `principal://iam.googleapis.com/{identity pool name}/subject/{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 = 3;
        Parameters:
        value - The principalSubject to set.
        Returns:
        This builder for chaining.
      • clearPrincipalSubject

        public ServiceAccountDelegationInfo.Builder clearPrincipalSubject()
         A string representing the principal_subject associated with the identity.
         For most identities, the format will be
         `principal://iam.googleapis.com/{identity pool name}/subject/{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 = 3;
        Returns:
        This builder for chaining.
      • setPrincipalSubjectBytes

        public ServiceAccountDelegationInfo.Builder setPrincipalSubjectBytes​(com.google.protobuf.ByteString value)
         A string representing the principal_subject associated with the identity.
         For most identities, the format will be
         `principal://iam.googleapis.com/{identity pool name}/subject/{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 = 3;
        Parameters:
        value - The bytes for principalSubject to set.
        Returns:
        This builder for chaining.
      • hasFirstPartyPrincipal

        public boolean hasFirstPartyPrincipal()
         First party (Google) identity as the real authority.
         
        .google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
        Specified by:
        hasFirstPartyPrincipal in interface ServiceAccountDelegationInfoOrBuilder
        Returns:
        Whether the firstPartyPrincipal field is set.
      • clearFirstPartyPrincipal

        public ServiceAccountDelegationInfo.Builder clearFirstPartyPrincipal()
         First party (Google) identity as the real authority.
         
        .google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
      • hasThirdPartyPrincipal

        public boolean hasThirdPartyPrincipal()
         Third party identity as the real authority.
         
        .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
        Specified by:
        hasThirdPartyPrincipal in interface ServiceAccountDelegationInfoOrBuilder
        Returns:
        Whether the thirdPartyPrincipal field is set.
      • clearThirdPartyPrincipal

        public ServiceAccountDelegationInfo.Builder clearThirdPartyPrincipal()
         Third party identity as the real authority.
         
        .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;