Class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • 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<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
      • getDefaultInstanceForType

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

        public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addApprovedIdentities​(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:
        value - The approvedIdentities to add.
        Returns:
        This builder for chaining.
      • addAllApprovedIdentities

        public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addAllApprovedIdentities​(Iterable<String> values)
         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

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