Class IpOverrideData.Builder (3.48.0)

public static final class IpOverrideData.Builder extends GeneratedMessageV3.Builder<IpOverrideData.Builder> implements IpOverrideDataOrBuilder

Information about the IP or IP range override.

Protobuf type google.cloud.recaptchaenterprise.v1.IpOverrideData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IpOverrideData build()
Returns
Type Description
IpOverrideData

buildPartial()

public IpOverrideData buildPartial()
Returns
Type Description
IpOverrideData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIp()

public IpOverrideData.Builder clearIp()

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

string ip = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOverrideType()

public IpOverrideData.Builder clearOverrideType()

Required. Describes the type of IP override.

.google.cloud.recaptchaenterprise.v1.IpOverrideData.OverrideType override_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public IpOverrideData getDefaultInstanceForType()
Returns
Type Description
IpOverrideData

getDescriptorForType()

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

getIp()

public String getIp()

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

string ip = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ip.

getIpBytes()

public ByteString getIpBytes()

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

string ip = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ip.

getOverrideType()

public IpOverrideData.OverrideType getOverrideType()

Required. Describes the type of IP override.

.google.cloud.recaptchaenterprise.v1.IpOverrideData.OverrideType override_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IpOverrideData.OverrideType

The overrideType.

getOverrideTypeValue()

public int getOverrideTypeValue()

Required. Describes the type of IP override.

.google.cloud.recaptchaenterprise.v1.IpOverrideData.OverrideType override_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for overrideType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(IpOverrideData other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIp(String value)

public IpOverrideData.Builder setIp(String value)

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

string ip = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ip to set.

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

setIpBytes(ByteString value)

public IpOverrideData.Builder setIpBytes(ByteString value)

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

string ip = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ip to set.

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

setOverrideType(IpOverrideData.OverrideType value)

public IpOverrideData.Builder setOverrideType(IpOverrideData.OverrideType value)

Required. Describes the type of IP override.

.google.cloud.recaptchaenterprise.v1.IpOverrideData.OverrideType override_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value IpOverrideData.OverrideType

The overrideType to set.

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

setOverrideTypeValue(int value)

public IpOverrideData.Builder setOverrideTypeValue(int value)

Required. Describes the type of IP override.

.google.cloud.recaptchaenterprise.v1.IpOverrideData.OverrideType override_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for overrideType to set.

Returns
Type Description
IpOverrideData.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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