public static final class ReservationAffinity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder> implements ReservationAffinityOrBuilder
Specifies the reservations that this instance can consume from.Protobuf type
google.cloud.compute.v1.ReservationAffinity| Modifier and Type | Method and Description |
|---|---|
ReservationAffinity.Builder |
addAllValues(Iterable<String> values)
Corresponds to the label values of a reservation resource.
|
ReservationAffinity.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReservationAffinity.Builder |
addValues(String value)
Corresponds to the label values of a reservation resource.
|
ReservationAffinity.Builder |
addValuesBytes(com.google.protobuf.ByteString value)
Corresponds to the label values of a reservation resource.
|
ReservationAffinity |
build() |
ReservationAffinity |
buildPartial() |
ReservationAffinity.Builder |
clear() |
ReservationAffinity.Builder |
clearConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReservationAffinity.Builder |
clearKey()
Corresponds to the label key of a reservation resource.
|
ReservationAffinity.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReservationAffinity.Builder |
clearValues()
Corresponds to the label values of a reservation resource.
|
ReservationAffinity.Builder |
clone() |
String |
getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
com.google.protobuf.ByteString |
getConsumeReservationTypeBytes()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKey()
Corresponds to the label key of a reservation resource.
|
com.google.protobuf.ByteString |
getKeyBytes()
Corresponds to the label key of a reservation resource.
|
String |
getValues(int index)
Corresponds to the label values of a reservation resource.
|
com.google.protobuf.ByteString |
getValuesBytes(int index)
Corresponds to the label values of a reservation resource.
|
int |
getValuesCount()
Corresponds to the label values of a reservation resource.
|
com.google.protobuf.ProtocolStringList |
getValuesList()
Corresponds to the label values of a reservation resource.
|
boolean |
hasConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
boolean |
hasKey()
Corresponds to the label key of a reservation resource.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReservationAffinity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReservationAffinity.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReservationAffinity.Builder |
mergeFrom(ReservationAffinity other) |
ReservationAffinity.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReservationAffinity.Builder |
setConsumeReservationType(String value)
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity.Builder |
setConsumeReservationTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReservationAffinity.Builder |
setKey(String value)
Corresponds to the label key of a reservation resource.
|
ReservationAffinity.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
Corresponds to the label key of a reservation resource.
|
ReservationAffinity.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReservationAffinity.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReservationAffinity.Builder |
setValues(int index,
String value)
Corresponds to the label values of a reservation resource.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ReservationAffinity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ReservationAffinity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ReservationAffinity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder mergeFrom(ReservationAffinity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public ReservationAffinity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReservationAffinity.Builder>IOExceptionpublic boolean hasConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;hasConsumeReservationType in interface ReservationAffinityOrBuilderpublic String getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;getConsumeReservationType in interface ReservationAffinityOrBuilderpublic com.google.protobuf.ByteString getConsumeReservationTypeBytes()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;getConsumeReservationTypeBytes in interface ReservationAffinityOrBuilderpublic ReservationAffinity.Builder setConsumeReservationType(String value)
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;value - The consumeReservationType to set.public ReservationAffinity.Builder clearConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;public ReservationAffinity.Builder setConsumeReservationTypeBytes(com.google.protobuf.ByteString value)
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.
optional string consume_reservation_type = 300736944;value - The bytes for consumeReservationType to set.public boolean hasKey()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;hasKey in interface ReservationAffinityOrBuilderpublic String getKey()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;getKey in interface ReservationAffinityOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;getKeyBytes in interface ReservationAffinityOrBuilderpublic ReservationAffinity.Builder setKey(String value)
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;value - The key to set.public ReservationAffinity.Builder clearKey()
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;public ReservationAffinity.Builder setKeyBytes(com.google.protobuf.ByteString value)
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.
optional string key = 106079;value - The bytes for key to set.public com.google.protobuf.ProtocolStringList getValuesList()
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;getValuesList in interface ReservationAffinityOrBuilderpublic int getValuesCount()
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;getValuesCount in interface ReservationAffinityOrBuilderpublic String getValues(int index)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;getValues in interface ReservationAffinityOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getValuesBytes(int index)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;getValuesBytes in interface ReservationAffinityOrBuilderindex - The index of the value to return.public ReservationAffinity.Builder setValues(int index, String value)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;index - The index to set the value at.value - The values to set.public ReservationAffinity.Builder addValues(String value)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;value - The values to add.public ReservationAffinity.Builder addAllValues(Iterable<String> values)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;values - The values to add.public ReservationAffinity.Builder clearValues()
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;public ReservationAffinity.Builder addValuesBytes(com.google.protobuf.ByteString value)
Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.
repeated string values = 249928994;value - The bytes of the values to add.public final ReservationAffinity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>public final ReservationAffinity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder>Copyright © 2023 Google LLC. All rights reserved.