public interface CostOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getCostPerMillionInputTokens()
public abstract Amount getCostPerMillionInputTokens()Optional. The cost per million input tokens. $/input token = ($/output token) / output-to-input-cost-ratio.
.google.cloud.gkerecommender.v1.Amount cost_per_million_input_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Amount |
The costPerMillionInputTokens. |
getCostPerMillionInputTokensOrBuilder()
public abstract AmountOrBuilder getCostPerMillionInputTokensOrBuilder()Optional. The cost per million input tokens. $/input token = ($/output token) / output-to-input-cost-ratio.
.google.cloud.gkerecommender.v1.Amount cost_per_million_input_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AmountOrBuilder |
|
getCostPerMillionOutputTokens()
public abstract Amount getCostPerMillionOutputTokens()Optional. The cost per million output tokens, calculated as: $/output token = GPU $/s / (1/output-to-input-cost-ratio * input tokens/s + output tokens/s)
.google.cloud.gkerecommender.v1.Amount cost_per_million_output_tokens = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Amount |
The costPerMillionOutputTokens. |
getCostPerMillionOutputTokensOrBuilder()
public abstract AmountOrBuilder getCostPerMillionOutputTokensOrBuilder()Optional. The cost per million output tokens, calculated as: $/output token = GPU $/s / (1/output-to-input-cost-ratio * input tokens/s + output tokens/s)
.google.cloud.gkerecommender.v1.Amount cost_per_million_output_tokens = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AmountOrBuilder |
|
getOutputInputCostRatio()
public abstract float getOutputInputCostRatio() Optional. The output-to-input cost ratio. This determines how the total GPU
cost is split between input and output tokens. If not provided, 4.0 is
used, assuming a 4:1 output:input cost ratio.
optional float output_input_cost_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
float |
The outputInputCostRatio. |
getPricingModel()
public abstract String getPricingModel() Optional. The pricing model used to calculate the cost. Can be one of:
3-years-cud, 1-year-cud, on-demand, spot. If not provided, spot
will be used.
string pricing_model = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The pricingModel. |
getPricingModelBytes()
public abstract ByteString getPricingModelBytes() Optional. The pricing model used to calculate the cost. Can be one of:
3-years-cud, 1-year-cud, on-demand, spot. If not provided, spot
will be used.
string pricing_model = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pricingModel. |
hasCostPerMillionInputTokens()
public abstract boolean hasCostPerMillionInputTokens()Optional. The cost per million input tokens. $/input token = ($/output token) / output-to-input-cost-ratio.
.google.cloud.gkerecommender.v1.Amount cost_per_million_input_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the costPerMillionInputTokens field is set. |
hasCostPerMillionOutputTokens()
public abstract boolean hasCostPerMillionOutputTokens()Optional. The cost per million output tokens, calculated as: $/output token = GPU $/s / (1/output-to-input-cost-ratio * input tokens/s + output tokens/s)
.google.cloud.gkerecommender.v1.Amount cost_per_million_output_tokens = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the costPerMillionOutputTokens field is set. |
hasOutputInputCostRatio()
public abstract boolean hasOutputInputCostRatio() Optional. The output-to-input cost ratio. This determines how the total GPU
cost is split between input and output tokens. If not provided, 4.0 is
used, assuming a 4:1 output:input cost ratio.
optional float output_input_cost_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputInputCostRatio field is set. |