Package com.google.cloud.aiplatform.v1
Class Probe.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
com.google.cloud.aiplatform.v1.Probe.Builder
- All Implemented Interfaces:
ProbeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Probe
public static final class Probe.Builder
extends com.google.protobuf.GeneratedMessage.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.aiplatform.v1.Probe-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()ExecAction probes the health of a container by executing a command.Number of consecutive failures before the probe is considered failed.GrpcAction probes the health of a container by sending a gRPC request.HttpGetAction probes the health of a container by sending an HTTP GET request.Number of seconds to wait before starting the probe.How often (in seconds) to perform the probe.Number of consecutive successes before the probe is considered successful.TcpSocketAction probes the health of a container by opening a TCP socket connection.Number of seconds after which the probe times out.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExec()ExecAction probes the health of a container by executing a command.ExecAction probes the health of a container by executing a command.ExecAction probes the health of a container by executing a command.intNumber of consecutive failures before the probe is considered failed.getGrpc()GrpcAction probes the health of a container by sending a gRPC request.GrpcAction probes the health of a container by sending a gRPC request.GrpcAction probes the health of a container by sending a gRPC request.HttpGetAction probes the health of a container by sending an HTTP GET request.HttpGetAction probes the health of a container by sending an HTTP GET request.HttpGetAction probes the health of a container by sending an HTTP GET request.intNumber of seconds to wait before starting the probe.intHow often (in seconds) to perform the probe.intNumber of consecutive successes before the probe is considered successful.TcpSocketAction probes the health of a container by opening a TCP socket connection.TcpSocketAction probes the health of a container by opening a TCP socket connection.TcpSocketAction probes the health of a container by opening a TCP socket connection.intNumber of seconds after which the probe times out.booleanhasExec()ExecAction probes the health of a container by executing a command.booleanhasGrpc()GrpcAction probes the health of a container by sending a gRPC request.booleanHttpGetAction probes the health of a container by sending an HTTP GET request.booleanTcpSocketAction probes the health of a container by opening a TCP socket connection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExec(Probe.ExecAction value) ExecAction probes the health of a container by executing a command.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGrpc(Probe.GrpcAction value) GrpcAction probes the health of a container by sending a gRPC request.mergeHttpGet(Probe.HttpGetAction value) HttpGetAction probes the health of a container by sending an HTTP GET request.TcpSocketAction probes the health of a container by opening a TCP socket connection.setExec(Probe.ExecAction value) ExecAction probes the health of a container by executing a command.setExec(Probe.ExecAction.Builder builderForValue) ExecAction probes the health of a container by executing a command.setFailureThreshold(int value) Number of consecutive failures before the probe is considered failed.setGrpc(Probe.GrpcAction value) GrpcAction probes the health of a container by sending a gRPC request.setGrpc(Probe.GrpcAction.Builder builderForValue) GrpcAction probes the health of a container by sending a gRPC request.setHttpGet(Probe.HttpGetAction value) HttpGetAction probes the health of a container by sending an HTTP GET request.setHttpGet(Probe.HttpGetAction.Builder builderForValue) HttpGetAction probes the health of a container by sending an HTTP GET request.setInitialDelaySeconds(int value) Number of seconds to wait before starting the probe.setPeriodSeconds(int value) How often (in seconds) to perform the probe.setSuccessThreshold(int value) Number of consecutive successes before the probe is considered successful.TcpSocketAction probes the health of a container by opening a TCP socket connection.setTcpSocket(Probe.TcpSocketAction.Builder builderForValue) TcpSocketAction probes the health of a container by opening a TCP socket connection.setTimeoutSeconds(int value) Number of seconds after which the probe times out.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Probe.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
-
mergeFrom
public Probe.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Probe.Builder>- Throws:
IOException
-
getProbeTypeCase
- Specified by:
getProbeTypeCasein interfaceProbeOrBuilder
-
clearProbeType
-
hasExec
public boolean hasExec()ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;- Specified by:
hasExecin interfaceProbeOrBuilder- Returns:
- Whether the exec field is set.
-
getExec
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;- Specified by:
getExecin interfaceProbeOrBuilder- Returns:
- The exec.
-
setExec
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1; -
setExec
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1; -
mergeExec
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1; -
clearExec
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1; -
getExecBuilder
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1; -
getExecOrBuilder
ExecAction probes the health of a container by executing a command.
.google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;- Specified by:
getExecOrBuilderin interfaceProbeOrBuilder
-
hasHttpGet
public boolean hasHttpGet()HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;- Specified by:
hasHttpGetin interfaceProbeOrBuilder- Returns:
- Whether the httpGet field is set.
-
getHttpGet
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;- Specified by:
getHttpGetin interfaceProbeOrBuilder- Returns:
- The httpGet.
-
setHttpGet
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4; -
setHttpGet
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4; -
mergeHttpGet
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4; -
clearHttpGet
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4; -
getHttpGetBuilder
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4; -
getHttpGetOrBuilder
HttpGetAction probes the health of a container by sending an HTTP GET request.
.google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;- Specified by:
getHttpGetOrBuilderin interfaceProbeOrBuilder
-
hasGrpc
public boolean hasGrpc()GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;- Specified by:
hasGrpcin interfaceProbeOrBuilder- Returns:
- Whether the grpc field is set.
-
getGrpc
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;- Specified by:
getGrpcin interfaceProbeOrBuilder- Returns:
- The grpc.
-
setGrpc
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5; -
setGrpc
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5; -
mergeGrpc
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5; -
clearGrpc
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5; -
getGrpcBuilder
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5; -
getGrpcOrBuilder
GrpcAction probes the health of a container by sending a gRPC request.
.google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;- Specified by:
getGrpcOrBuilderin interfaceProbeOrBuilder
-
hasTcpSocket
public boolean hasTcpSocket()TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;- Specified by:
hasTcpSocketin interfaceProbeOrBuilder- Returns:
- Whether the tcpSocket field is set.
-
getTcpSocket
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;- Specified by:
getTcpSocketin interfaceProbeOrBuilder- Returns:
- The tcpSocket.
-
setTcpSocket
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6; -
setTcpSocket
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6; -
mergeTcpSocket
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6; -
clearTcpSocket
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6; -
getTcpSocketBuilder
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6; -
getTcpSocketOrBuilder
TcpSocketAction probes the health of a container by opening a TCP socket connection.
.google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;- Specified by:
getTcpSocketOrBuilderin interfaceProbeOrBuilder
-
getPeriodSeconds
public int getPeriodSeconds()How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.
int32 period_seconds = 2;- Specified by:
getPeriodSecondsin interfaceProbeOrBuilder- Returns:
- The periodSeconds.
-
setPeriodSeconds
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.
int32 period_seconds = 2;- Parameters:
value- The periodSeconds to set.- Returns:
- This builder for chaining.
-
clearPeriodSeconds
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.
int32 period_seconds = 2;- Returns:
- This builder for chaining.
-
getTimeoutSeconds
public int getTimeoutSeconds()Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.
int32 timeout_seconds = 3;- Specified by:
getTimeoutSecondsin interfaceProbeOrBuilder- Returns:
- The timeoutSeconds.
-
setTimeoutSeconds
Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.
int32 timeout_seconds = 3;- Parameters:
value- The timeoutSeconds to set.- Returns:
- This builder for chaining.
-
clearTimeoutSeconds
Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.
int32 timeout_seconds = 3;- Returns:
- This builder for chaining.
-
getFailureThreshold
public int getFailureThreshold()Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
int32 failure_threshold = 7;- Specified by:
getFailureThresholdin interfaceProbeOrBuilder- Returns:
- The failureThreshold.
-
setFailureThreshold
Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
int32 failure_threshold = 7;- Parameters:
value- The failureThreshold to set.- Returns:
- This builder for chaining.
-
clearFailureThreshold
Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
int32 failure_threshold = 7;- Returns:
- This builder for chaining.
-
getSuccessThreshold
public int getSuccessThreshold()Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'.
int32 success_threshold = 8;- Specified by:
getSuccessThresholdin interfaceProbeOrBuilder- Returns:
- The successThreshold.
-
setSuccessThreshold
Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'.
int32 success_threshold = 8;- Parameters:
value- The successThreshold to set.- Returns:
- This builder for chaining.
-
clearSuccessThreshold
Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'.
int32 success_threshold = 8;- Returns:
- This builder for chaining.
-
getInitialDelaySeconds
public int getInitialDelaySeconds()Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
int32 initial_delay_seconds = 9;- Specified by:
getInitialDelaySecondsin interfaceProbeOrBuilder- Returns:
- The initialDelaySeconds.
-
setInitialDelaySeconds
Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
int32 initial_delay_seconds = 9;- Parameters:
value- The initialDelaySeconds to set.- Returns:
- This builder for chaining.
-
clearInitialDelaySeconds
Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
int32 initial_delay_seconds = 9;- Returns:
- This builder for chaining.
-