Class NamespaceCapacityInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NamespaceCapacityInfo.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<NamespaceCapacityInfo.Builder>
io.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NamespaceCapacityInfoOrBuilder, Cloneable
Enclosing class:
NamespaceCapacityInfo

public static final class NamespaceCapacityInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NamespaceCapacityInfo.Builder> implements NamespaceCapacityInfoOrBuilder
 NamespaceCapacityInfo contains detailed capacity information for a namespace.
 
Protobuf type temporal.api.cloud.namespace.v1.NamespaceCapacityInfo
  • 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<NamespaceCapacityInfo.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<NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • getDefaultInstanceForType

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

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

      public NamespaceCapacityInfo 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<NamespaceCapacityInfo.Builder>
    • setField

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • clearField

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • clearOneof

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • setRepeatedField

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • addRepeatedField

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • mergeFrom

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • mergeFrom

      public NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
       The namespace identifier.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       The namespace identifier.
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public NamespaceCapacityInfo.Builder setNamespace(String value)
       The namespace identifier.
       
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public NamespaceCapacityInfo.Builder clearNamespace()
       The namespace identifier.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public NamespaceCapacityInfo.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       The namespace identifier.
       
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getHasLegacyLimits

      public boolean getHasLegacyLimits()
       Whether the namespace's APS limit was set by Temporal Support.
       When true, adjusting the namespace's capacity will reset this limit.
       
      bool has_legacy_limits = 2;
      Specified by:
      getHasLegacyLimits in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The hasLegacyLimits.
    • setHasLegacyLimits

      public NamespaceCapacityInfo.Builder setHasLegacyLimits(boolean value)
       Whether the namespace's APS limit was set by Temporal Support.
       When true, adjusting the namespace's capacity will reset this limit.
       
      bool has_legacy_limits = 2;
      Parameters:
      value - The hasLegacyLimits to set.
      Returns:
      This builder for chaining.
    • clearHasLegacyLimits

      public NamespaceCapacityInfo.Builder clearHasLegacyLimits()
       Whether the namespace's APS limit was set by Temporal Support.
       When true, adjusting the namespace's capacity will reset this limit.
       
      bool has_legacy_limits = 2;
      Returns:
      This builder for chaining.
    • hasCurrentCapacity

      public boolean hasCurrentCapacity()
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
      Specified by:
      hasCurrentCapacity in interface NamespaceCapacityInfoOrBuilder
      Returns:
      Whether the currentCapacity field is set.
    • getCurrentCapacity

      public Capacity getCurrentCapacity()
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
      Specified by:
      getCurrentCapacity in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The currentCapacity.
    • setCurrentCapacity

      public NamespaceCapacityInfo.Builder setCurrentCapacity(Capacity value)
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
    • setCurrentCapacity

      public NamespaceCapacityInfo.Builder setCurrentCapacity(Capacity.Builder builderForValue)
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
    • mergeCurrentCapacity

      public NamespaceCapacityInfo.Builder mergeCurrentCapacity(Capacity value)
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
    • clearCurrentCapacity

      public NamespaceCapacityInfo.Builder clearCurrentCapacity()
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
    • getCurrentCapacityBuilder

      public Capacity.Builder getCurrentCapacityBuilder()
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
    • getCurrentCapacityOrBuilder

      public CapacityOrBuilder getCurrentCapacityOrBuilder()
       The current capacity of the namespace.
       Includes the current mode (on-demand or provisioned) and latest request status.
       
      .temporal.api.cloud.namespace.v1.Capacity current_capacity = 3;
      Specified by:
      getCurrentCapacityOrBuilder in interface NamespaceCapacityInfoOrBuilder
    • hasModeOptions

      public boolean hasModeOptions()
       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
      Specified by:
      hasModeOptions in interface NamespaceCapacityInfoOrBuilder
      Returns:
      Whether the modeOptions field is set.
    • getModeOptions

       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
      Specified by:
      getModeOptions in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The modeOptions.
    • setModeOptions

       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
    • setModeOptions

       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
    • mergeModeOptions

       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
    • clearModeOptions

      public NamespaceCapacityInfo.Builder clearModeOptions()
       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
    • getModeOptionsBuilder

      public NamespaceCapacityInfo.CapacityModeOptions.Builder getModeOptionsBuilder()
       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
    • getModeOptionsOrBuilder

      public NamespaceCapacityInfo.CapacityModeOptionsOrBuilder getModeOptionsOrBuilder()
       Available capacity mode options for this namespace.
       Contains configuration limits for both provisioned and on-demand modes.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions mode_options = 4;
      Specified by:
      getModeOptionsOrBuilder in interface NamespaceCapacityInfoOrBuilder
    • hasStats

      public boolean hasStats()
       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
      Specified by:
      hasStats in interface NamespaceCapacityInfoOrBuilder
      Returns:
      Whether the stats field is set.
    • getStats

      public NamespaceCapacityInfo.Stats getStats()
       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
      Specified by:
      getStats in interface NamespaceCapacityInfoOrBuilder
      Returns:
      The stats.
    • setStats

       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
    • setStats

       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
    • mergeStats

       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
    • clearStats

      public NamespaceCapacityInfo.Builder clearStats()
       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
    • getStatsBuilder

      public NamespaceCapacityInfo.Stats.Builder getStatsBuilder()
       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
    • getStatsOrBuilder

      public NamespaceCapacityInfo.StatsOrBuilder getStatsOrBuilder()
       Usage statistics for the namespace over the last 7 days.
       Used to calculate On-Demand capacity limits, also useful for capacity planning.
       
      .temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats stats = 5;
      Specified by:
      getStatsOrBuilder in interface NamespaceCapacityInfoOrBuilder
    • setUnknownFields

      public final NamespaceCapacityInfo.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<NamespaceCapacityInfo.Builder>
    • mergeUnknownFields

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