Class PerformanceRange (0.1.0)
public final class PerformanceRange extends GeneratedMessageV3 implements PerformanceRangeOrBuilder
Performance range for a model deployment.
Protobuf type google.cloud.gkerecommender.v1.PerformanceRange
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int NTPOT_RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int THROUGHPUT_OUTPUT_RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TTFT_RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static PerformanceRange getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static PerformanceRange.Builder newBuilder()
public static PerformanceRange.Builder newBuilder(PerformanceRange prototype)
public static PerformanceRange parseDelimitedFrom(InputStream input)
public static PerformanceRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceRange parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static PerformanceRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PerformanceRange parseFrom(ByteString data)
public static PerformanceRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PerformanceRange parseFrom(CodedInputStream input)
public static PerformanceRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceRange parseFrom(InputStream input)
public static PerformanceRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PerformanceRange parseFrom(ByteBuffer data)
public static PerformanceRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<PerformanceRange> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public PerformanceRange getDefaultInstanceForType()
public MillisecondRange getNtpotRange()
Output only. The range of NTPOT (Normalized Time Per Output Token) in
milliseconds. NTPOT is the request latency normalized by the number of
output tokens, measured as request_latency / total_output_tokens.
.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MillisecondRangeOrBuilder getNtpotRangeOrBuilder()
Output only. The range of NTPOT (Normalized Time Per Output Token) in
milliseconds. NTPOT is the request latency normalized by the number of
output tokens, measured as request_latency / total_output_tokens.
.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Parser<PerformanceRange> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public TokensPerSecondRange getThroughputOutputRange()
Output only. The range of throughput in output tokens per second. This is
measured as total_output_tokens_generated_by_server /
elapsed_time_in_seconds.
.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TokensPerSecondRangeOrBuilder getThroughputOutputRangeOrBuilder()
Output only. The range of throughput in output tokens per second. This is
measured as total_output_tokens_generated_by_server /
elapsed_time_in_seconds.
.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MillisecondRange getTtftRange()
Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
is the time it takes to generate the first token for a request.
.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public MillisecondRangeOrBuilder getTtftRangeOrBuilder()
Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
is the time it takes to generate the first token for a request.
.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
public boolean hasNtpotRange()
Output only. The range of NTPOT (Normalized Time Per Output Token) in
milliseconds. NTPOT is the request latency normalized by the number of
output tokens, measured as request_latency / total_output_tokens.
.google.cloud.gkerecommender.v1.MillisecondRange ntpot_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the ntpotRange field is set.
|
public boolean hasThroughputOutputRange()
Output only. The range of throughput in output tokens per second. This is
measured as total_output_tokens_generated_by_server /
elapsed_time_in_seconds.
.google.cloud.gkerecommender.v1.TokensPerSecondRange throughput_output_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the throughputOutputRange field is set.
|
public boolean hasTtftRange()
Output only. The range of TTFT (Time To First Token) in milliseconds. TTFT
is the time it takes to generate the first token for a request.
.google.cloud.gkerecommender.v1.MillisecondRange ttft_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the ttftRange field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PerformanceRange.Builder newBuilderForType()
protected PerformanceRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
| Returns |
| Type |
Description |
Object |
|
Overrides
public PerformanceRange.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-17 UTC."],[],[]]