Google Cloud Ai Platform V1 Client - Class Port (0.29.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Port.

Represents a network port in a container.

Generated from protobuf message google.cloud.aiplatform.v1.Port

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ container_port int

The number of the port to expose on the pod's IP address. Must be a valid port number, between 1 and 65535 inclusive.

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.

Returns
Type Description
int

setContainerPort

The number of the port to expose on the pod's IP address.

Must be a valid port number, between 1 and 65535 inclusive.

Parameter
Name Description
var int
Returns
Type Description
$this

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 2025年11月08日 UTC.