Class NetworkEndpoint.Builder (2.45.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.v1.NetworkEndpoint

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkEndpoint build()
Returns
Type Description
NetworkEndpoint

buildPartial()

public NetworkEndpoint buildPartial()
Returns
Type Description
NetworkEndpoint

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddress()

public NetworkEndpoint.Builder clearIpAddress()

The IP address of this network endpoint.

string ip_address = 1;

Returns
Type Description
NetworkEndpoint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public NetworkEndpoint.Builder clearPort()

The port of this network endpoint.

int32 port = 2;

Returns
Type Description
NetworkEndpoint.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NetworkEndpoint getDefaultInstanceForType()
Returns
Type Description
NetworkEndpoint

getDescriptorForType()

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

getIpAddress()

public String getIpAddress()

The IP address of this network endpoint.

string ip_address = 1;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address of this network endpoint.

string ip_address = 1;

Returns
Type Description
ByteString

The bytes for ipAddress.

getPort()

public int getPort()

The port of this network endpoint.

int32 port = 2;

Returns
Type Description
int

The port.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkEndpoint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public NetworkEndpoint.Builder setIpAddress(String value)

The IP address of this network endpoint.

string ip_address = 1;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
NetworkEndpoint.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public NetworkEndpoint.Builder setIpAddressBytes(ByteString value)

The IP address of this network endpoint.

string ip_address = 1;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
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
Name Description
value int

The port to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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