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 classProbe.BuilderProbe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.static classProbe.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 intFAILURE_THRESHOLD_FIELD_NUMBERstatic intGRPC_FIELD_NUMBERstatic intHTTP_GET_FIELD_NUMBERstatic intINITIAL_DELAY_SECONDS_FIELD_NUMBERstatic intPERIOD_SECONDS_FIELD_NUMBERstatic intTCP_SOCKET_FIELD_NUMBERstatic intTIMEOUT_SECONDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ProbegetDefaultInstance()ProbegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetFailureThreshold()Minimum consecutive failures for the probe to be considered failed after having succeeded.GRPCActiongetGrpc()GRPC specifies an action involving a gRPC port.GRPCActionOrBuildergetGrpcOrBuilder()GRPC specifies an action involving a gRPC port.HTTPGetActiongetHttpGet()HTTPGet specifies the http request to perform.HTTPGetActionOrBuildergetHttpGetOrBuilder()HTTPGet specifies the http request to perform.intgetInitialDelaySeconds()Number of seconds after the container has started before the probe is initiated.com.google.protobuf.Parser<Probe>getParserForType()intgetPeriodSeconds()How often (in seconds) to perform the probe.Probe.ProbeTypeCasegetProbeTypeCase()intgetSerializedSize()TCPSocketActiongetTcpSocket()TCPSocket specifies an action involving a TCP port.TCPSocketActionOrBuildergetTcpSocketOrBuilder()TCPSocket specifies an action involving a TCP port.intgetTimeoutSeconds()Number of seconds after which the probe times out.booleanhasGrpc()GRPC specifies an action involving a gRPC port.inthashCode()booleanhasHttpGet()HTTPGet specifies the http request to perform.booleanhasTcpSocket()TCPSocket specifies an action involving a TCP port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Probe.BuildernewBuilder()static Probe.BuildernewBuilder(Probe prototype)Probe.BuildernewBuilderForType()protected Probe.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProbeparseDelimitedFrom(InputStream input)static ProbeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProbeparseFrom(byte[] data)static ProbeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProbeparseFrom(com.google.protobuf.ByteString data)static ProbeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProbeparseFrom(com.google.protobuf.CodedInputStream input)static ProbeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProbeparseFrom(InputStream input)static ProbeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProbeparseFrom(ByteBuffer data)static ProbeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Probe>parser()Probe.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getProbeTypeCase
public Probe.ProbeTypeCase getProbeTypeCase()
- Specified by:
getProbeTypeCasein 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:
getInitialDelaySecondsin 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:
getTimeoutSecondsin 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:
getPeriodSecondsin 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:
getFailureThresholdin 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:
hasHttpGetin 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:
getHttpGetin 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:
getHttpGetOrBuilderin 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:
hasTcpSocketin 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:
getTcpSocketin 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:
getTcpSocketOrBuilderin 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:
hasGrpcin 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:
getGrpcin 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:
getGrpcOrBuilderin interfaceProbeOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Probe.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Probe getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-