Class Router.Builder (0.23.0)

public static final class Router.Builder extends GeneratedMessageV3.Builder<Router.Builder> implements RouterOrBuilder

Message describing Router object

Protobuf type google.cloud.edgenetwork.v1.Router

Implements

RouterOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllBgpPeer(Iterable<? extends Router.BgpPeer> values)

public Router.Builder addAllBgpPeer(Iterable<? extends Router.BgpPeer> values)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
values Iterable<? extends com.google.cloud.edgenetwork.v1.Router.BgpPeer>
Returns
Type Description
Router.Builder

addAllInterface(Iterable<? extends Router.Interface> values)

public Router.Builder addAllInterface(Iterable<? extends Router.Interface> values)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
values Iterable<? extends com.google.cloud.edgenetwork.v1.Router.Interface>
Returns
Type Description
Router.Builder

addAllRouteAdvertisements(Iterable<String> values)

public Router.Builder addAllRouteAdvertisements(Iterable<String> values)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The routeAdvertisements to add.

Returns
Type Description
Router.Builder

This builder for chaining.

addBgpPeer(Router.BgpPeer value)

public Router.Builder addBgpPeer(Router.BgpPeer value)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
value Router.BgpPeer
Returns
Type Description
Router.Builder

addBgpPeer(Router.BgpPeer.Builder builderForValue)

public Router.Builder addBgpPeer(Router.BgpPeer.Builder builderForValue)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
builderForValue Router.BgpPeer.Builder
Returns
Type Description
Router.Builder

addBgpPeer(int index, Router.BgpPeer value)

public Router.Builder addBgpPeer(int index, Router.BgpPeer value)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameters
Name Description
index int
value Router.BgpPeer
Returns
Type Description
Router.Builder

addBgpPeer(int index, Router.BgpPeer.Builder builderForValue)

public Router.Builder addBgpPeer(int index, Router.BgpPeer.Builder builderForValue)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameters
Name Description
index int
builderForValue Router.BgpPeer.Builder
Returns
Type Description
Router.Builder

addBgpPeerBuilder()

public Router.BgpPeer.Builder addBgpPeerBuilder()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
Router.BgpPeer.Builder

addBgpPeerBuilder(int index)

public Router.BgpPeer.Builder addBgpPeerBuilder(int index)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
index int
Returns
Type Description
Router.BgpPeer.Builder

addInterface(Router.Interface value)

public Router.Builder addInterface(Router.Interface value)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
value Router.Interface
Returns
Type Description
Router.Builder

addInterface(Router.Interface.Builder builderForValue)

public Router.Builder addInterface(Router.Interface.Builder builderForValue)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
builderForValue Router.Interface.Builder
Returns
Type Description
Router.Builder

addInterface(int index, Router.Interface value)

public Router.Builder addInterface(int index, Router.Interface value)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameters
Name Description
index int
value Router.Interface
Returns
Type Description
Router.Builder

addInterface(int index, Router.Interface.Builder builderForValue)

public Router.Builder addInterface(int index, Router.Interface.Builder builderForValue)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameters
Name Description
index int
builderForValue Router.Interface.Builder
Returns
Type Description
Router.Builder

addInterfaceBuilder()

public Router.Interface.Builder addInterfaceBuilder()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
Router.Interface.Builder

addInterfaceBuilder(int index)

public Router.Interface.Builder addInterfaceBuilder(int index)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
index int
Returns
Type Description
Router.Interface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRouteAdvertisements(String value)

public Router.Builder addRouteAdvertisements(String value)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The routeAdvertisements to add.

Returns
Type Description
Router.Builder

This builder for chaining.

addRouteAdvertisementsBytes(ByteString value)

public Router.Builder addRouteAdvertisementsBytes(ByteString value)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the routeAdvertisements to add.

Returns
Type Description
Router.Builder

This builder for chaining.

build()

public Router build()
Returns
Type Description
Router

buildPartial()

public Router buildPartial()
Returns
Type Description
Router

