Class ComponentSettings.Builder (0.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComponentSettings build()
Returns
TypeDescription
ComponentSettings

buildPartial()

public ComponentSettings buildPartial()
Returns
TypeDescription
ComponentSettings

clear()

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

clearDetectorSettings()

public ComponentSettings.Builder clearDetectorSettings()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComponentSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public ComponentSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ComponentSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComponentSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComponentSettings.Builder

clearSpecificSettings()

public ComponentSettings.Builder clearSpecificSettings()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComponentSettings.Builder

clone()

public ComponentSettings.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ContainerThreatDetectionSettingsOrBuilder

getDefaultInstanceForType()

public ComponentSettings getDefaultInstanceForType()
Returns
TypeDescription
ComponentSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectorSettings()

public Map<String,ComponentSettings.DetectorSettings> getDetectorSettings()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueComponentSettings.DetectorSettings
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
EventThreatDetectionSettingsOrBuilder

getMutableDetectorSettings()

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

Use alternate mutation accessors instead.

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

getSpecificSettingsCase()

public ComponentSettings.SpecificSettingsCase getSpecificSettingsCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the webSecurityScannerSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueContainerThreatDetectionSettings
Returns
TypeDescription
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
NameDescription
valueEventThreatDetectionSettings
Returns
TypeDescription
ComponentSettings.Builder

mergeFrom(ComponentSettings other)

public ComponentSettings.Builder mergeFrom(ComponentSettings other)
Parameter
NameDescription
otherComponentSettings
Returns
TypeDescription
ComponentSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ComponentSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsSettings
Returns
TypeDescription
ComponentSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComponentSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueWebSecurityScanner
Returns
TypeDescription
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
NameDescription
valuesMap<String,DetectorSettings>
Returns
TypeDescription
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
NameDescription
keyString
valueComponentSettings.DetectorSettings
Returns
TypeDescription
ComponentSettings.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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueContainerThreatDetectionSettings
Returns
TypeDescription
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
NameDescription
builderForValueContainerThreatDetectionSettings.Builder
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

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

The bytes for etag to set.

Returns
TypeDescription
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
NameDescription
valueEventThreatDetectionSettings
Returns
TypeDescription
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
NameDescription
builderForValueEventThreatDetectionSettings.Builder
Returns
TypeDescription
ComponentSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The projectServiceAccount to set.

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

The bytes for projectServiceAccount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSecurityHealthAnalyticsSettings
Returns
TypeDescription
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
NameDescription
builderForValueSecurityHealthAnalyticsSettings.Builder
Returns
TypeDescription
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
NameDescription
valueComponentEnablementState

The state to set.

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

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

Returns
TypeDescription
ComponentSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComponentSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueWebSecurityScanner
Returns
TypeDescription
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
NameDescription
builderForValueWebSecurityScanner.Builder
Returns
TypeDescription
ComponentSettings.Builder