Class ReportingDataAnnotation.DateRange.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.DateRange.Builder>
com.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange.Builder
All Implemented Interfaces:
ReportingDataAnnotation.DateRangeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ReportingDataAnnotation.DateRange

public static final class ReportingDataAnnotation.DateRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReportingDataAnnotation.DateRange.Builder> implements ReportingDataAnnotation.DateRangeOrBuilder
 Represents a Reporting Data Annotation's date range, both start and end
 dates are inclusive. Time zones are based on the parent property.
 
Protobuf type google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange
  • 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<ReportingDataAnnotation.DateRange.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<ReportingDataAnnotation.DateRange.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<ReportingDataAnnotation.DateRange.Builder>
    • getDefaultInstanceForType

      public ReportingDataAnnotation.DateRange 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 ReportingDataAnnotation.DateRange buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ReportingDataAnnotation.DateRange.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<ReportingDataAnnotation.DateRange.Builder>
      Throws:
      IOException
    • hasStartDate

      public boolean hasStartDate()
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStartDate in interface ReportingDataAnnotation.DateRangeOrBuilder
      Returns:
      Whether the startDate field is set.
    • getStartDate

      public Date getStartDate()
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartDate in interface ReportingDataAnnotation.DateRangeOrBuilder
      Returns:
      The startDate.
    • setStartDate

      public ReportingDataAnnotation.DateRange.Builder setStartDate(Date value)
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
    • setStartDate

      public ReportingDataAnnotation.DateRange.Builder setStartDate(Date.Builder builderForValue)
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartDate

      public ReportingDataAnnotation.DateRange.Builder mergeStartDate(Date value)
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearStartDate

       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStartDateBuilder

      public Date.Builder getStartDateBuilder()
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStartDateOrBuilder

      public DateOrBuilder getStartDateOrBuilder()
       Required. The start date for this range. Must be a valid date with
       year, month, and day set. The date may be in the past, present, or
       future.
       
      .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartDateOrBuilder in interface ReportingDataAnnotation.DateRangeOrBuilder
    • hasEndDate

      public boolean hasEndDate()
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndDate in interface ReportingDataAnnotation.DateRangeOrBuilder
      Returns:
      Whether the endDate field is set.
    • getEndDate

      public Date getEndDate()
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndDate in interface ReportingDataAnnotation.DateRangeOrBuilder
      Returns:
      The endDate.
    • setEndDate

       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
    • setEndDate

      public ReportingDataAnnotation.DateRange.Builder setEndDate(Date.Builder builderForValue)
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndDate

      public ReportingDataAnnotation.DateRange.Builder mergeEndDate(Date value)
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearEndDate

       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEndDateBuilder

      public Date.Builder getEndDateBuilder()
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEndDateOrBuilder

      public DateOrBuilder getEndDateOrBuilder()
       Required. The end date for this range. Must be a valid date with
       year, month, and day set. This date must be greater than or equal to
       the start date.
       
      .google.type.Date end_date = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndDateOrBuilder in interface ReportingDataAnnotation.DateRangeOrBuilder