Class OrganizationSettings.Builder (2.28.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.v1.OrganizationSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OrganizationSettings build()
Returns
TypeDescription
OrganizationSettings

buildPartial()

public OrganizationSettings buildPartial()
Returns
TypeDescription
OrganizationSettings

clear()

public OrganizationSettings.Builder clear()
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

clearAssetDiscoveryConfig()

public OrganizationSettings.Builder clearAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

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

Returns
TypeDescription
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
TypeDescription
OrganizationSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OrganizationSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

clone()

public OrganizationSettings.Builder clone()
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

getAssetDiscoveryConfig()

public OrganizationSettings.AssetDiscoveryConfig getAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

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

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig

The assetDiscoveryConfig.

getAssetDiscoveryConfigBuilder()

public OrganizationSettings.AssetDiscoveryConfig.Builder getAssetDiscoveryConfigBuilder()

The configuration used for Asset Discovery runs.

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

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfig.Builder

getAssetDiscoveryConfigOrBuilder()

public OrganizationSettings.AssetDiscoveryConfigOrBuilder getAssetDiscoveryConfigOrBuilder()

The configuration used for Asset Discovery runs.

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

Returns
TypeDescription
OrganizationSettings.AssetDiscoveryConfigOrBuilder

getDefaultInstanceForType()

public OrganizationSettings getDefaultInstanceForType()
Returns
TypeDescription
OrganizationSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

hasAssetDiscoveryConfig()

public boolean hasAssetDiscoveryConfig()

The configuration used for Asset Discovery runs.

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

Returns
TypeDescription
boolean

Whether the assetDiscoveryConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

public OrganizationSettings.Builder mergeAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

The configuration used for Asset Discovery runs.

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

Parameter
NameDescription
valueOrganizationSettings.AssetDiscoveryConfig
Returns
TypeDescription
OrganizationSettings.Builder

mergeFrom(OrganizationSettings other)

public OrganizationSettings.Builder mergeFrom(OrganizationSettings other)
Parameter
NameDescription
otherOrganizationSettings
Returns
TypeDescription
OrganizationSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OrganizationSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OrganizationSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

public OrganizationSettings.Builder setAssetDiscoveryConfig(OrganizationSettings.AssetDiscoveryConfig value)

The configuration used for Asset Discovery runs.

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

Parameter
NameDescription
valueOrganizationSettings.AssetDiscoveryConfig
Returns
TypeDescription
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.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;

Parameter
NameDescription
builderForValueOrganizationSettings.AssetDiscoveryConfig.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The enableAssetDiscovery to set.

Returns
TypeDescription
OrganizationSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OrganizationSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OrganizationSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OrganizationSettings.Builder
Overrides