public final class NetworkConfig extends GeneratedMessageV3 implements NetworkConfigOrBuilder
Network related configurations.
Protobuf type google.cloud.tpu.v2alpha1.NetworkConfig
Static Fields
ENABLE_EXTERNAL_IPS_FIELD_NUMBER
public static final int ENABLE_EXTERNAL_IPS_FIELD_NUMBER
Field Value
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
Field Value
SUBNETWORK_FIELD_NUMBER
public static final int SUBNETWORK_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static NetworkConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static NetworkConfig.Builder newBuilder()
Returns
newBuilder(NetworkConfig prototype)
public static NetworkConfig.Builder newBuilder(NetworkConfig prototype)
Parameter
Returns
public static NetworkConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NetworkConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static NetworkConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NetworkConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static NetworkConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NetworkConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NetworkConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NetworkConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NetworkConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NetworkConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static NetworkConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NetworkConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<NetworkConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public NetworkConfig getDefaultInstanceForType()
Returns
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;
Returns
Type | Description |
boolean | The enableExternalIps.
|
getNetwork()
public 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
Type | Description |
String | The network.
|
getNetworkBytes()
public 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
getParserForType()
public Parser<NetworkConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSubnetwork()
public 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
Type | Description |
String | The subnetwork.
|
getSubnetworkBytes()
public 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
Type | Description |
ByteString | The bytes for subnetwork.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public NetworkConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NetworkConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public NetworkConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions