Class Service.GatewayBudgetPolicy.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
      • getDefaultInstanceForType

        public Service.GatewayBudgetPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Service.GatewayBudgetPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Service.GatewayBudgetPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public Service.GatewayBudgetPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    int index,
                                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
      • addRepeatedField

        public Service.GatewayBudgetPolicy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>
      • mergeFrom

        public Service.GatewayBudgetPolicy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.GatewayBudgetPolicy.Builder>
        Throws:
        java.io.IOException
      • hasBudgetPolicyId

        public boolean hasBudgetPolicyId()
         Unique identifier for this budget policy
         
        optional string budget_policy_id = 1;
        Specified by:
        hasBudgetPolicyId in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the budgetPolicyId field is set.
      • getBudgetPolicyIdBytes

        public com.google.protobuf.ByteString getBudgetPolicyIdBytes()
         Unique identifier for this budget policy
         
        optional string budget_policy_id = 1;
        Specified by:
        getBudgetPolicyIdBytes in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        The bytes for budgetPolicyId.
      • setBudgetPolicyId

        public Service.GatewayBudgetPolicy.Builder setBudgetPolicyId​(java.lang.String value)
         Unique identifier for this budget policy
         
        optional string budget_policy_id = 1;
        Parameters:
        value - The budgetPolicyId to set.
        Returns:
        This builder for chaining.
      • clearBudgetPolicyId

        public Service.GatewayBudgetPolicy.Builder 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:
        hasBudgetUnit in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the budgetUnit field is set.
      • clearBudgetUnit

        public Service.GatewayBudgetPolicy.Builder clearBudgetUnit()
         Budget measurement unit (e.g. USD)
         
        optional .mlflow.BudgetUnit budget_unit = 2;
        Returns:
        This builder for chaining.
      • setBudgetAmount

        public Service.GatewayBudgetPolicy.Builder setBudgetAmount​(double value)
         Budget limit amount
         
        optional double budget_amount = 3;
        Parameters:
        value - The budgetAmount to set.
        Returns:
        This builder for chaining.
      • clearBudgetAmount

        public Service.GatewayBudgetPolicy.Builder 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:
        hasDuration in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the duration field is set.
      • getDurationBuilder

        public Service.BudgetDuration.Builder getDurationBuilder()
         Fixed time window (unit + length pair)
         
        optional .mlflow.BudgetDuration duration = 4;
      • hasTargetScope

        public boolean hasTargetScope()
         Scope of the budget (GLOBAL or WORKSPACE)
         
        optional .mlflow.BudgetTargetScope target_scope = 5;
        Specified by:
        hasTargetScope in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the targetScope field is set.
      • clearTargetScope

        public Service.GatewayBudgetPolicy.Builder 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:
        hasBudgetAction in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the budgetAction field is set.
      • clearBudgetAction

        public Service.GatewayBudgetPolicy.Builder clearBudgetAction()
         Action when budget is exceeded
         
        optional .mlflow.BudgetAction budget_action = 6;
        Returns:
        This builder for chaining.
      • setCreatedBy

        public Service.GatewayBudgetPolicy.Builder setCreatedBy​(java.lang.String value)
         User ID who created the policy
         
        optional string created_by = 7;
        Parameters:
        value - The createdBy to set.
        Returns:
        This builder for chaining.
      • clearCreatedBy

        public Service.GatewayBudgetPolicy.Builder clearCreatedBy()
         User ID who created the policy
         
        optional string created_by = 7;
        Returns:
        This builder for chaining.
      • setCreatedByBytes

        public Service.GatewayBudgetPolicy.Builder setCreatedByBytes​(com.google.protobuf.ByteString value)
         User ID who created the policy
         
        optional string created_by = 7;
        Parameters:
        value - The bytes for createdBy to set.
        Returns:
        This builder for chaining.
      • setCreatedAt

        public Service.GatewayBudgetPolicy.Builder setCreatedAt​(long value)
         Creation timestamp in milliseconds
         
        optional int64 created_at = 8;
        Parameters:
        value - The createdAt to set.
        Returns:
        This builder for chaining.
      • clearCreatedAt

        public Service.GatewayBudgetPolicy.Builder clearCreatedAt()
         Creation timestamp in milliseconds
         
        optional int64 created_at = 8;
        Returns:
        This builder for chaining.
      • getLastUpdatedByBytes

        public com.google.protobuf.ByteString getLastUpdatedByBytes()
         User ID who last updated the policy
         
        optional string last_updated_by = 9;
        Specified by:
        getLastUpdatedByBytes in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        The bytes for lastUpdatedBy.
      • setLastUpdatedBy

        public Service.GatewayBudgetPolicy.Builder setLastUpdatedBy​(java.lang.String value)
         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

        public Service.GatewayBudgetPolicy.Builder 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:
        hasLastUpdatedAt in interface Service.GatewayBudgetPolicyOrBuilder
        Returns:
        Whether the lastUpdatedAt field is set.
      • setLastUpdatedAt

        public Service.GatewayBudgetPolicy.Builder setLastUpdatedAt​(long value)
         Last update timestamp in milliseconds
         
        optional int64 last_updated_at = 10;
        Parameters:
        value - The lastUpdatedAt to set.
        Returns:
        This builder for chaining.
      • clearLastUpdatedAt

        public Service.GatewayBudgetPolicy.Builder clearLastUpdatedAt()
         Last update timestamp in milliseconds
         
        optional int64 last_updated_at = 10;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final Service.GatewayBudgetPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.GatewayBudgetPolicy.Builder>