Package com.google.cloud.compute.v1
Class TCPHealthCheck
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class TCPHealthCheck
extends com.google.protobuf.GeneratedMessage
implements TCPHealthCheckOrBuilder
Protobuf type
google.cloud.compute.v1.TCPHealthCheck- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumSpecifies how a port is selected for health checking.static enumSpecifies 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TCPHealthCheckstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<TCPHealthCheck>intgetPort()The TCP port number to which the health check prober sends packets.Not supported.com.google.protobuf.ByteStringNot supported.Specifies how a port is selected for health checking.com.google.protobuf.ByteStringSpecifies 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.ByteStringSpecifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.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.ByteStringInstructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.Creates a content-based TCP health check.com.google.protobuf.ByteStringCreates a content-based TCP health check.intinthashCode()booleanhasPort()The TCP port number to which the health check prober sends packets.booleanNot supported.booleanSpecifies how a port is selected for health checking.booleanSpecifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.booleanInstructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection.booleanCreates a content-based TCP health check.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TCPHealthCheck.Builderstatic TCPHealthCheck.BuildernewBuilder(TCPHealthCheck prototype) protected TCPHealthCheck.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TCPHealthCheckparseDelimitedFrom(InputStream input) static TCPHealthCheckparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TCPHealthCheckparseFrom(byte[] data) static TCPHealthCheckparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TCPHealthCheckparseFrom(com.google.protobuf.ByteString data) static TCPHealthCheckparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TCPHealthCheckparseFrom(com.google.protobuf.CodedInputStream input) static TCPHealthCheckparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TCPHealthCheckparseFrom(InputStream input) static TCPHealthCheckparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TCPHealthCheckparseFrom(ByteBuffer data) static TCPHealthCheckparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TCPHealthCheck>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
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_FIELD_NUMBER
public static final int REQUEST_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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 through65535.
optional int32 port = 3446913;- Specified by:
hasPortin 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 through65535.
optional int32 port = 3446913;- Specified by:
getPortin interfaceTCPHealthCheckOrBuilder- Returns:
- The port.
-
hasPortName
public boolean hasPortName()Not supported.
optional string port_name = 41534345;- Specified by:
hasPortNamein interfaceTCPHealthCheckOrBuilder- Returns:
- Whether the portName field is set.
-
getPortName
Not supported.
optional string port_name = 41534345;- Specified by:
getPortNamein interfaceTCPHealthCheckOrBuilder- Returns:
- The portName.
-
getPortNameBytes
public com.google.protobuf.ByteString getPortNameBytes()Not supported.
optional string port_name = 41534345;- Specified by:
getPortNameBytesin 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 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:
hasPortSpecificationin interfaceTCPHealthCheckOrBuilder- Returns:
- Whether the portSpecification field is set.
-
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:
getPortSpecificationin 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 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:
getPortSpecificationBytesin 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:
hasProxyHeaderin interfaceTCPHealthCheckOrBuilder- Returns:
- Whether the proxyHeader field is set.
-
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:
getProxyHeaderin 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:
getProxyHeaderBytesin 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:
hasRequestin interfaceTCPHealthCheckOrBuilder- Returns:
- Whether the request field is set.
-
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:
getRequestin 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:
getRequestBytesin 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:
hasResponsein interfaceTCPHealthCheckOrBuilder- Returns:
- Whether the response field is set.
-
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:
getResponsein 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:
getResponseBytesin interfaceTCPHealthCheckOrBuilder- Returns:
- The bytes for response.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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
- Throws:
IOException
-
parseFrom
public static TCPHealthCheck parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TCPHealthCheck.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-