public static final class ReservationAffinity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReservationAffinity.Builder> implements ReservationAffinityOrBuilder
A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity.Protobuf type
google.cloud.aiplatform.v1beta1.ReservationAffinitygetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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 int getReservationAffinityTypeValue()
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
getReservationAffinityTypeValue in interface ReservationAffinityOrBuilderpublic ReservationAffinity.Builder setReservationAffinityTypeValue(int value)
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for reservationAffinityType to set.public ReservationAffinity.Type getReservationAffinityType()
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
getReservationAffinityType in interface ReservationAffinityOrBuilderpublic ReservationAffinity.Builder setReservationAffinityType(ReservationAffinity.Type value)
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
value - The reservationAffinityType to set.public ReservationAffinity.Builder clearReservationAffinityType()
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
public String getKey()
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];getKey in interface ReservationAffinityOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];getKeyBytes in interface ReservationAffinityOrBuilderpublic ReservationAffinity.Builder setKey(String value)
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];value - The key to set.public ReservationAffinity.Builder clearKey()
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];public ReservationAffinity.Builder setKeyBytes(com.google.protobuf.ByteString value)
Optional. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, use `compute.googleapis.com/reservation-name` as the key and specify the name of your reservation as its value.
string key = 2 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for key to set.public com.google.protobuf.ProtocolStringList getValuesList()
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getValuesList in interface ReservationAffinityOrBuilderpublic int getValuesCount()
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getValuesCount in interface ReservationAffinityOrBuilderpublic String getValues(int index)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getValues in interface ReservationAffinityOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getValuesBytes(int index)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getValuesBytes in interface ReservationAffinityOrBuilderindex - The index of the value to return.public ReservationAffinity.Builder setValues(int index, String value)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
index - The index to set the value at.value - The values to set.public ReservationAffinity.Builder addValues(String value)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
value - The values to add.public ReservationAffinity.Builder addAllValues(Iterable<String> values)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
values - The values to add.public ReservationAffinity.Builder clearValues()
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
public ReservationAffinity.Builder addValuesBytes(com.google.protobuf.ByteString value)
Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.
repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
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 © 2024 Google LLC. All rights reserved.