Class NetworkEndpoint (2.28.0)

public final class NetworkEndpoint extends GeneratedMessageV3 implements NetworkEndpointOrBuilder

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

Protobuf type google.cloud.tpu.v2.NetworkEndpoint

Static Fields

ACCESS_CONFIG_FIELD_NUMBER

public static final int ACCESS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkEndpoint getDefaultInstance()
Returns
TypeDescription
NetworkEndpoint

getDescriptor()

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

newBuilder()

public static NetworkEndpoint.Builder newBuilder()
Returns
TypeDescription
NetworkEndpoint.Builder

newBuilder(NetworkEndpoint prototype)

public static NetworkEndpoint.Builder newBuilder(NetworkEndpoint prototype)
Parameter
NameDescription
prototypeNetworkEndpoint
Returns
TypeDescription
NetworkEndpoint.Builder

parseDelimitedFrom(InputStream input)

public static NetworkEndpoint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkEndpoint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkEndpoint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkEndpoint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkEndpoint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkEndpoint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkEndpoint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkEndpoint> parser()
Returns
TypeDescription
Parser<NetworkEndpoint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

getParserForType()

public Parser<NetworkEndpoint> getParserForType()
Returns
TypeDescription
Parser<NetworkEndpoint>
Overrides

getPort()

public int getPort()

The port of this network endpoint.

int32 port = 2;

Returns
TypeDescription
int

The port.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkEndpoint.Builder newBuilderForType()
Returns
TypeDescription
NetworkEndpoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkEndpoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkEndpoint.Builder toBuilder()
Returns
TypeDescription
NetworkEndpoint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException