Class ServiceAccountDelegationInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
com.google.cloud.audit.ServiceAccountDelegationInfo.Builder
All Implemented Interfaces:
ServiceAccountDelegationInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, 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 Details

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear 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.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • getDefaultInstanceForType

      public ServiceAccountDelegationInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • 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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • setField

      public ServiceAccountDelegationInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • clearField

      public ServiceAccountDelegationInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • clearOneof

      public ServiceAccountDelegationInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • setRepeatedField

      public ServiceAccountDelegationInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • mergeFrom

      public ServiceAccountDelegationInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceAccountDelegationInfo.Builder>
    • mergeFrom

    • isInitialized

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

      public ServiceAccountDelegationInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
      IOException
    • getAuthorityCase

      public ServiceAccountDelegationInfo.AuthorityCase getAuthorityCase()
      Specified by:
      getAuthorityCase in interface ServiceAccountDelegationInfoOrBuilder
    • clearAuthority

      public ServiceAccountDelegationInfo.Builder clearAuthority()
    • getPrincipalSubject

      public 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(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.
    • getFirstPartyPrincipal

      public ServiceAccountDelegationInfo.FirstPartyPrincipal getFirstPartyPrincipal()
       First party (Google) identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
      Specified by:
      getFirstPartyPrincipal in interface ServiceAccountDelegationInfoOrBuilder
      Returns:
      The firstPartyPrincipal.
    • setFirstPartyPrincipal

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

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

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

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

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

      public ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder getFirstPartyPrincipalOrBuilder()
       First party (Google) identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal first_party_principal = 1;
      Specified by:
      getFirstPartyPrincipalOrBuilder in interface ServiceAccountDelegationInfoOrBuilder
    • 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.
    • getThirdPartyPrincipal

      public ServiceAccountDelegationInfo.ThirdPartyPrincipal getThirdPartyPrincipal()
       Third party identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
      Specified by:
      getThirdPartyPrincipal in interface ServiceAccountDelegationInfoOrBuilder
      Returns:
      The thirdPartyPrincipal.
    • setThirdPartyPrincipal

       Third party identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
    • setThirdPartyPrincipal

       Third party identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
    • mergeThirdPartyPrincipal

       Third party identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
    • clearThirdPartyPrincipal

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

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

      public ServiceAccountDelegationInfo.ThirdPartyPrincipalOrBuilder getThirdPartyPrincipalOrBuilder()
       Third party identity as the real authority.
       
      .google.cloud.audit.ServiceAccountDelegationInfo.ThirdPartyPrincipal third_party_principal = 2;
      Specified by:
      getThirdPartyPrincipalOrBuilder in interface ServiceAccountDelegationInfoOrBuilder
    • setUnknownFields

      public final ServiceAccountDelegationInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>
    • mergeUnknownFields

      public final ServiceAccountDelegationInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceAccountDelegationInfo.Builder>