Package com.google.cloud.compute.v1
Class ReservationBlockHealthInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReservationBlockHealthInfo.Builder>
com.google.cloud.compute.v1.ReservationBlockHealthInfo.Builder
- All Implemented Interfaces:
ReservationBlockHealthInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReservationBlockHealthInfo
public static final class ReservationBlockHealthInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReservationBlockHealthInfo.Builder>
implements ReservationBlockHealthInfoOrBuilder
Health information for the reservation block.Protobuf type
google.cloud.compute.v1.ReservationBlockHealthInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The number of subBlocks that are degraded.The health status of the reservation block.The number of subBlocks that are healthy.intThe number of subBlocks that are degraded.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe health status of the reservation block.com.google.protobuf.ByteStringThe health status of the reservation block.intThe number of subBlocks that are healthy.booleanThe number of subBlocks that are degraded.booleanThe health status of the reservation block.booleanThe number of subBlocks 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) setDegradedSubBlockCount(int value) The number of subBlocks that are degraded.setHealthStatus(String value) The health status of the reservation block.setHealthStatusBytes(com.google.protobuf.ByteString value) The health status of the reservation block.setHealthySubBlockCount(int value) The number of subBlocks 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<ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReservationBlockHealthInfo.Builder>
-
mergeFrom
public ReservationBlockHealthInfo.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<ReservationBlockHealthInfo.Builder>- Throws:
IOException
-
hasDegradedSubBlockCount
public boolean hasDegradedSubBlockCount()The number of subBlocks that are degraded.
optional int32 degraded_sub_block_count = 458044493;- Specified by:
hasDegradedSubBlockCountin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- Whether the degradedSubBlockCount field is set.
-
getDegradedSubBlockCount
public int getDegradedSubBlockCount()The number of subBlocks that are degraded.
optional int32 degraded_sub_block_count = 458044493;- Specified by:
getDegradedSubBlockCountin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- The degradedSubBlockCount.
-
setDegradedSubBlockCount
The number of subBlocks that are degraded.
optional int32 degraded_sub_block_count = 458044493;- Parameters:
value- The degradedSubBlockCount to set.- Returns:
- This builder for chaining.
-
clearDegradedSubBlockCount
The number of subBlocks that are degraded.
optional int32 degraded_sub_block_count = 458044493;- Returns:
- This builder for chaining.
-
hasHealthStatus
public boolean hasHealthStatus()The health status of the reservation block. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
hasHealthStatusin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- Whether the healthStatus field is set.
-
getHealthStatus
The health status of the reservation block. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
getHealthStatusin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- The healthStatus.
-
getHealthStatusBytes
public com.google.protobuf.ByteString getHealthStatusBytes()The health status of the reservation block. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Specified by:
getHealthStatusBytesin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- The bytes for healthStatus.
-
setHealthStatus
The health status of the reservation block. 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 block. Check the HealthStatus enum for the list of possible values.
optional string health_status = 380545845;- Returns:
- This builder for chaining.
-
setHealthStatusBytes
public ReservationBlockHealthInfo.Builder setHealthStatusBytes(com.google.protobuf.ByteString value) The health status of the reservation block. 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.
-
hasHealthySubBlockCount
public boolean hasHealthySubBlockCount()The number of subBlocks that are healthy.
optional int32 healthy_sub_block_count = 5348540;- Specified by:
hasHealthySubBlockCountin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- Whether the healthySubBlockCount field is set.
-
getHealthySubBlockCount
public int getHealthySubBlockCount()The number of subBlocks that are healthy.
optional int32 healthy_sub_block_count = 5348540;- Specified by:
getHealthySubBlockCountin interfaceReservationBlockHealthInfoOrBuilder- Returns:
- The healthySubBlockCount.
-
setHealthySubBlockCount
The number of subBlocks that are healthy.
optional int32 healthy_sub_block_count = 5348540;- Parameters:
value- The healthySubBlockCount to set.- Returns:
- This builder for chaining.
-
clearHealthySubBlockCount
The number of subBlocks that are healthy.
optional int32 healthy_sub_block_count = 5348540;- Returns:
- This builder for chaining.
-