Class Settings (0.14.0)

public final class Settings extends GeneratedMessageV3 implements SettingsOrBuilder

Common configuration settings for all of Security Center.

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

Implements

SettingsOrBuilder

Static Fields

BILLING_SETTINGS_FIELD_NUMBER

public static final int BILLING_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

COMPONENT_SETTINGS_FIELD_NUMBER

public static final int COMPONENT_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

DETECTOR_GROUP_SETTINGS_FIELD_NUMBER

public static final int DETECTOR_GROUP_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ORG_SERVICE_ACCOUNT_FIELD_NUMBER

public static final int ORG_SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

SINK_SETTINGS_FIELD_NUMBER

public static final int SINK_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

Static Methods

getDefaultInstance()

public static Settings getDefaultInstance()
Returns
TypeDescription
Settings

getDescriptor()

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

newBuilder()

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

newBuilder(Settings prototype)

public static Settings.Builder newBuilder(Settings prototype)
Parameter
NameDescription
prototypeSettings
Returns
TypeDescription
Settings.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsComponentSettings(String key)

public boolean containsComponentSettings(String key)

The settings for detectors and/or scanners.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsDetectorGroupSettings(String key)

public boolean containsDetectorGroupSettings(String key)

Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.

map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

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

getBillingSettings()

public BillingSettings getBillingSettings()

Billing settings

.google.cloud.securitycenter.settings.v1beta1.BillingSettings billing_settings = 2;

Returns
TypeDescription
BillingSettings

The billingSettings.

getBillingSettingsOrBuilder()

public BillingSettingsOrBuilder getBillingSettingsOrBuilder()

Billing settings

.google.cloud.securitycenter.settings.v1beta1.BillingSettings billing_settings = 2;

Returns
TypeDescription
BillingSettingsOrBuilder

getComponentSettings()

public Map<String,ComponentSettings> getComponentSettings()
Returns
TypeDescription
Map<String,ComponentSettings>

getComponentSettingsCount()

public int getComponentSettingsCount()

The settings for detectors and/or scanners.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;

Returns
TypeDescription
int

getComponentSettingsMap()

public Map<String,ComponentSettings> getComponentSettingsMap()

The settings for detectors and/or scanners.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;

Returns
TypeDescription
Map<String,ComponentSettings>

getComponentSettingsOrDefault(String key, ComponentSettings defaultValue)

public ComponentSettings getComponentSettingsOrDefault(String key, ComponentSettings defaultValue)

The settings for detectors and/or scanners.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;

Parameters
NameDescription
keyString
defaultValueComponentSettings
Returns
TypeDescription
ComponentSettings

getComponentSettingsOrThrow(String key)

public ComponentSettings getComponentSettingsOrThrow(String key)

The settings for detectors and/or scanners.

map<string, .google.cloud.securitycenter.settings.v1beta1.ComponentSettings> component_settings = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
ComponentSettings

getDefaultInstanceForType()

public Settings getDefaultInstanceForType()
Returns
TypeDescription
Settings

getDetectorGroupSettings()

public Map<String,Settings.DetectorGroupSettings> getDetectorGroupSettings()
Returns
TypeDescription
Map<String,DetectorGroupSettings>

getDetectorGroupSettingsCount()

public int getDetectorGroupSettingsCount()

Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.

map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;

Returns
TypeDescription
int

getDetectorGroupSettingsMap()

public Map<String,Settings.DetectorGroupSettings> getDetectorGroupSettingsMap()

Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.

map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;

Returns
TypeDescription
Map<String,DetectorGroupSettings>

getDetectorGroupSettingsOrDefault(String key, Settings.DetectorGroupSettings defaultValue)

public Settings.DetectorGroupSettings getDetectorGroupSettingsOrDefault(String key, Settings.DetectorGroupSettings defaultValue)

Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.

map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;

Parameters
NameDescription
keyString
defaultValueSettings.DetectorGroupSettings
Returns
TypeDescription
Settings.DetectorGroupSettings

getDetectorGroupSettingsOrThrow(String key)

public Settings.DetectorGroupSettings getDetectorGroupSettingsOrThrow(String key)

Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.

map<string, .google.cloud.securitycenter.settings.v1beta1.Settings.DetectorGroupSettings> detector_group_settings = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
Settings.DetectorGroupSettings

getEtag()

public String getEtag()

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

string etag = 9;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

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

string etag = 9;

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

The relative resource name of the settings resource. Formats:

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

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of the settings resource. Formats:

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

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOrgServiceAccount()

public String getOrgServiceAccount()

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

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

Returns
TypeDescription
String

The orgServiceAccount.

getOrgServiceAccountBytes()

public ByteString getOrgServiceAccountBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for orgServiceAccount.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSinkSettings()

public SinkSettings getSinkSettings()

Sink settings.

.google.cloud.securitycenter.settings.v1beta1.SinkSettings sink_settings = 6;

Returns
TypeDescription
SinkSettings

The sinkSettings.

getSinkSettingsOrBuilder()

public SinkSettingsOrBuilder getSinkSettingsOrBuilder()

Sink settings.

.google.cloud.securitycenter.settings.v1beta1.SinkSettings sink_settings = 6;

Returns
TypeDescription
SinkSettingsOrBuilder

getState()

public Settings.OnboardingState getState()

An enum representing the current on boarding state of SCC.

.google.cloud.securitycenter.settings.v1beta1.Settings.OnboardingState state = 3;

Returns
TypeDescription
Settings.OnboardingState

The state.

getStateValue()

public int getStateValue()

An enum representing the current on boarding state of SCC.

.google.cloud.securitycenter.settings.v1beta1.Settings.OnboardingState state = 3;

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 = 10 [(.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 = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasBillingSettings()

public boolean hasBillingSettings()

Billing settings

.google.cloud.securitycenter.settings.v1beta1.BillingSettings billing_settings = 2;

Returns
TypeDescription
boolean

Whether the billingSettings field is set.

hasSinkSettings()

public boolean hasSinkSettings()

Sink settings.

.google.cloud.securitycenter.settings.v1beta1.SinkSettings sink_settings = 6;

Returns
TypeDescription
boolean

Whether the sinkSettings field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time these settings were last updated.

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

Returns
TypeDescription
boolean

Whether the updateTime 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 Settings.Builder newBuilderForType()
Returns
TypeDescription
Settings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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