Package com.google.cloud.tpu.v2
Class NetworkConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
com.google.cloud.tpu.v2.NetworkConfig.Builder
- All Implemented Interfaces:
NetworkConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NetworkConfig
public static final class NetworkConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
implements NetworkConfigOrBuilder
Network related configurations.Protobuf type
google.cloud.tpu.v2.NetworkConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Allows the TPU node to send and receive packets with non-matching destination or source IPs.Indicates that external IP addresses would be associated with the TPU workers.The name of the network for the TPU node.Optional.The name of the subnetwork for the TPU node.booleanAllows the TPU node to send and receive packets with non-matching destination or source IPs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates that external IP addresses would be associated with the TPU workers.The name of the network for the TPU node.com.google.protobuf.ByteStringThe name of the network for the TPU node.intOptional.The name of the subnetwork for the TPU node.com.google.protobuf.ByteStringThe name of the subnetwork for the TPU node.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NetworkConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCanIpForward(boolean value) Allows the TPU node to send and receive packets with non-matching destination or source IPs.setEnableExternalIps(boolean value) Indicates that external IP addresses would be associated with the TPU workers.setNetwork(String value) The name of the network for the TPU node.setNetworkBytes(com.google.protobuf.ByteString value) The name of the network for the TPU node.setQueueCount(int value) Optional.setSubnetwork(String value) The name of the subnetwork for the TPU node.setSubnetworkBytes(com.google.protobuf.ByteString value) The name of the subnetwork for the TPU node.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NetworkConfig.Builder>
-
mergeFrom
public NetworkConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NetworkConfig.Builder>- Throws:
IOException
-
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;- Specified by:
getNetworkin interfaceNetworkConfigOrBuilder- Returns:
- The network.
-
getNetworkBytes
public 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;- Specified by:
getNetworkBytesin interfaceNetworkConfigOrBuilder- Returns:
- The bytes for network.
-
setNetwork
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;- Parameters:
value- The network to set.- Returns:
- This builder for chaining.
-
clearNetwork
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:
- This builder for chaining.
-
setNetworkBytes
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;- Parameters:
value- The bytes for network to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getSubnetworkin interfaceNetworkConfigOrBuilder- Returns:
- The subnetwork.
-
getSubnetworkBytes
public 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;- Specified by:
getSubnetworkBytesin interfaceNetworkConfigOrBuilder- Returns:
- The bytes for subnetwork.
-
setSubnetwork
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;- Parameters:
value- The subnetwork to set.- Returns:
- This builder for chaining.
-
clearSubnetwork
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:
- This builder for chaining.
-
setSubnetworkBytes
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;- Parameters:
value- The bytes for subnetwork to set.- Returns:
- This builder for chaining.
-
getEnableExternalIps
public 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;- Specified by:
getEnableExternalIpsin interfaceNetworkConfigOrBuilder- Returns:
- The enableExternalIps.
-
setEnableExternalIps
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;- Parameters:
value- The enableExternalIps to set.- Returns:
- This builder for chaining.
-
clearEnableExternalIps
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:
- This builder for chaining.
-
getCanIpForward
public 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;- Specified by:
getCanIpForwardin interfaceNetworkConfigOrBuilder- Returns:
- The canIpForward.
-
setCanIpForward
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;- Parameters:
value- The canIpForward to set.- Returns:
- This builder for chaining.
-
clearCanIpForward
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:
- This builder for chaining.
-
getQueueCount
public int getQueueCount()Optional. Specifies networking queue count for TPU VM instance's network interface.
int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getQueueCountin interfaceNetworkConfigOrBuilder- Returns:
- The queueCount.
-
setQueueCount
Optional. Specifies networking queue count for TPU VM instance's network interface.
int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The queueCount to set.- Returns:
- This builder for chaining.
-
clearQueueCount
Optional. Specifies networking queue count for TPU VM instance's network interface.
int32 queue_count = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-