Class NetworkEndpoint.Builder (2.33.0)

public static final class NetworkEndpoint.Builder extends GeneratedMessageV3.Builder<NetworkEndpoint.Builder> implements NetworkEndpointOrBuilder

A network endpoint over which a TPU worker can be reached.

Protobuf type google.cloud.tpu.v2.NetworkEndpoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkEndpoint build()
Returns
TypeDescription
NetworkEndpoint

buildPartial()

public NetworkEndpoint buildPartial()
Returns
TypeDescription
NetworkEndpoint

clear()

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

clearAccessConfig()

public NetworkEndpoint.Builder clearAccessConfig()

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Returns
TypeDescription
NetworkEndpoint.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddress()

public NetworkEndpoint.Builder clearIpAddress()

The internal IP address of this network endpoint.

string ip_address = 1;

Returns
TypeDescription
NetworkEndpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public NetworkEndpoint.Builder clearPort()

The port of this network endpoint.

int32 port = 2;

Returns
TypeDescription
NetworkEndpoint.Builder

This builder for chaining.

clone()

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

getAccessConfig()

public AccessConfig getAccessConfig()

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Returns
TypeDescription
AccessConfig

The accessConfig.

getAccessConfigBuilder()

public AccessConfig.Builder getAccessConfigBuilder()

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Returns
TypeDescription
AccessConfig.Builder

getAccessConfigOrBuilder()

public AccessConfigOrBuilder getAccessConfigOrBuilder()

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Returns
TypeDescription
AccessConfigOrBuilder

getDefaultInstanceForType()

public NetworkEndpoint getDefaultInstanceForType()
Returns
TypeDescription
NetworkEndpoint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

The internal IP address of this network endpoint.

string ip_address = 1;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The internal IP address of this network endpoint.

string ip_address = 1;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getPort()

public int getPort()

The port of this network endpoint.

int32 port = 2;

Returns
TypeDescription
int

The port.

hasAccessConfig()

public boolean hasAccessConfig()

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Returns
TypeDescription
boolean

Whether the accessConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAccessConfig(AccessConfig value)

public NetworkEndpoint.Builder mergeAccessConfig(AccessConfig value)

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Parameter
NameDescription
valueAccessConfig
Returns
TypeDescription
NetworkEndpoint.Builder

mergeFrom(NetworkEndpoint other)

public NetworkEndpoint.Builder mergeFrom(NetworkEndpoint other)
Parameter
NameDescription
otherNetworkEndpoint
Returns
TypeDescription
NetworkEndpoint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessConfig(AccessConfig value)

public NetworkEndpoint.Builder setAccessConfig(AccessConfig value)

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Parameter
NameDescription
valueAccessConfig
Returns
TypeDescription
NetworkEndpoint.Builder

setAccessConfig(AccessConfig.Builder builderForValue)

public NetworkEndpoint.Builder setAccessConfig(AccessConfig.Builder builderForValue)

The access config for the TPU worker.

.google.cloud.tpu.v2.AccessConfig access_config = 5;

Parameter
NameDescription
builderForValueAccessConfig.Builder
Returns
TypeDescription
NetworkEndpoint.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public NetworkEndpoint.Builder setIpAddress(String value)

The internal IP address of this network endpoint.

string ip_address = 1;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
NetworkEndpoint.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public NetworkEndpoint.Builder setIpAddressBytes(ByteString value)

The internal IP address of this network endpoint.

string ip_address = 1;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
NetworkEndpoint.Builder

This builder for chaining.

setPort(int value)

public NetworkEndpoint.Builder setPort(int value)

The port of this network endpoint.

int32 port = 2;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
NetworkEndpoint.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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