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.v1beta1.Port
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Port.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Port buildPartial()
Returns
public Port.Builder clear()
Returns
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
public Port.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Port.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Port.Builder clone()
Returns
Overrides
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
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Port.Builder mergeFrom(Port other)
Parameter
Returns
public Port.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Port.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Port.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
public Port.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Port.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Port.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides