Class ComponentSettings.Builder (0.48.0)

public static final class ComponentSettings.Builder extends GeneratedMessageV3.Builder<ComponentSettings.Builder> implements ComponentSettingsOrBuilder

Component Settings for Security Command Center

Protobuf type google.cloud.securitycenter.settings.v1beta1.ComponentSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComponentSettings build()
Returns
Type Description
ComponentSettings

buildPartial()

public ComponentSettings buildPartial()
Returns
Type Description
ComponentSettings

clear()

public ComponentSettings.Builder clear()
Returns
Type Description
ComponentSettings.Builder
Overrides

clearContainerThreatDetectionSettings()

public ComponentSettings.Builder clearContainerThreatDetectionSettings()

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Returns
Type Description
ComponentSettings.Builder

clearDetectorSettings()

public ComponentSettings.Builder clearDetectorSettings()
Returns
Type Description
ComponentSettings.Builder

clearEtag()

public ComponentSettings.Builder clearEtag()

Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.

string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

clearEventThreatDetectionSettings()

public ComponentSettings.Builder clearEventThreatDetectionSettings()

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Returns
Type Description
ComponentSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ComponentSettings.Builder clearName()

The relative resource name of the component settings. Formats:

  • organizations/{organization}/components/{component}/settings
  • folders/{folder}/components/{component}/settings
  • projects/{project}/components/{component}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings

string name = 1;

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectServiceAccount()

public ComponentSettings.Builder clearProjectServiceAccount()

Output only. The service account to be used for security center component. The component must have permission to "act as" the service account.

string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

clearSecurityHealthAnalyticsSettings()

public ComponentSettings.Builder clearSecurityHealthAnalyticsSettings()

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Returns
Type Description
ComponentSettings.Builder

clearSpecificSettings()

public ComponentSettings.Builder clearSpecificSettings()
Returns
Type Description
ComponentSettings.Builder

clearState()

public ComponentSettings.Builder clearState()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

clearUpdateTime()

public ComponentSettings.Builder clearUpdateTime()

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ComponentSettings.Builder

clearWebSecurityScannerSettings()

public ComponentSettings.Builder clearWebSecurityScannerSettings()

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Returns
Type Description
ComponentSettings.Builder

clone()

public ComponentSettings.Builder clone()
Returns
Type Description
ComponentSettings.Builder
Overrides

containsDetectorSettings(String key)

public boolean containsDetectorSettings(String key)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getContainerThreatDetectionSettings()

public ContainerThreatDetectionSettings getContainerThreatDetectionSettings()

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Returns
Type Description
ContainerThreatDetectionSettings

The containerThreatDetectionSettings.

getContainerThreatDetectionSettingsBuilder()

public ContainerThreatDetectionSettings.Builder getContainerThreatDetectionSettingsBuilder()

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Returns
Type Description
ContainerThreatDetectionSettings.Builder

getContainerThreatDetectionSettingsOrBuilder()

public ContainerThreatDetectionSettingsOrBuilder getContainerThreatDetectionSettingsOrBuilder()

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Returns
Type Description
ContainerThreatDetectionSettingsOrBuilder

getDefaultInstanceForType()

public ComponentSettings getDefaultInstanceForType()
Returns
Type Description
ComponentSettings

getDescriptorForType()

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

getDetectorSettings() (deprecated)

public Map<String,ComponentSettings.DetectorSettings> getDetectorSettings()
Returns
Type Description
Map<String,DetectorSettings>

getDetectorSettingsCount()

public int getDetectorSettingsCount()

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Returns
Type Description
int

getDetectorSettingsMap()

public Map<String,ComponentSettings.DetectorSettings> getDetectorSettingsMap()

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Returns
Type Description
Map<String,DetectorSettings>

getDetectorSettingsOrDefault(String key, ComponentSettings.DetectorSettings defaultValue)

