Class Port.Builder (3.84.0)

public static final class Port.Builder extends GeneratedMessage.Builder<Port.Builder> implements PortOrBuilder

Represents a network port in a container.

Protobuf type google.cloud.aiplatform.v1beta1.Port

Implements

PortOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Port build()
Returns
Type Description
Port

buildPartial()

public Port buildPartial()
Returns
Type Description
Port

clear()

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

clearContainerPort()

public Port.Builder clearContainerPort()

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

int32 container_port = 3;

Returns
Type Description
Port.Builder

This builder for chaining.

getContainerPort()

public int getContainerPort()

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

int32 container_port = 3;

Returns
Type Description
int

The containerPort.

getDefaultInstanceForType()

public Port getDefaultInstanceForType()
Returns
Type Description
Port

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Port other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setContainerPort(int value)

public Port.Builder setContainerPort(int value)

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

int32 container_port = 3;

Parameter
Name Description
value int

The containerPort to set.

Returns
Type Description
Port.Builder

This builder for chaining.