public interface CommitmentOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
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.
|
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.
|
List<String> |
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.
|
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.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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;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;boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;boolean hasEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;String getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;com.google.protobuf.ByteString getEndTimestampBytes()
[Output Only] Commitment end time in RFC3339 text format.
optional string end_timestamp = 468096690;boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;boolean hasKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;String getKind()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#commitment for commitments.
optional string kind = 3292052;boolean hasLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
LicenseResourceCommitment getLicenseResource()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
LicenseResourceCommitmentOrBuilder getLicenseResourceOrBuilder()
The license specification required as part of a license commitment.
optional .google.cloud.compute.v1.LicenseResourceCommitment license_resource = 437955148;
List<String> getMergeSourceCommitmentsList()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;int getMergeSourceCommitmentsCount()
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;String getMergeSourceCommitments(int index)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;index - The index of the element to return.com.google.protobuf.ByteString getMergeSourceCommitmentsBytes(int index)
List of source commitments to be merged into a new commitment.
repeated string merge_source_commitments = 188093761;index - The index of the value to return.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;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;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;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;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;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;boolean hasRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;String getRegion()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where this commitment may be used.
optional string region = 138946292;List<Reservation> getReservationsList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;Reservation getReservations(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;int getReservationsCount()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;List<? extends ReservationOrBuilder> getReservationsOrBuilderList()
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;ReservationOrBuilder getReservationsOrBuilder(int index)
List of reservations in this commitment.
repeated .google.cloud.compute.v1.Reservation reservations = 399717927;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;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;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;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;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;boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;boolean hasSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;String getSplitSourceCommitment()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;com.google.protobuf.ByteString getSplitSourceCommitmentBytes()
Source commitment to be splitted into a new commitment.
optional string split_source_commitment = 402611156;boolean hasStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;String getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;com.google.protobuf.ByteString getStartTimestampBytes()
[Output Only] Commitment start time in RFC3339 text format.
optional string start_timestamp = 83645817;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;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;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;boolean hasStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;String getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;com.google.protobuf.ByteString getStatusMessageBytes()
[Output Only] An optional, human-readable explanation of the status.
optional string status_message = 297428154;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;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;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;Copyright © 2023 Google LLC. All rights reserved.