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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public PerformanceRequirements.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PerformanceRequirements build()
public PerformanceRequirements buildPartial()
public PerformanceRequirements.Builder clear()
Overrides
public PerformanceRequirements.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PerformanceRequirements.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
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];
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];
public PerformanceRequirements.Builder clone()
Overrides
public PerformanceRequirements getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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];
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];
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.
|
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.
|
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.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PerformanceRequirements.Builder mergeFrom(PerformanceRequirements other)
public PerformanceRequirements.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PerformanceRequirements.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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
|
public final PerformanceRequirements.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PerformanceRequirements.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PerformanceRequirements.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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
|
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];
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.
|
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.
|
public final PerformanceRequirements.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides