Package com.google.cloud.compute.v1
Class HTTP2HealthCheck.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
- com.google.cloud.compute.v1.HTTP2HealthCheck.Builder
-
- All Implemented Interfaces:
HTTP2HealthCheckOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- HTTP2HealthCheck
public static final class HTTP2HealthCheck.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder> implements HTTP2HealthCheckOrBuilder
google.cloud.compute.v1.HTTP2HealthCheck
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTP2HealthCheck.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HTTP2HealthCheck
build()
HTTP2HealthCheck
buildPartial()
HTTP2HealthCheck.Builder
clear()
HTTP2HealthCheck.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HTTP2HealthCheck.Builder
clearHost()
The value of the host header in the HTTP/2 health check request.HTTP2HealthCheck.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
HTTP2HealthCheck.Builder
clearPort()
The TCP port number to which the health check prober sends packets.HTTP2HealthCheck.Builder
clearPortName()
Not supported.HTTP2HealthCheck.Builder
clearPortSpecification()
Specifies how a port is selected for health checking.HTTP2HealthCheck.Builder
clearProxyHeader()
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.HTTP2HealthCheck.Builder
clearRequestPath()
The request path of the HTTP/2 health check request.HTTP2HealthCheck.Builder
clearResponse()
Creates a content-based HTTP/2 health check.HTTP2HealthCheck.Builder
clone()
HTTP2HealthCheck
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHost()
The value of the host header in the HTTP/2 health check request.com.google.protobuf.ByteString
getHostBytes()
The value of the host header in the HTTP/2 health check request.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
getRequestPath()
The request path of the HTTP/2 health check request.com.google.protobuf.ByteString
getRequestPathBytes()
The request path of the HTTP/2 health check request.String
getResponse()
Creates a content-based HTTP/2 health check.com.google.protobuf.ByteString
getResponseBytes()
Creates a content-based HTTP/2 health check.boolean
hasHost()
The value of the host header in the HTTP/2 health check request.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
hasRequestPath()
The request path of the HTTP/2 health check request.boolean
hasResponse()
Creates a content-based HTTP/2 health check.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
HTTP2HealthCheck.Builder
mergeFrom(HTTP2HealthCheck other)
HTTP2HealthCheck.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HTTP2HealthCheck.Builder
mergeFrom(com.google.protobuf.Message other)
HTTP2HealthCheck.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HTTP2HealthCheck.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HTTP2HealthCheck.Builder
setHost(String value)
The value of the host header in the HTTP/2 health check request.HTTP2HealthCheck.Builder
setHostBytes(com.google.protobuf.ByteString value)
The value of the host header in the HTTP/2 health check request.HTTP2HealthCheck.Builder
setPort(int value)
The TCP port number to which the health check prober sends packets.HTTP2HealthCheck.Builder
setPortName(String value)
Not supported.HTTP2HealthCheck.Builder
setPortNameBytes(com.google.protobuf.ByteString value)
Not supported.HTTP2HealthCheck.Builder
setPortSpecification(String value)
Specifies how a port is selected for health checking.HTTP2HealthCheck.Builder
setPortSpecificationBytes(com.google.protobuf.ByteString value)
Specifies how a port is selected for health checking.HTTP2HealthCheck.Builder
setProxyHeader(String value)
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.HTTP2HealthCheck.Builder
setProxyHeaderBytes(com.google.protobuf.ByteString value)
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1.HTTP2HealthCheck.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HTTP2HealthCheck.Builder
setRequestPath(String value)
The request path of the HTTP/2 health check request.HTTP2HealthCheck.Builder
setRequestPathBytes(com.google.protobuf.ByteString value)
The request path of the HTTP/2 health check request.HTTP2HealthCheck.Builder
setResponse(String value)
Creates a content-based HTTP/2 health check.HTTP2HealthCheck.Builder
setResponseBytes(com.google.protobuf.ByteString value)
Creates a content-based HTTP/2 health check.HTTP2HealthCheck.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<HTTP2HealthCheck.Builder>
-
clear
public HTTP2HealthCheck.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
getDefaultInstanceForType
public HTTP2HealthCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HTTP2HealthCheck build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HTTP2HealthCheck buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HTTP2HealthCheck.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
setField
public HTTP2HealthCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
clearField
public HTTP2HealthCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
clearOneof
public HTTP2HealthCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
setRepeatedField
public HTTP2HealthCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
addRepeatedField
public HTTP2HealthCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
mergeFrom
public HTTP2HealthCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HTTP2HealthCheck.Builder>
-
mergeFrom
public HTTP2HealthCheck.Builder mergeFrom(HTTP2HealthCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
mergeFrom
public HTTP2HealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HTTP2HealthCheck.Builder>
- Throws:
IOException
-
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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for host.
-
setHost
public HTTP2HealthCheck.Builder setHost(String value)
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;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public HTTP2HealthCheck.Builder clearHost()
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;
- Returns:
- This builder for chaining.
-
setHostBytes
public HTTP2HealthCheck.Builder setHostBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
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 through 65535.
optional int32 port = 3446913;
- Specified by:
hasPort
in interfaceHTTP2HealthCheckOrBuilder
- 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 through 65535.
optional int32 port = 3446913;
- Specified by:
getPort
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The port.
-
setPort
public HTTP2HealthCheck.Builder setPort(int value)
The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
optional int32 port = 3446913;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public HTTP2HealthCheck.Builder clearPort()
The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535.
optional int32 port = 3446913;
- Returns:
- This builder for chaining.
-
hasPortName
public boolean hasPortName()
Not supported.
optional string port_name = 41534345;
- Specified by:
hasPortName
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- Whether the portName field is set.
-
getPortName
public String getPortName()
Not supported.
optional string port_name = 41534345;
- Specified by:
getPortName
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The portName.
-
getPortNameBytes
public com.google.protobuf.ByteString getPortNameBytes()
Not supported.
optional string port_name = 41534345;
- Specified by:
getPortNameBytes
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for portName.
-
setPortName
public HTTP2HealthCheck.Builder setPortName(String value)
Not supported.
optional string port_name = 41534345;
- Parameters:
value
- The portName to set.- Returns:
- This builder for chaining.
-
clearPortName
public HTTP2HealthCheck.Builder clearPortName()
Not supported.
optional string port_name = 41534345;
- Returns:
- This builder for chaining.
-
setPortNameBytes
public HTTP2HealthCheck.Builder setPortNameBytes(com.google.protobuf.ByteString value)
Not supported.
optional string port_name = 41534345;
- Parameters:
value
- The bytes for portName to set.- Returns:
- This builder for chaining.
-
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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for portSpecification.
-
setPortSpecification
public HTTP2HealthCheck.Builder setPortSpecification(String value)
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;
- Parameters:
value
- The portSpecification to set.- Returns:
- This builder for chaining.
-
clearPortSpecification
public HTTP2HealthCheck.Builder clearPortSpecification()
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;
- Returns:
- This builder for chaining.
-
setPortSpecificationBytes
public HTTP2HealthCheck.Builder setPortSpecificationBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for portSpecification to set.- Returns:
- This builder for chaining.
-
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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for proxyHeader.
-
setProxyHeader
public HTTP2HealthCheck.Builder setProxyHeader(String value)
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;
- Parameters:
value
- The proxyHeader to set.- Returns:
- This builder for chaining.
-
clearProxyHeader
public HTTP2HealthCheck.Builder clearProxyHeader()
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;
- Returns:
- This builder for chaining.
-
setProxyHeaderBytes
public HTTP2HealthCheck.Builder setProxyHeaderBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for proxyHeader to set.- Returns:
- This builder for chaining.
-
hasRequestPath
public boolean hasRequestPath()
The request path of the HTTP/2 health check request. The default value is /.
optional string request_path = 229403605;
- Specified by:
hasRequestPath
in interfaceHTTP2HealthCheckOrBuilder
- 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 /.
optional string request_path = 229403605;
- Specified by:
getRequestPath
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The requestPath.
-
getRequestPathBytes
public com.google.protobuf.ByteString getRequestPathBytes()
The request path of the HTTP/2 health check request. The default value is /.
optional string request_path = 229403605;
- Specified by:
getRequestPathBytes
in interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for requestPath.
-
setRequestPath
public HTTP2HealthCheck.Builder setRequestPath(String value)
The request path of the HTTP/2 health check request. The default value is /.
optional string request_path = 229403605;
- Parameters:
value
- The requestPath to set.- Returns:
- This builder for chaining.
-
clearRequestPath
public HTTP2HealthCheck.Builder clearRequestPath()
The request path of the HTTP/2 health check request. The default value is /.
optional string request_path = 229403605;
- Returns:
- This builder for chaining.
-
setRequestPathBytes
public HTTP2HealthCheck.Builder setRequestPathBytes(com.google.protobuf.ByteString value)
The request path of the HTTP/2 health check request. The default value is /.
optional string request_path = 229403605;
- Parameters:
value
- The bytes for requestPath to set.- Returns:
- This builder for chaining.
-
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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- 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 interfaceHTTP2HealthCheckOrBuilder
- Returns:
- The bytes for response.
-
setResponse
public HTTP2HealthCheck.Builder setResponse(String value)
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;
- Parameters:
value
- The response to set.- Returns:
- This builder for chaining.
-
clearResponse
public HTTP2HealthCheck.Builder clearResponse()
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;
- Returns:
- This builder for chaining.
-
setResponseBytes
public HTTP2HealthCheck.Builder setResponseBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for response to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HTTP2HealthCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
mergeUnknownFields
public final HTTP2HealthCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HTTP2HealthCheck.Builder>
-
-