Class TpuConfig.Builder (2.45.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TpuConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TpuConfig.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public TpuConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TpuConfig.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public TpuConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TpuConfig.Builder
Overrides

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.

clone()

public TpuConfig.Builder clone()
Returns
Type Description
TpuConfig.Builder
Overrides

getDefaultInstanceForType()

public TpuConfig getDefaultInstanceForType()
Returns
Type Description
TpuConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TpuConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TpuConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TpuConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TpuConfig.Builder
Overrides

setEnabled(boolean value)

public TpuConfig.Builder setEnabled(boolean value)

Whether Cloud TPU integration is enabled or not.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
TpuConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TpuConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The 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 ByteString

The bytes for ipv4CidrBlock to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TpuConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TpuConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The useServiceNetworking to set.

Returns
Type Description
TpuConfig.Builder

This builder for chaining.