Class CreateFirewallPolicyRequest.Builder (3.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFirewallPolicyRequest build()
Returns
TypeDescription
CreateFirewallPolicyRequest

buildPartial()

public CreateFirewallPolicyRequest buildPartial()
Returns
TypeDescription
CreateFirewallPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFirewallPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFirewallPolicyRequest

getDescriptorForType()

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

Whether the firewallPolicy 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 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
NameDescription
valueFirewallPolicy
Returns
TypeDescription
CreateFirewallPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateFirewallPolicyRequest other)

public CreateFirewallPolicyRequest.Builder mergeFrom(CreateFirewallPolicyRequest other)
Parameter
NameDescription
otherCreateFirewallPolicyRequest
Returns
TypeDescription
CreateFirewallPolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateFirewallPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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