Class CohortsRange.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CohortsRange.Builder>
com.google.analytics.data.v1beta.CohortsRange.Builder
All Implemented Interfaces:
CohortsRangeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CohortsRange

public static final class CohortsRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<CohortsRange.Builder> implements CohortsRangeOrBuilder
 Configures the extended reporting date range for a cohort report. Specifies
 an offset duration to follow the cohorts over.
 
Protobuf type google.analytics.data.v1beta.CohortsRange
  • 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<CohortsRange.Builder>
    • clear

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

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

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

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

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

      public CohortsRange.Builder mergeFrom(CohortsRange other)
    • isInitialized

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

      public CohortsRange.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<CohortsRange.Builder>
      Throws:
      IOException
    • getGranularityValue

      public int getGranularityValue()
       Required. The granularity used to interpret the `startOffset` and
       `endOffset` for the extended reporting date range for a cohort report.
       
      .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1;
      Specified by:
      getGranularityValue in interface CohortsRangeOrBuilder
      Returns:
      The enum numeric value on the wire for granularity.
    • setGranularityValue

      public CohortsRange.Builder setGranularityValue(int value)
       Required. The granularity used to interpret the `startOffset` and
       `endOffset` for the extended reporting date range for a cohort report.
       
      .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1;
      Parameters:
      value - The enum numeric value on the wire for granularity to set.
      Returns:
      This builder for chaining.
    • getGranularity

      public CohortsRange.Granularity getGranularity()
       Required. The granularity used to interpret the `startOffset` and
       `endOffset` for the extended reporting date range for a cohort report.
       
      .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1;
      Specified by:
      getGranularity in interface CohortsRangeOrBuilder
      Returns:
      The granularity.
    • setGranularity

      public CohortsRange.Builder setGranularity(CohortsRange.Granularity value)
       Required. The granularity used to interpret the `startOffset` and
       `endOffset` for the extended reporting date range for a cohort report.
       
      .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1;
      Parameters:
      value - The granularity to set.
      Returns:
      This builder for chaining.
    • clearGranularity

      public CohortsRange.Builder clearGranularity()
       Required. The granularity used to interpret the `startOffset` and
       `endOffset` for the extended reporting date range for a cohort report.
       
      .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1;
      Returns:
      This builder for chaining.
    • getStartOffset

      public int getStartOffset()
       `startOffset` specifies the start date of the extended reporting date range
       for a cohort report. `startOffset` is commonly set to 0 so that reports
       contain data from the acquisition of the cohort forward.
      
       If `granularity` is `DAILY`, the `startDate` of the extended reporting date
       range is `startDate` of the cohort plus `startOffset` days.
      
       If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 30` days.
       
      int32 start_offset = 2;
      Specified by:
      getStartOffset in interface CohortsRangeOrBuilder
      Returns:
      The startOffset.
    • setStartOffset

      public CohortsRange.Builder setStartOffset(int value)
       `startOffset` specifies the start date of the extended reporting date range
       for a cohort report. `startOffset` is commonly set to 0 so that reports
       contain data from the acquisition of the cohort forward.
      
       If `granularity` is `DAILY`, the `startDate` of the extended reporting date
       range is `startDate` of the cohort plus `startOffset` days.
      
       If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 30` days.
       
      int32 start_offset = 2;
      Parameters:
      value - The startOffset to set.
      Returns:
      This builder for chaining.
    • clearStartOffset

      public CohortsRange.Builder clearStartOffset()
       `startOffset` specifies the start date of the extended reporting date range
       for a cohort report. `startOffset` is commonly set to 0 so that reports
       contain data from the acquisition of the cohort forward.
      
       If `granularity` is `DAILY`, the `startDate` of the extended reporting date
       range is `startDate` of the cohort plus `startOffset` days.
      
       If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
       date range is `startDate` of the cohort plus `startOffset * 30` days.
       
      int32 start_offset = 2;
      Returns:
      This builder for chaining.
    • getEndOffset

      public int getEndOffset()
       Required. `endOffset` specifies the end date of the extended reporting date
       range for a cohort report. `endOffset` can be any positive integer but is
       commonly set to 5 to 10 so that reports contain data on the cohort for the
       next several granularity time periods.
      
       If `granularity` is `DAILY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset` days.
      
       If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 30` days.
       
      int32 end_offset = 3;
      Specified by:
      getEndOffset in interface CohortsRangeOrBuilder
      Returns:
      The endOffset.
    • setEndOffset

      public CohortsRange.Builder setEndOffset(int value)
       Required. `endOffset` specifies the end date of the extended reporting date
       range for a cohort report. `endOffset` can be any positive integer but is
       commonly set to 5 to 10 so that reports contain data on the cohort for the
       next several granularity time periods.
      
       If `granularity` is `DAILY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset` days.
      
       If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 30` days.
       
      int32 end_offset = 3;
      Parameters:
      value - The endOffset to set.
      Returns:
      This builder for chaining.
    • clearEndOffset

      public CohortsRange.Builder clearEndOffset()
       Required. `endOffset` specifies the end date of the extended reporting date
       range for a cohort report. `endOffset` can be any positive integer but is
       commonly set to 5 to 10 so that reports contain data on the cohort for the
       next several granularity time periods.
      
       If `granularity` is `DAILY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset` days.
      
       If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 7` days.
      
       If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
       range is `endDate` of the cohort plus `endOffset * 30` days.
       
      int32 end_offset = 3;
      Returns:
      This builder for chaining.