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 type
google.cloud.compute.v1.Commitment| Modifier and Type | Method and Description |
|---|---|
Commitment.Builder |
addAllMergeSourceCommitments(Iterable<String> values)
List of source commitments to be merged into a new commitment.
|
Commitment.Builder |
addAllReservations(Iterable<? extends Reservation> values)
List of reservations in this commitment.
|
Commitment.Builder |
addAllResources(Iterable<? extends ResourceCommitment> values)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
addMergeSourceCommitments(String value)
List of source commitments to be merged into a new commitment.
|
Commitment.Builder |
addMergeSourceCommitmentsBytes(com.google.protobuf.ByteString value)
List of source commitments to be merged into a new commitment.
|
Commitment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Commitment.Builder |
addReservations(int index,
Reservation.Builder builderForValue)
List of reservations in this commitment.
|
Commitment.Builder |
addReservations(int index,
Reservation value)
List of reservations in this commitment.
|
Commitment.Builder |
addReservations(Reservation.Builder builderForValue)
List of reservations in this commitment.
|
Commitment.Builder |
addReservations(Reservation value)
List of reservations in this commitment.
|
Reservation.Builder |
addReservationsBuilder()
List of reservations in this commitment.
|
Reservation.Builder |
addReservationsBuilder(int index)
List of reservations in this commitment.
|
Commitment.Builder |
addResources(int index,
ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
addResources(int index,
ResourceCommitment value)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
addResources(ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
addResources(ResourceCommitment value)
A list of commitment amounts for particular resources.
|
ResourceCommitment.Builder |
addResourcesBuilder()
A list of commitment amounts for particular resources.
|
ResourceCommitment.Builder |
addResourcesBuilder(int index)
A list of commitment amounts for particular resources.
|
Commitment |
build() |
Commitment |
buildPartial() |
Commitment.Builder |
clear() |
Commitment.Builder |
clearAutoRenew()
Specifies whether to enable automatic renewal for the commitment.
|
Commitment.Builder |
clearCategory()
The category of the commitment.
|
Commitment.Builder |
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment.Builder |
clearDescription()
An optional description of this resource.
|
Commitment.Builder |
clearEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Commitment.Builder |
clearId()
[Output Only] The unique identifier for the resource.
|
Commitment.Builder |
clearKind()
[Output Only] Type of the resource.
|
Commitment.Builder |
clearLicenseResource()
The license specification required as part of a license commitment.
|
Commitment.Builder |
clearMergeSourceCommitments()
List of source commitments to be merged into a new commitment.
|
Commitment.Builder |
clearName()
Name of the resource.
|
Commitment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Commitment.Builder |
clearPlan()
The plan for this commitment, which determines duration and discount rate.
|
Commitment.Builder |
clearRegion()
[Output Only] URL of the region where this commitment may be used.
|
Commitment.Builder |
clearReservations()
List of reservations in this commitment.
|
Commitment.Builder |
clearResources()
A list of commitment amounts for particular resources.
|
Commitment.Builder |
clearSelfLink()
[Output Only] Server-defined URL for the resource.
|
Commitment.Builder |
clearSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
|
Commitment.Builder |
clearStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment.Builder |
clearStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).
|
Commitment.Builder |
clearStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
Commitment.Builder |
clearType()
The type of commitment, which affects the discount rate and the eligible resources.
|
Commitment.Builder |
clone() |
boolean |
getAutoRenew()
Specifies whether to enable automatic renewal for the commitment.
|
String |
getCategory()
The category of the commitment.
|
com.google.protobuf.ByteString |
getCategoryBytes()
The category of the commitment.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
com.google.protobuf.ByteString |
getEndTimestampBytes()
[Output Only] Commitment end time in RFC3339 text format.
|
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
LicenseResourceCommitment |
getLicenseResource()
The license specification required as part of a license commitment.
|
LicenseResourceCommitment.Builder |
getLicenseResourceBuilder()
The license specification required as part of a license commitment.
|
LicenseResourceCommitmentOrBuilder |
getLicenseResourceOrBuilder()
The license specification required as part of a license commitment.
|
String |
getMergeSourceCommitments(int index)
List of source commitments to be merged into a new commitment.
|
com.google.protobuf.ByteString |
getMergeSourceCommitmentsBytes(int index)
List of source commitments to be merged into a new commitment.
|
int |
getMergeSourceCommitmentsCount()
List of source commitments to be merged into a new commitment.
|
com.google.protobuf.ProtocolStringList |
getMergeSourceCommitmentsList()
List of source commitments to be merged into a new commitment.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
String |
getPlan()
The plan for this commitment, which determines duration and discount rate.
|
com.google.protobuf.ByteString |
getPlanBytes()
The plan for this commitment, which determines duration and discount rate.
|
String |
getRegion()
[Output Only] URL of the region where this commitment may be used.
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] URL of the region where this commitment may be used.
|
Reservation |
getReservations(int index)
List of reservations in this commitment.
|
Reservation.Builder |
getReservationsBuilder(int index)
List of reservations in this commitment.
|
List<Reservation.Builder> |
getReservationsBuilderList()
List of reservations in this commitment.
|
int |
getReservationsCount()
List of reservations in this commitment.
|
List<Reservation> |
getReservationsList()
List of reservations in this commitment.
|
ReservationOrBuilder |
getReservationsOrBuilder(int index)
List of reservations in this commitment.
|
List<? extends ReservationOrBuilder> |
getReservationsOrBuilderList()
List of reservations in this commitment.
|
ResourceCommitment |
getResources(int index)
A list of commitment amounts for particular resources.
|
ResourceCommitment.Builder |
getResourcesBuilder(int index)
A list of commitment amounts for particular resources.
|
List<ResourceCommitment.Builder> |
getResourcesBuilderList()
A list of commitment amounts for particular resources.
|
int |
getResourcesCount()
A list of commitment amounts for particular resources.
|
List<ResourceCommitment> |
getResourcesList()
A list of commitment amounts for particular resources.
|
ResourceCommitmentOrBuilder |
getResourcesOrBuilder(int index)
A list of commitment amounts for particular resources.
|
List<? extends ResourceCommitmentOrBuilder> |
getResourcesOrBuilderList()
A list of commitment amounts for particular resources.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
String |
getSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
|
com.google.protobuf.ByteString |
getSplitSourceCommitmentBytes()
Source commitment to be splitted into a new commitment.
|
String |
getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
com.google.protobuf.ByteString |
getStartTimestampBytes()
[Output Only] Commitment start time in RFC3339 text format.
|
String |
getStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).
|
String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
com.google.protobuf.ByteString |
getStatusMessageBytes()
[Output Only] An optional, human-readable explanation of the status.
|
String |
getType()
The type of commitment, which affects the discount rate and the eligible resources.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of commitment, which affects the discount rate and the eligible resources.
|
boolean |
hasAutoRenew()
Specifies whether to enable automatic renewal for the commitment.
|
boolean |
hasCategory()
The category of the commitment.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasLicenseResource()
The license specification required as part of a license commitment.
|
boolean |
hasName()
Name of the resource.
|
boolean |
hasPlan()
The plan for this commitment, which determines duration and discount rate.
|
boolean |
hasRegion()
[Output Only] URL of the region where this commitment may be used.
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
|
boolean |
hasStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
boolean |
hasStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).
|
boolean |
hasStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
boolean |
hasType()
The type of commitment, which affects the discount rate and the eligible resources.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Commitment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Commitment.Builder |
mergeFrom(Commitment other) |
Commitment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Commitment.Builder |
mergeLicenseResource(LicenseResourceCommitment value)
The license specification required as part of a license commitment.
|
Commitment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Commitment.Builder |
removeReservations(int index)
List of reservations in this commitment.
|
Commitment.Builder |
removeResources(int index)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
setAutoRenew(boolean value)
Specifies whether to enable automatic renewal for the commitment.
|
Commitment.Builder |
setCategory(String value)
The category of the commitment.
|
Commitment.Builder |
setCategoryBytes(com.google.protobuf.ByteString value)
The category of the commitment.
|
Commitment.Builder |
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment.Builder |
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment.Builder |
setDescription(String value)
An optional description of this resource.
|
Commitment.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
Commitment.Builder |
setEndTimestamp(String value)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment.Builder |
setEndTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Commitment.Builder |
setId(long value)
[Output Only] The unique identifier for the resource.
|
Commitment.Builder |
setKind(String value)
[Output Only] Type of the resource.
|
Commitment.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.
|
Commitment.Builder |
setLicenseResource(LicenseResourceCommitment.Builder builderForValue)
The license specification required as part of a license commitment.
|
Commitment.Builder |
setLicenseResource(LicenseResourceCommitment value)
The license specification required as part of a license commitment.
|
Commitment.Builder |
setMergeSourceCommitments(int index,
String value)
List of source commitments to be merged into a new commitment.
|
Commitment.Builder |
setName(String value)
Name of the resource.
|
Commitment.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.
|
Commitment.Builder |
setPlan(String value)
The plan for this commitment, which determines duration and discount rate.
|
Commitment.Builder |
setPlanBytes(com.google.protobuf.ByteString value)
The plan for this commitment, which determines duration and discount rate.
|
Commitment.Builder |
setRegion(String value)
[Output Only] URL of the region where this commitment may be used.
|
Commitment.Builder |
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where this commitment may be used.
|
Commitment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Commitment.Builder |
setReservations(int index,
Reservation.Builder builderForValue)
List of reservations in this commitment.
|
Commitment.Builder |
setReservations(int index,
Reservation value)
List of reservations in this commitment.
|
Commitment.Builder |
setResources(int index,
ResourceCommitment.Builder builderForValue)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
setResources(int index,
ResourceCommitment value)
A list of commitment amounts for particular resources.
|
Commitment.Builder |
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
|
Commitment.Builder |
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
|
Commitment.Builder |
setSplitSourceCommitment(String value)
Source commitment to be splitted into a new commitment.
|
Commitment.Builder |
setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)
Source commitment to be splitted into a new commitment.
|
Commitment.Builder |
setStartTimestamp(String value)
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment.Builder |
setStartTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment.Builder |
setStatus(String value)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).
|
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).
|
Commitment.Builder |
setStatusMessage(String value)
[Output Only] An optional, human-readable explanation of the status.
|
Commitment.Builder |
setStatusMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable explanation of the status.
|
Commitment.Builder |
setType(String value)
The type of commitment, which affects the discount rate and the eligible resources.
|
Commitment.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The type of commitment, which affects the discount rate and the eligible resources.
|
Commitment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Commitment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Commitment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Commitment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Commitment.Builder>public Commitment.Builder mergeFrom(Commitment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public Commitment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Commitment.Builder>IOExceptionpublic 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;hasAutoRenew in interface CommitmentOrBuilderpublic 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;getAutoRenew in interface CommitmentOrBuilderpublic 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;value - The autoRenew to set.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;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;hasCategory in interface CommitmentOrBuilderpublic 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;getCategory in interface CommitmentOrBuilderpublic 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;getCategoryBytes in interface CommitmentOrBuilderpublic 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;value - The category to set.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;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;value - The bytes for category to set.public boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface CommitmentOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface CommitmentOrBuilderpublic Commitment.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The creationTimestamp to set.public Commitment.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;public Commitment.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The bytes for creationTimestamp to set.public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface CommitmentOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface CommitmentOrBuilderpublic Commitment.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public Commitment.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;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;value - The bytes for description to set.public boolean hasEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;hasEndTimestamp in interface CommitmentOrBuilderpublic String getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;getEndTimestamp in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getEndTimestampBytes()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;getEndTimestampBytes in interface CommitmentOrBuilderpublic Commitment.Builder setEndTimestamp(String value)
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;value - The endTimestamp to set.public Commitment.Builder clearEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;public Commitment.Builder setEndTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;value - The bytes for endTimestamp to set.public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface CommitmentOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface CommitmentOrBuilderpublic Commitment.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;value - The id to set.public Commitment.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;public boolean hasKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;hasKind in interface CommitmentOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;getKind in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;getKindBytes in interface CommitmentOrBuilderpublic Commitment.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;value - The kind to set.public Commitment.Builder clearKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;public Commitment.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
hasLicenseResource in interface CommitmentOrBuilderpublic LicenseResourceCommitment getLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
getLicenseResource in interface CommitmentOrBuilderpublic Commitment.Builder setLicenseResource(LicenseResourceCommitment value)
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
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;
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;
public Commitment.Builder clearLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
public LicenseResourceCommitment.Builder getLicenseResourceBuilder()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
public LicenseResourceCommitmentOrBuilder getLicenseResourceOrBuilder()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
getLicenseResourceOrBuilder in interface CommitmentOrBuilderpublic com.google.protobuf.ProtocolStringList getMergeSourceCommitmentsList()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;getMergeSourceCommitmentsList in interface CommitmentOrBuilderpublic int getMergeSourceCommitmentsCount()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;getMergeSourceCommitmentsCount in interface CommitmentOrBuilderpublic String getMergeSourceCommitments(int index)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;getMergeSourceCommitments in interface CommitmentOrBuilderindex - The index of the element to return.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;getMergeSourceCommitmentsBytes in interface CommitmentOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The mergeSourceCommitments to set.public Commitment.Builder addMergeSourceCommitments(String value)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;value - The mergeSourceCommitments to add.public Commitment.Builder addAllMergeSourceCommitments(Iterable<String> values)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;values - The mergeSourceCommitments to add.public Commitment.Builder clearMergeSourceCommitments()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;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;value - The bytes of the mergeSourceCommitments to add.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;hasName in interface CommitmentOrBuilderpublic 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;getName in interface CommitmentOrBuilderpublic 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;getNameBytes in interface CommitmentOrBuilderpublic 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;value - The name to set.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;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;value - The bytes for name to set.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;hasPlan in interface CommitmentOrBuilderpublic 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;getPlan in interface CommitmentOrBuilderpublic 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;getPlanBytes in interface CommitmentOrBuilderpublic 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;value - The plan to set.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;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;value - The bytes for plan to set.public boolean hasRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;hasRegion in interface CommitmentOrBuilderpublic String getRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;getRegion in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;getRegionBytes in interface CommitmentOrBuilderpublic Commitment.Builder setRegion(String value)
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;value - The region to set.public Commitment.Builder clearRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;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;value - The bytes for region to set.public List<Reservation> getReservationsList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;getReservationsList in interface CommitmentOrBuilderpublic int getReservationsCount()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;getReservationsCount in interface CommitmentOrBuilderpublic Reservation getReservations(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;getReservations in interface CommitmentOrBuilderpublic Commitment.Builder setReservations(int index, Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder setReservations(int index, Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder addReservations(Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder addReservations(int index, Reservation value)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder addReservations(Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder addReservations(int index, Reservation.Builder builderForValue)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder addAllReservations(Iterable<? extends Reservation> values)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder clearReservations()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Commitment.Builder removeReservations(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Reservation.Builder getReservationsBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public ReservationOrBuilder getReservationsOrBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;getReservationsOrBuilder in interface CommitmentOrBuilderpublic List<? extends ReservationOrBuilder> getReservationsOrBuilderList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;getReservationsOrBuilderList in interface CommitmentOrBuilderpublic Reservation.Builder addReservationsBuilder()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public Reservation.Builder addReservationsBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;public List<Reservation.Builder> getReservationsBuilderList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;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;getResourcesList in interface CommitmentOrBuilderpublic 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;getResourcesCount in interface CommitmentOrBuilderpublic 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;getResources in interface CommitmentOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getResourcesOrBuilder in interface CommitmentOrBuilderpublic 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;getResourcesOrBuilderList in interface CommitmentOrBuilderpublic 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;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;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;public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface CommitmentOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface CommitmentOrBuilderpublic Commitment.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The selfLink to set.public Commitment.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;public Commitment.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The bytes for selfLink to set.public boolean hasSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;hasSplitSourceCommitment in interface CommitmentOrBuilderpublic String getSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;getSplitSourceCommitment in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getSplitSourceCommitmentBytes()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;getSplitSourceCommitmentBytes in interface CommitmentOrBuilderpublic Commitment.Builder setSplitSourceCommitment(String value)
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;value - The splitSourceCommitment to set.public Commitment.Builder clearSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;public Commitment.Builder setSplitSourceCommitmentBytes(com.google.protobuf.ByteString value)
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;value - The bytes for splitSourceCommitment to set.public boolean hasStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;hasStartTimestamp in interface CommitmentOrBuilderpublic String getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;getStartTimestamp in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getStartTimestampBytes()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;getStartTimestampBytes in interface CommitmentOrBuilderpublic Commitment.Builder setStartTimestamp(String value)
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;value - The startTimestamp to set.public Commitment.Builder clearStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;public Commitment.Builder setStartTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;value - The bytes for startTimestamp to set.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;hasStatus in interface CommitmentOrBuilderpublic 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;getStatus in interface CommitmentOrBuilderpublic 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;getStatusBytes in interface CommitmentOrBuilderpublic 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;value - The status to set.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;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;value - The bytes for status to set.public boolean hasStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;hasStatusMessage in interface CommitmentOrBuilderpublic String getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;getStatusMessage in interface CommitmentOrBuilderpublic com.google.protobuf.ByteString getStatusMessageBytes()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;getStatusMessageBytes in interface CommitmentOrBuilderpublic Commitment.Builder setStatusMessage(String value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;value - The statusMessage to set.public Commitment.Builder clearStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;public Commitment.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;value - The bytes for statusMessage to set.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;hasType in interface CommitmentOrBuilderpublic 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;getType in interface CommitmentOrBuilderpublic 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;getTypeBytes in interface CommitmentOrBuilderpublic 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;value - The type to set.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;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;value - The bytes for type to set.public final Commitment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>public final Commitment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Commitment.Builder>Copyright © 2023 Google LLC. All rights reserved.