Package com.google.cloud.aiplatform.v1
Class ReservationAffinity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReservationAffinity.Builder>
com.google.cloud.aiplatform.v1.ReservationAffinity.Builder
- All Implemented Interfaces:
ReservationAffinityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReservationAffinity
public static final class ReservationAffinity.Builder
extends com.google.protobuf.GeneratedMessage.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.v1.ReservationAffinity-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues(Iterable<String> values) Optional.Optional.addValuesBytes(com.google.protobuf.ByteString value) Optional.build()clear()clearKey()Optional.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Optional.com.google.protobuf.ByteStringOptional.Required.intRequired.getValues(int index) Optional.com.google.protobuf.ByteStringgetValuesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ReservationAffinity other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setKeyBytes(com.google.protobuf.ByteString value) Optional.Required.setReservationAffinityTypeValue(int value) Required.Optional.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<ReservationAffinity.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<ReservationAffinity.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<ReservationAffinity.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<ReservationAffinity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReservationAffinity.Builder>
-
mergeFrom
public ReservationAffinity.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<ReservationAffinity.Builder>- Throws:
IOException
-
getReservationAffinityTypeValue
public int getReservationAffinityTypeValue()Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getReservationAffinityTypeValuein interfaceReservationAffinityOrBuilder- Returns:
- The enum numeric value on the wire for reservationAffinityType.
-
setReservationAffinityTypeValue
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for reservationAffinityType to set.- Returns:
- This builder for chaining.
-
getReservationAffinityType
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getReservationAffinityTypein interfaceReservationAffinityOrBuilder- Returns:
- The reservationAffinityType.
-
setReservationAffinityType
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The reservationAffinityType to set.- Returns:
- This builder for chaining.
-
clearReservationAffinityType
Required. Specifies the reservation affinity type.
.google.cloud.aiplatform.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
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];- Specified by:
getKeyin interfaceReservationAffinityOrBuilder- Returns:
- The key.
-
getKeyBytes
public 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];- Specified by:
getKeyBytesin interfaceReservationAffinityOrBuilder- Returns:
- The bytes for key.
-
setKey
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];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setKeyBytes
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];- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
getValuesList
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) = { ... }- Specified by:
getValuesListin interfaceReservationAffinityOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public 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) = { ... }- Specified by:
getValuesCountin interfaceReservationAffinityOrBuilder- Returns:
- The count of values.
-
getValues
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) = { ... }- Specified by:
getValuesin interfaceReservationAffinityOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
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) = { ... }- Specified by:
getValuesBytesin interfaceReservationAffinityOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
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) = { ... }- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
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) = { ... }- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
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) = { ... }- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
addValuesBytes
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) = { ... }- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-