Package com.google.cloud.compute.v1
Class Commitment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
- com.google.cloud.compute.v1.Commitment.Builder
-
- All Implemented Interfaces:
CommitmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Commitment
public static final class Commitment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder> implements CommitmentOrBuilder
Represents a regional Commitment resource. Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
Protobuf typegoogle.cloud.compute.v1.Commitment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Commitment.BuilderaddAllMergeSourceCommitments(Iterable<String> values)List of source commitments to be merged into a new commitment.Commitment.BuilderaddAllReservations(Iterable<? extends Reservation> values)List of reservations in this commitment.Commitment.BuilderaddAllResources(Iterable<? extends ResourceCommitment> values)A list of commitment amounts for particular resources.Commitment.BuilderaddMergeSourceCommitments(String value)List of source commitments to be merged into a new commitment.Commitment.BuilderaddMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value)List of source commitments to be merged into a new commitment.Commitment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Commitment.BuilderaddReservations(int index, Reservation value)List of reservations in this commitment.Commitment.BuilderaddReservations(int index, Reservation.Builder builderForValue)List of reservations in this commitment.Commitment.BuilderaddReservations(Reservation value)List of reservations in this commitment.Commitment.BuilderaddReservations(Reservation.Builder builderForValue)List of reservations in this commitment.Reservation.BuilderaddReservationsBuilder()List of reservations in this commitment.Reservation.BuilderaddReservationsBuilder(int index)List of reservations in this commitment.Commitment.BuilderaddResources(int index, ResourceCommitment value)A list of commitment amounts for particular resources.Commitment.BuilderaddResources(int index, ResourceCommitment.Builder builderForValue)A list of commitment amounts for particular resources.Commitment.BuilderaddResources(ResourceCommitment value)A list of commitment amounts for particular resources.Commitment.BuilderaddResources(ResourceCommitment.Builder builderForValue)A list of commitment amounts for particular resources.ResourceCommitment.BuilderaddResourcesBuilder()A list of commitment amounts for particular resources.ResourceCommitment.BuilderaddResourcesBuilder(int index)A list of commitment amounts for particular resources.Commitmentbuild()CommitmentbuildPartial()Commitment.Builderclear()Commitment.BuilderclearAutoRenew()Specifies whether to enable automatic renewal for the commitment.Commitment.BuilderclearCategory()The category of the commitment.Commitment.BuilderclearCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.Commitment.BuilderclearDescription()An optional description of this resource.Commitment.BuilderclearEndTimestamp()[Output Only] Commitment end time in RFC3339 text format.Commitment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Commitment.BuilderclearId()[Output Only] The unique identifier for the resource.Commitment.BuilderclearKind()[Output Only] Type of the resource.Commitment.BuilderclearLicenseResource()The license specification required as part of a license commitment.Commitment.BuilderclearMergeSourceCommitments()List of source commitments to be merged into a new commitment.Commitment.BuilderclearName()Name of the resource.Commitment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Commitment.BuilderclearPlan()The plan for this commitment, which determines duration and discount rate.Commitment.BuilderclearRegion()[Output Only] URL of the region where this commitment may be used.Commitment.BuilderclearReservations()List of reservations in this commitment.Commitment.BuilderclearResources()A list of commitment amounts for particular resources.Commitment.BuilderclearSelfLink()[Output Only] Server-defined URL for the resource.Commitment.BuilderclearSplitSourceCommitment()Source commitment to be split into a new commitment.Commitment.BuilderclearStartTimestamp()[Output Only] Commitment start time in RFC3339 text format.Commitment.BuilderclearStatus()[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).Commitment.BuilderclearStatusMessage()[Output Only] An optional, human-readable explanation of the status.Commitment.BuilderclearType()The type of commitment, which affects the discount rate and the eligible resources.Commitment.Builderclone()booleangetAutoRenew()Specifies whether to enable automatic renewal for the commitment.StringgetCategory()The category of the commitment.com.google.protobuf.ByteStringgetCategoryBytes()The category of the commitment.StringgetCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.com.google.protobuf.ByteStringgetCreationTimestampBytes()[Output Only] Creation timestamp in RFC3339 text format.CommitmentgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEndTimestamp()[Output Only] Commitment end time in RFC3339 text format.com.google.protobuf.ByteStringgetEndTimestampBytes()[Output Only] Commitment end time in RFC3339 text format.longgetId()[Output Only] The unique identifier for the resource.StringgetKind()[Output Only] Type of the resource.com.google.protobuf.ByteStringgetKindBytes()[Output Only] Type of the resource.LicenseResourceCommitmentgetLicenseResource()The license specification required as part of a license commitment.LicenseResourceCommitment.BuildergetLicenseResourceBuilder()The license specification required as part of a license commitment.LicenseResourceCommitmentOrBuildergetLicenseResourceOrBuilder()The license specification required as part of a license commitment.StringgetMergeSourceCommitments(int index)List of source commitments to be merged into a new commitment.com.google.protobuf.ByteStringgetMergeSourceCommitmentsBytes(int index)List of source commitments to be merged into a new commitment.intgetMergeSourceCommitmentsCount()List of source commitments to be merged into a new commitment.com.google.protobuf.ProtocolStringListgetMergeSourceCommitmentsList()List of source commitments to be merged into a new commitment.StringgetName()Name of the resource.com.google.protobuf.ByteStringgetNameBytes()Name of the resource.StringgetPlan()The plan for this commitment, which determines duration and discount rate.com.google.protobuf.ByteStringgetPlanBytes()The plan for this commitment, which determines duration and discount rate.StringgetRegion()[Output Only] URL of the region where this commitment may be used.com.google.protobuf.ByteStringgetRegionBytes()[Output Only] URL of the region where this commitment may be used.ReservationgetReservations(int index)List of reservations in this commitment.Reservation.BuildergetReservationsBuilder(int index)List of reservations in this commitment.List<Reservation.Builder>getReservationsBuilderList()List of reservations in this commitment.intgetReservationsCount()List of reservations in this commitment.List<Reservation>getReservationsList()List of reservations in this commitment.ReservationOrBuildergetReservationsOrBuilder(int index)List of reservations in this commitment.List<? extends ReservationOrBuilder>getReservationsOrBuilderList()List of reservations in this commitment.ResourceCommitmentgetResources(int index)A list of commitment amounts for particular resources.ResourceCommitment.BuildergetResourcesBuilder(int index)A list of commitment amounts for particular resources.List<ResourceCommitment.Builder>getResourcesBuilderList()A list of commitment amounts for particular resources.intgetResourcesCount()A list of commitment amounts for particular resources.List<ResourceCommitment>getResourcesList()A list of commitment amounts for particular resources.ResourceCommitmentOrBuildergetResourcesOrBuilder(int index)A list of commitment amounts for particular resources.List<? extends ResourceCommitmentOrBuilder>getResourcesOrBuilderList()A list of commitment amounts for particular resources.StringgetSelfLink()[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteStringgetSelfLinkBytes()[Output Only] Server-defined URL for the resource.StringgetSplitSourceCommitment()Source commitment to be split into a new commitment.com.google.protobuf.ByteStringgetSplitSourceCommitmentBytes()Source commitment to be split into a new commitment.StringgetStartTimestamp()[Output Only] Commitment start time in RFC3339 text format.com.google.protobuf.ByteStringgetStartTimestampBytes()[Output Only] Commitment start time in RFC3339 text format.StringgetStatus()[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).com.google.protobuf.ByteStringgetStatusBytes()[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).StringgetStatusMessage()[Output Only] An optional, human-readable explanation of the status.com.google.protobuf.ByteStringgetStatusMessageBytes()[Output Only] An optional, human-readable explanation of the status.StringgetType()The type of commitment, which affects the discount rate and the eligible resources.com.google.protobuf.ByteStringgetTypeBytes()The type of commitment, which affects the discount rate and the eligible resources.booleanhasAutoRenew()Specifies whether to enable automatic renewal for the commitment.booleanhasCategory()The category of the commitment.booleanhasCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.booleanhasDescription()An optional description of this resource.booleanhasEndTimestamp()[Output Only] Commitment end time in RFC3339 text format.booleanhasId()[Output Only] The unique identifier for the resource.booleanhasKind()[Output Only] Type of the resource.booleanhasLicenseResource()The license specification required as part of a license commitment.booleanhasName()Name of the resource.booleanhasPlan()The plan for this commitment, which determines duration and discount rate.booleanhasRegion()[Output Only] URL of the region where this commitment may be used.booleanhasSelfLink()[Output Only] Server-defined URL for the resource.booleanhasSplitSourceCommitment()Source commitment to be split into a new commitment.booleanhasStartTimestamp()[Output Only] Commitment start time in RFC3339 text format.booleanhasStatus()[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).booleanhasStatusMessage()[Output Only] An optional, human-readable explanation of the status.booleanhasType()The type of commitment, which affects the discount rate and the eligible resources.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Commitment.BuildermergeFrom(Commitment other)Commitment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Commitment.BuildermergeFrom(com.google.protobuf.Message other)Commitment.BuildermergeLicenseResource(LicenseResourceCommitment value)The license specification required as part of a license commitment.Commitment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Commitment.BuilderremoveReservations(int index)List of reservations in this commitment.Commitment.BuilderremoveResources(int index)A list of commitment amounts for particular resources.Commitment.BuildersetAutoRenew(boolean value)Specifies whether to enable automatic renewal for the commitment.Commitment.BuildersetCategory(String value)The category of the commitment.Commitment.BuildersetCategoryBytes(com.google.protobuf.ByteString value)The category of the commitment.Commitment.BuildersetCreationTimestamp(String value)[Output Only] Creation timestamp in RFC3339 text format.Commitment.BuildersetCreationTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Creation timestamp in RFC3339 text format.Commitment.BuildersetDescription(String value)An optional description of this resource.Commitment.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)An optional description of this resource.Commitment.BuildersetEndTimestamp(String value)[Output Only] Commitment end time in RFC3339 text format.Commitment.BuildersetEndTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Commitment end time in RFC3339 text format.Commitment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Commitment.BuildersetId(long value)[Output Only] The unique identifier for the resource.Commitment.BuildersetKind(String value)[Output Only] Type of the resource.Commitment.BuildersetKindBytes(com.google.protobuf.ByteString value)[Output Only] Type of the resource.Commitment.BuildersetLicenseResource(LicenseResourceCommitment value)The license specification required as part of a license commitment.Commitment.BuildersetLicenseResource(LicenseResourceCommitment.Builder builderForValue)The license specification required as part of a license commitment.Commitment.BuildersetMergeSourceCommitments(int index, String value)List of source commitments to be merged into a new commitment.Commitment.BuildersetName(String value)Name of the resource.Commitment.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the resource.Commitment.BuildersetPlan(String value)The plan for this commitment, which determines duration and discount rate.Commitment.BuildersetPlanBytes(com.google.protobuf.ByteString value)The plan for this commitment, which determines duration and discount rate.Commitment.BuildersetRegion(String value)[Output Only] URL of the region where this commitment may be used.Commitment.BuildersetRegionBytes(com.google.protobuf.ByteString value)[Output Only] URL of the region where this commitment may be used.Commitment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Commitment.BuildersetReservations(int index, Reservation value)List of reservations in this commitment.Commitment.BuildersetReservations(int index, Reservation.Builder builderForValue)List of reservations in this commitment.Commitment.BuildersetResources(int index, ResourceCommitment value)A list of commitment amounts for particular resources.Commitment.BuildersetResources(int index, ResourceCommitment.Builder builderForValue)A list of commitment amounts for particular resources.Commitment.BuildersetSelfLink(String value)[Output Only] Server-defined URL for the resource.Commitment.BuildersetSelfLinkBytes(com.google.protobuf.ByteString value)[Output Only] Server-defined URL for the resource.Commitment.BuildersetSplitSourceCommitment(String value)Source commitment to be split into a new commitment.Commitment.BuildersetSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)Source commitment to be split into a new commitment.Commitment.BuildersetStartTimestamp(String value)[Output Only] Commitment start time in RFC3339 text format.Commitment.BuildersetStartTimestampBytes(com.google.protobuf.ByteString value)[Output Only] Commitment start time in RFC3339 text format.Commitment.BuildersetStatus(String value)[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).Commitment.BuildersetStatusBytes(com.google.protobuf.ByteString value)[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).Commitment.BuildersetStatusMessage(String value)[Output Only] An optional, human-readable explanation of the status.Commitment.BuildersetStatusMessageBytes(com.google.protobuf.ByteString value)[Output Only] An optional, human-readable explanation of the status.Commitment.BuildersetType(String value)The type of commitment, which affects the discount rate and the eligible resources.Commitment.BuildersetTypeBytes(com.google.protobuf.ByteString value)The type of commitment, which affects the discount rate and the eligible resources.Commitment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
clear
public Commitment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.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.GeneratedMessageV3.Builder<Commitment.Builder>
-
getDefaultInstanceForType
public Commitment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Commitment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Commitment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Commitment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
setField
public Commitment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
clearField
public Commitment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
clearOneof
public Commitment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
setRepeatedField
public Commitment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
addRepeatedField
public Commitment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
mergeFrom
public Commitment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Commitment.Builder>
-
mergeFrom
public Commitment.Builder mergeFrom(Commitment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
mergeFrom
public Commitment.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<Commitment.Builder>- Throws:
IOException
-
hasAutoRenew
public boolean hasAutoRenew()
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
optional bool auto_renew = 495520765;- Specified by:
hasAutoRenewin interfaceCommitmentOrBuilder- Returns:
- Whether the autoRenew field is set.
-
getAutoRenew
public boolean getAutoRenew()
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
optional bool auto_renew = 495520765;- Specified by:
getAutoRenewin interfaceCommitmentOrBuilder- Returns:
- The autoRenew.
-
setAutoRenew
public Commitment.Builder setAutoRenew(boolean value)
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
optional bool auto_renew = 495520765;- Parameters:
value- The autoRenew to set.- Returns:
- This builder for chaining.
-
clearAutoRenew
public Commitment.Builder clearAutoRenew()
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
optional bool auto_renew = 495520765;- Returns:
- This builder for chaining.
-
hasCategory
public boolean hasCategory()
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 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
public String getCategory()
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. 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. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. Check the Category enum for the list of possible values.
optional string category = 50511102;- Specified by:
getCategoryBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for category.
-
setCategory
public Commitment.Builder setCategory(String value)
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. Check the Category enum for the list of possible values.
optional string category = 50511102;- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
public Commitment.Builder clearCategory()
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. Check the Category enum for the list of possible values.
optional string category = 50511102;- Returns:
- This builder for chaining.
-
setCategoryBytes
public Commitment.Builder setCategoryBytes(com.google.protobuf.ByteString value)
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. Check the Category enum for the list of possible values.
optional string category = 50511102;- Parameters:
value- The bytes for category to set.- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceCommitmentOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
public Commitment.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
public Commitment.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
public Commitment.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceCommitmentOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
An optional description of this resource. 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 this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Commitment.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Commitment.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Commitment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasEndTimestamp
public boolean hasEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
hasEndTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the endTimestamp field is set.
-
getEndTimestamp
public String getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
getEndTimestampin interfaceCommitmentOrBuilder- Returns:
- The endTimestamp.
-
getEndTimestampBytes
public com.google.protobuf.ByteString getEndTimestampBytes()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Specified by:
getEndTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for endTimestamp.
-
setEndTimestamp
public Commitment.Builder setEndTimestamp(String value)
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Parameters:
value- The endTimestamp to set.- Returns:
- This builder for chaining.
-
clearEndTimestamp
public Commitment.Builder clearEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Returns:
- This builder for chaining.
-
setEndTimestampBytes
public Commitment.Builder setEndTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;- Parameters:
value- The bytes for endTimestamp to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
[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] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceCommitmentOrBuilder- Returns:
- The id.
-
setId
public Commitment.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Commitment.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()
[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
public String getKind()
[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] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for kind.
-
setKind
public Commitment.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
public Commitment.Builder clearKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
public Commitment.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
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
public LicenseResourceCommitment 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.
-
setLicenseResource
public Commitment.Builder setLicenseResource(LicenseResourceCommitment value)
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
-
setLicenseResource
public Commitment.Builder setLicenseResource(LicenseResourceCommitment.Builder builderForValue)
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
-
mergeLicenseResource
public Commitment.Builder mergeLicenseResource(LicenseResourceCommitment value)
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
-
clearLicenseResource
public Commitment.Builder clearLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
-
getLicenseResourceBuilder
public LicenseResourceCommitment.Builder getLicenseResourceBuilder()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
-
getLicenseResourceOrBuilder
public LicenseResourceCommitmentOrBuilder 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()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsListin interfaceCommitmentOrBuilder- Returns:
- A list containing the mergeSourceCommitments.
-
getMergeSourceCommitmentsCount
public int getMergeSourceCommitmentsCount()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Specified by:
getMergeSourceCommitmentsCountin interfaceCommitmentOrBuilder- Returns:
- The count of mergeSourceCommitments.
-
getMergeSourceCommitments
public String getMergeSourceCommitments(int index)
List of source commitments to be merged into a new commitment.
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)
List of source commitments to be merged into a new commitment.
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.
-
setMergeSourceCommitments
public Commitment.Builder setMergeSourceCommitments(int index, String value)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Parameters:
index- The index to set the value at.value- The mergeSourceCommitments to set.- Returns:
- This builder for chaining.
-
addMergeSourceCommitments
public Commitment.Builder addMergeSourceCommitments(String value)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Parameters:
value- The mergeSourceCommitments to add.- Returns:
- This builder for chaining.
-
addAllMergeSourceCommitments
public Commitment.Builder addAllMergeSourceCommitments(Iterable<String> values)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Parameters:
values- The mergeSourceCommitments to add.- Returns:
- This builder for chaining.
-
clearMergeSourceCommitments
public Commitment.Builder clearMergeSourceCommitments()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Returns:
- This builder for chaining.
-
addMergeSourceCommitmentsBytes
public Commitment.Builder addMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;- Parameters:
value- The bytes of the mergeSourceCommitments to add.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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
public String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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 resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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.
-
setName
public Commitment.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Commitment.Builder clearName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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;- Returns:
- This builder for chaining.
-
setNameBytes
public Commitment.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPlan
public boolean hasPlan()
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_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
public String getPlan()
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_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 plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_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.
-
setPlan
public Commitment.Builder setPlan(String value)
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Parameters:
value- The plan to set.- Returns:
- This builder for chaining.
-
clearPlan
public Commitment.Builder clearPlan()
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Returns:
- This builder for chaining.
-
setPlanBytes
public Commitment.Builder setPlanBytes(com.google.protobuf.ByteString value)
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.
optional string plan = 3443497;- Parameters:
value- The bytes for plan to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Specified by:
hasRegionin interfaceCommitmentOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
public String getRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Specified by:
getRegionin interfaceCommitmentOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for region.
-
setRegion
public Commitment.Builder setRegion(String value)
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public Commitment.Builder clearRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
public Commitment.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
getReservationsList
public List<Reservation> getReservationsList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsListin interfaceCommitmentOrBuilder
-
getReservationsCount
public int getReservationsCount()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsCountin interfaceCommitmentOrBuilder
-
getReservations
public Reservation getReservations(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsin interfaceCommitmentOrBuilder
-
setReservations
public Commitment.Builder setReservations(int index, Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
setReservations
public Commitment.Builder setReservations(int index, Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addReservations
public Commitment.Builder addReservations(Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addReservations
public Commitment.Builder addReservations(int index, Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addReservations
public Commitment.Builder addReservations(Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addReservations
public Commitment.Builder addReservations(int index, Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addAllReservations
public Commitment.Builder addAllReservations(Iterable<? extends Reservation> values)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
clearReservations
public Commitment.Builder clearReservations()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
removeReservations
public Commitment.Builder removeReservations(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
getReservationsBuilder
public Reservation.Builder getReservationsBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
getReservationsOrBuilder
public ReservationOrBuilder getReservationsOrBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsOrBuilderin interfaceCommitmentOrBuilder
-
getReservationsOrBuilderList
public List<? extends ReservationOrBuilder> getReservationsOrBuilderList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsOrBuilderListin interfaceCommitmentOrBuilder
-
addReservationsBuilder
public Reservation.Builder addReservationsBuilder()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
addReservationsBuilder
public Reservation.Builder addReservationsBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
getReservationsBuilderList
public List<Reservation.Builder> getReservationsBuilderList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;
-
getResourcesList
public List<ResourceCommitment> getResourcesList()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesListin interfaceCommitmentOrBuilder
-
getResourcesCount
public int getResourcesCount()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesCountin interfaceCommitmentOrBuilder
-
getResources
public ResourceCommitment getResources(int index)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesin interfaceCommitmentOrBuilder
-
setResources
public Commitment.Builder setResources(int index, ResourceCommitment value)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
setResources
public Commitment.Builder setResources(int index, ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addResources
public Commitment.Builder addResources(ResourceCommitment value)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addResources
public Commitment.Builder addResources(int index, ResourceCommitment value)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addResources
public Commitment.Builder addResources(ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addResources
public Commitment.Builder addResources(int index, ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addAllResources
public Commitment.Builder addAllResources(Iterable<? extends ResourceCommitment> values)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
clearResources
public Commitment.Builder clearResources()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
removeResources
public Commitment.Builder removeResources(int index)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
getResourcesBuilder
public ResourceCommitment.Builder getResourcesBuilder(int index)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
getResourcesOrBuilder
public ResourceCommitmentOrBuilder getResourcesOrBuilder(int index)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesOrBuilderin interfaceCommitmentOrBuilder
-
getResourcesOrBuilderList
public List<? extends ResourceCommitmentOrBuilder> getResourcesOrBuilderList()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;- Specified by:
getResourcesOrBuilderListin interfaceCommitmentOrBuilder
-
addResourcesBuilder
public ResourceCommitment.Builder addResourcesBuilder()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
addResourcesBuilder
public ResourceCommitment.Builder addResourcesBuilder(int index)
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
getResourcesBuilderList
public List<ResourceCommitment.Builder> getResourcesBuilderList()
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965;
-
hasSelfLink
public boolean hasSelfLink()
[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
public String getSelfLink()
[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] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
public Commitment.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
public Commitment.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
public Commitment.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasSplitSourceCommitment
public boolean hasSplitSourceCommitment()
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Specified by:
hasSplitSourceCommitmentin interfaceCommitmentOrBuilder- Returns:
- Whether the splitSourceCommitment field is set.
-
getSplitSourceCommitment
public String getSplitSourceCommitment()
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Specified by:
getSplitSourceCommitmentin interfaceCommitmentOrBuilder- Returns:
- The splitSourceCommitment.
-
getSplitSourceCommitmentBytes
public com.google.protobuf.ByteString getSplitSourceCommitmentBytes()
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Specified by:
getSplitSourceCommitmentBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for splitSourceCommitment.
-
setSplitSourceCommitment
public Commitment.Builder setSplitSourceCommitment(String value)
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Parameters:
value- The splitSourceCommitment to set.- Returns:
- This builder for chaining.
-
clearSplitSourceCommitment
public Commitment.Builder clearSplitSourceCommitment()
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Returns:
- This builder for chaining.
-
setSplitSourceCommitmentBytes
public Commitment.Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)
Source commitment to be split into a new commitment.
optional string split_source_commitment = 402611156;- Parameters:
value- The bytes for splitSourceCommitment to set.- Returns:
- This builder for chaining.
-
hasStartTimestamp
public boolean hasStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
hasStartTimestampin interfaceCommitmentOrBuilder- Returns:
- Whether the startTimestamp field is set.
-
getStartTimestamp
public String getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
getStartTimestampin interfaceCommitmentOrBuilder- Returns:
- The startTimestamp.
-
getStartTimestampBytes
public com.google.protobuf.ByteString getStartTimestampBytes()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Specified by:
getStartTimestampBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for startTimestamp.
-
setStartTimestamp
public Commitment.Builder setStartTimestamp(String value)
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Parameters:
value- The startTimestamp to set.- Returns:
- This builder for chaining.
-
clearStartTimestamp
public Commitment.Builder clearStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Returns:
- This builder for chaining.
-
setStartTimestampBytes
public Commitment.Builder setStartTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;- Parameters:
value- The bytes for startTimestamp to set.- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. 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
public String getStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. 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] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Specified by:
getStatusBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for status.
-
setStatus
public Commitment.Builder setStatus(String value)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public Commitment.Builder clearStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Returns:
- This builder for chaining.
-
setStatusBytes
public Commitment.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. Check the Status enum for the list of possible values.
optional string status = 181260274;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
hasStatusMessage
public boolean hasStatusMessage()
[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
public String getStatusMessage()
[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] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Specified by:
getStatusMessageBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for statusMessage.
-
setStatusMessage
public Commitment.Builder setStatusMessage(String value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The statusMessage to set.- Returns:
- This builder for chaining.
-
clearStatusMessage
public Commitment.Builder clearStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Returns:
- This builder for chaining.
-
setStatusMessageBytes
public Commitment.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;- Parameters:
value- The bytes for statusMessage to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 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
public String getType()
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. 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, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceCommitmentOrBuilder- Returns:
- The bytes for type.
-
setType
public Commitment.Builder setType(String value)
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Commitment.Builder clearType()
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
public Commitment.Builder setTypeBytes(com.google.protobuf.ByteString value)
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Commitment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
mergeUnknownFields
public final Commitment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>
-
-