public ComponentSettings.DetectorSettings getDetectorSettingsOrDefault(String key, ComponentSettings.DetectorSettings defaultValue)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameters
Name Description
key String
defaultValue ComponentSettings.DetectorSettings
Returns
Type Description
ComponentSettings.DetectorSettings

getDetectorSettingsOrThrow(String key)

public ComponentSettings.DetectorSettings getDetectorSettingsOrThrow(String key)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameter
Name Description
key String
Returns
Type Description
ComponentSettings.DetectorSettings

getEtag()

public String getEtag()

Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.

string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.

string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getEventThreatDetectionSettings()

public EventThreatDetectionSettings getEventThreatDetectionSettings()

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Returns
Type Description
EventThreatDetectionSettings

The eventThreatDetectionSettings.

getEventThreatDetectionSettingsBuilder()

public EventThreatDetectionSettings.Builder getEventThreatDetectionSettingsBuilder()

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Returns
Type Description
EventThreatDetectionSettings.Builder

getEventThreatDetectionSettingsOrBuilder()

public EventThreatDetectionSettingsOrBuilder getEventThreatDetectionSettingsOrBuilder()

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Returns
Type Description
EventThreatDetectionSettingsOrBuilder

getMutableDetectorSettings() (deprecated)

public Map<String,ComponentSettings.DetectorSettings> getMutableDetectorSettings()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,DetectorSettings>

getName()

public String getName()

The relative resource name of the component settings. Formats:

  • organizations/{organization}/components/{component}/settings
  • folders/{folder}/components/{component}/settings
  • projects/{project}/components/{component}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of the component settings. Formats:

  • organizations/{organization}/components/{component}/settings
  • folders/{folder}/components/{component}/settings
  • projects/{project}/components/{component}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getProjectServiceAccount()

public String getProjectServiceAccount()

Output only. The service account to be used for security center component. The component must have permission to "act as" the service account.

string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The projectServiceAccount.

getProjectServiceAccountBytes()

public ByteString getProjectServiceAccountBytes()

Output only. The service account to be used for security center component. The component must have permission to "act as" the service account.

string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for projectServiceAccount.

getSecurityHealthAnalyticsSettings()

public SecurityHealthAnalyticsSettings getSecurityHealthAnalyticsSettings()

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Returns
Type Description
SecurityHealthAnalyticsSettings

The securityHealthAnalyticsSettings.

getSecurityHealthAnalyticsSettingsBuilder()

public SecurityHealthAnalyticsSettings.Builder getSecurityHealthAnalyticsSettingsBuilder()

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Returns
Type Description
SecurityHealthAnalyticsSettings.Builder

getSecurityHealthAnalyticsSettingsOrBuilder()

public SecurityHealthAnalyticsSettingsOrBuilder getSecurityHealthAnalyticsSettingsOrBuilder()

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Returns
Type Description
SecurityHealthAnalyticsSettingsOrBuilder

getSpecificSettingsCase()

public ComponentSettings.SpecificSettingsCase getSpecificSettingsCase()
Returns
Type Description
ComponentSettings.SpecificSettingsCase

getState()

public ComponentEnablementState getState()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;

Returns
Type Description
ComponentEnablementState

The state.

getStateValue()

public int getStateValue()

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getWebSecurityScannerSettings()

public WebSecurityScanner getWebSecurityScannerSettings()

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Returns
Type Description
WebSecurityScanner

The webSecurityScannerSettings.

getWebSecurityScannerSettingsBuilder()

public WebSecurityScanner.Builder getWebSecurityScannerSettingsBuilder()

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Returns
Type Description
WebSecurityScanner.Builder

getWebSecurityScannerSettingsOrBuilder()

public WebSecurityScannerOrBuilder getWebSecurityScannerSettingsOrBuilder()

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Returns
Type Description
WebSecurityScannerOrBuilder

hasContainerThreatDetectionSettings()

public boolean hasContainerThreatDetectionSettings()

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Returns
Type Description
boolean

Whether the containerThreatDetectionSettings field is set.

