Class TpuConfig.Builder (2.21.0)

public static final class TpuConfig.Builder extends GeneratedMessageV3.Builder<TpuConfig.Builder> implements TpuConfigOrBuilder

Configuration for Cloud TPU.

Protobuf type google.container.v1beta1.TpuConfig

Implements

TpuConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TpuConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TpuConfig.Builder
Overrides

build()

public TpuConfig build()
Returns
TypeDescription
TpuConfig

buildPartial()

public TpuConfig buildPartial()
Returns
TypeDescription
TpuConfig

clear()

public TpuConfig.Builder clear()
Returns
TypeDescription
TpuConfig.Builder
Overrides

clearEnabled()

public TpuConfig.Builder clearEnabled()

Whether Cloud TPU integration is enabled or not.

bool enabled = 1;

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TpuConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TpuConfig.Builder
Overrides

clearIpv4CidrBlock()

public TpuConfig.Builder clearIpv4CidrBlock()

IPv4 CIDR block reserved for Cloud TPU in the VPC.

string ipv4_cidr_block = 3;

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TpuConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TpuConfig.Builder
Overrides

clearUseServiceNetworking()

public TpuConfig.Builder clearUseServiceNetworking()

Whether to use service networking for Cloud TPU or not.

bool use_service_networking = 2;

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.

clone()

public TpuConfig.Builder clone()
Returns
TypeDescription
TpuConfig.Builder
Overrides

getDefaultInstanceForType()

public TpuConfig getDefaultInstanceForType()
Returns
TypeDescription
TpuConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether Cloud TPU integration is enabled or not.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getIpv4CidrBlock()

public String getIpv4CidrBlock()

IPv4 CIDR block reserved for Cloud TPU in the VPC.

string ipv4_cidr_block = 3;

Returns
TypeDescription
String

The ipv4CidrBlock.

getIpv4CidrBlockBytes()

public ByteString getIpv4CidrBlockBytes()

IPv4 CIDR block reserved for Cloud TPU in the VPC.

string ipv4_cidr_block = 3;

Returns
TypeDescription
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
TypeDescription
boolean

The useServiceNetworking.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TpuConfig other)

public TpuConfig.Builder mergeFrom(TpuConfig other)
Parameter
NameDescription
otherTpuConfig
Returns
TypeDescription
TpuConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TpuConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TpuConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TpuConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TpuConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TpuConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TpuConfig.Builder
Overrides

setEnabled(boolean value)

public TpuConfig.Builder setEnabled(boolean value)

Whether Cloud TPU integration is enabled or not.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TpuConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TpuConfig.Builder
Overrides

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
NameDescription
valueString

The ipv4CidrBlock to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipv4CidrBlock to set.

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TpuConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TpuConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TpuConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TpuConfig.Builder
Overrides

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
NameDescription
valueboolean

The useServiceNetworking to set.

Returns
TypeDescription
TpuConfig.Builder

This builder for chaining.