Package com.google.cloud.compute.v1
Class Commitment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.Commitment
- All Implemented Interfaces:
CommitmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Commitment
extends com.google.protobuf.GeneratedMessage
implements CommitmentOrBuilder
Represents a regional resource-based commitment resource. Creating this commitment resource means that you are purchasing a resource-based committed use contract, with an explicit start and end time. You can purchase resource-based commitments for both hardware and software resources. For more information, read Resource-based committed use discountsProtobuf type
google.cloud.compute.v1.Commitment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a regional resource-based commitment resource.static enumThe category of the commitment; specifies whether the commitment is for hardware or software resources.static enumThe minimum time duration that you commit to purchasing resources.static enumOutput only.static enumThe type of commitment; specifies the machine series for which you want to commit to purchasing resources.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanSpecifies whether to automatically renew the commitment at the end of its current term.The category of the commitment; specifies whether the commitment is for hardware or software resources.com.google.protobuf.ByteStringThe category of the commitment; specifies whether the commitment is for hardware or software resources.Output only.com.google.protobuf.ByteStringOutput only.[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format.com.google.protobuf.ByteString[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format.static CommitmentAn optional description of the commitment.com.google.protobuf.ByteStringAn optional description of the commitment.static final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getExistingReservations(int index) repeated string existing_reservations = 493028443;com.google.protobuf.ByteStringgetExistingReservationsBytes(int index) repeated string existing_reservations = 493028443;intrepeated string existing_reservations = 493028443;com.google.protobuf.ProtocolStringListrepeated string existing_reservations = 493028443;longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.The license specification required as part of a license commitment.The license specification required as part of a license commitment.getMergeSourceCommitments(int index) The list of source commitments that you are merging to create the new merged commitment.com.google.protobuf.ByteStringgetMergeSourceCommitmentsBytes(int index) The list of source commitments that you are merging to create the new merged commitment.intThe list of source commitments that you are merging to create the new merged commitment.com.google.protobuf.ProtocolStringListThe list of source commitments that you are merging to create the new merged commitment.getName()Name of the commitment.com.google.protobuf.ByteStringName of the commitment.Input only.Input only.com.google.protobuf.Parser<Commitment>getPlan()The minimum time duration that you commit to purchasing resources.com.google.protobuf.ByteStringThe minimum time duration that you commit to purchasing resources.Output only.com.google.protobuf.ByteStringOutput only.getReservations(int index) The list of new reservations that you want to create and attach to this commitment.intThe list of new reservations that you want to create and attach to this commitment.The list of new reservations that you want to create and attach to this commitment.getReservationsOrBuilder(int index) The list of new reservations that you want to create and attach to this commitment.List<? extends ReservationOrBuilder>The list of new reservations that you want to create and attach to this commitment.getResources(int index) The list of all the hardware resources, with their types and amounts, that you want to commit to.intThe list of all the hardware resources, with their types and amounts, that you want to commit to.The list of all the hardware resources, with their types and amounts, that you want to commit to.getResourcesOrBuilder(int index) The list of all the hardware resources, with their types and amounts, that you want to commit to.List<? extends ResourceCommitmentOrBuilder>The list of all the hardware resources, with their types and amounts, that you want to commit to.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.intThe source commitment from which you are transferring resources to create the new split commitment.com.google.protobuf.ByteStringThe source commitment from which you are transferring resources to create the new split commitment.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getType()The type of commitment; specifies the machine series for which you want to commit to purchasing resources.com.google.protobuf.ByteStringThe type of commitment; specifies the machine series for which you want to commit to purchasing resources.booleanSpecifies whether to automatically renew the commitment at the end of its current term.booleanThe category of the commitment; specifies whether the commitment is for hardware or software resources.booleanOutput only.boolean[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format.booleanAn optional description of the commitment.booleanOutput only.inthashCode()booleanhasId()Output only.booleanhasKind()Output only.booleanThe license specification required as part of a license commitment.booleanhasName()Name of the commitment.booleanInput only.booleanhasPlan()The minimum time duration that you commit to purchasing resources.booleanOutput only.booleanOutput only.booleanOutput only.booleanThe source commitment from which you are transferring resources to create the new split commitment.booleanOutput only.booleanOutput only.booleanOutput only.booleanhasType()The type of commitment; specifies the machine series for which you want to commit to purchasing resources.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Commitment.Builderstatic Commitment.BuildernewBuilder(Commitment prototype) protected Commitment.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CommitmentparseDelimitedFrom(InputStream input) static CommitmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CommitmentparseFrom(byte[] data) static CommitmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CommitmentparseFrom(com.google.protobuf.ByteString data) static CommitmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CommitmentparseFrom(com.google.protobuf.CodedInputStream input) static CommitmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CommitmentparseFrom(InputStream input) static CommitmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CommitmentparseFrom(ByteBuffer data) static CommitmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Commitment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AUTO_RENEW_FIELD_NUMBER
public static final int AUTO_RENEW_FIELD_NUMBER- See Also:
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER- See Also:
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER- See Also:
-
CUSTOM_END_TIMESTAMP_FIELD_NUMBER
public static final int CUSTOM_END_TIMESTAMP_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
END_TIMESTAMP_FIELD_NUMBER
public static final int END_TIMESTAMP_FIELD_NUMBER- See Also:
-
EXISTING_RESERVATIONS_FIELD_NUMBER
public static final int EXISTING_RESERVATIONS_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER- See Also:
-
LICENSE_RESOURCE_FIELD_NUMBER
public static final int LICENSE_RESOURCE_FIELD_NUMBER- See Also:
-
MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER
public static final int MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PARAMS_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER- See Also:
-
PLAN_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER- See Also:
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER- See Also:
-
RESERVATIONS_FIELD_NUMBER
public static final int RESERVATIONS_FIELD_NUMBER- See Also:
-
RESOURCE_STATUS_FIELD_NUMBER
public static final int RESOURCE_STATUS_FIELD_NUMBER- See Also:
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER- See Also:
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER- See Also:
-
SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER
public static final int SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER- See Also:
-
START_TIMESTAMP_FIELD_NUMBER
public static final int START_TIMESTAMP_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
-
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
-
hasAutoRenew
public boolean hasAutoRenew()Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027.
optional bool auto_renew = 495520765;- Specified by:
hasAutoRenewin interfaceCommitmentOrBuilder- Returns:
- Whether the autoRenew field is set.
-
getAutoRenew
public boolean getAutoRenew()Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027.
optional bool auto_renew = 495520765;- Specified by:
getAutoRenewin interfaceCommitmentOrBuilder- Returns:
- The autoRenew.
-
hasCategory
public boolean hasCategory()The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. Check the Category enum for the list of possible values.
optional string category = 50511102;- Specified by:
hasCategoryin interfaceCommitmentOrBuilder- Returns:
- Whether the category field is set.
-
getCategory
The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. Check the Category enum for the list of possible values.
optional string category = 50511102;- Specified by:
getCategoryin interfaceCommitmentOrBuilder- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such asVCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. Check the Category enum for the list of possible values.
optional string category = 50511102;- Specified by:
getCategoryBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for category.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceCommitmentOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for creationTimestamp.
-
hasCustomEndTimestamp
public boolean hasCustomEndTimestamp()[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.
optional string custom_end_timestamp = 181770852;- Specified by:
hasCustomEndTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the customEndTimestamp field is set.
-
getCustomEndTimestamp
[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.
optional string custom_end_timestamp = 181770852;- Specified by:
getCustomEndTimestampin interfaceCommitmentOrBuilder- Returns:
- The customEndTimestamp.
-
getCustomEndTimestampBytes
public com.google.protobuf.ByteString getCustomEndTimestampBytes()[Input Only] Optional, specifies the requested commitment end time inRFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.
optional string custom_end_timestamp = 181770852;- Specified by:
getCustomEndTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for customEndTimestamp.
-
hasDescription
public boolean hasDescription()An optional description of the commitment. You can provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceCommitmentOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of the commitment. You can provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceCommitmentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of the commitment. You can provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for description.
-
hasEndTimestamp
public boolean hasEndTimestamp()Output only. [Output Only] Commitment end time inRFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
hasEndTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the endTimestamp field is set.
-
getEndTimestamp
Output only. [Output Only] Commitment end time inRFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
getEndTimestampin interfaceCommitmentOrBuilder- Returns:
- The endTimestamp.
-
getEndTimestampBytes
public com.google.protobuf.ByteString getEndTimestampBytes()Output only. [Output Only] Commitment end time inRFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
getEndTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for endTimestamp.
-
getExistingReservationsList
public com.google.protobuf.ProtocolStringList getExistingReservationsList()repeated string existing_reservations = 493028443;- Specified by:
getExistingReservationsListin interfaceCommitmentOrBuilder- Returns:
- A list containing the existingReservations.
-
getExistingReservationsCount
public int getExistingReservationsCount()repeated string existing_reservations = 493028443;- Specified by:
getExistingReservationsCountin interfaceCommitmentOrBuilder- Returns:
- The count of existingReservations.
-
getExistingReservations
repeated string existing_reservations = 493028443;- Specified by:
getExistingReservationsin interfaceCommitmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The existingReservations at the given index.
-
getExistingReservationsBytes
public com.google.protobuf.ByteString getExistingReservationsBytes(int index) repeated string existing_reservations = 493028443;- Specified by:
getExistingReservationsBytesin interfaceCommitmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the existingReservations at the given index.
-
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceCommitmentOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceCommitmentOrBuilder- Returns:
- The id.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Specified by:
hasKindin interfaceCommitmentOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Specified by:
getKindin interfaceCommitmentOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for kind.
-
hasLicenseResource
public boolean hasLicenseResource()The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;- Specified by:
hasLicenseResourcein interfaceCommitmentOrBuilder- Returns:
- Whether the licenseResource field is set.
-
getLicenseResource
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;- Specified by:
getLicenseResourcein interfaceCommitmentOrBuilder- Returns:
- The licenseResource.
-
getLicenseResourceOrBuilder
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;- Specified by:
getLicenseResourceOrBuilderin interfaceCommitmentOrBuilder
-
getMergeSourceCommitmentsList
public com.google.protobuf.ProtocolStringList getMergeSourceCommitmentsList()The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsListin interfaceCommitmentOrBuilder- Returns:
- A list containing the mergeSourceCommitments.
-
getMergeSourceCommitmentsCount
public int getMergeSourceCommitmentsCount()The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsCountin interfaceCommitmentOrBuilder- Returns:
- The count of mergeSourceCommitments.
-
getMergeSourceCommitments
The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsin interfaceCommitmentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The mergeSourceCommitments at the given index.
-
getMergeSourceCommitmentsBytes
public com.google.protobuf.ByteString getMergeSourceCommitmentsBytes(int index) The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsBytesin interfaceCommitmentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mergeSourceCommitments at the given index.
-
hasName
public boolean hasName()Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
hasNamein interfaceCommitmentOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNamein interfaceCommitmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for name.
-
hasParams
public boolean hasParams()Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.CommitmentParams params = 78313862;- Specified by:
hasParamsin interfaceCommitmentOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.CommitmentParams params = 78313862;- Specified by:
getParamsin interfaceCommitmentOrBuilder- Returns:
- The params.
-
getParamsOrBuilder
Input only. Additional params passed with the request, but not persisted as part of resource payload.
optional .google.cloud.compute.v1.CommitmentParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceCommitmentOrBuilder
-
hasPlan
public boolean hasPlan()The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Specified by:
hasPlanin interfaceCommitmentOrBuilder- Returns:
- Whether the plan field is set.
-
getPlan
The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Specified by:
getPlanin interfaceCommitmentOrBuilder- Returns:
- The plan.
-
getPlanBytes
public com.google.protobuf.ByteString getPlanBytes()The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), andTHIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Specified by:
getPlanBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for plan.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] URL of the region where the commitment and committed resources are located.
optional string region = 138946292;- Specified by:
hasRegionin interfaceCommitmentOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] URL of the region where the commitment and committed resources are located.
optional string region = 138946292;- Specified by:
getRegionin interfaceCommitmentOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] URL of the region where the commitment and committed resources are located.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for region.
-
getReservationsList
The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsListin interfaceCommitmentOrBuilder
-
getReservationsOrBuilderList
The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsOrBuilderListin interfaceCommitmentOrBuilder
-
getReservationsCount
public int getReservationsCount()The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsCountin interfaceCommitmentOrBuilder
-
getReservations
The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsin interfaceCommitmentOrBuilder
-
getReservationsOrBuilder
The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify theexistingReservations property instead.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsOrBuilderin interfaceCommitmentOrBuilder
-
hasResourceStatus
public boolean hasResourceStatus()Output only. [Output Only] Status information for Commitment resource.
optional .google.cloud.compute.v1.CommitmentResourceStatus resource_status = 249429315;- Specified by:
hasResourceStatusin interfaceCommitmentOrBuilder- Returns:
- Whether the resourceStatus field is set.
-
getResourceStatus
Output only. [Output Only] Status information for Commitment resource.
optional .google.cloud.compute.v1.CommitmentResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusin interfaceCommitmentOrBuilder- Returns:
- The resourceStatus.
-
getResourceStatusOrBuilder
Output only. [Output Only] Status information for Commitment resource.
optional .google.cloud.compute.v1.CommitmentResourceStatus resource_status = 249429315;- Specified by:
getResourceStatusOrBuilderin interfaceCommitmentOrBuilder
-
getResourcesList
The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesListin interfaceCommitmentOrBuilder
-
getResourcesOrBuilderList
The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesOrBuilderListin interfaceCommitmentOrBuilder
-
getResourcesCount
public int getResourcesCount()The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesCountin interfaceCommitmentOrBuilder
-
getResources
The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesin interfaceCommitmentOrBuilder
-
getResourcesOrBuilder
The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesOrBuilderin interfaceCommitmentOrBuilder
-
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceCommitmentOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceCommitmentOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for selfLink.
-
hasSplitSourceCommitment
public boolean hasSplitSourceCommitment()The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.
optional string split_source_commitment = 402611156;- Specified by:
hasSplitSourceCommitmentin interfaceCommitmentOrBuilder- Returns:
- Whether the splitSourceCommitment field is set.
-
getSplitSourceCommitment
The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.
optional string split_source_commitment = 402611156;- Specified by:
getSplitSourceCommitmentin interfaceCommitmentOrBuilder- Returns:
- The splitSourceCommitment.
-
getSplitSourceCommitmentBytes
public com.google.protobuf.ByteString getSplitSourceCommitmentBytes()The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.
optional string split_source_commitment = 402611156;- Specified by:
getSplitSourceCommitmentBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for splitSourceCommitment.
-
hasStartTimestamp
public boolean hasStartTimestamp()Output only. [Output Only] Commitment start time inRFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
hasStartTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the startTimestamp field is set.
-
getStartTimestamp
Output only. [Output Only] Commitment start time inRFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
getStartTimestampin interfaceCommitmentOrBuilder- Returns:
- The startTimestamp.
-
getStartTimestampBytes
public com.google.protobuf.ByteString getStartTimestampBytes()Output only. [Output Only] Commitment start time inRFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
getStartTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for startTimestamp.
-
hasStatus
public boolean hasStatus()Output only. [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
hasStatusin interfaceCommitmentOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Output only. [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusin interfaceCommitmentOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Output only. [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, orEXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for status.
-
hasStatusMessage
public boolean hasStatusMessage()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
hasStatusMessagein interfaceCommitmentOrBuilder- Returns:
- Whether the statusMessage field is set.
-
getStatusMessage
Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessagein interfaceCommitmentOrBuilder- Returns:
- The statusMessage.
-
getStatusMessageBytes
public com.google.protobuf.ByteString getStatusMessageBytes()Output only. [Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessageBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for statusMessage.
-
hasType
public boolean hasType()The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceCommitmentOrBuilder- Returns:
- Whether the type field is set.
-
getType
The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceCommitmentOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following:ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3,ACCELERATOR_OPTIMIZED_A3_MEGA,COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D,COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE,GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2,GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, GRAPHICS_OPTIMIZED_G4,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for type.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Commitment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Commitment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Commitment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Commitment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-