hasEventThreatDetectionSettings()

public boolean hasEventThreatDetectionSettings()

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Returns
Type Description
boolean

Whether the eventThreatDetectionSettings field is set.

hasSecurityHealthAnalyticsSettings()

public boolean hasSecurityHealthAnalyticsSettings()

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Returns
Type Description
boolean

Whether the securityHealthAnalyticsSettings field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasWebSecurityScannerSettings()

public boolean hasWebSecurityScannerSettings()

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Returns
Type Description
boolean

Whether the webSecurityScannerSettings field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContainerThreatDetectionSettings(ContainerThreatDetectionSettings value)

public ComponentSettings.Builder mergeContainerThreatDetectionSettings(ContainerThreatDetectionSettings value)

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Parameter
Name Description
value ContainerThreatDetectionSettings
Returns
Type Description
ComponentSettings.Builder

mergeEventThreatDetectionSettings(EventThreatDetectionSettings value)

public ComponentSettings.Builder mergeEventThreatDetectionSettings(EventThreatDetectionSettings value)

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Parameter
Name Description
value EventThreatDetectionSettings
Returns
Type Description
ComponentSettings.Builder

mergeFrom(ComponentSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings value)

public ComponentSettings.Builder mergeSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings value)

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Parameter
Name Description
value SecurityHealthAnalyticsSettings
Returns
Type Description
ComponentSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComponentSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComponentSettings.Builder
Overrides

mergeUpdateTime(Timestamp value)

public ComponentSettings.Builder mergeUpdateTime(Timestamp value)

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ComponentSettings.Builder

mergeWebSecurityScannerSettings(WebSecurityScanner value)

public ComponentSettings.Builder mergeWebSecurityScannerSettings(WebSecurityScanner value)

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Parameter
Name Description
value WebSecurityScanner
Returns
Type Description
ComponentSettings.Builder

putAllDetectorSettings(Map<String,ComponentSettings.DetectorSettings> values)

public ComponentSettings.Builder putAllDetectorSettings(Map<String,ComponentSettings.DetectorSettings> values)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameter
Name Description
values Map<String,DetectorSettings>
Returns
Type Description
ComponentSettings.Builder

putDetectorSettings(String key, ComponentSettings.DetectorSettings value)

public ComponentSettings.Builder putDetectorSettings(String key, ComponentSettings.DetectorSettings value)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameters
Name Description
key String
value ComponentSettings.DetectorSettings
Returns
Type Description
ComponentSettings.Builder

putDetectorSettingsBuilderIfAbsent(String key)

public ComponentSettings.DetectorSettings.Builder putDetectorSettingsBuilderIfAbsent(String key)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameter
Name Description
key String
Returns
Type Description
ComponentSettings.DetectorSettings.Builder

removeDetectorSettings(String key)

public ComponentSettings.Builder removeDetectorSettings(String key)

Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings.DetectorSettings> detector_settings = 4;

Parameter
Name Description
key String
Returns
Type Description
ComponentSettings.Builder

setContainerThreatDetectionSettings(ContainerThreatDetectionSettings value)

public ComponentSettings.Builder setContainerThreatDetectionSettings(ContainerThreatDetectionSettings value)

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Parameter
Name Description
value ContainerThreatDetectionSettings
Returns
Type Description
ComponentSettings.Builder

setContainerThreatDetectionSettings(ContainerThreatDetectionSettings.Builder builderForValue)

public ComponentSettings.Builder setContainerThreatDetectionSettings(ContainerThreatDetectionSettings.Builder builderForValue)

Container Threate Detection specific settings For component, expect CONTAINER_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.ContainerThreatDetectionSettings container_threat_detection_settings = 41;

Parameter
Name Description
builderForValue ContainerThreatDetectionSettings.Builder
Returns
Type Description
ComponentSettings.Builder

setEtag(String value)

public ComponentSettings.Builder setEtag(String value)

Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.

