Class TensorFlowVersion.Builder (2.45.0)

public static final class TensorFlowVersion.Builder extends GeneratedMessageV3.Builder<TensorFlowVersion.Builder> implements TensorFlowVersionOrBuilder

A tensorflow version that a Node can be configured with.

Protobuf type google.cloud.tpu.v1.TensorFlowVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TensorFlowVersion build()
Returns
Type Description
TensorFlowVersion

buildPartial()

public TensorFlowVersion buildPartial()
Returns
Type Description
TensorFlowVersion

clear()

public TensorFlowVersion.Builder clear()
Returns
Type Description
TensorFlowVersion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TensorFlowVersion.Builder clearName()

The resource name.

string name = 1;

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public TensorFlowVersion.Builder clearVersion()

the tensorflow version.

string version = 2;

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TensorFlowVersion getDefaultInstanceForType()
Returns
Type Description
TensorFlowVersion

getDescriptorForType()

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

getName()

public String getName()

The resource name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getVersion()

public String getVersion()

the tensorflow version.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

the tensorflow version.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TensorFlowVersion other)

public TensorFlowVersion.Builder mergeFrom(TensorFlowVersion other)
Parameter
Name Description
other TensorFlowVersion
Returns
Type Description
TensorFlowVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TensorFlowVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TensorFlowVersion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TensorFlowVersion.Builder setName(String value)

The resource name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TensorFlowVersion.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.

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

public TensorFlowVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TensorFlowVersion.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TensorFlowVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TensorFlowVersion.Builder
Overrides

setVersion(String value)

public TensorFlowVersion.Builder setVersion(String value)

the tensorflow version.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public TensorFlowVersion.Builder setVersionBytes(ByteString value)

the tensorflow version.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
TensorFlowVersion.Builder

This builder for chaining.