Class ComponentSettings (0.8.0)

public final class ComponentSettings extends GeneratedMessageV3 implements ComponentSettingsOrBuilder

Component Settings for Security Command Center

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

Static Fields

CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

public static final int CONTAINER_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

DETECTOR_SETTINGS_FIELD_NUMBER

public static final int DETECTOR_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER

public static final int EVENT_THREAT_DETECTION_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER

public static final int PROJECT_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER

public static final int SECURITY_HEALTH_ANALYTICS_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER

public static final int WEB_SECURITY_SCANNER_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComponentSettings getDefaultInstance()
Returns
TypeDescription
ComponentSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ComponentSettings.Builder newBuilder()
Returns
TypeDescription
ComponentSettings.Builder

newBuilder(ComponentSettings prototype)

public static ComponentSettings.Builder newBuilder(ComponentSettings prototype)
Parameter
NameDescription
prototypeComponentSettings
Returns
TypeDescription
ComponentSettings.Builder

parseDelimitedFrom(InputStream input)

public static ComponentSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComponentSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComponentSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComponentSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComponentSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComponentSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComponentSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComponentSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComponentSettings> parser()
Returns
TypeDescription
Parser<ComponentSettings>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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.

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

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.

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

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.

getParserForType()

public Parser<ComponentSettings> getParserForType()
Returns
TypeDescription
Parser<ComponentSettings>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComponentSettings.Builder newBuilderForType()
Returns
TypeDescription
ComponentSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComponentSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComponentSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComponentSettings.Builder toBuilder()
Returns
TypeDescription
ComponentSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException