Class 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.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
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Probe.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • setField

        public Probe.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                      Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • clearField

        public Probe.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • clearOneof

        public Probe.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • setRepeatedField

        public Probe.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              int index,
                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • addRepeatedField

        public Probe.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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 interface ProbeOrBuilder
        Returns:
        The initialDelaySeconds.
      • setInitialDelaySeconds

        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.
         
        int32 initial_delay_seconds = 1;
        Parameters:
        value - The initialDelaySeconds to set.
        Returns:
        This builder for chaining.
      • 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.
         
        int32 initial_delay_seconds = 1;
        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. Maximum value is 3600.
         Must be smaller than period_seconds.
         
        int32 timeout_seconds = 2;
        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. Maximum value is 3600.
         Must be smaller than period_seconds.
         
        int32 timeout_seconds = 2;
        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. Maximum value is 3600.
         Must be smaller than period_seconds.
         
        int32 timeout_seconds = 2;
        Returns:
        This builder for chaining.
      • 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 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. 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;
        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. 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;
        Returns:
        This builder for chaining.
      • 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 interface ProbeOrBuilder
        Returns:
        The failureThreshold.
      • setFailureThreshold

        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;
        Parameters:
        value - The failureThreshold to set.
        Returns:
        This builder for chaining.
      • 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;
        Returns:
        This builder for chaining.
      • 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 interface ProbeOrBuilder
        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 interface ProbeOrBuilder
        Returns:
        The httpGet.
      • setHttpGet

        public Probe.Builder setHttpGet​(HTTPGetAction value)
         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;
      • setHttpGet

        public Probe.Builder setHttpGet​(HTTPGetAction.Builder builderForValue)
         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;
      • mergeHttpGet

        public Probe.Builder mergeHttpGet​(HTTPGetAction value)
         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;
      • clearHttpGet

        public Probe.Builder clearHttpGet()
         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;
      • getHttpGetBuilder

        public HTTPGetAction.Builder getHttpGetBuilder()
         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;
      • 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 interface ProbeOrBuilder
      • 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 interface ProbeOrBuilder
        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 interface ProbeOrBuilder
        Returns:
        The tcpSocket.
      • setTcpSocket

        public Probe.Builder setTcpSocket​(TCPSocketAction value)
         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;
      • setTcpSocket

        public Probe.Builder setTcpSocket​(TCPSocketAction.Builder builderForValue)
         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;
      • mergeTcpSocket

        public Probe.Builder mergeTcpSocket​(TCPSocketAction value)
         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;
      • clearTcpSocket

        public Probe.Builder clearTcpSocket()
         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;
      • getTcpSocketBuilder

        public TCPSocketAction.Builder getTcpSocketBuilder()
         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;
      • 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 interface ProbeOrBuilder
      • 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 interface ProbeOrBuilder
        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 interface ProbeOrBuilder
        Returns:
        The grpc.
      • setGrpc

        public Probe.Builder setGrpc​(GRPCAction value)
         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;
      • setGrpc

        public Probe.Builder setGrpc​(GRPCAction.Builder builderForValue)
         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;
      • mergeGrpc

        public Probe.Builder mergeGrpc​(GRPCAction value)
         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;
      • clearGrpc

        public Probe.Builder clearGrpc()
         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;
      • getGrpcBuilder

        public GRPCAction.Builder getGrpcBuilder()
         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;
      • 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 interface ProbeOrBuilder
      • setUnknownFields

        public final Probe.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>
      • mergeUnknownFields

        public final Probe.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Probe.Builder>