Interface NetworksAddPeeringRequestOrBuilder (1.64.0)

public interface NetworksAddPeeringRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutoCreateRoutes()

public abstract boolean getAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

optional bool auto_create_routes = 57454941;

Returns
Type Description
boolean

The autoCreateRoutes.

getName()

public abstract String getName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNetworkPeering()

public abstract NetworkPeering getNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeering

The networkPeering.

getNetworkPeeringOrBuilder()

public abstract NetworkPeeringOrBuilder getNetworkPeeringOrBuilder()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
NetworkPeeringOrBuilder

getPeerNetwork()

public abstract String getPeerNetwork()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
String

The peerNetwork.

getPeerNetworkBytes()

public abstract ByteString getPeerNetworkBytes()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
ByteString

The bytes for peerNetwork.

hasAutoCreateRoutes()

public abstract boolean hasAutoCreateRoutes()

This field will be deprecated soon. Use exchange_subnet_routes in network_peering instead. Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE.

optional bool auto_create_routes = 57454941;

Returns
Type Description
boolean

Whether the autoCreateRoutes field is set.

hasName()

public abstract boolean hasName()

Name of the peering, which should conform to RFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNetworkPeering()

public abstract boolean hasNetworkPeering()

Network peering parameters. In order to specify route policies for peering using import and export custom routes, you must specify all peering related parameters (name, peer network, exchange_subnet_routes) in the network_peering field. The corresponding fields in NetworksAddPeeringRequest will be deprecated soon.

optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;

Returns
Type Description
boolean

Whether the networkPeering field is set.

hasPeerNetwork()

public abstract boolean hasPeerNetwork()

URL of the peer network. It can be either full URL or partial URL. The peer network may belong to a different project. If the partial URL does not contain project, it is assumed that the peer network is in the same project as the current network.

optional string peer_network = 500625489;

Returns
Type Description
boolean

Whether the peerNetwork field is set.