Package com.google.cloud.compute.v1
Interface NetworkPeeringOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NetworkPeering,NetworkPeering.Builder
public interface NetworkPeeringOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAutoCreateRoutes()This field will be deprecated soon.booleangetExchangeSubnetRoutes()Indicates whether full mesh connectivity is created and managed automatically between peered networks.booleangetExportCustomRoutes()Whether to export the custom routes to peer network.booleangetExportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are exported.booleangetImportCustomRoutes()Whether to import the custom routes from peer network.booleangetImportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are imported.StringgetName()Name of this peering.com.google.protobuf.ByteStringgetNameBytes()Name of this peering.StringgetNetwork()The URL of the peer network.com.google.protobuf.ByteStringgetNetworkBytes()The URL of the peer network.intgetPeerMtu()Maximum Transmission Unit in bytes.StringgetStackType()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.com.google.protobuf.ByteStringgetStackTypeBytes()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.StringgetState()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.com.google.protobuf.ByteStringgetStateBytes()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.StringgetStateDetails()[Output Only] Details about the current state of the peering.com.google.protobuf.ByteStringgetStateDetailsBytes()[Output Only] Details about the current state of the peering.booleanhasAutoCreateRoutes()This field will be deprecated soon.booleanhasExchangeSubnetRoutes()Indicates whether full mesh connectivity is created and managed automatically between peered networks.booleanhasExportCustomRoutes()Whether to export the custom routes to peer network.booleanhasExportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are exported.booleanhasImportCustomRoutes()Whether to import the custom routes from peer network.booleanhasImportSubnetRoutesWithPublicIp()Whether subnet routes with public IP range are imported.booleanhasName()Name of this peering.booleanhasNetwork()The URL of the peer network.booleanhasPeerMtu()Maximum Transmission Unit in bytes.booleanhasStackType()Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks.booleanhasState()[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`.booleanhasStateDetails()[Output Only] Details about the current state of the peering.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAutoCreateRoutes
boolean hasAutoCreateRoutes()
This field will be deprecated soon. Use the exchange_subnet_routes field 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:
- Whether the autoCreateRoutes field is set.
-
getAutoCreateRoutes
boolean getAutoCreateRoutes()
This field will be deprecated soon. Use the exchange_subnet_routes field 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:
- The autoCreateRoutes.
-
hasExchangeSubnetRoutes
boolean hasExchangeSubnetRoutes()
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 exchange_subnet_routes = 26322256;- Returns:
- Whether the exchangeSubnetRoutes field is set.
-
getExchangeSubnetRoutes
boolean getExchangeSubnetRoutes()
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 exchange_subnet_routes = 26322256;- Returns:
- The exchangeSubnetRoutes.
-
hasExportCustomRoutes
boolean hasExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Returns:
- Whether the exportCustomRoutes field is set.
-
getExportCustomRoutes
boolean getExportCustomRoutes()
Whether to export the custom routes to peer network. The default value is false.
optional bool export_custom_routes = 60281485;- Returns:
- The exportCustomRoutes.
-
hasExportSubnetRoutesWithPublicIp
boolean hasExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
optional bool export_subnet_routes_with_public_ip = 97940834;- Returns:
- Whether the exportSubnetRoutesWithPublicIp field is set.
-
getExportSubnetRoutesWithPublicIp
boolean getExportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field.
optional bool export_subnet_routes_with_public_ip = 97940834;- Returns:
- The exportSubnetRoutesWithPublicIp.
-
hasImportCustomRoutes
boolean hasImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Returns:
- Whether the importCustomRoutes field is set.
-
getImportCustomRoutes
boolean getImportCustomRoutes()
Whether to import the custom routes from peer network. The default value is false.
optional bool import_custom_routes = 197982398;- Returns:
- The importCustomRoutes.
-
hasImportSubnetRoutesWithPublicIp
boolean hasImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
optional bool import_subnet_routes_with_public_ip = 14419729;- Returns:
- Whether the importSubnetRoutesWithPublicIp field is set.
-
getImportSubnetRoutesWithPublicIp
boolean getImportSubnetRoutesWithPublicIp()
Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field.
optional bool import_subnet_routes_with_public_ip = 14419729;- Returns:
- The importSubnetRoutesWithPublicIp.
-
hasName
boolean hasName()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- Whether the name field is set.
-
getName
String getName()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Name of this peering. Provided by the client when the peering is created. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Returns:
- The bytes for name.
-
hasNetwork
boolean hasNetwork()
The 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 network = 232872494;- Returns:
- Whether the network field is set.
-
getNetwork
String getNetwork()
The 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 network = 232872494;- Returns:
- The network.
-
getNetworkBytes
com.google.protobuf.ByteString getNetworkBytes()
The 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 network = 232872494;- Returns:
- The bytes for network.
-
hasPeerMtu
boolean hasPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;- Returns:
- Whether the peerMtu field is set.
-
getPeerMtu
int getPeerMtu()
Maximum Transmission Unit in bytes.
optional int32 peer_mtu = 69584721;- Returns:
- The peerMtu.
-
hasStackType
boolean hasStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Returns:
- Whether the stackType field is set.
-
getStackType
String getStackType()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Returns:
- The stackType.
-
getStackTypeBytes
com.google.protobuf.ByteString getStackTypeBytes()
Which IP version(s) of traffic and routes are allowed to be imported or exported between peer networks. The default value is IPV4_ONLY. Check the StackType enum for the list of possible values.
optional string stack_type = 425908881;- Returns:
- The bytes for stackType.
-
hasState
boolean hasState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- Whether the state field is set.
-
getState
String getState()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- The state.
-
getStateBytes
com.google.protobuf.ByteString getStateBytes()
[Output Only] State for the peering, either `ACTIVE` or `INACTIVE`. The peering is `ACTIVE` when there's a matching configuration in the peer network. Check the State enum for the list of possible values.
optional string state = 109757585;- Returns:
- The bytes for state.
-
hasStateDetails
boolean hasStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Returns:
- Whether the stateDetails field is set.
-
getStateDetails
String getStateDetails()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Returns:
- The stateDetails.
-
getStateDetailsBytes
com.google.protobuf.ByteString getStateDetailsBytes()
[Output Only] Details about the current state of the peering.
optional string state_details = 95566996;- Returns:
- The bytes for stateDetails.
-
-