Package com.google.cloud.compute.v1
Class Commitment
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.Commitment
-
- All Implemented Interfaces:
CommitmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Commitment extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommitment.BuilderRepresents a regional Commitment resource.static classCommitment.CategoryThe category of the commitment.static classCommitment.PlanThe plan for this commitment, which determines duration and discount rate.static classCommitment.Status[Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined).static classCommitment.TypeThe type of commitment, which affects the discount rate and the eligible resources.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTO_RENEW_FIELD_NUMBERstatic intCATEGORY_FIELD_NUMBERstatic intCREATION_TIMESTAMP_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intEND_TIMESTAMP_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intKIND_FIELD_NUMBERstatic intLICENSE_RESOURCE_FIELD_NUMBERstatic intMERGE_SOURCE_COMMITMENTS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPLAN_FIELD_NUMBERstatic intREGION_FIELD_NUMBERstatic intRESERVATIONS_FIELD_NUMBERstatic intRESOURCES_FIELD_NUMBERstatic intSELF_LINK_FIELD_NUMBERstatic intSPLIT_SOURCE_COMMITMENT_FIELD_NUMBERstatic intSTART_TIMESTAMP_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBERstatic intSTATUS_MESSAGE_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.static CommitmentgetDefaultInstance()CommitmentgetDefaultInstanceForType()StringgetDescription()An optional description of this resource.com.google.protobuf.ByteStringgetDescriptionBytes()An optional description of this resource.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.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.com.google.protobuf.Parser<Commitment>getParserForType()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.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.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.intgetSerializedSize()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.inthashCode()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()static Commitment.BuildernewBuilder()static Commitment.BuildernewBuilder(Commitment prototype)Commitment.BuildernewBuilderForType()protected Commitment.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CommitmentparseDelimitedFrom(InputStream input)static CommitmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommitmentparseFrom(byte[] data)static CommitmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommitmentparseFrom(com.google.protobuf.ByteString data)static CommitmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommitmentparseFrom(com.google.protobuf.CodedInputStream input)static CommitmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommitmentparseFrom(InputStream input)static CommitmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommitmentparseFrom(ByteBuffer data)static CommitmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Commitment>parser()Commitment.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AUTO_RENEW_FIELD_NUMBER
public static final int AUTO_RENEW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIMESTAMP_FIELD_NUMBER
public static final int END_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LICENSE_RESOURCE_FIELD_NUMBER
public static final int LICENSE_RESOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER
public static final int MERGE_SOURCE_COMMITMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLAN_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVATIONS_FIELD_NUMBER
public static final int RESERVATIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER
public static final int SPLIT_SOURCE_COMMITMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIMESTAMP_FIELD_NUMBER
public static final int START_TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getReservationsList
public List<Reservation> getReservationsList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsListin 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
-
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
-
getReservationsOrBuilder
public ReservationOrBuilder getReservationsOrBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;- Specified by:
getReservationsOrBuilderin interfaceCommitmentOrBuilder
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Commitment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Commitment parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Commitment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Commitment parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Commitment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Commitment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Commitment.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Commitment.Builder newBuilder()
-
newBuilder
public static Commitment.Builder newBuilder(Commitment prototype)
-
toBuilder
public Commitment.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Commitment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Commitment getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Commitment> parser()
-
getParserForType
public com.google.protobuf.Parser<Commitment> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Commitment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-