string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public ComponentSettings.Builder setEtagBytes(ByteString value)

Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.

string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setEventThreatDetectionSettings(EventThreatDetectionSettings value)

public ComponentSettings.Builder setEventThreatDetectionSettings(EventThreatDetectionSettings value)

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Parameter
Name Description
value EventThreatDetectionSettings
Returns
Type Description
ComponentSettings.Builder

setEventThreatDetectionSettings(EventThreatDetectionSettings.Builder builderForValue)

public ComponentSettings.Builder setEventThreatDetectionSettings(EventThreatDetectionSettings.Builder builderForValue)

Event Threat Detection specific settings For component, expect EVENT_THREAT_DETECTION

.google.cloud.securitycenter.settings.v1beta1.EventThreatDetectionSettings event_threat_detection_settings = 42;

Parameter
Name Description
builderForValue EventThreatDetectionSettings.Builder
Returns
Type Description
ComponentSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ComponentSettings.Builder setName(String value)

The relative resource name of the component settings. Formats:

  • organizations/{organization}/components/{component}/settings
  • folders/{folder}/components/{component}/settings
  • projects/{project}/components/{component}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ComponentSettings.Builder setNameBytes(ByteString value)

The relative resource name of the component settings. Formats:

  • organizations/{organization}/components/{component}/settings
  • folders/{folder}/components/{component}/settings
  • projects/{project}/components/{component}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setProjectServiceAccount(String value)

public ComponentSettings.Builder setProjectServiceAccount(String value)

Output only. The service account to be used for security center component. The component must have permission to "act as" the service account.

string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The projectServiceAccount to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setProjectServiceAccountBytes(ByteString value)

public ComponentSettings.Builder setProjectServiceAccountBytes(ByteString value)

Output only. The service account to be used for security center component. The component must have permission to "act as" the service account.

string project_service_account = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for projectServiceAccount to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

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

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

setSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings value)

public ComponentSettings.Builder setSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings value)

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Parameter
Name Description
value SecurityHealthAnalyticsSettings
Returns
Type Description
ComponentSettings.Builder

setSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings.Builder builderForValue)

public ComponentSettings.Builder setSecurityHealthAnalyticsSettings(SecurityHealthAnalyticsSettings.Builder builderForValue)

Security Health Analytics specific settings For component, expect SECURITY_HEALTH_ANALYTICS

.google.cloud.securitycenter.settings.v1beta1.SecurityHealthAnalyticsSettings security_health_analytics_settings = 44;

Parameter
Name Description
builderForValue SecurityHealthAnalyticsSettings.Builder
Returns
Type Description
ComponentSettings.Builder

setState(ComponentEnablementState value)

public ComponentSettings.Builder setState(ComponentEnablementState value)

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;

Parameter
Name Description
value ComponentEnablementState

The state to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setStateValue(int value)

public ComponentSettings.Builder setStateValue(int value)

ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.

.google.cloud.securitycenter.settings.v1beta1.ComponentEnablementState state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
ComponentSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public ComponentSettings.Builder setUpdateTime(Timestamp value)

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ComponentSettings.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ComponentSettings.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time these settings were last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ComponentSettings.Builder

setWebSecurityScannerSettings(WebSecurityScanner value)

public ComponentSettings.Builder setWebSecurityScannerSettings(WebSecurityScanner value)

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Parameter
Name Description
value WebSecurityScanner
Returns
Type Description
ComponentSettings.Builder

setWebSecurityScannerSettings(WebSecurityScanner.Builder builderForValue)

public ComponentSettings.Builder setWebSecurityScannerSettings(WebSecurityScanner.Builder builderForValue)

Web Security Scanner specific settings For component, expect WEB_SECURITY_SCANNER

.google.cloud.securitycenter.settings.v1beta1.WebSecurityScanner web_security_scanner_settings = 40;

Parameter
Name Description
builderForValue WebSecurityScanner.Builder
Returns
Type Description
ComponentSettings.Builder