Interface ProbeOrBuilder (0.34.0)

publicinterface ProbeOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getFailureThreshold()

publicabstractintgetFailureThreshold()

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

int32 failure_threshold = 4;

Returns
Type Description
int

The failureThreshold.

getGrpc()

publicabstractGRPCActiongetGrpc()

GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.GRPCAction grpc = 7;

Returns
Type Description
GRPCAction

The grpc.

getGrpcOrBuilder()

publicabstractGRPCActionOrBuildergetGrpcOrBuilder()

GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.GRPCAction grpc = 7;

Returns
Type Description
GRPCActionOrBuilder

getHttpGet()

publicabstractHTTPGetActiongetHttpGet()

HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.HTTPGetAction http_get = 5;

Returns
Type Description
HTTPGetAction

The httpGet.

getHttpGetOrBuilder()

publicabstractHTTPGetActionOrBuildergetHttpGetOrBuilder()

HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.HTTPGetAction http_get = 5;

Returns
Type Description
HTTPGetActionOrBuilder

getInitialDelaySeconds()

publicabstractintgetInitialDelaySeconds()

Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240.

int32 initial_delay_seconds = 1;

Returns
Type Description
int

The initialDelaySeconds.

getPeriodSeconds()

publicabstractintgetPeriodSeconds()

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeout_seconds.

int32 period_seconds = 3;

Returns
Type Description
int

The periodSeconds.

getProbeTypeCase()

publicabstractProbe.ProbeTypeCasegetProbeTypeCase()
Returns
Type Description
Probe.ProbeTypeCase

getTcpSocket()

publicabstractTCPSocketActiongetTcpSocket()

TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;

Returns
Type Description
TCPSocketAction

The tcpSocket.

getTcpSocketOrBuilder()

publicabstractTCPSocketActionOrBuildergetTcpSocketOrBuilder()

TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;

Returns
Type Description
TCPSocketActionOrBuilder

getTimeoutSeconds()

publicabstractintgetTimeoutSeconds()

Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds.

int32 timeout_seconds = 2;

Returns
Type Description
int

The timeoutSeconds.

hasGrpc()

publicabstractbooleanhasGrpc()

GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.GRPCAction grpc = 7;

Returns
Type Description
boolean

Whether the grpc field is set.

hasHttpGet()

publicabstractbooleanhasHttpGet()

HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.HTTPGetAction http_get = 5;

Returns
Type Description
boolean

Whether the httpGet field is set.

hasTcpSocket()

publicabstractbooleanhasTcpSocket()

TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.

.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;

Returns
Type Description
boolean

Whether the tcpSocket field is set.

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年10月30日 UTC.