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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public Port.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 Port.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Port.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Port.Builder clone()
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 |
---|
Type | Description |
Port | |
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessageV3.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 final Port.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
public Port.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Port.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Port.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides