Class CreateFirewallPolicyRequest.Builder (3.40.0)

public static final class CreateFirewallPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateFirewallPolicyRequest.Builder> implements CreateFirewallPolicyRequestOrBuilder

The create firewall policy request message.

Protobuf type google.cloud.recaptchaenterprise.v1.CreateFirewallPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFirewallPolicyRequest build()
Returns
Type Description
CreateFirewallPolicyRequest

buildPartial()

public CreateFirewallPolicyRequest buildPartial()
Returns
Type Description
CreateFirewallPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFirewallPolicy()

public CreateFirewallPolicyRequest.Builder clearFirewallPolicy()

Required. Information to create the policy.

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

Returns
Type Description
CreateFirewallPolicyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateFirewallPolicyRequest.Builder clearParent()

Required. The name of the project this policy will apply to, in the format projects/{project}.

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

Returns
Type Description
CreateFirewallPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFirewallPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateFirewallPolicyRequest

getDescriptorForType()

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

getFirewallPolicy()

public FirewallPolicy getFirewallPolicy()

Required. Information to create the policy.

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

Returns
Type Description
FirewallPolicy

The firewallPolicy.

getFirewallPolicyBuilder()

public FirewallPolicy.Builder getFirewallPolicyBuilder()

Required. Information to create the policy.

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

Returns
Type Description
FirewallPolicy.Builder

getFirewallPolicyOrBuilder()

public FirewallPolicyOrBuilder getFirewallPolicyOrBuilder()

Required. Information to create the policy.

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

Returns
Type Description
FirewallPolicyOrBuilder

getParent()

public String getParent()

Required. The name of the project this policy will apply to, in the format projects/{project}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the project this policy will apply to, in the format projects/{project}.

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

Returns
Type Description
ByteString

The bytes for parent.

hasFirewallPolicy()

public boolean hasFirewallPolicy()

Required. Information to create the policy.

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

Returns
Type Description
boolean

Whether the firewallPolicy 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 CreateFirewallPolicyRequest.Builder mergeFirewallPolicy(FirewallPolicy value)

Required. Information to create the policy.

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

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
CreateFirewallPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateFirewallPolicyRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirewallPolicy(FirewallPolicy value)

public CreateFirewallPolicyRequest.Builder setFirewallPolicy(FirewallPolicy value)

Required. Information to create the policy.

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

Parameter
Name Description
value FirewallPolicy
Returns
Type Description
CreateFirewallPolicyRequest.Builder

setFirewallPolicy(FirewallPolicy.Builder builderForValue)

public CreateFirewallPolicyRequest.Builder setFirewallPolicy(FirewallPolicy.Builder builderForValue)

Required. Information to create the policy.

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

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

setParent(String value)

public CreateFirewallPolicyRequest.Builder setParent(String value)

Required. The name of the project this policy will apply to, in the format projects/{project}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateFirewallPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFirewallPolicyRequest.Builder setParentBytes(ByteString value)

Required. The name of the project this policy will apply to, in the format projects/{project}.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateFirewallPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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