Class TensorFlowVersion.Builder (2.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TensorFlowVersion build()
Returns
TypeDescription
TensorFlowVersion

buildPartial()

public TensorFlowVersion buildPartial()
Returns
TypeDescription
TensorFlowVersion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TensorFlowVersion.Builder clearName()

The resource name.

string name = 1;

Returns
TypeDescription
TensorFlowVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public TensorFlowVersion.Builder clearVersion()

the tensorflow version.

string version = 2;

Returns
TypeDescription
TensorFlowVersion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TensorFlowVersion getDefaultInstanceForType()
Returns
TypeDescription
TensorFlowVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getVersion()

public String getVersion()

the tensorflow version.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

the tensorflow version.

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TensorFlowVersion other)

public TensorFlowVersion.Builder mergeFrom(TensorFlowVersion other)
Parameter
NameDescription
otherTensorFlowVersion
Returns
TypeDescription
TensorFlowVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TensorFlowVersion.Builder setName(String value)

The resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TensorFlowVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TensorFlowVersion.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TensorFlowVersion.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public TensorFlowVersion.Builder setVersion(String value)

the tensorflow version.

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
TensorFlowVersion.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public TensorFlowVersion.Builder setVersionBytes(ByteString value)

the tensorflow version.

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
TensorFlowVersion.Builder

This builder for chaining.