Interface CostOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Cost, Cost.Builder

@Generated public interface CostOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasCostPerMillionOutputTokens

      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:
      Whether the costPerMillionOutputTokens field is set.
    • getCostPerMillionOutputTokens

      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:
      The costPerMillionOutputTokens.
    • getCostPerMillionOutputTokensOrBuilder

      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];
    • hasCostPerMillionInputTokens

      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:
      Whether the costPerMillionInputTokens field is set.
    • getCostPerMillionInputTokens

      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:
      The costPerMillionInputTokens.
    • getCostPerMillionInputTokensOrBuilder

      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];
    • getPricingModel

      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:
      The pricingModel.
    • getPricingModelBytes

      com.google.protobuf.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:
      The bytes for pricingModel.
    • hasOutputInputCostRatio

      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:
      Whether the outputInputCostRatio field is set.
    • getOutputInputCostRatio

      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:
      The outputInputCostRatio.