Package org.mlflow.api.proto
Class Service.GatewayBudgetPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
org.mlflow.api.proto.Service.GatewayBudgetPolicy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Service.GatewayBudgetPolicyOrBuilder
- Enclosing class:
- Service.GatewayBudgetPolicy
public static final class Service.GatewayBudgetPolicy.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
implements Service.GatewayBudgetPolicyOrBuilder
Represents a budget policy for the AI GatewayProtobuf type
mlflow.GatewayBudgetPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Action when budget is exceededBudget limit amountUnique identifier for this budget policyBudget measurement unit (e.g.Creation timestamp in millisecondsUser ID who created the policyFixed time window (unit + length pair)clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Last update timestamp in millisecondsUser ID who last updated the policyclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Scope of the budget (GLOBAL or WORKSPACE)clone()Action when budget is exceededdoubleBudget limit amountUnique identifier for this budget policycom.google.protobuf.ByteStringUnique identifier for this budget policyBudget measurement unit (e.g.longCreation timestamp in millisecondsUser ID who created the policycom.google.protobuf.ByteStringUser ID who created the policystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFixed time window (unit + length pair)Fixed time window (unit + length pair)Fixed time window (unit + length pair)longLast update timestamp in millisecondsUser ID who last updated the policycom.google.protobuf.ByteStringUser ID who last updated the policyScope of the budget (GLOBAL or WORKSPACE)booleanAction when budget is exceededbooleanBudget limit amountbooleanUnique identifier for this budget policybooleanBudget measurement unit (e.g.booleanCreation timestamp in millisecondsbooleanUser ID who created the policybooleanFixed time window (unit + length pair)booleanLast update timestamp in millisecondsbooleanUser ID who last updated the policybooleanScope of the budget (GLOBAL or WORKSPACE)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanFixed time window (unit + length pair)mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Action when budget is exceededsetBudgetAmount(double value) Budget limit amountsetBudgetPolicyId(String value) Unique identifier for this budget policysetBudgetPolicyIdBytes(com.google.protobuf.ByteString value) Unique identifier for this budget policysetBudgetUnit(Service.BudgetUnit value) Budget measurement unit (e.g.setCreatedAt(long value) Creation timestamp in millisecondssetCreatedBy(String value) User ID who created the policysetCreatedByBytes(com.google.protobuf.ByteString value) User ID who created the policyFixed time window (unit + length pair)setDuration(Service.BudgetDuration.Builder builderForValue) Fixed time window (unit + length pair)setLastUpdatedAt(long value) Last update timestamp in millisecondssetLastUpdatedBy(String value) User ID who last updated the policysetLastUpdatedByBytes(com.google.protobuf.ByteString value) User ID who last updated the policysetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Scope of the budget (GLOBAL or WORKSPACE)setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
setField
public Service.GatewayBudgetPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
clearField
public Service.GatewayBudgetPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
clearOneof
public Service.GatewayBudgetPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
setRepeatedField
public Service.GatewayBudgetPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
addRepeatedField
public Service.GatewayBudgetPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.GatewayBudgetPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
mergeFrom
public Service.GatewayBudgetPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Service.GatewayBudgetPolicy.Builder>- Throws:
IOException
-
hasBudgetPolicyId
public boolean hasBudgetPolicyId()Unique identifier for this budget policy
optional string budget_policy_id = 1;- Specified by:
hasBudgetPolicyIdin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the budgetPolicyId field is set.
-
getBudgetPolicyId
Unique identifier for this budget policy
optional string budget_policy_id = 1;- Specified by:
getBudgetPolicyIdin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The budgetPolicyId.
-
getBudgetPolicyIdBytes
public com.google.protobuf.ByteString getBudgetPolicyIdBytes()Unique identifier for this budget policy
optional string budget_policy_id = 1;- Specified by:
getBudgetPolicyIdBytesin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The bytes for budgetPolicyId.
-
setBudgetPolicyId
Unique identifier for this budget policy
optional string budget_policy_id = 1;- Parameters:
value- The budgetPolicyId to set.- Returns:
- This builder for chaining.
-
clearBudgetPolicyId
Unique identifier for this budget policy
optional string budget_policy_id = 1;- Returns:
- This builder for chaining.
-
setBudgetPolicyIdBytes
public Service.GatewayBudgetPolicy.Builder setBudgetPolicyIdBytes(com.google.protobuf.ByteString value) Unique identifier for this budget policy
optional string budget_policy_id = 1;- Parameters:
value- The bytes for budgetPolicyId to set.- Returns:
- This builder for chaining.
-
hasBudgetUnit
public boolean hasBudgetUnit()Budget measurement unit (e.g. USD)
optional .mlflow.BudgetUnit budget_unit = 2;- Specified by:
hasBudgetUnitin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the budgetUnit field is set.
-
getBudgetUnit
Budget measurement unit (e.g. USD)
optional .mlflow.BudgetUnit budget_unit = 2;- Specified by:
getBudgetUnitin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The budgetUnit.
-
setBudgetUnit
Budget measurement unit (e.g. USD)
optional .mlflow.BudgetUnit budget_unit = 2;- Parameters:
value- The budgetUnit to set.- Returns:
- This builder for chaining.
-
clearBudgetUnit
Budget measurement unit (e.g. USD)
optional .mlflow.BudgetUnit budget_unit = 2;- Returns:
- This builder for chaining.
-
hasBudgetAmount
public boolean hasBudgetAmount()Budget limit amount
optional double budget_amount = 3;- Specified by:
hasBudgetAmountin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the budgetAmount field is set.
-
getBudgetAmount
public double getBudgetAmount()Budget limit amount
optional double budget_amount = 3;- Specified by:
getBudgetAmountin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The budgetAmount.
-
setBudgetAmount
Budget limit amount
optional double budget_amount = 3;- Parameters:
value- The budgetAmount to set.- Returns:
- This builder for chaining.
-
clearBudgetAmount
Budget limit amount
optional double budget_amount = 3;- Returns:
- This builder for chaining.
-
hasDuration
public boolean hasDuration()Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4;- Specified by:
hasDurationin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4;- Specified by:
getDurationin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The duration.
-
setDuration
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4; -
setDuration
public Service.GatewayBudgetPolicy.Builder setDuration(Service.BudgetDuration.Builder builderForValue) Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4; -
mergeDuration
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4; -
clearDuration
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4; -
getDurationBuilder
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4; -
getDurationOrBuilder
Fixed time window (unit + length pair)
optional .mlflow.BudgetDuration duration = 4;- Specified by:
getDurationOrBuilderin interfaceService.GatewayBudgetPolicyOrBuilder
-
hasTargetScope
public boolean hasTargetScope()Scope of the budget (GLOBAL or WORKSPACE)
optional .mlflow.BudgetTargetScope target_scope = 5;- Specified by:
hasTargetScopein interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the targetScope field is set.
-
getTargetScope
Scope of the budget (GLOBAL or WORKSPACE)
optional .mlflow.BudgetTargetScope target_scope = 5;- Specified by:
getTargetScopein interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The targetScope.
-
setTargetScope
Scope of the budget (GLOBAL or WORKSPACE)
optional .mlflow.BudgetTargetScope target_scope = 5;- Parameters:
value- The targetScope to set.- Returns:
- This builder for chaining.
-
clearTargetScope
Scope of the budget (GLOBAL or WORKSPACE)
optional .mlflow.BudgetTargetScope target_scope = 5;- Returns:
- This builder for chaining.
-
hasBudgetAction
public boolean hasBudgetAction()Action when budget is exceeded
optional .mlflow.BudgetAction budget_action = 6;- Specified by:
hasBudgetActionin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the budgetAction field is set.
-
getBudgetAction
Action when budget is exceeded
optional .mlflow.BudgetAction budget_action = 6;- Specified by:
getBudgetActionin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The budgetAction.
-
setBudgetAction
Action when budget is exceeded
optional .mlflow.BudgetAction budget_action = 6;- Parameters:
value- The budgetAction to set.- Returns:
- This builder for chaining.
-
clearBudgetAction
Action when budget is exceeded
optional .mlflow.BudgetAction budget_action = 6;- Returns:
- This builder for chaining.
-
hasCreatedBy
public boolean hasCreatedBy()User ID who created the policy
optional string created_by = 7;- Specified by:
hasCreatedByin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the createdBy field is set.
-
getCreatedBy
User ID who created the policy
optional string created_by = 7;- Specified by:
getCreatedByin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The createdBy.
-
getCreatedByBytes
public com.google.protobuf.ByteString getCreatedByBytes()User ID who created the policy
optional string created_by = 7;- Specified by:
getCreatedByBytesin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The bytes for createdBy.
-
setCreatedBy
User ID who created the policy
optional string created_by = 7;- Parameters:
value- The createdBy to set.- Returns:
- This builder for chaining.
-
clearCreatedBy
User ID who created the policy
optional string created_by = 7;- Returns:
- This builder for chaining.
-
setCreatedByBytes
User ID who created the policy
optional string created_by = 7;- Parameters:
value- The bytes for createdBy to set.- Returns:
- This builder for chaining.
-
hasCreatedAt
public boolean hasCreatedAt()Creation timestamp in milliseconds
optional int64 created_at = 8;- Specified by:
hasCreatedAtin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the createdAt field is set.
-
getCreatedAt
public long getCreatedAt()Creation timestamp in milliseconds
optional int64 created_at = 8;- Specified by:
getCreatedAtin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The createdAt.
-
setCreatedAt
Creation timestamp in milliseconds
optional int64 created_at = 8;- Parameters:
value- The createdAt to set.- Returns:
- This builder for chaining.
-
clearCreatedAt
Creation timestamp in milliseconds
optional int64 created_at = 8;- Returns:
- This builder for chaining.
-
hasLastUpdatedBy
public boolean hasLastUpdatedBy()User ID who last updated the policy
optional string last_updated_by = 9;- Specified by:
hasLastUpdatedByin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the lastUpdatedBy field is set.
-
getLastUpdatedBy
User ID who last updated the policy
optional string last_updated_by = 9;- Specified by:
getLastUpdatedByin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The lastUpdatedBy.
-
getLastUpdatedByBytes
public com.google.protobuf.ByteString getLastUpdatedByBytes()User ID who last updated the policy
optional string last_updated_by = 9;- Specified by:
getLastUpdatedByBytesin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The bytes for lastUpdatedBy.
-
setLastUpdatedBy
User ID who last updated the policy
optional string last_updated_by = 9;- Parameters:
value- The lastUpdatedBy to set.- Returns:
- This builder for chaining.
-
clearLastUpdatedBy
User ID who last updated the policy
optional string last_updated_by = 9;- Returns:
- This builder for chaining.
-
setLastUpdatedByBytes
public Service.GatewayBudgetPolicy.Builder setLastUpdatedByBytes(com.google.protobuf.ByteString value) User ID who last updated the policy
optional string last_updated_by = 9;- Parameters:
value- The bytes for lastUpdatedBy to set.- Returns:
- This builder for chaining.
-
hasLastUpdatedAt
public boolean hasLastUpdatedAt()Last update timestamp in milliseconds
optional int64 last_updated_at = 10;- Specified by:
hasLastUpdatedAtin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- Whether the lastUpdatedAt field is set.
-
getLastUpdatedAt
public long getLastUpdatedAt()Last update timestamp in milliseconds
optional int64 last_updated_at = 10;- Specified by:
getLastUpdatedAtin interfaceService.GatewayBudgetPolicyOrBuilder- Returns:
- The lastUpdatedAt.
-
setLastUpdatedAt
Last update timestamp in milliseconds
optional int64 last_updated_at = 10;- Parameters:
value- The lastUpdatedAt to set.- Returns:
- This builder for chaining.
-
clearLastUpdatedAt
Last update timestamp in milliseconds
optional int64 last_updated_at = 10;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Service.GatewayBudgetPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-
mergeUnknownFields
public final Service.GatewayBudgetPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
-