Class PerformanceRequirements.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder>
com.google.cloud.gkerecommender.v1.PerformanceRequirements.Builder
All Implemented Interfaces:
PerformanceRequirementsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PerformanceRequirements

public static final class PerformanceRequirements.Builder extends com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder> implements PerformanceRequirementsOrBuilder
 Performance requirements for a profile and or model deployment.
 
Protobuf type google.cloud.gkerecommender.v1.PerformanceRequirements
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder>
    • getDefaultInstanceForType

      public PerformanceRequirements getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PerformanceRequirements build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PerformanceRequirements buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PerformanceRequirements.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PerformanceRequirements.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PerformanceRequirements.Builder>
    • mergeFrom

      public PerformanceRequirements.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PerformanceRequirements.Builder>
      Throws:
      IOException
    • hasTargetNtpotMilliseconds

      public boolean hasTargetNtpotMilliseconds()
       Optional. The target Normalized Time Per Output Token (NTPOT) in
       milliseconds. NTPOT is calculated as `request_latency /
       total_output_tokens`. If not provided, this target will not be enforced.
       
      optional int32 target_ntpot_milliseconds = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTargetNtpotMilliseconds in interface PerformanceRequirementsOrBuilder
      Returns:
      Whether the targetNtpotMilliseconds field is set.
    • getTargetNtpotMilliseconds

      public int getTargetNtpotMilliseconds()
       Optional. The target Normalized Time Per Output Token (NTPOT) in
       milliseconds. NTPOT is calculated as `request_latency /
       total_output_tokens`. If not provided, this target will not be enforced.
       
      optional int32 target_ntpot_milliseconds = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetNtpotMilliseconds in interface PerformanceRequirementsOrBuilder
      Returns:
      The targetNtpotMilliseconds.
    • setTargetNtpotMilliseconds

      public PerformanceRequirements.Builder setTargetNtpotMilliseconds(int value)
       Optional. The target Normalized Time Per Output Token (NTPOT) in
       milliseconds. NTPOT is calculated as `request_latency /
       total_output_tokens`. If not provided, this target will not be enforced.
       
      optional int32 target_ntpot_milliseconds = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The targetNtpotMilliseconds to set.
      Returns:
      This builder for chaining.
    • clearTargetNtpotMilliseconds

      public PerformanceRequirements.Builder clearTargetNtpotMilliseconds()
       Optional. The target Normalized Time Per Output Token (NTPOT) in
       milliseconds. NTPOT is calculated as `request_latency /
       total_output_tokens`. If not provided, this target will not be enforced.
       
      optional int32 target_ntpot_milliseconds = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTargetTtftMilliseconds

      public boolean hasTargetTtftMilliseconds()
       Optional. The target Time To First Token (TTFT) in milliseconds. TTFT is
       the time it takes to generate the first token for a request.  If not
       provided, this target will not be enforced.
       
      optional int32 target_ttft_milliseconds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTargetTtftMilliseconds in interface PerformanceRequirementsOrBuilder
      Returns:
      Whether the targetTtftMilliseconds field is set.
    • getTargetTtftMilliseconds

      public int getTargetTtftMilliseconds()
       Optional. The target Time To First Token (TTFT) in milliseconds. TTFT is
       the time it takes to generate the first token for a request.  If not
       provided, this target will not be enforced.
       
      optional int32 target_ttft_milliseconds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetTtftMilliseconds in interface PerformanceRequirementsOrBuilder
      Returns:
      The targetTtftMilliseconds.
    • setTargetTtftMilliseconds

      public PerformanceRequirements.Builder setTargetTtftMilliseconds(int value)
       Optional. The target Time To First Token (TTFT) in milliseconds. TTFT is
       the time it takes to generate the first token for a request.  If not
       provided, this target will not be enforced.
       
      optional int32 target_ttft_milliseconds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The targetTtftMilliseconds to set.
      Returns:
      This builder for chaining.
    • clearTargetTtftMilliseconds

      public PerformanceRequirements.Builder clearTargetTtftMilliseconds()
       Optional. The target Time To First Token (TTFT) in milliseconds. TTFT is
       the time it takes to generate the first token for a request.  If not
       provided, this target will not be enforced.
       
      optional int32 target_ttft_milliseconds = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTargetCost

      public boolean hasTargetCost()
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTargetCost in interface PerformanceRequirementsOrBuilder
      Returns:
      Whether the targetCost field is set.
    • getTargetCost

      public Cost getTargetCost()
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetCost in interface PerformanceRequirementsOrBuilder
      Returns:
      The targetCost.
    • setTargetCost

      public PerformanceRequirements.Builder setTargetCost(Cost value)
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setTargetCost

      public PerformanceRequirements.Builder setTargetCost(Cost.Builder builderForValue)
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTargetCost

      public PerformanceRequirements.Builder mergeTargetCost(Cost value)
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearTargetCost

      public PerformanceRequirements.Builder clearTargetCost()
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetCostBuilder

      public Cost.Builder getTargetCostBuilder()
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTargetCostOrBuilder

      public CostOrBuilder getTargetCostOrBuilder()
       Optional. The target cost for running a profile's model server. If not
       provided, this requirement will not be enforced.
       
      .google.cloud.gkerecommender.v1.Cost target_cost = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTargetCostOrBuilder in interface PerformanceRequirementsOrBuilder