Class ScalingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScalingConfig.Builder>
com.google.cloud.metastore.v1beta.ScalingConfig.Builder
All Implemented Interfaces:
ScalingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ScalingConfig

public static final class ScalingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ScalingConfig.Builder> implements ScalingConfigOrBuilder
 Represents the scaling configuration of a metastore service.
 
Protobuf type google.cloud.metastore.v1beta.ScalingConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    int
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    float
    Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
     
    boolean
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    boolean
    Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    An enum of readable instance sizes, with each instance size mapping to a float value (e.g.
    setScalingFactor(float value)
    Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ScalingConfig.Builder>
    • clear

      public ScalingConfig.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.GeneratedMessage.Builder<ScalingConfig.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.GeneratedMessage.Builder<ScalingConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ScalingConfig.Builder mergeFrom(ScalingConfig other)
    • isInitialized

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

      public ScalingConfig.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<ScalingConfig.Builder>
      Throws:
      IOException
    • getScalingModelCase

      public ScalingConfig.ScalingModelCase getScalingModelCase()
      Specified by:
      getScalingModelCase in interface ScalingConfigOrBuilder
    • clearScalingModel

      public ScalingConfig.Builder clearScalingModel()
    • hasInstanceSize

      public boolean hasInstanceSize()
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Specified by:
      hasInstanceSize in interface ScalingConfigOrBuilder
      Returns:
      Whether the instanceSize field is set.
    • getInstanceSizeValue

      public int getInstanceSizeValue()
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Specified by:
      getInstanceSizeValue in interface ScalingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for instanceSize.
    • setInstanceSizeValue

      public ScalingConfig.Builder setInstanceSizeValue(int value)
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Parameters:
      value - The enum numeric value on the wire for instanceSize to set.
      Returns:
      This builder for chaining.
    • getInstanceSize

      public ScalingConfig.InstanceSize getInstanceSize()
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Specified by:
      getInstanceSize in interface ScalingConfigOrBuilder
      Returns:
      The instanceSize.
    • setInstanceSize

      public ScalingConfig.Builder setInstanceSize(ScalingConfig.InstanceSize value)
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Parameters:
      value - The instanceSize to set.
      Returns:
      This builder for chaining.
    • clearInstanceSize

      public ScalingConfig.Builder clearInstanceSize()
       An enum of readable instance sizes, with each instance size mapping to a
       float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
       
      .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1;
      Returns:
      This builder for chaining.
    • hasScalingFactor

      public boolean hasScalingFactor()
       Scaling factor, increments of 0.1 for values less than 1.0, and
       increments of 1.0 for values greater than 1.0.
       
      float scaling_factor = 2;
      Specified by:
      hasScalingFactor in interface ScalingConfigOrBuilder
      Returns:
      Whether the scalingFactor field is set.
    • getScalingFactor

      public float getScalingFactor()
       Scaling factor, increments of 0.1 for values less than 1.0, and
       increments of 1.0 for values greater than 1.0.
       
      float scaling_factor = 2;
      Specified by:
      getScalingFactor in interface ScalingConfigOrBuilder
      Returns:
      The scalingFactor.
    • setScalingFactor

      public ScalingConfig.Builder setScalingFactor(float value)
       Scaling factor, increments of 0.1 for values less than 1.0, and
       increments of 1.0 for values greater than 1.0.
       
      float scaling_factor = 2;
      Parameters:
      value - The scalingFactor to set.
      Returns:
      This builder for chaining.
    • clearScalingFactor

      public ScalingConfig.Builder clearScalingFactor()
       Scaling factor, increments of 0.1 for values less than 1.0, and
       increments of 1.0 for values greater than 1.0.
       
      float scaling_factor = 2;
      Returns:
      This builder for chaining.