clear()

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

clearBgp()

public Router.Builder clearBgp()

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Returns
Type Description
Router.Builder

clearBgpPeer()

public Router.Builder clearBgpPeer()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
Router.Builder

clearCreateTime()

public Router.Builder clearCreateTime()

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Router.Builder

clearDescription()

public Router.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Router.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInterface()

public Router.Builder clearInterface()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
Router.Builder

clearLabels()

public Router.Builder clearLabels()
Returns
Type Description
Router.Builder

clearName()

public Router.Builder clearName()

Required. The canonical resource name of the router.

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

Returns
Type Description
Router.Builder

This builder for chaining.

clearNetwork()

public Router.Builder clearNetwork()

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Router.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRouteAdvertisements()

public Router.Builder clearRouteAdvertisements()

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Router.Builder

This builder for chaining.

clearState()

public Router.Builder clearState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Router.Builder

This builder for chaining.

clearUpdateTime()

public Router.Builder clearUpdateTime()

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Router.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBgp()

public Router.Bgp getBgp()

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Returns
Type Description
Router.Bgp

The bgp.

getBgpBuilder()

public Router.Bgp.Builder getBgpBuilder()

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Returns
Type Description
Router.Bgp.Builder

getBgpOrBuilder()

public Router.BgpOrBuilder getBgpOrBuilder()

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Returns
Type Description
Router.BgpOrBuilder

getBgpPeer(int index)

public Router.BgpPeer getBgpPeer(int index)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
index int
Returns
Type Description
Router.BgpPeer

getBgpPeerBuilder(int index)

public Router.BgpPeer.Builder getBgpPeerBuilder(int index)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
index int
Returns
Type Description
Router.BgpPeer.Builder

getBgpPeerBuilderList()

public List<Router.BgpPeer.Builder> getBgpPeerBuilderList()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
List<Builder>

getBgpPeerCount()

public int getBgpPeerCount()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
int

getBgpPeerList()

public List<Router.BgpPeer> getBgpPeerList()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
List<BgpPeer>

getBgpPeerOrBuilder(int index)

public Router.BgpPeerOrBuilder getBgpPeerOrBuilder(int index)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
index int
Returns
Type Description
Router.BgpPeerOrBuilder

getBgpPeerOrBuilderList()

public List<? extends Router.BgpPeerOrBuilder> getBgpPeerOrBuilderList()

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Returns
Type Description
List<? extends com.google.cloud.edgenetwork.v1.Router.BgpPeerOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Router getDefaultInstanceForType()
Returns
Type Description
Router

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getInterface(int index)

public Router.Interface getInterface(int index)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
index int
Returns
Type Description
Router.Interface

getInterfaceBuilder(int index)

public Router.Interface.Builder getInterfaceBuilder(int index)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
index int
Returns
Type Description
Router.Interface.Builder

getInterfaceBuilderList()

public List<Router.Interface.Builder> getInterfaceBuilderList()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
List<Builder>

getInterfaceCount()

public int getInterfaceCount()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
int

getInterfaceList()

public List<Router.Interface> getInterfaceList()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
List<Interface>

getInterfaceOrBuilder(int index)

public Router.InterfaceOrBuilder getInterfaceOrBuilder(int index)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
index int
Returns
Type Description
Router.InterfaceOrBuilder

getInterfaceOrBuilderList()

public List<? extends Router.InterfaceOrBuilder> getInterfaceOrBuilderList()

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Returns
Type Description
List<? extends com.google.cloud.edgenetwork.v1.Router.InterfaceOrBuilder>

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the router.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the router.

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

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getRouteAdvertisements(int index)

public String getRouteAdvertisements(int index)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The routeAdvertisements at the given index.

getRouteAdvertisementsBytes(int index)

public ByteString getRouteAdvertisementsBytes(int index)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the routeAdvertisements at the given index.

getRouteAdvertisementsCount()

public int getRouteAdvertisementsCount()

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of routeAdvertisements.

