Class Port.Builder (3.44.0)

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

Represents a network port in a container.

Protobuf type google.cloud.aiplatform.v1.Port

Implements

PortOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Port.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Port.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Port.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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