Class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
com.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
All Implemented Interfaces:
SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

public static final class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder> implements SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
 Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
 
Protobuf type google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.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.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.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<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
    • 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.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<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
    • mergeFrom

    • isInitialized

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

      public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.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<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
      Throws:
      IOException
    • getApprovedIdentitiesList

      public com.google.protobuf.ProtocolStringList getApprovedIdentitiesList()
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Specified by:
      getApprovedIdentitiesList in interface SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
      Returns:
      A list containing the approvedIdentities.
    • getApprovedIdentitiesCount

      public int getApprovedIdentitiesCount()
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Specified by:
      getApprovedIdentitiesCount in interface SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
      Returns:
      The count of approvedIdentities.
    • getApprovedIdentities

      public String getApprovedIdentities(int index)
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Specified by:
      getApprovedIdentities in interface SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The approvedIdentities at the given index.
    • getApprovedIdentitiesBytes

      public com.google.protobuf.ByteString getApprovedIdentitiesBytes(int index)
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Specified by:
      getApprovedIdentitiesBytes in interface SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the approvedIdentities at the given index.
    • setApprovedIdentities

      public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setApprovedIdentities(int index, String value)
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Parameters:
      index - The index to set the value at.
      value - The approvedIdentities to set.
      Returns:
      This builder for chaining.
    • addApprovedIdentities

       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Parameters:
      value - The approvedIdentities to add.
      Returns:
      This builder for chaining.
    • addAllApprovedIdentities

       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Parameters:
      values - The approvedIdentities to add.
      Returns:
      This builder for chaining.
    • clearApprovedIdentities

       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Returns:
      This builder for chaining.
    • addApprovedIdentitiesBytes

      public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addApprovedIdentitiesBytes(com.google.protobuf.ByteString value)
       User-created service accounts ending in the provided identities are
       allowed to have Admin, Owner or Editor roles granted to them. Otherwise
       a finding will be created.
       A valid identity can be:
       *  a partilly specified service account that starts with "@", e.g.
       "@myproject.iam.gserviceaccount.com". This approves all the service
       accounts suffixed with the specified identity.
       *  a fully specified service account that does not start with "@", e.g.
       "myadmin@myproject.iam.gserviceaccount.com".
       Google-created service accounts are all approved.
       
      repeated string approved_identities = 1;
      Parameters:
      value - The bytes of the approvedIdentities to add.
      Returns:
      This builder for chaining.