public static final class TpuConfig.Builder extends GeneratedMessage.Builder<TpuConfig.Builder> implements TpuConfigOrBuilderConfiguration for Cloud TPU. This message is deprecated due to the deprecation of 2VM TPU. The end of life date for 2VM TPU is 2025-04-25.
Protobuf type google.container.v1beta1.TpuConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TpuConfig.BuilderImplements
TpuConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TpuConfig build()| Returns | |
|---|---|
| Type | Description |
TpuConfig |
|
buildPartial()
public TpuConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
TpuConfig |
|
clear()
public TpuConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
|
clearEnabled()
public TpuConfig.Builder clearEnabled()Whether Cloud TPU integration is enabled or not.
bool enabled = 1;
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
clearIpv4CidrBlock()
public TpuConfig.Builder clearIpv4CidrBlock()IPv4 CIDR block reserved for Cloud TPU in the VPC.
string ipv4_cidr_block = 3;
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
clearUseServiceNetworking()
public TpuConfig.Builder clearUseServiceNetworking()Whether to use service networking for Cloud TPU or not.
bool use_service_networking = 2;
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TpuConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TpuConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEnabled()
public boolean getEnabled()Whether Cloud TPU integration is enabled or not.
bool enabled = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The enabled. |
getIpv4CidrBlock()
public String getIpv4CidrBlock()IPv4 CIDR block reserved for Cloud TPU in the VPC.
string ipv4_cidr_block = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The ipv4CidrBlock. |
getIpv4CidrBlockBytes()
public ByteString getIpv4CidrBlockBytes()IPv4 CIDR block reserved for Cloud TPU in the VPC.
string ipv4_cidr_block = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ipv4CidrBlock. |
getUseServiceNetworking()
public boolean getUseServiceNetworking()Whether to use service networking for Cloud TPU or not.
bool use_service_networking = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The useServiceNetworking. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TpuConfig other)
public TpuConfig.Builder mergeFrom(TpuConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
TpuConfig |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TpuConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TpuConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
|
setEnabled(boolean value)
public TpuConfig.Builder setEnabled(boolean value)Whether Cloud TPU integration is enabled or not.
bool enabled = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enabled to set. |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
setIpv4CidrBlock(String value)
public TpuConfig.Builder setIpv4CidrBlock(String value)IPv4 CIDR block reserved for Cloud TPU in the VPC.
string ipv4_cidr_block = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ipv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
setIpv4CidrBlockBytes(ByteString value)
public TpuConfig.Builder setIpv4CidrBlockBytes(ByteString value)IPv4 CIDR block reserved for Cloud TPU in the VPC.
string ipv4_cidr_block = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ipv4CidrBlock to set. |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |
setUseServiceNetworking(boolean value)
public TpuConfig.Builder setUseServiceNetworking(boolean value)Whether to use service networking for Cloud TPU or not.
bool use_service_networking = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe useServiceNetworking to set. |
| Returns | |
|---|---|
| Type | Description |
TpuConfig.Builder |
This builder for chaining. |