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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
    • clear

      public Probe.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Probe.Builder>
    • getDefaultInstanceForType

      public Probe getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Probe build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Probe buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Probe.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Probe.Builder>
    • mergeFrom

      public Probe.Builder mergeFrom(Probe other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Probe.Builder>
      Throws:
      IOException
    • getProbeTypeCase

      public Probe.ProbeTypeCase getProbeTypeCase()
      Specified by:
      getProbeTypeCase in interface ProbeOrBuilder
    • clearProbeType

      public Probe.Builder 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:
      hasExec in interface ProbeOrBuilder
      Returns:
      Whether the exec field is set.
    • getExec

      public Probe.ExecAction getExec()
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
      Specified by:
      getExec in interface ProbeOrBuilder
      Returns:
      The exec.
    • setExec

      public Probe.Builder setExec(Probe.ExecAction value)
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
    • setExec

      public Probe.Builder setExec(Probe.ExecAction.Builder builderForValue)
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
    • mergeExec

      public Probe.Builder mergeExec(Probe.ExecAction value)
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
    • clearExec

      public Probe.Builder clearExec()
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
    • getExecBuilder

      public Probe.ExecAction.Builder getExecBuilder()
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
    • getExecOrBuilder

      public Probe.ExecActionOrBuilder getExecOrBuilder()
       ExecAction probes the health of a container by executing a command.
       
      .google.cloud.aiplatform.v1.Probe.ExecAction exec = 1;
      Specified by:
      getExecOrBuilder in interface ProbeOrBuilder
    • 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:
      hasHttpGet in interface ProbeOrBuilder
      Returns:
      Whether the httpGet field is set.
    • getHttpGet

      public Probe.HttpGetAction 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:
      getHttpGet in interface ProbeOrBuilder
      Returns:
      The httpGet.
    • setHttpGet

      public Probe.Builder setHttpGet(Probe.HttpGetAction value)
       HttpGetAction probes the health of a container by sending an HTTP GET
       request.
       
      .google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;
    • setHttpGet

      public Probe.Builder setHttpGet(Probe.HttpGetAction.Builder builderForValue)
       HttpGetAction probes the health of a container by sending an HTTP GET
       request.
       
      .google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;
    • mergeHttpGet

      public Probe.Builder mergeHttpGet(Probe.HttpGetAction value)
       HttpGetAction probes the health of a container by sending an HTTP GET
       request.
       
      .google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;
    • clearHttpGet

      public Probe.Builder clearHttpGet()
       HttpGetAction probes the health of a container by sending an HTTP GET
       request.
       
      .google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;
    • getHttpGetBuilder

      public Probe.HttpGetAction.Builder getHttpGetBuilder()
       HttpGetAction probes the health of a container by sending an HTTP GET
       request.
       
      .google.cloud.aiplatform.v1.Probe.HttpGetAction http_get = 4;
    • getHttpGetOrBuilder

      public Probe.HttpGetActionOrBuilder 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:
      getHttpGetOrBuilder in interface ProbeOrBuilder
    • 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:
      hasGrpc in interface ProbeOrBuilder
      Returns:
      Whether the grpc field is set.
    • getGrpc

      public Probe.GrpcAction getGrpc()
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
      Specified by:
      getGrpc in interface ProbeOrBuilder
      Returns:
      The grpc.
    • setGrpc

      public Probe.Builder setGrpc(Probe.GrpcAction value)
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
    • setGrpc

      public Probe.Builder setGrpc(Probe.GrpcAction.Builder builderForValue)
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
    • mergeGrpc

      public Probe.Builder mergeGrpc(Probe.GrpcAction value)
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
    • clearGrpc

      public Probe.Builder clearGrpc()
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
    • getGrpcBuilder

      public Probe.GrpcAction.Builder getGrpcBuilder()
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
    • getGrpcOrBuilder

      public Probe.GrpcActionOrBuilder getGrpcOrBuilder()
       GrpcAction probes the health of a container by sending a gRPC request.
       
      .google.cloud.aiplatform.v1.Probe.GrpcAction grpc = 5;
      Specified by:
      getGrpcOrBuilder in interface ProbeOrBuilder
    • 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:
      hasTcpSocket in interface ProbeOrBuilder
      Returns:
      Whether the tcpSocket field is set.
    • getTcpSocket

      public Probe.TcpSocketAction 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:
      getTcpSocket in interface ProbeOrBuilder
      Returns:
      The tcpSocket.
    • setTcpSocket

      public Probe.Builder setTcpSocket(Probe.TcpSocketAction value)
       TcpSocketAction probes the health of a container by opening a TCP socket
       connection.
       
      .google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;
    • setTcpSocket

      public Probe.Builder setTcpSocket(Probe.TcpSocketAction.Builder builderForValue)
       TcpSocketAction probes the health of a container by opening a TCP socket
       connection.
       
      .google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;
    • mergeTcpSocket

      public Probe.Builder mergeTcpSocket(Probe.TcpSocketAction value)
       TcpSocketAction probes the health of a container by opening a TCP socket
       connection.
       
      .google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;
    • clearTcpSocket

      public Probe.Builder clearTcpSocket()
       TcpSocketAction probes the health of a container by opening a TCP socket
       connection.
       
      .google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;
    • getTcpSocketBuilder

      public Probe.TcpSocketAction.Builder getTcpSocketBuilder()
       TcpSocketAction probes the health of a container by opening a TCP socket
       connection.
       
      .google.cloud.aiplatform.v1.Probe.TcpSocketAction tcp_socket = 6;
    • getTcpSocketOrBuilder

      public Probe.TcpSocketActionOrBuilder 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:
      getTcpSocketOrBuilder in interface ProbeOrBuilder
    • 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:
      getPeriodSeconds in interface ProbeOrBuilder
      Returns:
      The periodSeconds.
    • setPeriodSeconds

      public Probe.Builder setPeriodSeconds(int value)
       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

      public Probe.Builder 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:
      getTimeoutSeconds in interface ProbeOrBuilder
      Returns:
      The timeoutSeconds.
    • setTimeoutSeconds

      public Probe.Builder setTimeoutSeconds(int value)
       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

      public Probe.Builder 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:
      getFailureThreshold in interface ProbeOrBuilder
      Returns:
      The failureThreshold.
    • setFailureThreshold

      public Probe.Builder setFailureThreshold(int value)
       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

      public Probe.Builder 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:
      getSuccessThreshold in interface ProbeOrBuilder
      Returns:
      The successThreshold.
    • setSuccessThreshold

      public Probe.Builder setSuccessThreshold(int value)
       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

      public Probe.Builder 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:
      getInitialDelaySeconds in interface ProbeOrBuilder
      Returns:
      The initialDelaySeconds.
    • setInitialDelaySeconds

      public Probe.Builder setInitialDelaySeconds(int value)
       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

      public Probe.Builder 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.