Package inference

Class ModelConfigOuterClass.ModelRateLimiter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
inference.ModelConfigOuterClass.ModelRateLimiter.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ModelConfigOuterClass.ModelRateLimiterOrBuilder, Cloneable
Enclosing class:
ModelConfigOuterClass.ModelRateLimiter

public static final class ModelConfigOuterClass.ModelRateLimiter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder> implements ModelConfigOuterClass.ModelRateLimiterOrBuilder
@@
@@  .. cpp:var:: message ModelRateLimiter
@@
@@     The specifications required by the rate limiter to properly
@@     schedule the inference requests across the different models
@@     and their instances.
@@
 
Protobuf type inference.ModelRateLimiter
  • Method Details

    • 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<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.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<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • setField

      public ModelConfigOuterClass.ModelRateLimiter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • clearField

      public ModelConfigOuterClass.ModelRateLimiter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • clearOneof

      public ModelConfigOuterClass.ModelRateLimiter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • setRepeatedField

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

      public ModelConfigOuterClass.ModelRateLimiter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • mergeFrom

      public ModelConfigOuterClass.ModelRateLimiter.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • mergeFrom

    • isInitialized

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

      public ModelConfigOuterClass.ModelRateLimiter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<ModelConfigOuterClass.ModelRateLimiter.Builder>
      Throws:
      IOException
    • getResourcesList

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
      Specified by:
      getResourcesList in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
    • getResourcesCount

      public int getResourcesCount()
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
      Specified by:
      getResourcesCount in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
    • getResources

      public ModelConfigOuterClass.ModelRateLimiter.Resource getResources(int index)
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
      Specified by:
      getResources in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
    • setResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • setResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addAllResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • clearResources

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • removeResources

      public ModelConfigOuterClass.ModelRateLimiter.Builder removeResources(int index)
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • getResourcesBuilder

      public ModelConfigOuterClass.ModelRateLimiter.Resource.Builder getResourcesBuilder(int index)
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • getResourcesOrBuilder

      public ModelConfigOuterClass.ModelRateLimiter.ResourceOrBuilder getResourcesOrBuilder(int index)
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
      Specified by:
      getResourcesOrBuilder in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
    • getResourcesOrBuilderList

      public List<? extends ModelConfigOuterClass.ModelRateLimiter.ResourceOrBuilder> getResourcesOrBuilderList()
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
      Specified by:
      getResourcesOrBuilderList in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
    • addResourcesBuilder

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • addResourcesBuilder

      public ModelConfigOuterClass.ModelRateLimiter.Resource.Builder addResourcesBuilder(int index)
      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • getResourcesBuilderList

      @@  .. cpp:var:: Resource resources (repeated)
      @@
      @@     The resources required to execute the request on a model instance.
      @@     Resources are just names with a corresponding count. The execution
      @@     of the instance will be blocked until the specified resources are
      @@     available. By default an instance uses no rate-limiter resources.
      @@
       
      repeated .inference.ModelRateLimiter.Resource resources = 1;
    • getPriority

      public int getPriority()
      @@  .. cpp:var:: uint32 priority
      @@
      @@     The optional weighting value to be used for prioritizing across
      @@     instances. An instance with priority 2 will be given 1/2 the
      @@     number of scheduling chances as an instance_group with priority
      @@     1. The default priority is 1. The priority of value 0 will be
      @@     treated as priority 1.
      @@
       
      uint32 priority = 2;
      Specified by:
      getPriority in interface ModelConfigOuterClass.ModelRateLimiterOrBuilder
      Returns:
      The priority.
    • setPriority

      public ModelConfigOuterClass.ModelRateLimiter.Builder setPriority(int value)
      @@  .. cpp:var:: uint32 priority
      @@
      @@     The optional weighting value to be used for prioritizing across
      @@     instances. An instance with priority 2 will be given 1/2 the
      @@     number of scheduling chances as an instance_group with priority
      @@     1. The default priority is 1. The priority of value 0 will be
      @@     treated as priority 1.
      @@
       
      uint32 priority = 2;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      @@  .. cpp:var:: uint32 priority
      @@
      @@     The optional weighting value to be used for prioritizing across
      @@     instances. An instance with priority 2 will be given 1/2 the
      @@     number of scheduling chances as an instance_group with priority
      @@     1. The default priority is 1. The priority of value 0 will be
      @@     treated as priority 1.
      @@
       
      uint32 priority = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ModelConfigOuterClass.ModelRateLimiter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelRateLimiter.Builder>
    • mergeUnknownFields

      public final ModelConfigOuterClass.ModelRateLimiter.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<ModelConfigOuterClass.ModelRateLimiter.Builder>