Class UpdateFirewallPolicyRequest.Builder (3.26.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateFirewallPolicyRequest build()
Returns
TypeDescription
UpdateFirewallPolicyRequest

buildPartial()

public UpdateFirewallPolicyRequest buildPartial()
Returns
TypeDescription
UpdateFirewallPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UpdateFirewallPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateFirewallPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateFirewallPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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 will be updated.

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

Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateFirewallPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateFirewallPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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 will be updated.

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

Returns
TypeDescription
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 will be updated.

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

Returns
TypeDescription
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 will be updated.

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

Returns
TypeDescription
FieldMaskOrBuilder

hasFirewallPolicy()

public boolean hasFirewallPolicy()

Required. The policy to update.

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

Returns
TypeDescription
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 will be updated.

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

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

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
NameDescription
valueFirewallPolicy
Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateFirewallPolicyRequest other)

public UpdateFirewallPolicyRequest.Builder mergeFrom(UpdateFirewallPolicyRequest other)
Parameter
NameDescription
otherUpdateFirewallPolicyRequest
Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateFirewallPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 will be updated.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateFirewallPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFirewallPolicy
Returns
TypeDescription
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
NameDescription
builderForValueFirewallPolicy.Builder
Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateFirewallPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 will be updated.

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

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
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 will be updated.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateFirewallPolicyRequest.Builder