Class CreateEventThreatDetectionCustomModuleRequest.Builder (0.7.0)

public static final class CreateEventThreatDetectionCustomModuleRequest.Builder extends GeneratedMessageV3.Builder<CreateEventThreatDetectionCustomModuleRequest.Builder> implements CreateEventThreatDetectionCustomModuleRequestOrBuilder

Message for creating a EventThreatDetectionCustomModule

Protobuf type google.cloud.securitycentermanagement.v1.CreateEventThreatDetectionCustomModuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEventThreatDetectionCustomModuleRequest build()
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest

buildPartial()

public CreateEventThreatDetectionCustomModuleRequest buildPartial()
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest

clear()

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

clearEventThreatDetectionCustomModule()

public CreateEventThreatDetectionCustomModuleRequest.Builder clearEventThreatDetectionCustomModule()

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateEventThreatDetectionCustomModuleRequest.Builder clearParent()

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

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

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateEventThreatDetectionCustomModuleRequest.Builder clearValidateOnly()

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or

  1. A failure occurred during creation of the module.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventThreatDetectionCustomModule()

public EventThreatDetectionCustomModule getEventThreatDetectionCustomModule()

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EventThreatDetectionCustomModule

The eventThreatDetectionCustomModule.

getEventThreatDetectionCustomModuleBuilder()

public EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder()

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EventThreatDetectionCustomModule.Builder

getEventThreatDetectionCustomModuleOrBuilder()

public EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder()

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EventThreatDetectionCustomModuleOrBuilder

getParent()

public String getParent()

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

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

Returns
TypeDescription
ByteString

The bytes for parent.

getValidateOnly()

public boolean getValidateOnly()

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or

  1. A failure occurred during creation of the module.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The validateOnly.

hasEventThreatDetectionCustomModule()

public boolean hasEventThreatDetectionCustomModule()

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the eventThreatDetectionCustomModule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

public CreateEventThreatDetectionCustomModuleRequest.Builder mergeEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueEventThreatDetectionCustomModule
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

mergeFrom(CreateEventThreatDetectionCustomModuleRequest other)

public CreateEventThreatDetectionCustomModuleRequest.Builder mergeFrom(CreateEventThreatDetectionCustomModuleRequest other)
Parameter
NameDescription
otherCreateEventThreatDetectionCustomModuleRequest
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

public CreateEventThreatDetectionCustomModuleRequest.Builder setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueEventThreatDetectionCustomModule
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule.Builder builderForValue)

public CreateEventThreatDetectionCustomModuleRequest.Builder setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule.Builder builderForValue)

Required. The module to create. The event_threat_detection_custom_module.name will be ignored and server generated.

.google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule event_threat_detection_custom_module = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueEventThreatDetectionCustomModule.Builder
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateEventThreatDetectionCustomModuleRequest.Builder setParent(String value)

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEventThreatDetectionCustomModuleRequest.Builder setParentBytes(ByteString value)

Required. Name of parent for the module. Its format is "organizations/{organization}/locations/{location}", "folders/{folder}/locations/{location}", or "projects/{project}/locations/{location}"

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

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

public CreateEventThreatDetectionCustomModuleRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateEventThreatDetectionCustomModuleRequest.Builder setValidateOnly(boolean value)

Optional. When set to true, only validations (including IAM checks) will done for the request (no module will be created). An OK response indicates the request is valid while an error response indicates the request is invalid. Note that a subsequent request to actually create the module could still fail because 1. the state could have changed (e.g. IAM permission lost) or

  1. A failure occurred during creation of the module.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.