Class Router.Builder (0.2.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.edgenetwork.v1.Router.BgpPeer>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.edgenetwork.v1.Router.Interface>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The routeAdvertisements to add.

Returns
TypeDescription
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
NameDescription
valueRouter.BgpPeer
Returns
TypeDescription
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
NameDescription
builderForValueRouter.BgpPeer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouter.BgpPeer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouter.BgpPeer.Builder
Returns
TypeDescription
Router.Builder

addBgpPeerBuilder()

public Router.BgpPeer.Builder addBgpPeerBuilder()

BGP peers.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRouter.Interface
Returns
TypeDescription
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
NameDescription
builderForValueRouter.Interface.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouter.Interface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouter.Interface.Builder
Returns
TypeDescription
Router.Builder

addInterfaceBuilder()

public Router.Interface.Builder addInterfaceBuilder()

Router interfaces.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Router.Interface.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Router.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The routeAdvertisements to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the routeAdvertisements to add.

Returns
TypeDescription
Router.Builder

This builder for chaining.

build()

public Router build()
Returns
TypeDescription
Router

buildPartial()

public Router buildPartial()
Returns
TypeDescription
Router

clear()

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

clearBgp()

public Router.Builder clearBgp()

BGP information specific to this router.

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

Returns
TypeDescription
Router.Builder

clearBgpPeer()

public Router.Builder clearBgpPeer()

BGP peers.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Router.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInterface()

public Router.Builder clearInterface()

Router interfaces.

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

Returns
TypeDescription
Router.Builder

clearLabels()

public Router.Builder clearLabels()
Returns
TypeDescription
Router.Builder

clearName()

public Router.Builder clearName()

Required. The canonical resource name of the router.

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

Returns
TypeDescription
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
TypeDescription
Router.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Router.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Router.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBgp()

public Router.Bgp getBgp()

BGP information specific to this router.

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

Returns
TypeDescription
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
TypeDescription
Router.Bgp.Builder

getBgpOrBuilder()

public Router.BgpOrBuilder getBgpOrBuilder()

BGP information specific to this router.

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

Returns
TypeDescription
Router.BgpOrBuilder

getBgpPeer(int index)

public Router.BgpPeer getBgpPeer(int index)

BGP peers.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Router.BgpPeer.Builder

getBgpPeerBuilderList()

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

BGP peers.

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

Returns
TypeDescription
List<Builder>

getBgpPeerCount()

public int getBgpPeerCount()

BGP peers.

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

Returns
TypeDescription
int

getBgpPeerList()

public List<Router.BgpPeer> getBgpPeerList()

BGP peers.

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

Returns
TypeDescription
List<BgpPeer>

getBgpPeerOrBuilder(int index)

public Router.BgpPeerOrBuilder getBgpPeerOrBuilder(int index)

BGP peers.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.BgpPeerOrBuilder

getBgpPeerOrBuilderList()

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

BGP peers.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Router getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInterface(int index)

public Router.Interface getInterface(int index)

Router interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.Interface

getInterfaceBuilder(int index)

public Router.Interface.Builder getInterfaceBuilder(int index)

Router interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.Interface.Builder

getInterfaceBuilderList()

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

Router interfaces.

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

Returns
TypeDescription
List<Builder>

getInterfaceCount()

public int getInterfaceCount()

Router interfaces.

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

Returns
TypeDescription
int

getInterfaceList()

public List<Router.Interface> getInterfaceList()

Router interfaces.

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

Returns
TypeDescription
List<Interface>

getInterfaceOrBuilder(int index)

public Router.InterfaceOrBuilder getInterfaceOrBuilder(int index)

Router interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.InterfaceOrBuilder

getInterfaceOrBuilderList()

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

Router interfaces.

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

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the router.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the router.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

hasBgp()

public boolean hasBgp()

BGP information specific to this router.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRouter.Bgp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Router.Builder

mergeFrom(Router other)

public Router.Builder mergeFrom(Router other)
Parameter
NameDescription
otherRouter
Returns
TypeDescription
Router.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Router.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
Router.Builder

removeBgpPeer(int index)

public Router.Builder removeBgpPeer(int index)

BGP peers.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.Builder

removeInterface(int index)

public Router.Builder removeInterface(int index)

Router interfaces.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Router.Builder

removeLabels(String key)

public Router.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueRouter.Bgp
Returns
TypeDescription
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
NameDescription
builderForValueRouter.Bgp.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouter.BgpPeer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouter.BgpPeer.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Router.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Router.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRouter.Interface
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouter.Interface.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The routeAdvertisements to set.

Returns
TypeDescription
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
NameDescription
valueResourceState

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Router.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Router.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Router.Builder