Class HealthCheck.GrpcHealthCheck.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HealthCheck.GrpcHealthCheckOrBuilder, Cloneable
    Enclosing class:
    HealthCheck.GrpcHealthCheck

    public static final class HealthCheck.GrpcHealthCheck.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.GrpcHealthCheck.Builder>
    implements HealthCheck.GrpcHealthCheckOrBuilder
     `grpc.health.v1.Health
     <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto>`_-based
     healthcheck. See `gRPC doc <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_
     for details.
     
    Protobuf type envoy.api.v2.core.HealthCheck.GrpcHealthCheck
    • 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<HealthCheck.GrpcHealthCheck.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<HealthCheck.GrpcHealthCheck.Builder>
      • getDefaultInstanceForType

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

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

        public HealthCheck.GrpcHealthCheck buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HealthCheck.GrpcHealthCheck.Builder>
      • mergeFrom

        public HealthCheck.GrpcHealthCheck.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<HealthCheck.GrpcHealthCheck.Builder>
        Throws:
        IOException
      • getServiceName

        public String getServiceName()
         An optional service name parameter which will be sent to gRPC service in
         `grpc.health.v1.HealthCheckRequest
         <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
         message. See `gRPC health-checking overview
         <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
         
        string service_name = 1;
        Specified by:
        getServiceName in interface HealthCheck.GrpcHealthCheckOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         An optional service name parameter which will be sent to gRPC service in
         `grpc.health.v1.HealthCheckRequest
         <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
         message. See `gRPC health-checking overview
         <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
         
        string service_name = 1;
        Specified by:
        getServiceNameBytes in interface HealthCheck.GrpcHealthCheckOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public HealthCheck.GrpcHealthCheck.Builder setServiceName​(String value)
         An optional service name parameter which will be sent to gRPC service in
         `grpc.health.v1.HealthCheckRequest
         <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
         message. See `gRPC health-checking overview
         <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
         
        string service_name = 1;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public HealthCheck.GrpcHealthCheck.Builder clearServiceName()
         An optional service name parameter which will be sent to gRPC service in
         `grpc.health.v1.HealthCheckRequest
         <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
         message. See `gRPC health-checking overview
         <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
         
        string service_name = 1;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public HealthCheck.GrpcHealthCheck.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         An optional service name parameter which will be sent to gRPC service in
         `grpc.health.v1.HealthCheckRequest
         <https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto#L20>`_.
         message. See `gRPC health-checking overview
         <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_ for more information.
         
        string service_name = 1;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getAuthority

        public String getAuthority()
         The value of the :authority header in the gRPC health check request. If
         left empty (default value), the name of the cluster this health check is associated
         with will be used. The authority header can be customized for a specific endpoint by setting
         the :ref:`hostname <envoy_api_field_endpoint.Endpoint.HealthCheckConfig.hostname>` field.
         
        string authority = 2;
        Specified by:
        getAuthority in interface HealthCheck.GrpcHealthCheckOrBuilder
        Returns:
        The authority.
      • getAuthorityBytes

        public com.google.protobuf.ByteString getAuthorityBytes()
         The value of the :authority header in the gRPC health check request. If
         left empty (default value), the name of the cluster this health check is associated
         with will be used. The authority header can be customized for a specific endpoint by setting
         the :ref:`hostname <envoy_api_field_endpoint.Endpoint.HealthCheckConfig.hostname>` field.
         
        string authority = 2;
        Specified by:
        getAuthorityBytes in interface HealthCheck.GrpcHealthCheckOrBuilder
        Returns:
        The bytes for authority.
      • setAuthority

        public HealthCheck.GrpcHealthCheck.Builder setAuthority​(String value)
         The value of the :authority header in the gRPC health check request. If
         left empty (default value), the name of the cluster this health check is associated
         with will be used. The authority header can be customized for a specific endpoint by setting
         the :ref:`hostname <envoy_api_field_endpoint.Endpoint.HealthCheckConfig.hostname>` field.
         
        string authority = 2;
        Parameters:
        value - The authority to set.
        Returns:
        This builder for chaining.
      • clearAuthority

        public HealthCheck.GrpcHealthCheck.Builder clearAuthority()
         The value of the :authority header in the gRPC health check request. If
         left empty (default value), the name of the cluster this health check is associated
         with will be used. The authority header can be customized for a specific endpoint by setting
         the :ref:`hostname <envoy_api_field_endpoint.Endpoint.HealthCheckConfig.hostname>` field.
         
        string authority = 2;
        Returns:
        This builder for chaining.
      • setAuthorityBytes

        public HealthCheck.GrpcHealthCheck.Builder setAuthorityBytes​(com.google.protobuf.ByteString value)
         The value of the :authority header in the gRPC health check request. If
         left empty (default value), the name of the cluster this health check is associated
         with will be used. The authority header can be customized for a specific endpoint by setting
         the :ref:`hostname <envoy_api_field_endpoint.Endpoint.HealthCheckConfig.hostname>` field.
         
        string authority = 2;
        Parameters:
        value - The bytes for authority to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final HealthCheck.GrpcHealthCheck.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<HealthCheck.GrpcHealthCheck.Builder>