Class UpdateSecurityCenterServiceRequest.Builder (0.16.0)

public static final class UpdateSecurityCenterServiceRequest.Builder extends GeneratedMessageV3.Builder<UpdateSecurityCenterServiceRequest.Builder> implements UpdateSecurityCenterServiceRequestOrBuilder

Request message for updating a Security Command Center service.

Protobuf type google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSecurityCenterServiceRequest build()
Returns
Type Description
UpdateSecurityCenterServiceRequest

buildPartial()

public UpdateSecurityCenterServiceRequest buildPartial()
Returns
Type Description
UpdateSecurityCenterServiceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecurityCenterService()

public UpdateSecurityCenterServiceRequest.Builder clearSecurityCenterService()

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

clearUpdateMask()

public UpdateSecurityCenterServiceRequest.Builder clearUpdateMask()

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

clearValidateOnly()

public UpdateSecurityCenterServiceRequest.Builder clearValidateOnly()

Optional. When set to true, only validations (including IAM checks) will be done for the request (service will not be updated). An OK response indicates that the request is valid, while an error response indicates that the request is invalid. Note that a subsequent request to actually update the service could still fail for one of the following reasons:

  • The state could have changed (e.g. IAM permission lost).
  • A failure occurred while trying to delete the module.

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

Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateSecurityCenterServiceRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSecurityCenterServiceRequest

getDescriptorForType()

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

getSecurityCenterService()

public SecurityCenterService getSecurityCenterService()

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecurityCenterService

The securityCenterService.

getSecurityCenterServiceBuilder()

public SecurityCenterService.Builder getSecurityCenterServiceBuilder()

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecurityCenterService.Builder

getSecurityCenterServiceOrBuilder()

public SecurityCenterServiceOrBuilder getSecurityCenterServiceOrBuilder()

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecurityCenterServiceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. When set to true, only validations (including IAM checks) will be done for the request (service will not be updated). An OK response indicates that the request is valid, while an error response indicates that the request is invalid. Note that a subsequent request to actually update the service could still fail for one of the following reasons:

  • The state could have changed (e.g. IAM permission lost).
  • A failure occurred while trying to delete the module.

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

Returns
Type Description
boolean

The validateOnly.

hasSecurityCenterService()

public boolean hasSecurityCenterService()

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the securityCenterService field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSecurityCenterServiceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSecurityCenterService(SecurityCenterService value)

public UpdateSecurityCenterServiceRequest.Builder mergeSecurityCenterService(SecurityCenterService value)

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SecurityCenterService
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSecurityCenterServiceRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecurityCenterService(SecurityCenterService value)

public UpdateSecurityCenterServiceRequest.Builder setSecurityCenterService(SecurityCenterService value)

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SecurityCenterService
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

setSecurityCenterService(SecurityCenterService.Builder builderForValue)

public UpdateSecurityCenterServiceRequest.Builder setSecurityCenterService(SecurityCenterService.Builder builderForValue)

Required. The updated service.

.google.cloud.securitycentermanagement.v1.SecurityCenterService security_center_service = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SecurityCenterService.Builder
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSecurityCenterServiceRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSecurityCenterServiceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to be updated. Possible values:

  • "intended_enablement_state"
  • "modules"

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

setValidateOnly(boolean value)

public UpdateSecurityCenterServiceRequest.Builder setValidateOnly(boolean value)

Optional. When set to true, only validations (including IAM checks) will be done for the request (service will not be updated). An OK response indicates that the request is valid, while an error response indicates that the request is invalid. Note that a subsequent request to actually update the service could still fail for one of the following reasons:

  • The state could have changed (e.g. IAM permission lost).
  • A failure occurred while trying to delete the module.

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

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateSecurityCenterServiceRequest.Builder

This builder for chaining.