Class EffectiveEventThreatDetectionCustomModule.Builder (0.22.0)

public static final class EffectiveEventThreatDetectionCustomModule.Builder extends GeneratedMessageV3.Builder<EffectiveEventThreatDetectionCustomModule.Builder> implements EffectiveEventThreatDetectionCustomModuleOrBuilder

The representation of an EventThreatDetectionCustomModule at a given level, taking hierarchy into account and resolving various fields accordingly. For example, if the module is enabled at the ancestor level, then effective modules at all descendant levels will have their enablement state set to ENABLED. Similarly, if module.inherited is set, then the effective module's configuration will reflect the ancestor's configuration.

Protobuf type google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EffectiveEventThreatDetectionCustomModule build()
Returns
Type Description
EffectiveEventThreatDetectionCustomModule

buildPartial()

public EffectiveEventThreatDetectionCustomModule buildPartial()
Returns
Type Description
EffectiveEventThreatDetectionCustomModule

clear()

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

clearConfig()

public EffectiveEventThreatDetectionCustomModule.Builder clearConfig()

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

clearDescription()

public EffectiveEventThreatDetectionCustomModule.Builder clearDescription()

Output only. A description of the module.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearDisplayName()

public EffectiveEventThreatDetectionCustomModule.Builder clearDisplayName()

Output only. The human-readable name of the module.

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

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearEnablementState()

public EffectiveEventThreatDetectionCustomModule.Builder clearEnablementState()

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

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

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public EffectiveEventThreatDetectionCustomModule.Builder clearName()

Identifier. The resource name of the Event Threat Detection custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}

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

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public EffectiveEventThreatDetectionCustomModule.Builder clearType()

Output only. Type for the module (for example, CONFIGURABLE_BAD_IP).

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

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clone()

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

getConfig()

public Struct getConfig()

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The config.

getConfigBuilder()

public Struct.Builder getConfigBuilder()

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getConfigOrBuilder()

public StructOrBuilder getConfigOrBuilder()

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType()
Returns
Type Description
EffectiveEventThreatDetectionCustomModule

getDescription()

public String getDescription()

Output only. A description of the module.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. A description of the module.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The human-readable name of the module.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The human-readable name of the module.

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

Returns
Type Description
ByteString

The bytes for displayName.

getEnablementState()

public EffectiveEventThreatDetectionCustomModule.EnablementState getEnablementState()

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

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

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.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.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.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()

Identifier. The resource name of the Event Threat Detection custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the Event Threat Detection custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}

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

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

Output only. Type for the module (for example, CONFIGURABLE_BAD_IP).

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. Type for the module (for example, CONFIGURABLE_BAD_IP).

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

Returns
Type Description
ByteString

The bytes for type.

hasConfig()

public boolean hasConfig()

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(Struct value)

public EffectiveEventThreatDetectionCustomModule.Builder mergeConfig(Struct value)

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

mergeFrom(EffectiveEventThreatDetectionCustomModule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfig(Struct value)

public EffectiveEventThreatDetectionCustomModule.Builder setConfig(Struct value)

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

setConfig(Struct.Builder builderForValue)

public EffectiveEventThreatDetectionCustomModule.Builder setConfig(Struct.Builder builderForValue)

Output only. Configuration for the effective module.

.google.protobuf.Struct config = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

setDescription(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setDescription(String value)

Output only. A description of the module.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setDescriptionBytes(ByteString value)

Output only. A description of the module.

string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDisplayName(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setDisplayName(String value)

Output only. The human-readable name of the module.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setDisplayNameBytes(ByteString value)

Output only. The human-readable name of the module.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setEnablementState(EffectiveEventThreatDetectionCustomModule.EnablementState value)

public EffectiveEventThreatDetectionCustomModule.Builder setEnablementState(EffectiveEventThreatDetectionCustomModule.EnablementState value)

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

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

Parameter
Name Description
value EffectiveEventThreatDetectionCustomModule.EnablementState

The enablementState to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setEnablementStateValue(int value)

public EffectiveEventThreatDetectionCustomModule.Builder setEnablementStateValue(int value)

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

.google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule.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
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setName(String value)

Identifier. The resource name of the Event Threat Detection custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setNameBytes(ByteString value)

Identifier. The resource name of the Event Threat Detection custom module, in one of the following formats:

  • organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{custom_module}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

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

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

setType(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setType(String value)

Output only. Type for the module (for example, CONFIGURABLE_BAD_IP).

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setTypeBytes(ByteString value)

Output only. Type for the module (for example, CONFIGURABLE_BAD_IP).

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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