Class Route.Builder (1.88.0)

public static final class Route.Builder extends GeneratedMessageV3.Builder<Route.Builder> implements RouteOrBuilder

Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview.

Protobuf type google.cloud.compute.v1.Route

Implements

RouteOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAsPaths(Iterable<? extends RouteAsPath> values)

public Route.Builder addAllAsPaths(Iterable<? extends RouteAsPath> values)

[Output Only] AS path.

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

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

addAllTags(Iterable<String> values)

public Route.Builder addAllTags(Iterable<String> values)

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
Route.Builder

This builder for chaining.

addAllWarnings(Iterable<? extends Warnings> values)

public Route.Builder addAllWarnings(Iterable<? extends Warnings> values)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

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

addAsPaths(RouteAsPath value)

public Route.Builder addAsPaths(RouteAsPath value)

[Output Only] AS path.

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

Parameter
Name Description
value RouteAsPath
Returns
Type Description
Route.Builder

addAsPaths(RouteAsPath.Builder builderForValue)

public Route.Builder addAsPaths(RouteAsPath.Builder builderForValue)

[Output Only] AS path.

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

Parameter
Name Description
builderForValue RouteAsPath.Builder
Returns
Type Description
Route.Builder

addAsPaths(int index, RouteAsPath value)

public Route.Builder addAsPaths(int index, RouteAsPath value)

[Output Only] AS path.

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

Parameters
Name Description
index int
value RouteAsPath
Returns
Type Description
Route.Builder

addAsPaths(int index, RouteAsPath.Builder builderForValue)

public Route.Builder addAsPaths(int index, RouteAsPath.Builder builderForValue)

[Output Only] AS path.

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

Parameters
Name Description
index int
builderForValue RouteAsPath.Builder
Returns
Type Description
Route.Builder

addAsPathsBuilder()

public RouteAsPath.Builder addAsPathsBuilder()

[Output Only] AS path.

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

Returns
Type Description
RouteAsPath.Builder

addAsPathsBuilder(int index)

public RouteAsPath.Builder addAsPathsBuilder(int index)

[Output Only] AS path.

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

Parameter
Name Description
index int
Returns
Type Description
RouteAsPath.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTags(String value)

public Route.Builder addTags(String value)

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
Route.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public Route.Builder addTagsBytes(ByteString value)

A list of instance tags to which this route applies.

repeated string tags = 3552281;

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
Route.Builder

This builder for chaining.

addWarnings(Warnings value)

public Route.Builder addWarnings(Warnings value)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
Name Description
value Warnings
Returns
Type Description
Route.Builder

addWarnings(Warnings.Builder builderForValue)

public Route.Builder addWarnings(Warnings.Builder builderForValue)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
Name Description
builderForValue Warnings.Builder
Returns
Type Description
Route.Builder

addWarnings(int index, Warnings value)

public Route.Builder addWarnings(int index, Warnings value)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameters
Name Description
index int
value Warnings
Returns
Type Description
Route.Builder

addWarnings(int index, Warnings.Builder builderForValue)

public Route.Builder addWarnings(int index, Warnings.Builder builderForValue)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameters
Name Description
index int
builderForValue Warnings.Builder
Returns
Type Description
Route.Builder

addWarningsBuilder()

public Warnings.Builder addWarningsBuilder()

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Returns
Type Description
Warnings.Builder

addWarningsBuilder(int index)

public Warnings.Builder addWarningsBuilder(int index)

[Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages.

repeated .google.cloud.compute.v1.Warnings warnings = 498091095;

Parameter
Name Description
index int
Returns
Type Description
Warnings.Builder

build()

public Route build()
Returns
Type Description
Route

buildPartial()

public Route buildPartial()
Returns
Type Description
Route

clear()

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

clearAsPaths()

public Route.Builder clearAsPaths()

[Output Only] AS path.

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

Returns
Type Description
Route.Builder

clearCreationTimestamp()

public Route.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
Route.Builder

This builder for chaining.

clearDescription()

public Route.Builder clearDescription()

An optional description of this resource. Provide this field when you create the resource.

optional string description = 422937596;

Returns
Type Description
Route.Builder

This builder for chaining.

clearDestRange()

public Route.Builder clearDestRange()

The destination range of outgoing packets that this route applies to. Both IPv4 and IPv6 are supported. Must specify an IPv4 range (e.g. 192.0.2.0/24) or an IPv6 range in RFC 4291 format (e.g. 2001:db8::/32). IPv6 range will be displayed using RFC 5952 compressed format.

optional string dest_range = 381327712;

Returns
Type Description
Route.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Route.Builder clearId()

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
Route.Builder

This builder for chaining.

clearKind()