Package com.google.cloud.tpu.v2
Interface NetworkConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NetworkConfig
,NetworkConfig.Builder
public interface NetworkConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getCanIpForward()
Allows the TPU node to send and receive packets with non-matching destination or source IPs.boolean
getEnableExternalIps()
Indicates that external IP addresses would be associated with the TPU workers.String
getNetwork()
The name of the network for the TPU node.com.google.protobuf.ByteString
getNetworkBytes()
The name of the network for the TPU node.String
getSubnetwork()
The name of the subnetwork for the TPU node.com.google.protobuf.ByteString
getSubnetworkBytes()
The name of the subnetwork for the TPU node.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getNetwork
String getNetwork()
The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
string network = 1;
- Returns:
- The network.
-
getNetworkBytes
com.google.protobuf.ByteString getNetworkBytes()
The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used.
string network = 1;
- Returns:
- The bytes for network.
-
getSubnetwork
String getSubnetwork()
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
string subnetwork = 2;
- Returns:
- The subnetwork.
-
getSubnetworkBytes
com.google.protobuf.ByteString getSubnetworkBytes()
The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used.
string subnetwork = 2;
- Returns:
- The bytes for subnetwork.
-
getEnableExternalIps
boolean getEnableExternalIps()
Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
bool enable_external_ips = 3;
- Returns:
- The enableExternalIps.
-
getCanIpForward
boolean getCanIpForward()
Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
bool can_ip_forward = 4;
- Returns:
- The canIpForward.
-
-