getRouteAdvertisementsList()

public ProtocolStringList getRouteAdvertisementsList()

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the routeAdvertisements.

getState()

public ResourceState getState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceState

The state.

getStateValue()

public int getStateValue()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasBgp()

public boolean hasBgp()

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Returns
Type Description
boolean

Whether the bgp field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBgp(Router.Bgp value)

public Router.Builder mergeBgp(Router.Bgp value)

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Parameter
Name Description
value Router.Bgp
Returns
Type Description
Router.Builder

mergeCreateTime(Timestamp value)

public Router.Builder mergeCreateTime(Timestamp value)

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Router.Builder

mergeFrom(Router other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Router.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Router.Builder

putAllLabels(Map<String,String> values)

public Router.Builder putAllLabels(Map<String,String> values)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Router.Builder

putLabels(String key, String value)

public Router.Builder putLabels(String key, String value)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
Router.Builder

removeBgpPeer(int index)

public Router.Builder removeBgpPeer(int index)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameter
Name Description
index int
Returns
Type Description
Router.Builder

removeInterface(int index)

public Router.Builder removeInterface(int index)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameter
Name Description
index int
Returns
Type Description
Router.Builder

removeLabels(String key)

public Router.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Router.Builder

setBgp(Router.Bgp value)

public Router.Builder setBgp(Router.Bgp value)

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Parameter
Name Description
value Router.Bgp
Returns
Type Description
Router.Builder

setBgp(Router.Bgp.Builder builderForValue)

public Router.Builder setBgp(Router.Bgp.Builder builderForValue)

BGP information specific to this router.

.google.cloud.edgenetwork.v1.Router.Bgp bgp = 9;

Parameter
Name Description
builderForValue Router.Bgp.Builder
Returns
Type Description
Router.Builder

setBgpPeer(int index, Router.BgpPeer value)

public Router.Builder setBgpPeer(int index, Router.BgpPeer value)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameters
Name Description
index int
value Router.BgpPeer
Returns
Type Description
Router.Builder

setBgpPeer(int index, Router.BgpPeer.Builder builderForValue)

public Router.Builder setBgpPeer(int index, Router.BgpPeer.Builder builderForValue)

BGP peers.

repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8;

Parameters
Name Description
index int
builderForValue Router.BgpPeer.Builder
Returns
Type Description
Router.Builder

setCreateTime(Timestamp value)

public Router.Builder setCreateTime(Timestamp value)

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Router.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Router.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the router was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Router.Builder

setDescription(String value)

public Router.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Router.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInterface(int index, Router.Interface value)

public Router.Builder setInterface(int index, Router.Interface value)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameters
Name Description
index int
value Router.Interface
Returns
Type Description
Router.Builder

setInterface(int index, Router.Interface.Builder builderForValue)

public Router.Builder setInterface(int index, Router.Interface.Builder builderForValue)

Router interfaces.

repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7;

Parameters
Name Description
index int
builderForValue Router.Interface.Builder
Returns
Type Description
Router.Builder

setName(String value)

public Router.Builder setName(String value)

Required. The canonical resource name of the router.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Router.Builder setNameBytes(ByteString value)

Required. The canonical resource name of the router.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNetwork(String value)

public Router.Builder setNetwork(String value)

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Router.Builder setNetworkBytes(ByteString value)

Required. The canonical name of the network to which this router belongs. The name is in the form of projects/{project}/locations/{location}/zones/{zone}/networks/{network}.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
Router.Builder

This builder for chaining.

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

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

setRouteAdvertisements(int index, String value)

public Router.Builder setRouteAdvertisements(int index, String value)

Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.

repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The routeAdvertisements to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setState(ResourceState value)

public Router.Builder setState(ResourceState value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceState

The state to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setStateValue(int value)

public Router.Builder setStateValue(int value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Router.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Router.Builder setUpdateTime(Timestamp value)

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Router.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Router.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the router was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Router.Builder