Class UpdateFirewallPolicyRequest.Builder (3.52.0)

public static final class UpdateFirewallPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateFirewallPolicyRequest.Builder> implements UpdateFirewallPolicyRequestOrBuilder

The update firewall policy request message.

Protobuf type google.cloud.recaptchaenterprise.v1.UpdateFirewallPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateFirewallPolicyRequest build()
Returns
Type Description
UpdateFirewallPolicyRequest

buildPartial()

public UpdateFirewallPolicyRequest buildPartial()
Returns
Type Description
UpdateFirewallPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFirewallPolicy()

public UpdateFirewallPolicyRequest.Builder clearFirewallPolicy()

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateFirewallPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateFirewallPolicyRequest.Builder clearUpdateMask()

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Returns
Type Description
UpdateFirewallPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateFirewallPolicyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateFirewallPolicyRequest

getDescriptorForType()

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

getFirewallPolicy()

public FirewallPolicy getFirewallPolicy()

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FirewallPolicy

The firewallPolicy.

getFirewallPolicyBuilder()

public FirewallPolicy.Builder getFirewallPolicyBuilder()

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FirewallPolicy.Builder

getFirewallPolicyOrBuilder()

public FirewallPolicyOrBuilder getFirewallPolicyOrBuilder()

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FirewallPolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Returns
Type Description
FieldMaskOrBuilder

hasFirewallPolicy()

public boolean hasFirewallPolicy()

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the firewallPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

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

mergeFirewallPolicy(FirewallPolicy value)

public UpdateFirewallPolicyRequest.Builder mergeFirewallPolicy(FirewallPolicy value)

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
UpdateFirewallPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateFirewallPolicyRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateFirewallPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateFirewallPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirewallPolicy(FirewallPolicy value)

public UpdateFirewallPolicyRequest.Builder setFirewallPolicy(FirewallPolicy value)

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
UpdateFirewallPolicyRequest.Builder

setFirewallPolicy(FirewallPolicy.Builder builderForValue)

public UpdateFirewallPolicyRequest.Builder setFirewallPolicy(FirewallPolicy.Builder builderForValue)

Required. The policy to update.

.google.cloud.recaptchaenterprise.v1.FirewallPolicy firewall_policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue FirewallPolicy.Builder
Returns
Type Description
UpdateFirewallPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateFirewallPolicyRequest.Builder setUpdateMask(FieldMask value)

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateFirewallPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateFirewallPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. The mask to control which fields of the policy get updated. If the mask is not present, all fields are updated.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateFirewallPolicyRequest.Builder