Class OrganizationSettings.Builder (2.62.0)

public static final class OrganizationSettings.Builder extends GeneratedMessageV3.Builder<OrganizationSettings.Builder> implements OrganizationSettingsOrBuilder

User specified settings that are attached to the Security Command Center organization.

Protobuf type google.cloud.securitycenter.v1beta1.OrganizationSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrganizationSettings build()
Returns
Type Description
OrganizationSettings

buildPartial()

public OrganizationSettings buildPartial()
Returns
Type Description
OrganizationSettings

clear()

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

clearAssetDiscoveryConfig()

public OrganizationSettings.Builder clearAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Returns
Type Description
OrganizationSettings.Builder

clearEnableAssetDiscovery()

public OrganizationSettings.Builder clearEnableAssetDiscovery()

A flag that indicates if Asset Discovery should be enabled. If the flag is set to true, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.

bool enable_asset_discovery = 2;

Returns
Type Description
OrganizationSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public OrganizationSettings.Builder clearName()

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

string name = 1;

Returns
Type Description
OrganizationSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAssetDiscoveryConfig()

public OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig

The assetDiscoveryConfig.

getAssetDiscoveryConfigBuilder()

public OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder()

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfig.Builder

getAssetDiscoveryConfigOrBuilder()

public OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder()

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Returns
Type Description
OrganizationSettings.AssetDiscoveryConfigOrBuilder

getDefaultInstanceForType()

public OrganizationSettings getDefaultInstanceForType()
Returns
Type Description
OrganizationSettings

getDescriptorForType()

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

getEnableAssetDiscovery()

public boolean getEnableAssetDiscovery()

A flag that indicates if Asset Discovery should be enabled. If the flag is set to true, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.

bool enable_asset_discovery = 2;

Returns
Type Description
boolean

The enableAssetDiscovery.

getName()

public String getName()

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasAssetDiscoveryConfig()

public boolean hasAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Returns
Type Description
boolean

Whether the assetDiscoveryConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

public OrganizationSettings.Builder mergeAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Parameter
Name Description
value OrganizationSettings.AssetDiscoveryConfig
Returns
Type Description
OrganizationSettings.Builder

mergeFrom(OrganizationSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

public OrganizationSettings.Builder setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Parameter
Name Description
value OrganizationSettings.AssetDiscoveryConfig
Returns
Type Description
OrganizationSettings.Builder

setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue)

public OrganizationSettings.Builder setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig.Builder builderForValue)

The configuration used for Asset Discovery runs.

.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Parameter
Name Description
builderForValue OrganizationSettings.AssetDiscoveryConfig.Builder
Returns
Type Description
OrganizationSettings.Builder

setEnableAssetDiscovery(boolean value)

public OrganizationSettings.Builder setEnableAssetDiscovery(boolean value)

A flag that indicates if Asset Discovery should be enabled. If the flag is set to true, then discovery of assets will occur. If it is set to `false, all historical assets will remain, but discovery of future assets will not occur.

bool enable_asset_discovery = 2;

Parameter
Name Description
value boolean

The enableAssetDiscovery to set.

Returns
Type Description
OrganizationSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public OrganizationSettings.Builder setName(String value)

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
OrganizationSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public OrganizationSettings.Builder setNameBytes(ByteString value)

The relative resource name of the settings. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/organizationSettings".

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
OrganizationSettings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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