Class BgpRoute.Builder (1.69.0)

public static final class BgpRoute.Builder extends GeneratedMessageV3.Builder<BgpRoute.Builder> implements BgpRouteOrBuilder

Protobuf type google.cloud.compute.v1.BgpRoute

Implements

BgpRouteOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAsPaths(Iterable<? extends BgpRouteAsPath> values)

public BgpRoute.Builder addAllAsPaths(Iterable<? extends BgpRouteAsPath> values)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.BgpRouteAsPath>
Returns
Type Description
BgpRoute.Builder

addAllCommunities(Iterable<String> values)

public BgpRoute.Builder addAllCommunities(Iterable<String> values)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
values Iterable<String>

The communities to add.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

addAsPaths(BgpRouteAsPath value)

public BgpRoute.Builder addAsPaths(BgpRouteAsPath value)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
value BgpRouteAsPath
Returns
Type Description
BgpRoute.Builder

addAsPaths(BgpRouteAsPath.Builder builderForValue)

public BgpRoute.Builder addAsPaths(BgpRouteAsPath.Builder builderForValue)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
builderForValue BgpRouteAsPath.Builder
Returns
Type Description
BgpRoute.Builder

addAsPaths(int index, BgpRouteAsPath value)

public BgpRoute.Builder addAsPaths(int index, BgpRouteAsPath value)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameters
Name Description
index int
value BgpRouteAsPath
Returns
Type Description
BgpRoute.Builder

addAsPaths(int index, BgpRouteAsPath.Builder builderForValue)

public BgpRoute.Builder addAsPaths(int index, BgpRouteAsPath.Builder builderForValue)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameters
Name Description
index int
builderForValue BgpRouteAsPath.Builder
Returns
Type Description
BgpRoute.Builder

addAsPathsBuilder()

public BgpRouteAsPath.Builder addAsPathsBuilder()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
BgpRouteAsPath.Builder

addAsPathsBuilder(int index)

public BgpRouteAsPath.Builder addAsPathsBuilder(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPath.Builder

addCommunities(String value)

public BgpRoute.Builder addCommunities(String value)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
value String

The communities to add.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

addCommunitiesBytes(ByteString value)

public BgpRoute.Builder addCommunitiesBytes(ByteString value)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
value ByteString

The bytes of the communities to add.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BgpRoute build()
Returns
Type Description
BgpRoute

buildPartial()

public BgpRoute buildPartial()
Returns
Type Description
BgpRoute

clear()

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

clearAsPaths()

public BgpRoute.Builder clearAsPaths()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
BgpRoute.Builder

clearCommunities()

public BgpRoute.Builder clearCommunities()

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

clearDestination()

public BgpRoute.Builder clearDestination()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRoute.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMed()

public BgpRoute.Builder clearMed()

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrigin()

public BgpRoute.Builder clearOrigin()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

clone()

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

getAsPaths(int index)

public BgpRouteAsPath getAsPaths(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPath

getAsPathsBuilder(int index)

public BgpRouteAsPath.Builder getAsPathsBuilder(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPath.Builder

getAsPathsBuilderList()

public List<BgpRouteAsPath.Builder> getAsPathsBuilderList()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
List<Builder>

getAsPathsCount()

public int getAsPathsCount()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
int

getAsPathsList()

public List<BgpRouteAsPath> getAsPathsList()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
List<BgpRouteAsPath>

getAsPathsOrBuilder(int index)

public BgpRouteAsPathOrBuilder getAsPathsOrBuilder(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRouteAsPathOrBuilder

getAsPathsOrBuilderList()

public List<? extends BgpRouteAsPathOrBuilder> getAsPathsOrBuilderList()

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.BgpRouteAsPathOrBuilder>

getCommunities(int index)

public String getCommunities(int index)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The communities at the given index.

getCommunitiesBytes(int index)

public ByteString getCommunitiesBytes(int index)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the communities at the given index.

getCommunitiesCount()

public int getCommunitiesCount()

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Returns
Type Description
int

The count of communities.

getCommunitiesList()

public ProtocolStringList getCommunitiesList()

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Returns
Type Description
ProtocolStringList

A list containing the communities.

getDefaultInstanceForType()

public BgpRoute getDefaultInstanceForType()
Returns
Type Description
BgpRoute

getDescriptorForType()

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

getDestination()

public BgpRouteNetworkLayerReachabilityInformation getDestination()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformation

The destination.

getDestinationBuilder()

public BgpRouteNetworkLayerReachabilityInformation.Builder getDestinationBuilder()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformation.Builder

getDestinationOrBuilder()

public BgpRouteNetworkLayerReachabilityInformationOrBuilder getDestinationOrBuilder()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
BgpRouteNetworkLayerReachabilityInformationOrBuilder

getMed()

public int getMed()

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Returns
Type Description
int

The med.

getOrigin()

public String getOrigin()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
String

The origin.

getOriginBytes()

public ByteString getOriginBytes()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
ByteString

The bytes for origin.

hasDestination()

public boolean hasDestination()

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Returns
Type Description
boolean

Whether the destination field is set.

hasMed()

public boolean hasMed()

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Returns
Type Description
boolean

Whether the med field is set.

hasOrigin()

public boolean hasOrigin()

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Returns
Type Description
boolean

Whether the origin field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDestination(BgpRouteNetworkLayerReachabilityInformation value)

public BgpRoute.Builder mergeDestination(BgpRouteNetworkLayerReachabilityInformation value)

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Parameter
Name Description
value BgpRouteNetworkLayerReachabilityInformation
Returns
Type Description
BgpRoute.Builder

mergeFrom(BgpRoute other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAsPaths(int index)

public BgpRoute.Builder removeAsPaths(int index)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameter
Name Description
index int
Returns
Type Description
BgpRoute.Builder

setAsPaths(int index, BgpRouteAsPath value)

public BgpRoute.Builder setAsPaths(int index, BgpRouteAsPath value)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameters
Name Description
index int
value BgpRouteAsPath
Returns
Type Description
BgpRoute.Builder

setAsPaths(int index, BgpRouteAsPath.Builder builderForValue)

public BgpRoute.Builder setAsPaths(int index, BgpRouteAsPath.Builder builderForValue)

[Output only] AS-PATH for the route

repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;

Parameters
Name Description
index int
builderForValue BgpRouteAsPath.Builder
Returns
Type Description
BgpRoute.Builder

setCommunities(int index, String value)

public BgpRoute.Builder setCommunities(int index, String value)

[Output only] BGP communities in human-readable A:B format.

repeated string communities = 188262983;

Parameters
Name Description
index int

The index to set the value at.

value String

The communities to set.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

setDestination(BgpRouteNetworkLayerReachabilityInformation value)

public BgpRoute.Builder setDestination(BgpRouteNetworkLayerReachabilityInformation value)

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Parameter
Name Description
value BgpRouteNetworkLayerReachabilityInformation
Returns
Type Description
BgpRoute.Builder

setDestination(BgpRouteNetworkLayerReachabilityInformation.Builder builderForValue)

public BgpRoute.Builder setDestination(BgpRouteNetworkLayerReachabilityInformation.Builder builderForValue)

[Output only] Destination IP range for the route, in human-readable CIDR format

optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;

Parameter
Name Description
builderForValue BgpRouteNetworkLayerReachabilityInformation.Builder
Returns
Type Description
BgpRoute.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMed(int value)

public BgpRoute.Builder setMed(int value)

[Output only] BGP multi-exit discriminator

optional uint32 med = 107980;

Parameter
Name Description
value int

The med to set.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

setOrigin(String value)

public BgpRoute.Builder setOrigin(String value)

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Parameter
Name Description
value String

The origin to set.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

setOriginBytes(ByteString value)

public BgpRoute.Builder setOriginBytes(ByteString value)

[Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.

optional string origin = 65122086;

Parameter
Name Description
value ByteString

The bytes for origin to set.

Returns
Type Description
BgpRoute.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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