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 Summary
Modifier and TypeMethodDescriptionaddAllApprovedIdentities(Iterable<String> values) User-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.addApprovedIdentities(String value) User-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.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.build()clear()User-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.getApprovedIdentities(int index) User-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.com.google.protobuf.ByteStringgetApprovedIdentitiesBytes(int index) User-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.intUser-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.com.google.protobuf.ProtocolStringListUser-created service accounts ending in the provided identities are allowed to have Admin, Owner or Editor roles granted to them.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityHealthAnalyticsSettings.AdminServiceAccountSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getApprovedIdentitiesListin interfaceSecurityHealthAnalyticsSettings.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:
getApprovedIdentitiesCountin interfaceSecurityHealthAnalyticsSettings.AdminServiceAccountSettingsOrBuilder- Returns:
- The count of approvedIdentities.
-
getApprovedIdentities
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:
getApprovedIdentitiesin interfaceSecurityHealthAnalyticsSettings.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:
getApprovedIdentitiesBytesin interfaceSecurityHealthAnalyticsSettings.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.
-