Class ValidateEventThreatDetectionCustomModuleRequest.Builder (2.91.0)

public static final class ValidateEventThreatDetectionCustomModuleRequest.Builder extends GeneratedMessage.Builder<ValidateEventThreatDetectionCustomModuleRequest.Builder> implements ValidateEventThreatDetectionCustomModuleRequestOrBuilder

Request to validate an Event Threat Detection custom module.

Protobuf type google.cloud.securitycenter.v1.ValidateEventThreatDetectionCustomModuleRequest

Static Methods

getDescriptor()

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

Methods

build()

public ValidateEventThreatDetectionCustomModuleRequest build()
Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest

buildPartial()

public ValidateEventThreatDetectionCustomModuleRequest buildPartial()
Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest

clear()

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

clearParent()

public ValidateEventThreatDetectionCustomModuleRequest.Builder clearParent()

Required. Resource name of the parent to validate the Custom Module under.

Its format is:

  • organizations/{organization}/eventThreatDetectionSettings.
  • folders/{folder}/eventThreatDetectionSettings.
  • projects/{project}/eventThreatDetectionSettings.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

clearRawText()

public ValidateEventThreatDetectionCustomModuleRequest.Builder clearRawText()

Required. The raw text of the module's contents. Used to generate error messages.

string raw_text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

clearType()

public ValidateEventThreatDetectionCustomModuleRequest.Builder clearType()

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).

string type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ValidateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType()
Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. Resource name of the parent to validate the Custom Module under.

Its format is:

  • organizations/{organization}/eventThreatDetectionSettings.
  • folders/{folder}/eventThreatDetectionSettings.
  • projects/{project}/eventThreatDetectionSettings.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Resource name of the parent to validate the Custom Module under.

Its format is:

  • organizations/{organization}/eventThreatDetectionSettings.
  • folders/{folder}/eventThreatDetectionSettings.
  • projects/{project}/eventThreatDetectionSettings.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRawText()

public String getRawText()

Required. The raw text of the module's contents. Used to generate error messages.

string raw_text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The rawText.

getRawTextBytes()

public ByteString getRawTextBytes()

Required. The raw text of the module's contents. Used to generate error messages.

string raw_text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for rawText.

getType()

public String getType()

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).

string type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).

string type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValidateEventThreatDetectionCustomModuleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setParent(String value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setParent(String value)

Required. Resource name of the parent to validate the Custom Module under.

Its format is:

  • organizations/{organization}/eventThreatDetectionSettings.
  • folders/{folder}/eventThreatDetectionSettings.
  • projects/{project}/eventThreatDetectionSettings.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setParentBytes(ByteString value)

Required. Resource name of the parent to validate the Custom Module under.

Its format is:

  • organizations/{organization}/eventThreatDetectionSettings.
  • folders/{folder}/eventThreatDetectionSettings.
  • projects/{project}/eventThreatDetectionSettings.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setRawText(String value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setRawText(String value)

Required. The raw text of the module's contents. Used to generate error messages.

string raw_text = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The rawText to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setRawTextBytes(ByteString value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setRawTextBytes(ByteString value)

Required. The raw text of the module's contents. Used to generate error messages.

string raw_text = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for rawText to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setType(String value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setType(String value)

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).

string type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ValidateEventThreatDetectionCustomModuleRequest.Builder setTypeBytes(ByteString value)

Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).

string type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
ValidateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.