Package com.google.cloud.run.v2
Class Probe
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.run.v2.Probe
-
- All Implemented Interfaces:
ProbeOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Probe extends com.google.protobuf.GeneratedMessageV3 implements ProbeOrBuilder
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
Protobuf typegoogle.cloud.run.v2.Probe
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Probe.Builder
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.static class
Probe.ProbeTypeCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
FAILURE_THRESHOLD_FIELD_NUMBER
static int
GRPC_FIELD_NUMBER
static int
HTTP_GET_FIELD_NUMBER
static int
INITIAL_DELAY_SECONDS_FIELD_NUMBER
static int
PERIOD_SECONDS_FIELD_NUMBER
static int
TCP_SOCKET_FIELD_NUMBER
static int
TIMEOUT_SECONDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Probe
getDefaultInstance()
Probe
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<Probe>
getParserForType()
int
getPeriodSeconds()
How often (in seconds) to perform the probe.Probe.ProbeTypeCase
getProbeTypeCase()
int
getSerializedSize()
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.int
hashCode()
boolean
hasHttpGet()
HTTPGet specifies the http request to perform.boolean
hasTcpSocket()
TCPSocket specifies an action involving a TCP port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Probe.Builder
newBuilder()
static Probe.Builder
newBuilder(Probe prototype)
Probe.Builder
newBuilderForType()
protected Probe.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Probe
parseDelimitedFrom(InputStream input)
static Probe
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Probe
parseFrom(byte[] data)
static Probe
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Probe
parseFrom(com.google.protobuf.ByteString data)
static Probe
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Probe
parseFrom(com.google.protobuf.CodedInputStream input)
static Probe
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Probe
parseFrom(InputStream input)
static Probe
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Probe
parseFrom(ByteBuffer data)
static Probe
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Probe>
parser()
Probe.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INITIAL_DELAY_SECONDS_FIELD_NUMBER
public static final int INITIAL_DELAY_SECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_SECONDS_FIELD_NUMBER
public static final int TIMEOUT_SECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERIOD_SECONDS_FIELD_NUMBER
public static final int PERIOD_SECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FAILURE_THRESHOLD_FIELD_NUMBER
public static final int FAILURE_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_GET_FIELD_NUMBER
public static final int HTTP_GET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TCP_SOCKET_FIELD_NUMBER
public static final int TCP_SOCKET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GRPC_FIELD_NUMBER
public static final int GRPC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getProbeTypeCase
public Probe.ProbeTypeCase getProbeTypeCase()
- Specified by:
getProbeTypeCase
in interfaceProbeOrBuilder
-
getInitialDelaySeconds
public 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;
- Specified by:
getInitialDelaySeconds
in interfaceProbeOrBuilder
- Returns:
- The initialDelaySeconds.
-
getTimeoutSeconds
public 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;
- Specified by:
getTimeoutSeconds
in interfaceProbeOrBuilder
- Returns:
- The timeoutSeconds.
-
getPeriodSeconds
public 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;
- Specified by:
getPeriodSeconds
in interfaceProbeOrBuilder
- Returns:
- The periodSeconds.
-
getFailureThreshold
public 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;
- Specified by:
getFailureThreshold
in interfaceProbeOrBuilder
- Returns:
- The failureThreshold.
-
hasHttpGet
public 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;
- Specified by:
hasHttpGet
in interfaceProbeOrBuilder
- Returns:
- Whether the httpGet field is set.
-
getHttpGet
public 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;
- Specified by:
getHttpGet
in interfaceProbeOrBuilder
- Returns:
- The httpGet.
-
getHttpGetOrBuilder
public 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;
- Specified by:
getHttpGetOrBuilder
in interfaceProbeOrBuilder
-
hasTcpSocket
public 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;
- Specified by:
hasTcpSocket
in interfaceProbeOrBuilder
- Returns:
- Whether the tcpSocket field is set.
-
getTcpSocket
public 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;
- Specified by:
getTcpSocket
in interfaceProbeOrBuilder
- Returns:
- The tcpSocket.
-
getTcpSocketOrBuilder
public 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;
- Specified by:
getTcpSocketOrBuilder
in interfaceProbeOrBuilder
-
hasGrpc
public 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;
- Specified by:
hasGrpc
in interfaceProbeOrBuilder
- Returns:
- Whether the grpc field is set.
-
getGrpc
public 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;
- Specified by:
getGrpc
in interfaceProbeOrBuilder
- Returns:
- The grpc.
-
getGrpcOrBuilder
public 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;
- Specified by:
getGrpcOrBuilder
in interfaceProbeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Probe parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Probe parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Probe parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Probe parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Probe parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Probe parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Probe parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Probe.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Probe.Builder newBuilder()
-
newBuilder
public static Probe.Builder newBuilder(Probe prototype)
-
toBuilder
public Probe.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Probe.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Probe getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Probe> parser()
-
getParserForType
public com.google.protobuf.Parser<Probe> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Probe getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-