- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
public static final class Probe.Builder extends GeneratedMessageV3.Builder<Probe.Builder> 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 type google.cloud.run.v2.Probe
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Probe.BuilderImplements
ProbeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Probe.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Probe.Builder |
build()
public Probe build()
Type | Description |
Probe |
buildPartial()
public Probe buildPartial()
Type | Description |
Probe |
clear()
public Probe.Builder clear()
Type | Description |
Probe.Builder |
clearFailureThreshold()
public Probe.Builder clearFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
int32 failure_threshold = 4;
Type | Description |
Probe.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Probe.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Probe.Builder |
clearHttpGet()
public Probe.Builder clearHttpGet()
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Type | Description |
Probe.Builder |
clearInitialDelaySeconds()
public Probe.Builder clearInitialDelaySeconds()
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 initial_delay_seconds = 1;
Type | Description |
Probe.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Probe.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Probe.Builder |
clearPeriodSeconds()
public Probe.Builder clearPeriodSeconds()
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;
Type | Description |
Probe.Builder | This builder for chaining. |
clearProbeType()
public Probe.Builder clearProbeType()
Type | Description |
Probe.Builder |
clearTcpSocket()
public Probe.Builder clearTcpSocket()
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Type | Description |
Probe.Builder |
clearTimeoutSeconds()
public Probe.Builder clearTimeoutSeconds()
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 timeout_seconds = 2;
Type | Description |
Probe.Builder | This builder for chaining. |
clone()
public Probe.Builder clone()
Type | Description |
Probe.Builder |
getDefaultInstanceForType()
public Probe getDefaultInstanceForType()
Type | Description |
Probe |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
int | The failureThreshold. |
getHttpGet()
public HTTPGetAction getHttpGet()
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Type | Description |
HTTPGetAction | The httpGet. |
getHttpGetBuilder()
public HTTPGetAction.Builder getHttpGetBuilder()
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Type | Description |
HTTPGetAction.Builder |
getHttpGetOrBuilder()
public HTTPGetActionOrBuilder getHttpGetOrBuilder()
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Type | Description |
HTTPGetActionOrBuilder |
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 initial_delay_seconds = 1;
Type | Description |
int | The initialDelaySeconds. |
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;
Type | Description |
int | The periodSeconds. |
getProbeTypeCase()
public Probe.ProbeTypeCase getProbeTypeCase()
Type | Description |
Probe.ProbeTypeCase |
getTcpSocket()
public TCPSocketAction getTcpSocket()
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Type | Description |
TCPSocketAction | The tcpSocket. |
getTcpSocketBuilder()
public TCPSocketAction.Builder getTcpSocketBuilder()
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Type | Description |
TCPSocketAction.Builder |
getTcpSocketOrBuilder()
public TCPSocketActionOrBuilder getTcpSocketOrBuilder()
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Type | Description |
TCPSocketActionOrBuilder |
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 timeout_seconds = 2;
Type | Description |
int | The timeoutSeconds. |
hasHttpGet()
public boolean hasHttpGet()
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Type | Description |
boolean | Whether the httpGet field is set. |
hasTcpSocket()
public boolean hasTcpSocket()
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Type | Description |
boolean | Whether the tcpSocket field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Probe other)
public Probe.Builder mergeFrom(Probe other)
Name | Description |
other | Probe |
Type | Description |
Probe.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Probe.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Probe.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Probe.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Probe.Builder |
mergeHttpGet(HTTPGetAction value)
public Probe.Builder mergeHttpGet(HTTPGetAction value)
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Name | Description |
value | HTTPGetAction |
Type | Description |
Probe.Builder |
mergeTcpSocket(TCPSocketAction value)
public Probe.Builder mergeTcpSocket(TCPSocketAction value)
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Name | Description |
value | TCPSocketAction |
Type | Description |
Probe.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Probe.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Probe.Builder |
setFailureThreshold(int value)
public Probe.Builder setFailureThreshold(int value)
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
int32 failure_threshold = 4;
Name | Description |
value | int The failureThreshold to set. |
Type | Description |
Probe.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Probe.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Probe.Builder |
setHttpGet(HTTPGetAction value)
public Probe.Builder setHttpGet(HTTPGetAction value)
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Name | Description |
value | HTTPGetAction |
Type | Description |
Probe.Builder |
setHttpGet(HTTPGetAction.Builder builderForValue)
public Probe.Builder setHttpGet(HTTPGetAction.Builder builderForValue)
HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.HTTPGetAction http_get = 5;
Name | Description |
builderForValue | HTTPGetAction.Builder |
Type | Description |
Probe.Builder |
setInitialDelaySeconds(int value)
public Probe.Builder setInitialDelaySeconds(int value)
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 initial_delay_seconds = 1;
Name | Description |
value | int The initialDelaySeconds to set. |
Type | Description |
Probe.Builder | This builder for chaining. |
setPeriodSeconds(int value)
public Probe.Builder setPeriodSeconds(int value)
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;
Name | Description |
value | int The periodSeconds to set. |
Type | Description |
Probe.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Probe.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Probe.Builder |
setTcpSocket(TCPSocketAction value)
public Probe.Builder setTcpSocket(TCPSocketAction value)
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Name | Description |
value | TCPSocketAction |
Type | Description |
Probe.Builder |
setTcpSocket(TCPSocketAction.Builder builderForValue)
public Probe.Builder setTcpSocket(TCPSocketAction.Builder builderForValue)
TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified.
.google.cloud.run.v2.TCPSocketAction tcp_socket = 6;
Name | Description |
builderForValue | TCPSocketAction.Builder |
Type | Description |
Probe.Builder |
setTimeoutSeconds(int value)
public Probe.Builder setTimeoutSeconds(int value)
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. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
int32 timeout_seconds = 2;
Name | Description |
value | int The timeoutSeconds to set. |
Type | Description |
Probe.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Probe.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Probe.Builder |