Class RouterBgpPeerCustomLearnedIpRange.Builder (1.42.0)

public static final class RouterBgpPeerCustomLearnedIpRange.Builder extends GeneratedMessageV3.Builder<RouterBgpPeerCustomLearnedIpRange.Builder> implements RouterBgpPeerCustomLearnedIpRangeOrBuilder

Protobuf type google.cloud.compute.v1.RouterBgpPeerCustomLearnedIpRange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterBgpPeerCustomLearnedIpRange build()
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange

buildPartial()

public RouterBgpPeerCustomLearnedIpRange buildPartial()
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RouterBgpPeerCustomLearnedIpRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterBgpPeerCustomLearnedIpRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder
Overrides

clearRange()

public RouterBgpPeerCustomLearnedIpRange.Builder clearRange()

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RouterBgpPeerCustomLearnedIpRange getDefaultInstanceForType()
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRange()

public String getRange()

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Returns
TypeDescription
String

The range.

getRangeBytes()

public ByteString getRangeBytes()

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Returns
TypeDescription
ByteString

The bytes for range.

hasRange()

public boolean hasRange()

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Returns
TypeDescription
boolean

Whether the range field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterBgpPeerCustomLearnedIpRange other)

public RouterBgpPeerCustomLearnedIpRange.Builder mergeFrom(RouterBgpPeerCustomLearnedIpRange other)
Parameter
NameDescription
otherRouterBgpPeerCustomLearnedIpRange
Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRange(String value)

public RouterBgpPeerCustomLearnedIpRange.Builder setRange(String value)

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Parameter
NameDescription
valueString

The range to set.

Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder

This builder for chaining.

setRangeBytes(ByteString value)

public RouterBgpPeerCustomLearnedIpRange.Builder setRangeBytes(ByteString value)

The custom learned route IP address range. Must be a valid CIDR-formatted prefix. If an IP address is provided without a subnet mask, it is interpreted as, for IPv4, a /32 singular IP address range, and, for IPv6, /128.

optional string range = 108280125;

Parameter
NameDescription
valueByteString

The bytes for range to set.

Returns
TypeDescription
RouterBgpPeerCustomLearnedIpRange.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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