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

Static Fields

NTPOT_RANGE_FIELD_NUMBER

public static final int NTPOT_RANGE_FIELD_NUMBER
Field Value
Type Description
int

THROUGHPUT_OUTPUT_RANGE_FIELD_NUMBER

public static final int THROUGHPUT_OUTPUT_RANGE_FIELD_NUMBER
Field Value
Type Description
int

TTFT_RANGE_FIELD_NUMBER

public static final int TTFT_RANGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PerformanceRange getDefaultInstance()
Returns
Type Description
PerformanceRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PerformanceRange.Builder newBuilder()
Returns
Type Description
PerformanceRange.Builder

newBuilder(PerformanceRange prototype)

public static PerformanceRange.Builder newBuilder(PerformanceRange prototype)
Parameter
Name Description
prototype PerformanceRange
Returns
Type Description
PerformanceRange.Builder

parseDelimitedFrom(InputStream input)

public static PerformanceRange parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PerformanceRange parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PerformanceRange parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PerformanceRange parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PerformanceRange parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PerformanceRange parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PerformanceRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRange
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PerformanceRange> parser()
Returns
Type Description
Parser<PerformanceRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PerformanceRange getDefaultInstanceForType()
Returns
Type Description
PerformanceRange

getNtpotRange()

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

Returns
Type Description
MillisecondRange

The ntpotRange.

getNtpotRangeOrBuilder()

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

Returns
Type Description
MillisecondRangeOrBuilder

getParserForType()

public Parser<PerformanceRange> getParserForType()
Returns
Type Description
Parser<PerformanceRange>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThroughputOutputRange()

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

Returns
Type Description
TokensPerSecondRange

The throughputOutputRange.

getThroughputOutputRangeOrBuilder()

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

Returns
Type Description
TokensPerSecondRangeOrBuilder

getTtftRange()

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

Returns
Type Description
MillisecondRange

The ttftRange.

getTtftRangeOrBuilder()

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

Returns
Type Description
MillisecondRangeOrBuilder

hasNtpotRange()

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.

hasThroughputOutputRange()

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.

hasTtftRange()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PerformanceRange.Builder newBuilderForType()
Returns
Type Description
PerformanceRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PerformanceRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PerformanceRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PerformanceRange.Builder toBuilder()
Returns
Type Description
PerformanceRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException