Class UpdateEventThreatDetectionCustomModuleRequest.Builder (0.1.0)

public static final class UpdateEventThreatDetectionCustomModuleRequest.Builder extends GeneratedMessageV3.Builder<UpdateEventThreatDetectionCustomModuleRequest.Builder> implements UpdateEventThreatDetectionCustomModuleRequestOrBuilder

Message for updating a EventThreatDetectionCustomModule

Protobuf type google.cloud.securitycentermanagement.v1.UpdateEventThreatDetectionCustomModuleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateEventThreatDetectionCustomModuleRequest build()
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest

buildPartial()

public UpdateEventThreatDetectionCustomModuleRequest buildPartial()
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest

clear()

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

clearEventThreatDetectionCustomModule()

public UpdateEventThreatDetectionCustomModuleRequest.Builder clearEventThreatDetectionCustomModule()

Required. The module being updated

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

Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateEventThreatDetectionCustomModuleRequest.Builder clearUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

clearValidateOnly()

public UpdateEventThreatDetectionCustomModuleRequest.Builder clearValidateOnly()

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

  1. A failure occurred while trying to update the module.

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

Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateEventThreatDetectionCustomModuleRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventThreatDetectionCustomModule()

public EventThreatDetectionCustomModule getEventThreatDetectionCustomModule()

Required. The module being updated

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

Returns
TypeDescription
EventThreatDetectionCustomModule

The eventThreatDetectionCustomModule.

getEventThreatDetectionCustomModuleBuilder()

public EventThreatDetectionCustomModule.Builder getEventThreatDetectionCustomModuleBuilder()

Required. The module being updated

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

Returns
TypeDescription
EventThreatDetectionCustomModule.Builder

getEventThreatDetectionCustomModuleOrBuilder()

public EventThreatDetectionCustomModuleOrBuilder getEventThreatDetectionCustomModuleOrBuilder()

Required. The module being updated

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

Returns
TypeDescription
EventThreatDetectionCustomModuleOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

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

  1. A failure occurred while trying to update the module.

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

Returns
TypeDescription
boolean

The validateOnly.

hasEventThreatDetectionCustomModule()

public boolean hasEventThreatDetectionCustomModule()

Required. The module being updated

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

Returns
TypeDescription
boolean

Whether the eventThreatDetectionCustomModule field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the updateMask 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 UpdateEventThreatDetectionCustomModuleRequest.Builder mergeEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

Required. The module being updated

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

Parameter
NameDescription
valueEventThreatDetectionCustomModule
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

mergeFrom(UpdateEventThreatDetectionCustomModuleRequest other)

public UpdateEventThreatDetectionCustomModuleRequest.Builder mergeFrom(UpdateEventThreatDetectionCustomModuleRequest other)
Parameter
NameDescription
otherUpdateEventThreatDetectionCustomModuleRequest
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateEventThreatDetectionCustomModuleRequest.Builder mergeUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

public UpdateEventThreatDetectionCustomModuleRequest.Builder setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule value)

Required. The module being updated

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

Parameter
NameDescription
valueEventThreatDetectionCustomModule
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule.Builder builderForValue)

public UpdateEventThreatDetectionCustomModuleRequest.Builder setEventThreatDetectionCustomModule(EventThreatDetectionCustomModule.Builder builderForValue)

Required. The module being updated

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

Parameter
NameDescription
builderForValueEventThreatDetectionCustomModule.Builder
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateEventThreatDetectionCustomModuleRequest.Builder setUpdateMask(FieldMask value)

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateEventThreatDetectionCustomModuleRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Field mask is used to specify the fields to be overwritten in the EventThreatDetectionCustomModule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

setValidateOnly(boolean value)

public UpdateEventThreatDetectionCustomModuleRequest.Builder setValidateOnly(boolean value)

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

  1. A failure occurred while trying to update the module.

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

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
UpdateEventThreatDetectionCustomModuleRequest.Builder

This builder for chaining.