public static interface Sku.SkuPrice.ComputeEngineLicenseUsageFeeOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getLicenseCode()
public abstract String getLicenseCode()Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.
Example: "1234567890123456789"
string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The licenseCode. |
getLicenseCodeBytes()
public abstract ByteString getLicenseCodeBytes()Output only. The license code of the target Compute Engine License. Note that this is the numeric license code itself in uint64 format used to reference licenses attached to images, not the resource name of the related Compute Engine LicenseCode resource.
Example: "1234567890123456789"
string license_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for licenseCode. |
getMachineResource()
public abstract Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource getMachineResource()Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource |
The machineResource. |
getMachineResourceRange()
public abstract Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange getMachineResourceRange()Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".
NOTE: This is distinct from a SKU with tiered pricing.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange |
The machineResourceRange. |
getMachineResourceRangeOrBuilder()
public abstract Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRangeOrBuilder getMachineResourceRangeOrBuilder()Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".
NOTE: This is distinct from a SKU with tiered pricing.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRangeOrBuilder |
|
getMachineResourceValue()
public abstract int getMachineResourceValue()Output only. The machine resource type that the SKU applies to, if any. SKUs with a non-default value are referred to as "resource-based" SKUs.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResource machine_resource = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for machineResource. |
getPricePerUnit()
public abstract Money getPricePerUnit()The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.
.google.type.Money price_per_unit = 6;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Money |
The pricePerUnit. |
getPricePerUnitOrBuilder()
public abstract MoneyOrBuilder getPricePerUnitOrBuilder()The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.
.google.type.Money price_per_unit = 6;
| Returns | |
|---|---|
| Type | Description |
com.google.type.MoneyOrBuilder |
|
getPriceStructureCase()
public abstract Sku.SkuPrice.ComputeEngineLicenseUsageFee.PriceStructureCase getPriceStructureCase()| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.ComputeEngineLicenseUsageFee.PriceStructureCase |
|
getUnit()
public abstract String getUnit()Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.
string unit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The unit. |
getUnitBytes()
public abstract ByteString getUnitBytes()Output only. The price unit of the SKU. See https://ucum.org/ucum.html for the format of the price unit. For linear-priced memory SKUs, the price unit is 'GiBy.h'. For all other SKUs, the price unit is 'h'. This includes linear-priced vCPU and GPU SKUs because these resources have unitless dimensions and the application of these scaling factors does not change the price unit.
string unit = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for unit. |
getUsageCalculation()
public abstract Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation getUsageCalculation()Output only. Determines how the customer's usage is calculated.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation usage_calculation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation |
The usageCalculation. |
getUsageCalculationValue()
public abstract int getUsageCalculationValue()Output only. Determines how the customer's usage is calculated.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.UsageCalculation usage_calculation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for usageCalculation. |
hasMachineResourceRange()
public abstract boolean hasMachineResourceRange()Output only. The range of machine resource values that the SKU applies to. Unset when the SKU is not scoped to a particular machine resource type. The collection of SKUs in effect at any given time targeting the same license and machine resource type will cover all possible values for that machine resource type without overlap. Such a collection of SKUs form a "tiered" price structure over the possible values of the machine resource, with each SKU acting as a "tier".
NOTE: This is distinct from a SKU with tiered pricing.
.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.ComputeEngineLicenseUsageFee.MachineResourceRange machine_resource_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineResourceRange field is set. |
hasPricePerUnit()
public abstract boolean hasPricePerUnit()The price per unit of usage. The customer's usage charge is computed by measuring the customer's consumption denominated in price units and multiplying by this price.
.google.type.Money price_per_unit = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the pricePerUnit field is set. |