Class SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder (0.9.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
TypeDescription
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
NameDescription
valuesIterable<String>

The approvedIdentities to add.

Returns
TypeDescription
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
NameDescription
valueString

The approvedIdentities to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the approvedIdentities to add.

Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

build()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings build()
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

buildPartial()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings buildPartial()
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

clone()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the approvedIdentities.

getDefaultInstanceForType()

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings getDefaultInstanceForType()
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(SecurityHealthAnalyticsSettings.AdminServiceAccountSettings other)
Parameter
NameDescription
otherSecurityHealthAnalyticsSettings.AdminServiceAccountSettings
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The approvedIdentities to set.

Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder
Overrides