Class Gateway.IpRangeReservation.Builder (1.87.0)

public static final class Gateway.IpRangeReservation.Builder extends GeneratedMessage.Builder<Gateway.IpRangeReservation.Builder> implements Gateway.IpRangeReservationOrBuilder

A list of IP ranges that are reserved for this gateway's internal intfrastructure.

Protobuf type google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation

Static Methods

getDescriptor()

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

Methods

build()

public Gateway.IpRangeReservation build()
Returns
Type Description
Gateway.IpRangeReservation

buildPartial()

public Gateway.IpRangeReservation buildPartial()
Returns
Type Description
Gateway.IpRangeReservation

clear()

public Gateway.IpRangeReservation.Builder clear()
Returns
Type Description
Gateway.IpRangeReservation.Builder
Overrides

clearIpRange()

public Gateway.IpRangeReservation.Builder clearIpRange()

Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: "10.1.2.0/24"

string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Gateway.IpRangeReservation.Builder

This builder for chaining.

getDefaultInstanceForType()

public Gateway.IpRangeReservation getDefaultInstanceForType()
Returns
Type Description
Gateway.IpRangeReservation

getDescriptorForType()

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

getIpRange()

public String getIpRange()

Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: "10.1.2.0/24"

string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The ipRange.

getIpRangeBytes()

public ByteString getIpRangeBytes()

Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: "10.1.2.0/24"

string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for ipRange.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Gateway.IpRangeReservation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setIpRange(String value)

public Gateway.IpRangeReservation.Builder setIpRange(String value)

Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: "10.1.2.0/24"

string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The ipRange to set.

Returns
Type Description
Gateway.IpRangeReservation.Builder

This builder for chaining.

setIpRangeBytes(ByteString value)

public Gateway.IpRangeReservation.Builder setIpRangeBytes(ByteString value)

Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: "10.1.2.0/24"

string ip_range = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for ipRange to set.

Returns
Type Description
Gateway.IpRangeReservation.Builder

This builder for chaining.