Package com.google.cloud.compute.v1
Class TCPHealthCheck
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.TCPHealthCheck
-
- All Implemented Interfaces:
TCPHealthCheckOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class TCPHealthCheck extends com.google.protobuf.GeneratedMessageV3 implements TCPHealthCheckOrBuilder
google.cloud.compute.v1.TCPHealthCheck
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TCPHealthCheck.Builder
static class
TCPHealthCheck.PortSpecification
Specifies how a port is selected for health checking.static class
TCPHealthCheck.ProxyHeader
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.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
PORT_FIELD_NUMBER
static int
PORT_NAME_FIELD_NUMBER
static int
PORT_SPECIFICATION_FIELD_NUMBER
static int
PROXY_HEADER_FIELD_NUMBER
static int
REQUEST_FIELD_NUMBER
static int
RESPONSE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static TCPHealthCheck
getDefaultInstance()
TCPHealthCheck
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Parser<TCPHealthCheck>
getParserForType()
int
getPort()
The TCP port number to which the health check prober sends packets.String
getPortName()
Not supported.com.google.protobuf.ByteString
getPortNameBytes()
Not supported.String
getPortSpecification()
Specifies how a port is selected for health checking.com.google.protobuf.ByteString
getPortSpecificationBytes()
Specifies how a port is selected for health checking.String
getProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.com.google.protobuf.ByteString
getProxyHeaderBytes()
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.String
getRequest()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.com.google.protobuf.ByteString
getRequestBytes()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.String
getResponse()
Creates a content-based TCP health check.com.google.protobuf.ByteString
getResponseBytes()
Creates a content-based TCP health check.int
getSerializedSize()
int
hashCode()
boolean
hasPort()
The TCP port number to which the health check prober sends packets.boolean
hasPortName()
Not supported.boolean
hasPortSpecification()
Specifies how a port is selected for health checking.boolean
hasProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.boolean
hasRequest()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.boolean
hasResponse()
Creates a content-based TCP health check.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static TCPHealthCheck.Builder
newBuilder()
static TCPHealthCheck.Builder
newBuilder(TCPHealthCheck prototype)
TCPHealthCheck.Builder
newBuilderForType()
protected TCPHealthCheck.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static TCPHealthCheck
parseDelimitedFrom(InputStream input)
static TCPHealthCheck
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TCPHealthCheck
parseFrom(byte[] data)
static TCPHealthCheck
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TCPHealthCheck
parseFrom(com.google.protobuf.ByteString data)
static TCPHealthCheck
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TCPHealthCheck
parseFrom(com.google.protobuf.CodedInputStream input)
static TCPHealthCheck
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TCPHealthCheck
parseFrom(InputStream input)
static TCPHealthCheck
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TCPHealthCheck
parseFrom(ByteBuffer data)
static TCPHealthCheck
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<TCPHealthCheck>
parser()
TCPHealthCheck.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_NAME_FIELD_NUMBER
public static final int PORT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_SPECIFICATION_FIELD_NUMBER
public static final int PORT_SPECIFICATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROXY_HEADER_FIELD_NUMBER
public static final int PROXY_HEADER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasPort
public boolean hasPort()
The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535.
optional int32 port = 3446913;
- Specified by:
hasPort
in interfaceTCPHealthCheckOrBuilder
- 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 80. Valid values are 1 through 65535.
optional int32 port = 3446913;
- Specified by:
getPort
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The port.
-
hasPortName
public boolean hasPortName()
Not supported.
optional string port_name = 41534345;
- Specified by:
hasPortName
in interfaceTCPHealthCheckOrBuilder
- Returns:
- Whether the portName field is set.
-
getPortName
public String getPortName()
Not supported.
optional string port_name = 41534345;
- Specified by:
getPortName
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The portName.
-
getPortNameBytes
public com.google.protobuf.ByteString getPortNameBytes()
Not supported.
optional string port_name = 41534345;
- Specified by:
getPortNameBytes
in interfaceTCPHealthCheckOrBuilder
- 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 the port field in the health check. Supported by backend services for pass-through 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 pass-through 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 interfaceTCPHealthCheckOrBuilder
- 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 the port field in the health check. Supported by backend services for pass-through 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 pass-through 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 interfaceTCPHealthCheckOrBuilder
- 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 the port field in the health check. Supported by backend services for pass-through 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 pass-through 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 interfaceTCPHealthCheckOrBuilder
- 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 interfaceTCPHealthCheckOrBuilder
- 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 interfaceTCPHealthCheckOrBuilder
- 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 interfaceTCPHealthCheckOrBuilder
- Returns:
- The bytes for proxyHeader.
-
hasRequest
public boolean hasRequest()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.
optional string request = 21951119;
- Specified by:
hasRequest
in interfaceTCPHealthCheckOrBuilder
- Returns:
- Whether the request field is set.
-
getRequest
public String getRequest()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.
optional string request = 21951119;
- Specified by:
getRequest
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The request.
-
getRequestBytes
public com.google.protobuf.ByteString getRequestBytes()
Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.
optional string request = 21951119;
- Specified by:
getRequestBytes
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The bytes for request.
-
hasResponse
public boolean hasResponse()
Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
optional string response = 196547649;
- Specified by:
hasResponse
in interfaceTCPHealthCheckOrBuilder
- Returns:
- Whether the response field is set.
-
getResponse
public String getResponse()
Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
optional string response = 196547649;
- Specified by:
getResponse
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The response.
-
getResponseBytes
public com.google.protobuf.ByteString getResponseBytes()
Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
optional string response = 196547649;
- Specified by:
getResponseBytes
in interfaceTCPHealthCheckOrBuilder
- Returns:
- The bytes for response.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TCPHealthCheck parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TCPHealthCheck parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TCPHealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TCPHealthCheck parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TCPHealthCheck parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TCPHealthCheck parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TCPHealthCheck parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TCPHealthCheck.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TCPHealthCheck.Builder newBuilder()
-
newBuilder
public static TCPHealthCheck.Builder newBuilder(TCPHealthCheck prototype)
-
toBuilder
public TCPHealthCheck.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TCPHealthCheck.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TCPHealthCheck getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TCPHealthCheck> parser()
-
getParserForType
public com.google.protobuf.Parser<TCPHealthCheck> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TCPHealthCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-