Class Port.Builder (3.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Port build()
Returns
TypeDescription
Port

buildPartial()

public Port buildPartial()
Returns
TypeDescription
Port

clear()

public Port.Builder clear()
Returns
TypeDescription
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
TypeDescription
Port.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Port.Builder clone()
Returns
TypeDescription
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
TypeDescription
int

The containerPort.

getDefaultInstanceForType()

public Port getDefaultInstanceForType()
Returns
TypeDescription
Port

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Port other)

public Port.Builder mergeFrom(Port other)
Parameter
NameDescription
otherPort
Returns
TypeDescription
Port.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Port.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The containerPort to set.

Returns
TypeDescription
Port.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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