Class PerformanceRequirements.Builder (0.1.0)

public static final class PerformanceRequirements.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PerformanceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PerformanceRequirements.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public PerformanceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PerformanceRequirements.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PerformanceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PerformanceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PerformanceRequirements.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PerformanceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PerformanceRequirements.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PerformanceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PerformanceRequirements.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final PerformanceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PerformanceRequirements.Builder
Overrides