Class PerformanceStats.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
com.google.cloud.gkerecommender.v1.PerformanceStats.Builder
- All Implemented Interfaces:
PerformanceStatsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PerformanceStats
public static final class PerformanceStats.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
implements PerformanceStatsOrBuilder
Performance statistics for a model deployment.Protobuf type
google.cloud.gkerecommender.v1.PerformanceStats-
Method Summary
Modifier and TypeMethodDescriptionaddAllCost(Iterable<? extends Cost> values) Output only.Output only.addCost(int index, Cost.Builder builderForValue) Output only.Output only.addCost(Cost.Builder builderForValue) Output only.Output only.addCostBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.getCost(int index) Output only.getCostBuilder(int index) Output only.Output only.intOutput only.Output only.getCostOrBuilder(int index) Output only.List<? extends CostOrBuilder>Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOutput only.intOutput only.floatOutput only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PerformanceStats other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeCost(int index) Output only.Output only.setCost(int index, Cost.Builder builderForValue) Output only.setNtpotMilliseconds(int value) Output only.setOutputTokensPerSecond(int value) Output only.setQueriesPerSecond(float value) Output only.setTtftMilliseconds(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PerformanceStats.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PerformanceStats.Builder>
-
mergeFrom
public PerformanceStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PerformanceStats.Builder>- Throws:
IOException
-
getQueriesPerSecond
public float getQueriesPerSecond()Output only. The number of queries per second. Note: This metric can vary widely based on context length and may not be a reliable measure of LLM throughput.
float queries_per_second = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQueriesPerSecondin interfacePerformanceStatsOrBuilder- Returns:
- The queriesPerSecond.
-
setQueriesPerSecond
Output only. The number of queries per second. Note: This metric can vary widely based on context length and may not be a reliable measure of LLM throughput.
float queries_per_second = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The queriesPerSecond to set.- Returns:
- This builder for chaining.
-
clearQueriesPerSecond
Output only. The number of queries per second. Note: This metric can vary widely based on context length and may not be a reliable measure of LLM throughput.
float queries_per_second = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getOutputTokensPerSecond
public int getOutputTokensPerSecond()Output only. The number of output tokens per second. This is the throughput measured as total_output_tokens_generated_by_server / elapsed_time_in_seconds.
int32 output_tokens_per_second = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOutputTokensPerSecondin interfacePerformanceStatsOrBuilder- Returns:
- The outputTokensPerSecond.
-
setOutputTokensPerSecond
Output only. The number of output tokens per second. This is the throughput measured as total_output_tokens_generated_by_server / elapsed_time_in_seconds.
int32 output_tokens_per_second = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The outputTokensPerSecond to set.- Returns:
- This builder for chaining.
-
clearOutputTokensPerSecond
Output only. The number of output tokens per second. This is the throughput measured as total_output_tokens_generated_by_server / elapsed_time_in_seconds.
int32 output_tokens_per_second = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getNtpotMilliseconds
public int getNtpotMilliseconds()Output only. The Normalized Time Per Output Token (NTPOT) in milliseconds. This is the request latency normalized by the number of output tokens, measured as request_latency / total_output_tokens.
int32 ntpot_milliseconds = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNtpotMillisecondsin interfacePerformanceStatsOrBuilder- Returns:
- The ntpotMilliseconds.
-
setNtpotMilliseconds
Output only. The Normalized Time Per Output Token (NTPOT) in milliseconds. This is the request latency normalized by the number of output tokens, measured as request_latency / total_output_tokens.
int32 ntpot_milliseconds = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The ntpotMilliseconds to set.- Returns:
- This builder for chaining.
-
clearNtpotMilliseconds
Output only. The Normalized Time Per Output Token (NTPOT) in milliseconds. This is the request latency normalized by the number of output tokens, measured as request_latency / total_output_tokens.
int32 ntpot_milliseconds = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTtftMilliseconds
public int getTtftMilliseconds()Output only. The Time To First Token (TTFT) in milliseconds. This is the time it takes to generate the first token for a request.
int32 ttft_milliseconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTtftMillisecondsin interfacePerformanceStatsOrBuilder- Returns:
- The ttftMilliseconds.
-
setTtftMilliseconds
Output only. The Time To First Token (TTFT) in milliseconds. This is the time it takes to generate the first token for a request.
int32 ttft_milliseconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The ttftMilliseconds to set.- Returns:
- This builder for chaining.
-
clearTtftMilliseconds
Output only. The Time To First Token (TTFT) in milliseconds. This is the time it takes to generate the first token for a request.
int32 ttft_milliseconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getCostList
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCostListin interfacePerformanceStatsOrBuilder
-
getCostCount
public int getCostCount()Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCostCountin interfacePerformanceStatsOrBuilder
-
getCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCostin interfacePerformanceStatsOrBuilder
-
setCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeCost
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCostBuilder
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCostOrBuilder
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCostOrBuilderin interfacePerformanceStatsOrBuilder
-
getCostOrBuilderList
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCostOrBuilderListin interfacePerformanceStatsOrBuilder
-
addCostBuilder
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addCostBuilder
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCostBuilderList
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-