Class Port.Builder (3.89.0)
Stay organized with collections
Save and categorize content based on your preferences.
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.v1.Port
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
| Returns |
| Type |
Description |
Port |
|
public Port buildPartial()
| Returns |
| Type |
Description |
Port |
|
public Port.Builder clear()
Overrides
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.
|
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.
|
public Port getDefaultInstanceForType()
| Returns |
| Type |
Description |
Port |
|
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Port.Builder mergeFrom(Port other)
| Parameter |
| Name |
Description |
other |
Port
|
public Port.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Port.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-19 UTC.
[null,null,["Last updated 2026-06-19 UTC."],[],[]]