Package com.google.cloud.compute.v1
Class GRPCHealthCheck.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
- com.google.cloud.compute.v1.GRPCHealthCheck.Builder
-
- All Implemented Interfaces:
GRPCHealthCheckOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GRPCHealthCheck
public static final class GRPCHealthCheck.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder> implements GRPCHealthCheckOrBuilder
Protobuf typegoogle.cloud.compute.v1.GRPCHealthCheck
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GRPCHealthCheck.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GRPCHealthCheckbuild()GRPCHealthCheckbuildPartial()GRPCHealthCheck.Builderclear()GRPCHealthCheck.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GRPCHealthCheck.BuilderclearGrpcServiceName()The gRPC service name for the health check.GRPCHealthCheck.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GRPCHealthCheck.BuilderclearPort()The TCP port number to which the health check prober sends packets.GRPCHealthCheck.BuilderclearPortName()Not supported.GRPCHealthCheck.BuilderclearPortSpecification()Specifies how a port is selected for health checking.GRPCHealthCheck.Builderclone()GRPCHealthCheckgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetGrpcServiceName()The gRPC service name for the health check.com.google.protobuf.ByteStringgetGrpcServiceNameBytes()The gRPC service name for the health check.intgetPort()The TCP port number to which the health check prober sends packets.StringgetPortName()Not supported.com.google.protobuf.ByteStringgetPortNameBytes()Not supported.StringgetPortSpecification()Specifies how a port is selected for health checking.com.google.protobuf.ByteStringgetPortSpecificationBytes()Specifies how a port is selected for health checking.booleanhasGrpcServiceName()The gRPC service name for the health check.booleanhasPort()The TCP port number to which the health check prober sends packets.booleanhasPortName()Not supported.booleanhasPortSpecification()Specifies how a port is selected for health checking.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GRPCHealthCheck.BuildermergeFrom(GRPCHealthCheck other)GRPCHealthCheck.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GRPCHealthCheck.BuildermergeFrom(com.google.protobuf.Message other)GRPCHealthCheck.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GRPCHealthCheck.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GRPCHealthCheck.BuildersetGrpcServiceName(String value)The gRPC service name for the health check.GRPCHealthCheck.BuildersetGrpcServiceNameBytes(com.google.protobuf.ByteString value)The gRPC service name for the health check.GRPCHealthCheck.BuildersetPort(int value)The TCP port number to which the health check prober sends packets.GRPCHealthCheck.BuildersetPortName(String value)Not supported.GRPCHealthCheck.BuildersetPortNameBytes(com.google.protobuf.ByteString value)Not supported.GRPCHealthCheck.BuildersetPortSpecification(String value)Specifies how a port is selected for health checking.GRPCHealthCheck.BuildersetPortSpecificationBytes(com.google.protobuf.ByteString value)Specifies how a port is selected for health checking.GRPCHealthCheck.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GRPCHealthCheck.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
clear
public GRPCHealthCheck.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
getDefaultInstanceForType
public GRPCHealthCheck getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GRPCHealthCheck build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GRPCHealthCheck buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GRPCHealthCheck.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
setField
public GRPCHealthCheck.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
clearField
public GRPCHealthCheck.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
clearOneof
public GRPCHealthCheck.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
setRepeatedField
public GRPCHealthCheck.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
addRepeatedField
public GRPCHealthCheck.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
mergeFrom
public GRPCHealthCheck.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GRPCHealthCheck.Builder>
-
mergeFrom
public GRPCHealthCheck.Builder mergeFrom(GRPCHealthCheck other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
mergeFrom
public GRPCHealthCheck.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GRPCHealthCheck.Builder>- Throws:
IOException
-
hasGrpcServiceName
public boolean hasGrpcServiceName()
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Specified by:
hasGrpcServiceNamein interfaceGRPCHealthCheckOrBuilder- Returns:
- Whether the grpcServiceName field is set.
-
getGrpcServiceName
public String getGrpcServiceName()
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Specified by:
getGrpcServiceNamein interfaceGRPCHealthCheckOrBuilder- Returns:
- The grpcServiceName.
-
getGrpcServiceNameBytes
public com.google.protobuf.ByteString getGrpcServiceNameBytes()
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Specified by:
getGrpcServiceNameBytesin interfaceGRPCHealthCheckOrBuilder- Returns:
- The bytes for grpcServiceName.
-
setGrpcServiceName
public GRPCHealthCheck.Builder setGrpcServiceName(String value)
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Parameters:
value- The grpcServiceName to set.- Returns:
- This builder for chaining.
-
clearGrpcServiceName
public GRPCHealthCheck.Builder clearGrpcServiceName()
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Returns:
- This builder for chaining.
-
setGrpcServiceNameBytes
public GRPCHealthCheck.Builder setGrpcServiceNameBytes(com.google.protobuf.ByteString value)
The gRPC service name for the health check. This field is optional. The value of grpc_service_name has the following meanings by convention: - Empty service_name means the overall status of all services at the backend. - Non-empty service_name means the health of that gRPC service, as defined by the owner of the service. The grpc_service_name can only be ASCII.
optional string grpc_service_name = 136533078;- Parameters:
value- The bytes for grpcServiceName to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()
The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535.
optional int32 port = 3446913;- Specified by:
hasPortin interfaceGRPCHealthCheckOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535.
optional int32 port = 3446913;- Specified by:
getPortin interfaceGRPCHealthCheckOrBuilder- Returns:
- The port.
-
setPort
public GRPCHealthCheck.Builder setPort(int value)
The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535.
optional int32 port = 3446913;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public GRPCHealthCheck.Builder clearPort()
The TCP port number to which the health check prober sends packets. 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:
hasPortNamein interfaceGRPCHealthCheckOrBuilder- Returns:
- Whether the portName field is set.
-
getPortName
public String getPortName()
Not supported.
optional string port_name = 41534345;- Specified by:
getPortNamein interfaceGRPCHealthCheckOrBuilder- Returns:
- The portName.
-
getPortNameBytes
public com.google.protobuf.ByteString getPortNameBytes()
Not supported.
optional string port_name = 41534345;- Specified by:
getPortNameBytesin interfaceGRPCHealthCheckOrBuilder- Returns:
- The bytes for portName.
-
setPortName
public GRPCHealthCheck.Builder setPortName(String value)
Not supported.
optional string port_name = 41534345;- Parameters:
value- The portName to set.- Returns:
- This builder for chaining.
-
clearPortName
public GRPCHealthCheck.Builder clearPortName()
Not supported.
optional string port_name = 41534345;- Returns:
- This builder for chaining.
-
setPortNameBytes
public GRPCHealthCheck.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:
hasPortSpecificationin interfaceGRPCHealthCheckOrBuilder- 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:
getPortSpecificationin interfaceGRPCHealthCheckOrBuilder- 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:
getPortSpecificationBytesin interfaceGRPCHealthCheckOrBuilder- Returns:
- The bytes for portSpecification.
-
setPortSpecification
public GRPCHealthCheck.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 GRPCHealthCheck.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 GRPCHealthCheck.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.
-
setUnknownFields
public final GRPCHealthCheck.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
mergeUnknownFields
public final GRPCHealthCheck.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GRPCHealthCheck.Builder>
-
-