Package com.google.cloud.run.v2
Interface ProbeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Probe
,Probe.Builder
public interface ProbeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded.GRPCAction
getGrpc()
GRPC specifies an action involving a gRPC port.GRPCActionOrBuilder
getGrpcOrBuilder()
GRPC specifies an action involving a gRPC port.HTTPGetAction
getHttpGet()
HTTPGet specifies the http request to perform.HTTPGetActionOrBuilder
getHttpGetOrBuilder()
HTTPGet specifies the http request to perform.int
getInitialDelaySeconds()
Number of seconds after the container has started before the probe is initiated.int
getPeriodSeconds()
How often (in seconds) to perform the probe.Probe.ProbeTypeCase
getProbeTypeCase()
TCPSocketAction
getTcpSocket()
TCPSocket specifies an action involving a TCP port.TCPSocketActionOrBuilder
getTcpSocketOrBuilder()
TCPSocket specifies an action involving a TCP port.int
getTimeoutSeconds()
Number of seconds after which the probe times out.boolean
hasGrpc()
GRPC specifies an action involving a gRPC port.boolean
hasHttpGet()
HTTPGet specifies the http request to perform.boolean
hasTcpSocket()
TCPSocket specifies an action involving a TCP port.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getInitialDelaySeconds
int getInitialDelaySeconds()
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:
- The initialDelaySeconds.
-
getTimeoutSeconds
int getTimeoutSeconds()
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:
- The timeoutSeconds.
-
getPeriodSeconds
int getPeriodSeconds()
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:
- The periodSeconds.
-
getFailureThreshold
int getFailureThreshold()
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:
- The failureThreshold.
-
hasHttpGet
boolean hasHttpGet()
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:
- Whether the httpGet field is set.
-
getHttpGet
HTTPGetAction getHttpGet()
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:
- The httpGet.
-
getHttpGetOrBuilder
HTTPGetActionOrBuilder getHttpGetOrBuilder()
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;
-
hasTcpSocket
boolean hasTcpSocket()
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:
- Whether the tcpSocket field is set.
-
getTcpSocket
TCPSocketAction getTcpSocket()
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:
- The tcpSocket.
-
getTcpSocketOrBuilder
TCPSocketActionOrBuilder getTcpSocketOrBuilder()
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;
-
hasGrpc
boolean hasGrpc()
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:
- Whether the grpc field is set.
-
getGrpc
GRPCAction getGrpc()
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:
- The grpc.
-
getGrpcOrBuilder
GRPCActionOrBuilder getGrpcOrBuilder()
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;
-
getProbeTypeCase
Probe.ProbeTypeCase getProbeTypeCase()
-
-