Class EffectiveEventThreatDetectionCustomModule.Builder (0.2.0)

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

An EffectiveEventThreatDetectionCustomModule is the representation of EventThreatDetectionCustomModule at a given level taking hierarchy into account and resolving various fields accordingly. e.g. if the module is enabled at the ancestor level, effective modules at all descendant levels will have enablement_state set to ENABLED. Similarly, if module.inherited is set, then effective module's config will contain the ancestor's config details. EffectiveEventThreatDetectionCustomModule is read-only.

Protobuf type google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EffectiveEventThreatDetectionCustomModule build()
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

buildPartial()

public EffectiveEventThreatDetectionCustomModule buildPartial()
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

clear()

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

clearConfig()

public EffectiveEventThreatDetectionCustomModule.Builder clearConfig()

Output only. Config for the effective module.

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

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

clearDescription()

public EffectiveEventThreatDetectionCustomModule.Builder clearDescription()

Output only. The description for the module.

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

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearDisplayName()

public EffectiveEventThreatDetectionCustomModule.Builder clearDisplayName()

Output only. The human readable name to be displayed for the module.

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

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EffectiveEventThreatDetectionCustomModule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder
Overrides

clearName()

public EffectiveEventThreatDetectionCustomModule.Builder clearName()

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

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

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public EffectiveEventThreatDetectionCustomModule.Builder clearType()

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.

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

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

clone()

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

getConfig()

public Struct getConfig()

Output only. Config for the effective module.

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

Returns
TypeDescription
Struct

The config.

getConfigBuilder()

public Struct.Builder getConfigBuilder()

Output only. Config for the effective module.

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

Returns
TypeDescription
Builder

getConfigOrBuilder()

public StructOrBuilder getConfigOrBuilder()

Output only. Config for the effective module.

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

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public EffectiveEventThreatDetectionCustomModule getDefaultInstanceForType()
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule

getDescription()

public String getDescription()

Output only. The description for the module.

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

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. The description for the module.

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

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. The human readable name to be displayed for the module.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The human readable name to be displayed for the module.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for enablementState.

getName()

public String getName()

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

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

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public String getType()

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.

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

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.

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

Returns
TypeDescription
ByteString

The bytes for type.

hasConfig()

public boolean hasConfig()

Output only. Config for the effective module.

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

Returns
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConfig(Struct value)

public EffectiveEventThreatDetectionCustomModule.Builder mergeConfig(Struct value)

Output only. Config for the effective module.

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

Parameter
NameDescription
valueStruct
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

mergeFrom(EffectiveEventThreatDetectionCustomModule other)

public EffectiveEventThreatDetectionCustomModule.Builder mergeFrom(EffectiveEventThreatDetectionCustomModule other)
Parameter
NameDescription
otherEffectiveEventThreatDetectionCustomModule
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfig(Struct value)

public EffectiveEventThreatDetectionCustomModule.Builder setConfig(Struct value)

Output only. Config for the effective module.

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

Parameter
NameDescription
valueStruct
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

setConfig(Struct.Builder builderForValue)

public EffectiveEventThreatDetectionCustomModule.Builder setConfig(Struct.Builder builderForValue)

Output only. Config for the effective module.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

setDescription(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setDescription(String value)

Output only. The description for the module.

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

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setDescriptionBytes(ByteString value)

Output only. The description for the module.

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

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDisplayName(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setDisplayName(String value)

Output only. The human readable name to be displayed for the module.

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setDisplayNameBytes(ByteString value)

Output only. The human readable name to be displayed for the module.

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueEffectiveEventThreatDetectionCustomModule.EnablementState

The enablementState to set.

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

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

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setName(String value)

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setNameBytes(ByteString value)

Immutable. The resource name of the ETD custom module.

Its format is:

  • "organizations/{organization}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "folders/{folder}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".
  • "projects/{project}/locations/{location}/effectiveEventThreatDetectionCustomModules/{effective_event_threat_detection_custom_module}".

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

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

setType(String value)

public EffectiveEventThreatDetectionCustomModule.Builder setType(String value)

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.

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

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public EffectiveEventThreatDetectionCustomModule.Builder setTypeBytes(ByteString value)

Output only. Type for the module. e.g. CONFIGURABLE_BAD_IP.

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

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
EffectiveEventThreatDetectionCustomModule.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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