Class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder (0.58.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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
Name Description
values Iterable<String>

The approvedIdentities to add.

Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

This builder for chaining.

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

This builder for chaining.

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

build()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings build()
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

buildPartial()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings buildPartial()
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

clear()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clear()
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
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
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

clone()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clone()
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
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
Type Description
ProtocolStringList

A list containing the approvedIdentities.

getDefaultInstanceForType()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings getDefaultInstanceForType()
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)
Parameter
Name Description
other SecurityHealthAnalyticsSettings.AdminServiceAccountSettings
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
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
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides