Class BgpRoute.Builder (1.91.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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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