Class Dimension.Builder

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

public static final class Dimension.Builder extends com.google.protobuf.GeneratedMessage.Builder<Dimension.Builder> implements DimensionOrBuilder
 Dimensions are attributes of your data. For example, the dimension city
 indicates the city from which an event originates. Dimension values in report
 responses are strings; for example, the city could be "Paris" or "New York".
 
Protobuf type google.analytics.data.v1alpha.Dimension
  • 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<Dimension.Builder>
    • clear

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

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

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

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

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

      public Dimension.Builder mergeFrom(Dimension other)
    • isInitialized

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

      public Dimension.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<Dimension.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the dimension. See the [API
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
       for the list of dimension names supported by core reporting methods such
       as `runReport` and `batchRunReports`. See
       [Realtime
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
       for the list of dimension names supported by the `runRealtimeReport`
       method. See
       [Funnel
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
       for the list of dimension names supported by the `runFunnelReport`
       method.
      
       If `dimensionExpression` is specified, `name` can be any string that you
       would like within the allowed character set. For example if a
       `dimensionExpression` concatenates `country` and `city`, you could call
       that dimension `countryAndCity`. Dimension names that you choose must match
       the regular expression `^[a-zA-Z0-9_]$`.
      
       Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
       `dimensionExpression`, and `pivots`.
       
      string name = 1;
      Specified by:
      getName in interface DimensionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the dimension. See the [API
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
       for the list of dimension names supported by core reporting methods such
       as `runReport` and `batchRunReports`. See
       [Realtime
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
       for the list of dimension names supported by the `runRealtimeReport`
       method. See
       [Funnel
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
       for the list of dimension names supported by the `runFunnelReport`
       method.
      
       If `dimensionExpression` is specified, `name` can be any string that you
       would like within the allowed character set. For example if a
       `dimensionExpression` concatenates `country` and `city`, you could call
       that dimension `countryAndCity`. Dimension names that you choose must match
       the regular expression `^[a-zA-Z0-9_]$`.
      
       Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
       `dimensionExpression`, and `pivots`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DimensionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Dimension.Builder setName(String value)
       The name of the dimension. See the [API
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
       for the list of dimension names supported by core reporting methods such
       as `runReport` and `batchRunReports`. See
       [Realtime
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
       for the list of dimension names supported by the `runRealtimeReport`
       method. See
       [Funnel
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
       for the list of dimension names supported by the `runFunnelReport`
       method.
      
       If `dimensionExpression` is specified, `name` can be any string that you
       would like within the allowed character set. For example if a
       `dimensionExpression` concatenates `country` and `city`, you could call
       that dimension `countryAndCity`. Dimension names that you choose must match
       the regular expression `^[a-zA-Z0-9_]$`.
      
       Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
       `dimensionExpression`, and `pivots`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Dimension.Builder clearName()
       The name of the dimension. See the [API
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
       for the list of dimension names supported by core reporting methods such
       as `runReport` and `batchRunReports`. See
       [Realtime
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
       for the list of dimension names supported by the `runRealtimeReport`
       method. See
       [Funnel
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
       for the list of dimension names supported by the `runFunnelReport`
       method.
      
       If `dimensionExpression` is specified, `name` can be any string that you
       would like within the allowed character set. For example if a
       `dimensionExpression` concatenates `country` and `city`, you could call
       that dimension `countryAndCity`. Dimension names that you choose must match
       the regular expression `^[a-zA-Z0-9_]$`.
      
       Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
       `dimensionExpression`, and `pivots`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Dimension.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the dimension. See the [API
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
       for the list of dimension names supported by core reporting methods such
       as `runReport` and `batchRunReports`. See
       [Realtime
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-api-schema#dimensions)
       for the list of dimension names supported by the `runRealtimeReport`
       method. See
       [Funnel
       Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema#dimensions)
       for the list of dimension names supported by the `runFunnelReport`
       method.
      
       If `dimensionExpression` is specified, `name` can be any string that you
       would like within the allowed character set. For example if a
       `dimensionExpression` concatenates `country` and `city`, you could call
       that dimension `countryAndCity`. Dimension names that you choose must match
       the regular expression `^[a-zA-Z0-9_]$`.
      
       Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
       `dimensionExpression`, and `pivots`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasDimensionExpression

      public boolean hasDimensionExpression()
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
      Specified by:
      hasDimensionExpression in interface DimensionOrBuilder
      Returns:
      Whether the dimensionExpression field is set.
    • getDimensionExpression

      public DimensionExpression getDimensionExpression()
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
      Specified by:
      getDimensionExpression in interface DimensionOrBuilder
      Returns:
      The dimensionExpression.
    • setDimensionExpression

      public Dimension.Builder setDimensionExpression(DimensionExpression value)
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
    • setDimensionExpression

      public Dimension.Builder setDimensionExpression(DimensionExpression.Builder builderForValue)
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
    • mergeDimensionExpression

      public Dimension.Builder mergeDimensionExpression(DimensionExpression value)
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
    • clearDimensionExpression

      public Dimension.Builder clearDimensionExpression()
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
    • getDimensionExpressionBuilder

      public DimensionExpression.Builder getDimensionExpressionBuilder()
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
    • getDimensionExpressionOrBuilder

      public DimensionExpressionOrBuilder getDimensionExpressionOrBuilder()
       One dimension can be the result of an expression of multiple dimensions.
       For example, dimension "country, city": concatenate(country, ", ", city).
       
      .google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
      Specified by:
      getDimensionExpressionOrBuilder in interface DimensionOrBuilder