Class PerformanceRequirements (0.1.0)

public final class PerformanceRequirements extends GeneratedMessageV3 implements PerformanceRequirementsOrBuilder

Performance requirements for a profile and or model deployment.

Protobuf type google.cloud.gkerecommender.v1.PerformanceRequirements

Static Fields

TARGET_COST_FIELD_NUMBER

public static final int TARGET_COST_FIELD_NUMBER
Field Value
Type Description
int

TARGET_NTPOT_MILLISECONDS_FIELD_NUMBER

public static final int TARGET_NTPOT_MILLISECONDS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_TTFT_MILLISECONDS_FIELD_NUMBER

public static final int TARGET_TTFT_MILLISECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PerformanceRequirements getDefaultInstance()
Returns
Type Description
PerformanceRequirements

getDescriptor()

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

newBuilder()

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

newBuilder(PerformanceRequirements prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PerformanceRequirements getDefaultInstanceForType()
Returns
Type Description
PerformanceRequirements

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

Returns
Type Description
Cost

The targetCost.

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

Returns
Type Description
CostOrBuilder

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

Returns
Type Description
int

The targetNtpotMilliseconds.

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

Returns
Type Description
int

The targetTtftMilliseconds.

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

Returns
Type Description
boolean

Whether the targetCost field is set.

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

Returns
Type Description
boolean

Whether the targetNtpotMilliseconds field is set.

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

Returns
Type Description
boolean

Whether the targetTtftMilliseconds 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 PerformanceRequirements.Builder newBuilderForType()
Returns
Type Description
PerformanceRequirements.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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