Class MinuteRange.Builder

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

public static final class MinuteRange.Builder extends com.google.protobuf.GeneratedMessage.Builder<MinuteRange.Builder> implements MinuteRangeOrBuilder
 A contiguous set of minutes: `startMinutesAgo`, `startMinutesAgo + 1`, ...,
 `endMinutesAgo`. Requests are allowed up to 2 minute ranges.
 
Protobuf type google.analytics.data.v1beta.MinuteRange
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The inclusive end minute for the query as a number of minutes before now.
    Assigns a name to this minute range.
    The inclusive start minute for the query as a number of minutes before now.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    The inclusive end minute for the query as a number of minutes before now.
    Assigns a name to this minute range.
    com.google.protobuf.ByteString
    Assigns a name to this minute range.
    int
    The inclusive start minute for the query as a number of minutes before now.
    boolean
    The inclusive end minute for the query as a number of minutes before now.
    boolean
    The inclusive start minute for the query as a number of minutes before now.
    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)
     
    setEndMinutesAgo(int value)
    The inclusive end minute for the query as a number of minutes before now.
    setName(String value)
    Assigns a name to this minute range.
    setNameBytes(com.google.protobuf.ByteString value)
    Assigns a name to this minute range.
    setStartMinutesAgo(int value)
    The inclusive start minute for the query as a number of minutes before now.

    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<MinuteRange.Builder>
    • clear

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

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

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

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

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

      public MinuteRange.Builder mergeFrom(MinuteRange other)
    • isInitialized

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

      public MinuteRange.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<MinuteRange.Builder>
      Throws:
      IOException
    • hasStartMinutesAgo

      public boolean hasStartMinutesAgo()
       The inclusive start minute for the query as a number of minutes before now.
       For example, `"startMinutesAgo": 29` specifies the report should include
       event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
      
       If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
       properties can request up to the last 30 minutes of event data
       (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
       the last 60 minutes of event data (`startMinutesAgo <= 59`).
       
      optional int32 start_minutes_ago = 1;
      Specified by:
      hasStartMinutesAgo in interface MinuteRangeOrBuilder
      Returns:
      Whether the startMinutesAgo field is set.
    • getStartMinutesAgo

      public int getStartMinutesAgo()
       The inclusive start minute for the query as a number of minutes before now.
       For example, `"startMinutesAgo": 29` specifies the report should include
       event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
      
       If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
       properties can request up to the last 30 minutes of event data
       (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
       the last 60 minutes of event data (`startMinutesAgo <= 59`).
       
      optional int32 start_minutes_ago = 1;
      Specified by:
      getStartMinutesAgo in interface MinuteRangeOrBuilder
      Returns:
      The startMinutesAgo.
    • setStartMinutesAgo

      public MinuteRange.Builder setStartMinutesAgo(int value)
       The inclusive start minute for the query as a number of minutes before now.
       For example, `"startMinutesAgo": 29` specifies the report should include
       event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
      
       If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
       properties can request up to the last 30 minutes of event data
       (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
       the last 60 minutes of event data (`startMinutesAgo <= 59`).
       
      optional int32 start_minutes_ago = 1;
      Parameters:
      value - The startMinutesAgo to set.
      Returns:
      This builder for chaining.
    • clearStartMinutesAgo

      public MinuteRange.Builder clearStartMinutesAgo()
       The inclusive start minute for the query as a number of minutes before now.
       For example, `"startMinutesAgo": 29` specifies the report should include
       event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`.
      
       If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics
       properties can request up to the last 30 minutes of event data
       (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to
       the last 60 minutes of event data (`startMinutesAgo <= 59`).
       
      optional int32 start_minutes_ago = 1;
      Returns:
      This builder for chaining.
    • hasEndMinutesAgo

      public boolean hasEndMinutesAgo()
       The inclusive end minute for the query as a number of minutes before now.
       Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
       specifies the report should include event data from prior to 15 minutes
       ago.
      
       If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
       properties can request any minute in the last 30 minutes of event data
       (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
       minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
       
      optional int32 end_minutes_ago = 2;
      Specified by:
      hasEndMinutesAgo in interface MinuteRangeOrBuilder
      Returns:
      Whether the endMinutesAgo field is set.
    • getEndMinutesAgo

      public int getEndMinutesAgo()
       The inclusive end minute for the query as a number of minutes before now.
       Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
       specifies the report should include event data from prior to 15 minutes
       ago.
      
       If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
       properties can request any minute in the last 30 minutes of event data
       (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
       minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
       
      optional int32 end_minutes_ago = 2;
      Specified by:
      getEndMinutesAgo in interface MinuteRangeOrBuilder
      Returns:
      The endMinutesAgo.
    • setEndMinutesAgo

      public MinuteRange.Builder setEndMinutesAgo(int value)
       The inclusive end minute for the query as a number of minutes before now.
       Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
       specifies the report should include event data from prior to 15 minutes
       ago.
      
       If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
       properties can request any minute in the last 30 minutes of event data
       (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
       minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
       
      optional int32 end_minutes_ago = 2;
      Parameters:
      value - The endMinutesAgo to set.
      Returns:
      This builder for chaining.
    • clearEndMinutesAgo

      public MinuteRange.Builder clearEndMinutesAgo()
       The inclusive end minute for the query as a number of minutes before now.
       Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15`
       specifies the report should include event data from prior to 15 minutes
       ago.
      
       If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics
       properties can request any minute in the last 30 minutes of event data
       (`endMinutesAgo <= 29`), and 360 Analytics properties can request any
       minute in the last 60 minutes of event data (`endMinutesAgo <= 59`).
       
      optional int32 end_minutes_ago = 2;
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Assigns a name to this minute range. The dimension `dateRange` is valued to
       this name in a report response. If set, cannot begin with `date_range_` or
       `RESERVED_`. If not set, minute ranges are named by their zero based index
       in the request: `date_range_0`, `date_range_1`, etc.
       
      string name = 3;
      Specified by:
      getName in interface MinuteRangeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Assigns a name to this minute range. The dimension `dateRange` is valued to
       this name in a report response. If set, cannot begin with `date_range_` or
       `RESERVED_`. If not set, minute ranges are named by their zero based index
       in the request: `date_range_0`, `date_range_1`, etc.
       
      string name = 3;
      Specified by:
      getNameBytes in interface MinuteRangeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MinuteRange.Builder setName(String value)
       Assigns a name to this minute range. The dimension `dateRange` is valued to
       this name in a report response. If set, cannot begin with `date_range_` or
       `RESERVED_`. If not set, minute ranges are named by their zero based index
       in the request: `date_range_0`, `date_range_1`, etc.
       
      string name = 3;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public MinuteRange.Builder clearName()
       Assigns a name to this minute range. The dimension `dateRange` is valued to
       this name in a report response. If set, cannot begin with `date_range_` or
       `RESERVED_`. If not set, minute ranges are named by their zero based index
       in the request: `date_range_0`, `date_range_1`, etc.
       
      string name = 3;
      Returns:
      This builder for chaining.
    • setNameBytes

      public MinuteRange.Builder setNameBytes(com.google.protobuf.ByteString value)
       Assigns a name to this minute range. The dimension `dateRange` is valued to
       this name in a report response. If set, cannot begin with `date_range_` or
       `RESERVED_`. If not set, minute ranges are named by their zero based index
       in the request: `date_range_0`, `date_range_1`, etc.
       
      string name = 3;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.