Package com.google.cloud.compute.v1
Class AllocationResourceStatusHealthInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationResourceStatusHealthInfo.Builder>
com.google.cloud.compute.v1.AllocationResourceStatusHealthInfo.Builder
- All Implemented Interfaces:
AllocationResourceStatusHealthInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationResourceStatusHealthInfo
public static final class AllocationResourceStatusHealthInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AllocationResourceStatusHealthInfo.Builder>
implements AllocationResourceStatusHealthInfoOrBuilder
Health information for the reservation.Protobuf type
google.cloud.compute.v1.AllocationResourceStatusHealthInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of reservation blocks that are degraded.The health status of the reservation.The number of reservation blocks that are healthy.intThe number of reservation blocks that are degraded.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe health status of the reservation.com.google.protobuf.ByteStringThe health status of the reservation.intThe number of reservation blocks that are healthy.booleanThe number of reservation blocks that are degraded.booleanThe health status of the reservation.booleanThe number of reservation blocks that are healthy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDegradedBlockCount(int value) The number of reservation blocks that are degraded.setHealthStatus(String value) The health status of the reservation.setHealthStatusBytes(com.google.protobuf.ByteString value) The health status of the reservation.setHealthyBlockCount(int value) The number of reservation blocks that are healthy.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<AllocationResourceStatusHealthInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllocationResourceStatusHealthInfo.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.GeneratedMessage.Builder<AllocationResourceStatusHealthInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationResourceStatusHealthInfo.Builder>
-
mergeFrom
public AllocationResourceStatusHealthInfo.Builder mergeFrom(AllocationResourceStatusHealthInfo other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocationResourceStatusHealthInfo.Builder>
-
mergeFrom
public AllocationResourceStatusHealthInfo.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<AllocationResourceStatusHealthInfo.Builder>- Throws:
IOException
-
hasDegradedBlockCount
public boolean hasDegradedBlockCount()The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;- Specified by:
hasDegradedBlockCountin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- Whether the degradedBlockCount field is set.
-
getDegradedBlockCount
public int getDegradedBlockCount()The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;- Specified by:
getDegradedBlockCountin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- The degradedBlockCount.
-
setDegradedBlockCount
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;- Parameters:
value- The degradedBlockCount to set.- Returns:
- This builder for chaining.
-
clearDegradedBlockCount
The number of reservation blocks that are degraded.
optional int32 degraded_block_count = 514082636;- Returns:
- This builder for chaining.
-
hasHealthStatus
public boolean hasHealthStatus()The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
hasHealthStatusin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- Whether the healthStatus field is set.
-
getHealthStatus
The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
getHealthStatusin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- The healthStatus.
-
getHealthStatusBytes
public com.google.protobuf.ByteString getHealthStatusBytes()The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
getHealthStatusBytesin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- The bytes for healthStatus.
-
setHealthStatus
The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Parameters:
value- The healthStatus to set.- Returns:
- This builder for chaining.
-
clearHealthStatus
The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Returns:
- This builder for chaining.
-
setHealthStatusBytes
public AllocationResourceStatusHealthInfo.Builder setHealthStatusBytes(com.google.protobuf.ByteString value) The health status of the reservation. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Parameters:
value- The bytes for healthStatus to set.- Returns:
- This builder for chaining.
-
hasHealthyBlockCount
public boolean hasHealthyBlockCount()The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;- Specified by:
hasHealthyBlockCountin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- Whether the healthyBlockCount field is set.
-
getHealthyBlockCount
public int getHealthyBlockCount()The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;- Specified by:
getHealthyBlockCountin interfaceAllocationResourceStatusHealthInfoOrBuilder- Returns:
- The healthyBlockCount.
-
setHealthyBlockCount
The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;- Parameters:
value- The healthyBlockCount to set.- Returns:
- This builder for chaining.
-
clearHealthyBlockCount
The number of reservation blocks that are healthy.
optional int32 healthy_block_count = 223625019;- Returns:
- This builder for chaining.
-