Class HTTP2HealthCheck

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.HTTP2HealthCheck
All Implemented Interfaces:
HTTP2HealthCheckOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class HTTP2HealthCheck extends com.google.protobuf.GeneratedMessage implements HTTP2HealthCheckOrBuilder
 
Protobuf type google.cloud.compute.v1.HTTP2HealthCheck
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    static enum 
    Specifies how a port is selected for health checking.
    static enum 
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The value of the host header in the HTTP/2 health check request.
    com.google.protobuf.ByteString
    The value of the host header in the HTTP/2 health check request.
    com.google.protobuf.Parser<HTTP2HealthCheck>
     
    int
    The TCP port number to which the health check prober sends packets.
    Not supported.
    com.google.protobuf.ByteString
    Not supported.
    Specifies how a port is selected for health checking.
    com.google.protobuf.ByteString
    Specifies how a port is selected for health checking.
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.
    com.google.protobuf.ByteString
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.
    The request path of the HTTP/2 health check request.
    com.google.protobuf.ByteString
    The request path of the HTTP/2 health check request.
    Creates a content-based HTTP/2 health check.
    com.google.protobuf.ByteString
    Creates a content-based HTTP/2 health check.
    int
     
    int
     
    boolean
    The value of the host header in the HTTP/2 health check request.
    boolean
    The TCP port number to which the health check prober sends packets.
    boolean
    Not supported.
    boolean
    Specifies how a port is selected for health checking.
    boolean
    Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.
    boolean
    The request path of the HTTP/2 health check request.
    boolean
    Creates a content-based HTTP/2 health check.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<HTTP2HealthCheck>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • HOST_FIELD_NUMBER

      public static final int HOST_FIELD_NUMBER
      See Also:
    • PORT_FIELD_NUMBER

      public static final int PORT_FIELD_NUMBER
      See Also:
    • PORT_NAME_FIELD_NUMBER

      public static final int PORT_NAME_FIELD_NUMBER
      See Also:
    • PORT_SPECIFICATION_FIELD_NUMBER

      public static final int PORT_SPECIFICATION_FIELD_NUMBER
      See Also:
    • PROXY_HEADER_FIELD_NUMBER

      public static final int PROXY_HEADER_FIELD_NUMBER
      See Also:
    • REQUEST_PATH_FIELD_NUMBER

      public static final int REQUEST_PATH_FIELD_NUMBER
      See Also:
    • RESPONSE_FIELD_NUMBER

      public static final int RESPONSE_FIELD_NUMBER
      See Also:
  • 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
    • hasHost

      public boolean hasHost()
       The value of the host header in the HTTP/2 health check request. If left
       empty (default value), the host header is set to the destination IP address
       to which health check packets are sent. The destination IP address depends
       on the type of load balancer. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
       
      optional string host = 3208616;
      Specified by:
      hasHost in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the host field is set.
    • getHost

      public String getHost()
       The value of the host header in the HTTP/2 health check request. If left
       empty (default value), the host header is set to the destination IP address
       to which health check packets are sent. The destination IP address depends
       on the type of load balancer. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
       
      optional string host = 3208616;
      Specified by:
      getHost in interface HTTP2HealthCheckOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       The value of the host header in the HTTP/2 health check request. If left
       empty (default value), the host header is set to the destination IP address
       to which health check packets are sent. The destination IP address depends
       on the type of load balancer. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
       
      optional string host = 3208616;
      Specified by:
      getHostBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for host.
    • hasPort

      public boolean hasPort()
       The TCP port number to which the health check prober sends packets. The
       default value is 443. Valid values are 1 through65535.
       
      optional int32 port = 3446913;
      Specified by:
      hasPort in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the port field is set.
    • getPort

      public int getPort()
       The TCP port number to which the health check prober sends packets. The
       default value is 443. Valid values are 1 through65535.
       
      optional int32 port = 3446913;
      Specified by:
      getPort in interface HTTP2HealthCheckOrBuilder
      Returns:
      The port.
    • hasPortName

      public boolean hasPortName()
       Not supported.
       
      optional string port_name = 41534345;
      Specified by:
      hasPortName in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the portName field is set.
    • getPortName

      public String getPortName()
       Not supported.
       
      optional string port_name = 41534345;
      Specified by:
      getPortName in interface HTTP2HealthCheckOrBuilder
      Returns:
      The portName.
    • getPortNameBytes

      public com.google.protobuf.ByteString getPortNameBytes()
       Not supported.
       
      optional string port_name = 41534345;
      Specified by:
      getPortNameBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for portName.
    • hasPortSpecification

      public boolean hasPortSpecification()
       Specifies how a port is selected for health checking. Can be one of the
       following values:
       USE_FIXED_PORT: Specifies a port number explicitly using theport field  in the health check. Supported by backend services
       for passthrough load balancers and backend services for proxy load
       balancers. Not supported by target pools. The health check supports all
       backends supported by the backend service provided the backend can be
       health checked. For example, GCE_VM_IP network endpoint
       groups, GCE_VM_IP_PORT network endpoint groups, and instance
       group backends.
       USE_NAMED_PORT: Not supported.
       USE_SERVING_PORT: Provides an indirect method of specifying
       the health check port by referring to the backend service. Only supported
       by backend services for proxy load balancers. Not supported by target
       pools.  Not supported by backend services for passthrough load balancers.
       Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group
       backends.
      
       For GCE_VM_IP_PORT network endpoint group backends, the health
       check uses the port number specified for each endpoint in the network
       endpoint group.  For instance group backends, the health check uses the
       port number determined by looking up the backend service's named port in
       the instance group's list of named ports.
       Check the PortSpecification enum for the list of possible values.
       
      optional string port_specification = 51590597;
      Specified by:
      hasPortSpecification in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the portSpecification field is set.
    • getPortSpecification

      public String getPortSpecification()
       Specifies how a port is selected for health checking. Can be one of the
       following values:
       USE_FIXED_PORT: Specifies a port number explicitly using theport field  in the health check. Supported by backend services
       for passthrough load balancers and backend services for proxy load
       balancers. Not supported by target pools. The health check supports all
       backends supported by the backend service provided the backend can be
       health checked. For example, GCE_VM_IP network endpoint
       groups, GCE_VM_IP_PORT network endpoint groups, and instance
       group backends.
       USE_NAMED_PORT: Not supported.
       USE_SERVING_PORT: Provides an indirect method of specifying
       the health check port by referring to the backend service. Only supported
       by backend services for proxy load balancers. Not supported by target
       pools.  Not supported by backend services for passthrough load balancers.
       Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group
       backends.
      
       For GCE_VM_IP_PORT network endpoint group backends, the health
       check uses the port number specified for each endpoint in the network
       endpoint group.  For instance group backends, the health check uses the
       port number determined by looking up the backend service's named port in
       the instance group's list of named ports.
       Check the PortSpecification enum for the list of possible values.
       
      optional string port_specification = 51590597;
      Specified by:
      getPortSpecification in interface HTTP2HealthCheckOrBuilder
      Returns:
      The portSpecification.
    • getPortSpecificationBytes

      public com.google.protobuf.ByteString getPortSpecificationBytes()
       Specifies how a port is selected for health checking. Can be one of the
       following values:
       USE_FIXED_PORT: Specifies a port number explicitly using theport field  in the health check. Supported by backend services
       for passthrough load balancers and backend services for proxy load
       balancers. Not supported by target pools. The health check supports all
       backends supported by the backend service provided the backend can be
       health checked. For example, GCE_VM_IP network endpoint
       groups, GCE_VM_IP_PORT network endpoint groups, and instance
       group backends.
       USE_NAMED_PORT: Not supported.
       USE_SERVING_PORT: Provides an indirect method of specifying
       the health check port by referring to the backend service. Only supported
       by backend services for proxy load balancers. Not supported by target
       pools.  Not supported by backend services for passthrough load balancers.
       Supports all backends that can be health checked; for example,GCE_VM_IP_PORT network endpoint groups and instance group
       backends.
      
       For GCE_VM_IP_PORT network endpoint group backends, the health
       check uses the port number specified for each endpoint in the network
       endpoint group.  For instance group backends, the health check uses the
       port number determined by looking up the backend service's named port in
       the instance group's list of named ports.
       Check the PortSpecification enum for the list of possible values.
       
      optional string port_specification = 51590597;
      Specified by:
      getPortSpecificationBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for portSpecification.
    • hasProxyHeader

      public boolean hasProxyHeader()
       Specifies the type of proxy header to append before sending data to the
       backend, either NONE or PROXY_V1. The default
       is NONE.
       Check the ProxyHeader enum for the list of possible values.
       
      optional string proxy_header = 160374142;
      Specified by:
      hasProxyHeader in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the proxyHeader field is set.
    • getProxyHeader

      public String getProxyHeader()
       Specifies the type of proxy header to append before sending data to the
       backend, either NONE or PROXY_V1. The default
       is NONE.
       Check the ProxyHeader enum for the list of possible values.
       
      optional string proxy_header = 160374142;
      Specified by:
      getProxyHeader in interface HTTP2HealthCheckOrBuilder
      Returns:
      The proxyHeader.
    • getProxyHeaderBytes

      public com.google.protobuf.ByteString getProxyHeaderBytes()
       Specifies the type of proxy header to append before sending data to the
       backend, either NONE or PROXY_V1. The default
       is NONE.
       Check the ProxyHeader enum for the list of possible values.
       
      optional string proxy_header = 160374142;
      Specified by:
      getProxyHeaderBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for proxyHeader.
    • hasRequestPath

      public boolean hasRequestPath()
       The request path of the HTTP/2 health check request. The default value is/. Must comply withRFC3986.
       
      optional string request_path = 229403605;
      Specified by:
      hasRequestPath in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the requestPath field is set.
    • getRequestPath

      public String getRequestPath()
       The request path of the HTTP/2 health check request. The default value is/. Must comply withRFC3986.
       
      optional string request_path = 229403605;
      Specified by:
      getRequestPath in interface HTTP2HealthCheckOrBuilder
      Returns:
      The requestPath.
    • getRequestPathBytes

      public com.google.protobuf.ByteString getRequestPathBytes()
       The request path of the HTTP/2 health check request. The default value is/. Must comply withRFC3986.
       
      optional string request_path = 229403605;
      Specified by:
      getRequestPathBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for requestPath.
    • hasResponse

      public boolean hasResponse()
       Creates a content-based HTTP/2 health check. In addition to the required
       HTTP 200 (OK) status code, you can configure the health check to pass only
       when the backend sends this specific ASCII response string within the first
       1024 bytes of the HTTP response body. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
       
      optional string response = 196547649;
      Specified by:
      hasResponse in interface HTTP2HealthCheckOrBuilder
      Returns:
      Whether the response field is set.
    • getResponse

      public String getResponse()
       Creates a content-based HTTP/2 health check. In addition to the required
       HTTP 200 (OK) status code, you can configure the health check to pass only
       when the backend sends this specific ASCII response string within the first
       1024 bytes of the HTTP response body. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
       
      optional string response = 196547649;
      Specified by:
      getResponse in interface HTTP2HealthCheckOrBuilder
      Returns:
      The response.
    • getResponseBytes

      public com.google.protobuf.ByteString getResponseBytes()
       Creates a content-based HTTP/2 health check. In addition to the required
       HTTP 200 (OK) status code, you can configure the health check to pass only
       when the backend sends this specific ASCII response string within the first
       1024 bytes of the HTTP response body. For details, see:
       https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
       
      optional string response = 196547649;
      Specified by:
      getResponseBytes in interface HTTP2HealthCheckOrBuilder
      Returns:
      The bytes for response.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static HTTP2HealthCheck parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HTTP2HealthCheck parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HTTP2HealthCheck parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HTTP2HealthCheck parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public HTTP2HealthCheck.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static HTTP2HealthCheck.Builder newBuilder()
    • newBuilder

      public static HTTP2HealthCheck.Builder newBuilder(HTTP2HealthCheck prototype)
    • toBuilder

      public HTTP2HealthCheck.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected HTTP2HealthCheck.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static HTTP2HealthCheck getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HTTP2HealthCheck> parser()
    • getParserForType

      public com.google.protobuf.Parser<HTTP2HealthCheck> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public HTTP2HealthCheck getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder