public static final class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder extends GeneratedMessageV3.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder> implements SecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder
Settings for "ADMIN_SERVICE_ACCOUNT" scanner.
Protobuf type
google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings.AdminServiceAccountSettings
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllApprovedIdentities(Iterable<String> values)
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;
Parameter
Returns
addApprovedIdentities(String value)
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;
Parameter
Name | Description |
value | String
The approvedIdentities to add.
|
Returns
addApprovedIdentitiesBytes(ByteString value)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addApprovedIdentitiesBytes(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;
Parameter
Name | Description |
value | ByteString
The bytes of the approvedIdentities to add.
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings build()
Returns
buildPartial()
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings buildPartial()
Returns
clear()
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clear()
Returns
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clone()
Returns
Overrides
getApprovedIdentities(int index)
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;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The approvedIdentities at the given index.
|
getApprovedIdentitiesBytes(int index)
public 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;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the approvedIdentities at the given index.
|
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;
Returns
Type | Description |
int | The count of approvedIdentities.
|
getApprovedIdentitiesList()
public 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;
Returns
getDefaultInstanceForType()
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)
Parameter
Returns
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setApprovedIdentities(int index, String value)
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
Name | Description |
index | int
The index to set the value at.
|
value | String
The approvedIdentities to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides