Class RuntimeVersion.Builder (2.18.0)

public static final class RuntimeVersion.Builder extends GeneratedMessageV3.Builder<RuntimeVersion.Builder> implements RuntimeVersionOrBuilder

A runtime version that a Node can be configured with.

Protobuf type google.cloud.tpu.v2.RuntimeVersion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RuntimeVersion build()
Returns
TypeDescription
RuntimeVersion

buildPartial()

public RuntimeVersion buildPartial()
Returns
TypeDescription
RuntimeVersion

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RuntimeVersion.Builder clearName()

The resource name.

string name = 1;

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public RuntimeVersion.Builder clearVersion()

The runtime version.

string version = 2;

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RuntimeVersion getDefaultInstanceForType()
Returns
TypeDescription
RuntimeVersion

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 runtime version.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The runtime 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(RuntimeVersion other)

public RuntimeVersion.Builder mergeFrom(RuntimeVersion other)
Parameter
NameDescription
otherRuntimeVersion
Returns
TypeDescription
RuntimeVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RuntimeVersion.Builder setName(String value)

The resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RuntimeVersion.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public RuntimeVersion.Builder setVersion(String value)

The runtime version.

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public RuntimeVersion.Builder setVersionBytes(ByteString value)

The runtime version.

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
RuntimeVersion.Builder

This builder for chaining.