Class PerformanceRequirements.Builder (0.5.0)

public static final class PerformanceRequirements.Builder extends GeneratedMessage.Builder<PerformanceRequirements.Builder> implements PerformanceRequirementsOrBuilder

Performance requirements for a profile and or model deployment.

Protobuf type google.cloud.gkerecommender.v1.PerformanceRequirements

Static Methods

getDescriptor()

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

Methods

build()

public PerformanceRequirements build()
Returns
Type Description
PerformanceRequirements

buildPartial()

public PerformanceRequirements buildPartial()
Returns
Type Description
PerformanceRequirements

clear()

public PerformanceRequirements.Builder clear()
Returns
Type Description
PerformanceRequirements.Builder
Overrides

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

Returns
Type Description
PerformanceRequirements.Builder

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
Type Description
PerformanceRequirements.Builder

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
Type Description
PerformanceRequirements.Builder

This builder for chaining.

getDefaultInstanceForType()

public PerformanceRequirements getDefaultInstanceForType()
Returns
Type Description
PerformanceRequirements

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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

Returns
Type Description
Cost.Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PerformanceRequirements other)

public PerformanceRequirements.Builder mergeFrom(PerformanceRequirements other)
Parameter
Name Description
other PerformanceRequirements
Returns
Type Description
PerformanceRequirements.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PerformanceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PerformanceRequirements.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PerformanceRequirements.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PerformanceRequirements.Builder
Overrides

mergeTargetCost(Cost value)

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

Parameter
Name Description
value Cost
Returns
Type Description
PerformanceRequirements.Builder

setTargetCost(Cost value)

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

Parameter
Name Description
value Cost
Returns
Type Description
PerformanceRequirements.Builder

setTargetCost(Cost.Builder builderForValue)

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

Parameter
Name Description
builderForValue Cost.Builder
Returns
Type Description
PerformanceRequirements.Builder

setTargetNtpotMilliseconds(int value)

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

Parameter
Name Description
value int

The targetNtpotMilliseconds to set.

Returns
Type Description
PerformanceRequirements.Builder

This builder for chaining.

setTargetTtftMilliseconds(int value)

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

Parameter
Name Description
value int

The targetTtftMilliseconds to set.

Returns
Type Description
PerformanceRequirements.Builder

This builder for chaining.