Class EffectiveSecurityHealthAnalyticsCustomModule.Builder (2.53.0)

public static final class EffectiveSecurityHealthAnalyticsCustomModule.Builder extends GeneratedMessageV3.Builder<EffectiveSecurityHealthAnalyticsCustomModule.Builder> implements EffectiveSecurityHealthAnalyticsCustomModuleOrBuilder

An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the enablementState property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of INHERITED. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also enabled. EffectiveSecurityHealthAnalyticsCustomModule is read-only.

Protobuf type google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EffectiveSecurityHealthAnalyticsCustomModule build()
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule

buildPartial()

public EffectiveSecurityHealthAnalyticsCustomModule buildPartial()
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule

clear()

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

clearCustomConfig()

public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearCustomConfig()

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

clearDisplayName()

public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearDisplayName()

Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearEnablementState()

public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearEnablementState()

Output only. The effective state of enablement for the module at the given level of the hierarchy.

.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public EffectiveSecurityHealthAnalyticsCustomModule.Builder clearName()

Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCustomConfig()

public CustomConfig getCustomConfig()

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomConfig

The customConfig.

getCustomConfigBuilder()

public CustomConfig.Builder getCustomConfigBuilder()

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomConfig.Builder

getCustomConfigOrBuilder()

public CustomConfigOrBuilder getCustomConfigOrBuilder()

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomConfigOrBuilder

getDefaultInstanceForType()

public EffectiveSecurityHealthAnalyticsCustomModule getDefaultInstanceForType()
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getEnablementState()

public EffectiveSecurityHealthAnalyticsCustomModule.EnablementState getEnablementState()

Output only. The effective state of enablement for the module at the given level of the hierarchy.

.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.EnablementState

The enablementState.

getEnablementStateValue()

public int getEnablementStateValue()

Output only. The effective state of enablement for the module at the given level of the hierarchy.

.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for enablementState.

getName()

public String getName()

Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

hasCustomConfig()

public boolean hasCustomConfig()

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the customConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomConfig(CustomConfig value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder mergeCustomConfig(CustomConfig value)

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomConfig
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

mergeFrom(EffectiveSecurityHealthAnalyticsCustomModule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCustomConfig(CustomConfig value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig value)

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomConfig
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

setCustomConfig(CustomConfig.Builder builderForValue)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setCustomConfig(CustomConfig.Builder builderForValue)

Output only. The user-specified configuration for the module.

.google.cloud.securitycenter.v1.CustomConfig custom_config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CustomConfig.Builder
Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

setDisplayName(String value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayName(String value)

Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setDisplayNameBytes(ByteString value)

Output only. The display name for the custom module. The name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementState(EffectiveSecurityHealthAnalyticsCustomModule.EnablementState value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setEnablementState(EffectiveSecurityHealthAnalyticsCustomModule.EnablementState value)

Output only. The effective state of enablement for the module at the given level of the hierarchy.

.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EffectiveSecurityHealthAnalyticsCustomModule.EnablementState

The enablementState to set.

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setEnablementStateValue(int value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setEnablementStateValue(int value)

Output only. The effective state of enablement for the module at the given level of the hierarchy.

.google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setName(String value)

Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EffectiveSecurityHealthAnalyticsCustomModule.Builder setNameBytes(ByteString value)

Output only. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{customModule}"

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EffectiveSecurityHealthAnalyticsCustomModule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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