Class AutoMlForecastingInputs.Granularity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoMlForecastingInputs.Granularity.Builder>
com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity.Builder
All Implemented Interfaces:
AutoMlForecastingInputs.GranularityOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AutoMlForecastingInputs.Granularity

public static final class AutoMlForecastingInputs.Granularity.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoMlForecastingInputs.Granularity.Builder> implements AutoMlForecastingInputs.GranularityOrBuilder
 A duration of time expressed in time granularity units.
 
Protobuf type google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs.Granularity
  • 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<AutoMlForecastingInputs.Granularity.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<AutoMlForecastingInputs.Granularity.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<AutoMlForecastingInputs.Granularity.Builder>
    • getDefaultInstanceForType

      public AutoMlForecastingInputs.Granularity 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

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

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

    • isInitialized

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

      public AutoMlForecastingInputs.Granularity.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<AutoMlForecastingInputs.Granularity.Builder>
      Throws:
      IOException
    • getUnit

      public String getUnit()
       The time granularity unit of this time period.
       The supported units are:
      
       * "minute"
      
       * "hour"
      
       * "day"
      
       * "week"
      
       * "month"
      
       * "year"
       
      string unit = 1;
      Specified by:
      getUnit in interface AutoMlForecastingInputs.GranularityOrBuilder
      Returns:
      The unit.
    • getUnitBytes

      public com.google.protobuf.ByteString getUnitBytes()
       The time granularity unit of this time period.
       The supported units are:
      
       * "minute"
      
       * "hour"
      
       * "day"
      
       * "week"
      
       * "month"
      
       * "year"
       
      string unit = 1;
      Specified by:
      getUnitBytes in interface AutoMlForecastingInputs.GranularityOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

       The time granularity unit of this time period.
       The supported units are:
      
       * "minute"
      
       * "hour"
      
       * "day"
      
       * "week"
      
       * "month"
      
       * "year"
       
      string unit = 1;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

       The time granularity unit of this time period.
       The supported units are:
      
       * "minute"
      
       * "hour"
      
       * "day"
      
       * "week"
      
       * "month"
      
       * "year"
       
      string unit = 1;
      Returns:
      This builder for chaining.
    • setUnitBytes

      public AutoMlForecastingInputs.Granularity.Builder setUnitBytes(com.google.protobuf.ByteString value)
       The time granularity unit of this time period.
       The supported units are:
      
       * "minute"
      
       * "hour"
      
       * "day"
      
       * "week"
      
       * "month"
      
       * "year"
       
      string unit = 1;
      Parameters:
      value - The bytes for unit to set.
      Returns:
      This builder for chaining.
    • getQuantity

      public long getQuantity()
       The number of granularity_units between data points in the training
       data. If `granularity_unit` is `minute`,
       can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
       must be 1.
       
      int64 quantity = 2;
      Specified by:
      getQuantity in interface AutoMlForecastingInputs.GranularityOrBuilder
      Returns:
      The quantity.
    • setQuantity

      public AutoMlForecastingInputs.Granularity.Builder setQuantity(long value)
       The number of granularity_units between data points in the training
       data. If `granularity_unit` is `minute`,
       can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
       must be 1.
       
      int64 quantity = 2;
      Parameters:
      value - The quantity to set.
      Returns:
      This builder for chaining.
    • clearQuantity

       The number of granularity_units between data points in the training
       data. If `granularity_unit` is `minute`,
       can be 1, 5, 10, 15, or 30. For all other values of `granularity_unit`,
       must be 1.
       
      int64 quantity = 2;
      Returns:
      This builder for chaining.