data.proto 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.analytics.data.v1alpha;
  16. import "google/protobuf/duration.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ReportingApiProto";
  20. option java_package = "com.google.analytics.data.v1alpha";
  21. // A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
  22. // are allowed up to 4 date ranges.
  23. message DateRange {
  24. // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
  25. // be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
  26. // accepted, and in that case, the date is inferred based on the property's
  27. // reporting time zone.
  28. string start_date = 1;
  29. // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
  30. // be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
  31. // also accepted, and in that case, the date is inferred based on the
  32. // property's reporting time zone.
  33. string end_date = 2;
  34. // Assigns a name to this date range. The dimension `dateRange` is valued to
  35. // this name in a report response. If set, cannot begin with `date_range_` or
  36. // `RESERVED_`. If not set, date ranges are named by their zero based index in
  37. // the request: `date_range_0`, `date_range_1`, etc.
  38. string name = 3;
  39. }
  40. // Dimensions are attributes of your data. For example, the dimension city
  41. // indicates the city from which an event originates. Dimension values in report
  42. // responses are strings; for example, the city could be "Paris" or "New York".
  43. message Dimension {
  44. // The name of the dimension. See the [API
  45. // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
  46. // for the list of dimension names.
  47. //
  48. // If `dimensionExpression` is specified, `name` can be any string that you
  49. // would like within the allowed character set. For example if a
  50. // `dimensionExpression` concatenates `country` and `city`, you could call
  51. // that dimension `countryAndCity`. Dimension names that you choose must match
  52. // the regular expression `^[a-zA-Z0-9_]$`.
  53. //
  54. // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
  55. // `dimensionExpression`, and `pivots`.
  56. string name = 1;
  57. // One dimension can be the result of an expression of multiple dimensions.
  58. // For example, dimension "country, city": concatenate(country, ", ", city).
  59. DimensionExpression dimension_expression = 2;
  60. }
  61. // Used to express a dimension which is the result of a formula of multiple
  62. // dimensions. Example usages:
  63. // 1) lower_case(dimension)
  64. // 2) concatenate(dimension1, symbol, dimension2).
  65. message DimensionExpression {
  66. // Used to convert a dimension value to a single case.
  67. message CaseExpression {
  68. // Name of a dimension. The name must refer back to a name in dimensions
  69. // field of the request.
  70. string dimension_name = 1;
  71. }
  72. // Used to combine dimension values to a single dimension.
  73. message ConcatenateExpression {
  74. // Names of dimensions. The names must refer back to names in the dimensions
  75. // field of the request.
  76. repeated string dimension_names = 1;
  77. // The delimiter placed between dimension names.
  78. //
  79. // Delimiters are often single characters such as "|" or "," but can be
  80. // longer strings. If a dimension value contains the delimiter, both will be
  81. // present in response with no distinction. For example if dimension 1 value
  82. // = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
  83. // response will contain "US,FR,JP".
  84. string delimiter = 2;
  85. }
  86. // Specify one type of dimension expression for `DimensionExpression`.
  87. oneof one_expression {
  88. // Used to convert a dimension value to lower case.
  89. CaseExpression lower_case = 4;
  90. // Used to convert a dimension value to upper case.
  91. CaseExpression upper_case = 5;
  92. // Used to combine dimension values to a single dimension.
  93. // For example, dimension "country, city": concatenate(country, ", ", city).
  94. ConcatenateExpression concatenate = 6;
  95. }
  96. }
  97. // To express dimension or metric filters. The fields in the same
  98. // FilterExpression need to be either all dimensions or all metrics.
  99. message FilterExpression {
  100. // Specify one type of filter expression for `FilterExpression`.
  101. oneof expr {
  102. // The FilterExpressions in and_group have an AND relationship.
  103. FilterExpressionList and_group = 1;
  104. // The FilterExpressions in or_group have an OR relationship.
  105. FilterExpressionList or_group = 2;
  106. // The FilterExpression is NOT of not_expression.
  107. FilterExpression not_expression = 3;
  108. // A primitive filter. In the same FilterExpression, all of the filter's
  109. // field names need to be either all dimensions or all metrics.
  110. Filter filter = 4;
  111. }
  112. }
  113. // A list of filter expressions.
  114. message FilterExpressionList {
  115. // A list of filter expressions.
  116. repeated FilterExpression expressions = 1;
  117. }
  118. // An expression to filter dimension or metric values.
  119. message Filter {
  120. // The dimension name or metric name. Must be a name defined in dimensions
  121. // or metrics.
  122. string field_name = 1;
  123. // Specify one type of filter for `Filter`.
  124. oneof one_filter {
  125. // Strings related filter.
  126. StringFilter string_filter = 2;
  127. // A filter for in list values.
  128. InListFilter in_list_filter = 3;
  129. // A filter for numeric or date values.
  130. NumericFilter numeric_filter = 4;
  131. // A filter for between two values.
  132. BetweenFilter between_filter = 5;
  133. }
  134. }
  135. // The filter for string
  136. message StringFilter {
  137. // The match type of a string filter
  138. enum MatchType {
  139. // Unspecified
  140. MATCH_TYPE_UNSPECIFIED = 0;
  141. // Exact match of the string value.
  142. EXACT = 1;
  143. // Begins with the string value.
  144. BEGINS_WITH = 2;
  145. // Ends with the string value.
  146. ENDS_WITH = 3;
  147. // Contains the string value.
  148. CONTAINS = 4;
  149. // Full match for the regular expression with the string value.
  150. FULL_REGEXP = 5;
  151. // Partial match for the regular expression with the string value.
  152. PARTIAL_REGEXP = 6;
  153. }
  154. // The match type for this filter.
  155. MatchType match_type = 1;
  156. // The string value used for the matching.
  157. string value = 2;
  158. // If true, the string value is case sensitive.
  159. bool case_sensitive = 3;
  160. }
  161. // The result needs to be in a list of string values.
  162. message InListFilter {
  163. // The list of string values.
  164. // Must be non-empty.
  165. repeated string values = 1;
  166. // If true, the string value is case sensitive.
  167. bool case_sensitive = 2;
  168. }
  169. // Filters for numeric or date values.
  170. message NumericFilter {
  171. // The operation applied to a numeric filter
  172. enum Operation {
  173. // Unspecified.
  174. OPERATION_UNSPECIFIED = 0;
  175. // Equal
  176. EQUAL = 1;
  177. // Less than
  178. LESS_THAN = 2;
  179. // Less than or equal
  180. LESS_THAN_OR_EQUAL = 3;
  181. // Greater than
  182. GREATER_THAN = 4;
  183. // Greater than or equal
  184. GREATER_THAN_OR_EQUAL = 5;
  185. }
  186. // The operation type for this filter.
  187. Operation operation = 1;
  188. // A numeric value or a date value.
  189. NumericValue value = 2;
  190. }
  191. // To express that the result needs to be between two numbers (inclusive).
  192. message BetweenFilter {
  193. // Begins with this number.
  194. NumericValue from_value = 1;
  195. // Ends with this number.
  196. NumericValue to_value = 2;
  197. }
  198. // To represent a number.
  199. message NumericValue {
  200. // One of a numeric value
  201. oneof one_value {
  202. // Integer value
  203. int64 int64_value = 1;
  204. // Double value
  205. double double_value = 2;
  206. }
  207. }
  208. // Describes a dimension column in the report. Dimensions requested in a report
  209. // produce column entries within rows and DimensionHeaders. However, dimensions
  210. // used exclusively within filters or expressions do not produce columns in a
  211. // report; correspondingly, those dimensions do not produce headers.
  212. message DimensionHeader {
  213. // The dimension's name.
  214. string name = 1;
  215. }
  216. // Describes a metric column in the report. Visible metrics requested in a
  217. // report produce column entries within rows and MetricHeaders. However,
  218. // metrics used exclusively within filters or expressions do not produce columns
  219. // in a report; correspondingly, those metrics do not produce headers.
  220. message MetricHeader {
  221. // The metric's name.
  222. string name = 1;
  223. // The metric's data type.
  224. MetricType type = 2;
  225. }
  226. // Report data for each row.
  227. // For example if RunReportRequest contains:
  228. //
  229. // ```none
  230. // "dimensions": [
  231. // {
  232. // "name": "eventName"
  233. // },
  234. // {
  235. // "name": "countryId"
  236. // }
  237. // ],
  238. // "metrics": [
  239. // {
  240. // "name": "eventCount"
  241. // }
  242. // ]
  243. // ```
  244. //
  245. // One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and
  246. // 15 as the eventCount, would be:
  247. //
  248. // ```none
  249. // "dimensionValues": [
  250. // {
  251. // "value": "in_app_purchase"
  252. // },
  253. // {
  254. // "value": "JP"
  255. // }
  256. // ],
  257. // "metricValues": [
  258. // {
  259. // "value": "15"
  260. // }
  261. // ]
  262. // ```
  263. message Row {
  264. // List of requested dimension values. In a PivotReport, dimension_values
  265. // are only listed for dimensions included in a pivot.
  266. repeated DimensionValue dimension_values = 1;
  267. // List of requested visible metric values.
  268. repeated MetricValue metric_values = 2;
  269. }
  270. // The value of a dimension.
  271. message DimensionValue {
  272. // One kind of dimension value
  273. oneof one_value {
  274. // Value as a string if the dimension type is a string.
  275. string value = 1;
  276. }
  277. }
  278. // The value of a metric.
  279. message MetricValue {
  280. // One of metric value
  281. oneof one_value {
  282. // Measurement value. See MetricHeader for type.
  283. string value = 4;
  284. }
  285. }
  286. // Current state of all quotas for this Analytics Property. If any quota for a
  287. // property is exhausted, all requests to that property will return Resource
  288. // Exhausted errors.
  289. message PropertyQuota {
  290. // Standard Analytics Properties can use up to 25,000 tokens per day;
  291. // Analytics 360 Properties can use 250,000 tokens per day. Most requests
  292. // consume fewer than 10 tokens.
  293. QuotaStatus tokens_per_day = 1;
  294. // Standard Analytics Properties can use up to 5,000 tokens per hour;
  295. // Analytics 360 Properties can use 50,000 tokens per hour. An API request
  296. // consumes a single number of tokens, and that number is deducted from both
  297. // the hourly and daily quotas.
  298. QuotaStatus tokens_per_hour = 2;
  299. // Standard Analytics Properties can send up to 10 concurrent requests;
  300. // Analytics 360 Properties can use up to 50 concurrent requests.
  301. QuotaStatus concurrent_requests = 3;
  302. // Standard Analytics Properties and cloud project pairs can have up to 10
  303. // server errors per hour; Analytics 360 Properties and cloud project pairs
  304. // can have up to 50 server errors per hour.
  305. QuotaStatus server_errors_per_project_per_hour = 4;
  306. // Analytics Properties can send up to 120 requests with potentially
  307. // thresholded dimensions per hour. In a batch request, each report request
  308. // is individually counted for this quota if the request contains potentially
  309. // thresholded dimensions.
  310. QuotaStatus potentially_thresholded_requests_per_hour = 5;
  311. }
  312. // Current state for a particular quota group.
  313. message QuotaStatus {
  314. // Quota consumed by this request.
  315. int32 consumed = 1;
  316. // Quota remaining after this request.
  317. int32 remaining = 2;
  318. }
  319. // Breakdowns add a dimension to the funnel table sub report response.
  320. message FunnelBreakdown {
  321. // The dimension column added to the funnel table sub report response. The
  322. // breakdown dimension breaks down each funnel step. A valid
  323. // `breakdownDimension` is required if `funnelBreakdown` is specified.
  324. Dimension breakdown_dimension = 1;
  325. // The maximum number of distinct values of the breakdown dimension to return
  326. // in the response. A `limit` of `5` is used if limit is not specified. Limit
  327. // must exceed zero and cannot exceed 15.
  328. optional int64 limit = 2;
  329. }
  330. // Next actions state the value for a dimension after the user has achieved
  331. // a step but before the same user has achieved the next step. For example if
  332. // the `nextActionDimension` is `eventName`, then `nextActionDimension` in the
  333. // `i`th funnel step row will return first event after the event that qualified
  334. // the user into the `i`th funnel step but before the user achieved the `i+1`th
  335. // funnel step.
  336. message FunnelNextAction {
  337. // The dimension column added to the funnel visualization sub report response.
  338. // The next action dimension returns the next dimension value of this
  339. // dimension after the user has attained the `i`th funnel step.
  340. //
  341. // `nextActionDimension` currently only supports `eventName` and most Page /
  342. // Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
  343. // cannot be a dimension expression.
  344. Dimension next_action_dimension = 1;
  345. // The maximum number of distinct values of the breakdown dimension to return
  346. // in the response. A `limit` of `5` is used if limit is not specified. Limit
  347. // must exceed zero and cannot exceed 5.
  348. optional int64 limit = 2;
  349. }
  350. // Configures the funnel in a funnel report request. A funnel reports on users
  351. // as they pass through a sequence of steps.
  352. //
  353. // Funnel exploration lets you visualize the steps your users take to complete a
  354. // task and quickly see how well they are succeeding or failing at each step.
  355. // For example, how do prospects become shoppers and then become buyers? How do
  356. // one time buyers become repeat buyers? With this information, you can improve
  357. // inefficient or abandoned customer journeys.
  358. message Funnel {
  359. // In an open funnel, users can enter the funnel in any step, and in a closed
  360. // funnel, users must enter the funnel in the first step. Optional. If
  361. // unspecified, a closed funnel is used.
  362. bool is_open_funnel = 1;
  363. // The sequential steps of this funnel.
  364. repeated FunnelStep steps = 2;
  365. }
  366. // Steps define the user journey you want to measure. Steps contain one or
  367. // more conditions that your users must meet to be included in that step of
  368. // the funnel journey.
  369. message FunnelStep {
  370. // The distinctive name for this step. If unspecified, steps will be named
  371. // by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
  372. // string value returned by the `funnelStepName` dimension. For example,
  373. // specifying `name = Purchase` in the request's third funnel step will
  374. // produce `3. Purchase` in the funnel report response.
  375. string name = 1;
  376. // If true, this step must directly follow the previous step. If false,
  377. // there can be events between the previous step and this step. If
  378. // unspecified, `isDirectlyFollowedBy` is treated as false.
  379. bool is_directly_followed_by = 2;
  380. // If specified, this step must complete within this duration of the
  381. // completion of the prior step. `withinDurationFromPriorStep` is inclusive
  382. // of the endpoint at the microsecond granularity. For example a duration of
  383. // 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
  384. // microsecond.
  385. //
  386. // `withinDurationFromPriorStep` is optional, and if unspecified, steps may
  387. // be separated by any time duration.
  388. optional google.protobuf.Duration within_duration_from_prior_step = 3;
  389. // The condition that your users must meet to be included in this step of
  390. // the funnel journey.
  391. FunnelFilterExpression filter_expression = 4;
  392. }
  393. // Funnel sub reports contain the dimension and metric data values. For example,
  394. // 12 users reached the second step of the funnel.
  395. message FunnelSubReport {
  396. // Describes dimension columns. Funnel reports always include the funnel step
  397. // dimension in sub report responses. Additional dimensions like breakdowns,
  398. // dates, and next actions may be present in the response if requested.
  399. repeated DimensionHeader dimension_headers = 1;
  400. // Describes metric columns. Funnel reports always include active users in sub
  401. // report responses. The funnel table includes additional metrics like
  402. // completion rate, abandonments, and abandonments rate.
  403. repeated MetricHeader metric_headers = 2;
  404. // Rows of dimension value combinations and metric values in the report.
  405. repeated Row rows = 3;
  406. // Metadata for the funnel report.
  407. FunnelResponseMetadata metadata = 4;
  408. }
  409. // User segments are subsets of users who engaged with your site or app. For
  410. // example, users who have previously purchased; users who added items to their
  411. // shopping carts, but didn’t complete a purchase.
  412. message UserSegment {
  413. // Defines which users are included in this segment. Optional.
  414. UserSegmentCriteria user_inclusion_criteria = 1;
  415. // Defines which users are excluded in this segment. Optional.
  416. UserSegmentExclusion exclusion = 2;
  417. }
  418. // A user matches a criteria if the user's events meet the conditions in the
  419. // criteria.
  420. message UserSegmentCriteria {
  421. // A user matches this criteria if the user matches each of these
  422. // `andConditionGroups` and each of the `andSequenceGroups`.
  423. // `andConditionGroups` may be empty if `andSequenceGroups` are specified.
  424. repeated UserSegmentConditionGroup and_condition_groups = 1;
  425. // A user matches this criteria if the user matches each of these
  426. // `andSequenceGroups` and each of the `andConditionGroups`.
  427. // `andSequenceGroups` may be empty if `andConditionGroups` are specified.
  428. repeated UserSegmentSequenceGroup and_sequence_groups = 2;
  429. }
  430. // Scoping specifies which events are considered when evaluating if a user
  431. // meets a criteria.
  432. enum UserCriteriaScoping {
  433. // Unspecified criteria scoping. Do not specify.
  434. USER_CRITERIA_SCOPING_UNSPECIFIED = 0;
  435. // If the criteria is satisfied within one event, the user matches the
  436. // criteria.
  437. USER_CRITERIA_WITHIN_SAME_EVENT = 1;
  438. // If the criteria is satisfied within one session, the user matches the
  439. // criteria.
  440. USER_CRITERIA_WITHIN_SAME_SESSION = 2;
  441. // If the criteria is satisfied by any events for the user, the user
  442. // matches the criteria.
  443. USER_CRITERIA_ACROSS_ALL_SESSIONS = 3;
  444. }
  445. // Conditions tell Analytics what data to include in or exclude from the
  446. // segment.
  447. message UserSegmentConditionGroup {
  448. // Data is included or excluded from the segment based on if it matches
  449. // the condition group. This scoping defines how many events the
  450. // `segmentFilterExpression` is evaluated on before the condition group
  451. // is determined to be matched or not. For example if `conditionScoping =
  452. // USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
  453. // events in a session, and then, the condition group is determined to be
  454. // matched or not for this user. For example if `conditionScoping =
  455. // USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
  456. // event, and then, the condition group is determined to be matched or not for
  457. // this user.
  458. //
  459. // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
  460. // used.
  461. UserCriteriaScoping condition_scoping = 1;
  462. // Data is included or excluded from the segment based on if it matches
  463. // this expression. Expressions express criteria on dimension, metrics,
  464. // and/or parameters.
  465. SegmentFilterExpression segment_filter_expression = 2;
  466. }
  467. // Define conditions that must occur in a specific order for the user to be
  468. // a member of the segment.
  469. message UserSegmentSequenceGroup {
  470. // All sequence steps must be satisfied in the scoping for the user to
  471. // match the sequence. For example if `sequenceScoping =
  472. // USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
  473. // one session for the user to match the sequence. `sequenceScoping =
  474. // USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
  475. //
  476. // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
  477. // used.
  478. UserCriteriaScoping sequence_scoping = 1;
  479. // Defines the time period in which the whole sequence must occur; for
  480. // example, 30 Minutes. `sequenceMaximumDuration` is inclusive
  481. // of the endpoint at the microsecond granularity. For example a sequence
  482. // with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
  483. // seconds, but not 5 seconds and 1 microsecond.
  484. //
  485. // `sequenceMaximumDuration` is optional, and if unspecified, sequences can
  486. // be completed in any time duration.
  487. google.protobuf.Duration sequence_maximum_duration = 2;
  488. // An ordered sequence of condition steps. A user's events must complete
  489. // each step in order for the user to match the
  490. // `UserSegmentSequenceGroup`.
  491. repeated UserSequenceStep user_sequence_steps = 3;
  492. }
  493. // A condition that must occur in the specified step order for this user
  494. // to match the sequence.
  495. message UserSequenceStep {
  496. // If true, the event satisfying this step must be the very next event
  497. // after the event satifying the last step. If false, this step indirectly
  498. // follows the prior step; for example, there may be events between the
  499. // prior step and this step. `isDirectlyFollowedBy` must be false for
  500. // the first step.
  501. bool is_directly_followed_by = 1;
  502. // This sequence step must be satisfied in the scoping for the user to
  503. // match the sequence. For example if `sequenceScoping =
  504. // WITHIN_SAME_SESSION`, this sequence steps must complete within one
  505. // session for the user to match the sequence. `stepScoping =
  506. // ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
  507. // ACROSS_ALL_SESSIONS`.
  508. //
  509. // Optional. If unspecified, `stepScoping` uses the same
  510. // `UserCriteriaScoping` as the `sequenceScoping`.
  511. UserCriteriaScoping step_scoping = 2;
  512. // A user matches this sequence step if their events match this
  513. // expression. Expressions express criteria on dimension, metrics,
  514. // and/or parameters.
  515. SegmentFilterExpression segment_filter_expression = 3;
  516. }
  517. // Specifies which users are excluded in this segment.
  518. message UserSegmentExclusion {
  519. // Specifies how long an exclusion will last if a user matches the
  520. // `userExclusionCriteria`.
  521. //
  522. // Optional. If unspecified, `userExclusionDuration` of
  523. // `USER_EXCLUSION_TEMPORARY` is used.
  524. UserExclusionDuration user_exclusion_duration = 1;
  525. // If a user meets this condition, the user is excluded from membership in
  526. // the segment for the `userExclusionDuration`.
  527. UserSegmentCriteria user_exclusion_criteria = 2;
  528. }
  529. // Enumerates options for how long an exclusion will last if a user matches
  530. // the `userExclusionCriteria`.
  531. enum UserExclusionDuration {
  532. // Unspecified exclusion duration. Do not specify.
  533. USER_EXCLUSION_DURATION_UNSPECIFIED = 0;
  534. // Temporarily exclude users from the segment during periods when the
  535. // user meets the `userExclusionCriteria` condition.
  536. USER_EXCLUSION_TEMPORARY = 1;
  537. // Permanently exclude users from the segment if the user ever meets the
  538. // `userExclusionCriteria` condition.
  539. USER_EXCLUSION_PERMANENT = 2;
  540. }
  541. // Session segments are subsets of the sessions that occurred on your site or
  542. // app: for example, all the sessions that originated from a particular
  543. // advertising campaign.
  544. message SessionSegment {
  545. // Defines which sessions are included in this segment. Optional.
  546. SessionSegmentCriteria session_inclusion_criteria = 1;
  547. // Defines which sessions are excluded in this segment. Optional.
  548. SessionSegmentExclusion exclusion = 2;
  549. }
  550. // A session matches a criteria if the session's events meet the conditions in
  551. // the criteria.
  552. message SessionSegmentCriteria {
  553. // A session matches this criteria if the session matches each of these
  554. // `andConditionGroups`.
  555. repeated SessionSegmentConditionGroup and_condition_groups = 1;
  556. }
  557. // Scoping specifies which events are considered when evaluating if a
  558. // session meets a criteria.
  559. enum SessionCriteriaScoping {
  560. // Unspecified criteria scoping. Do not specify.
  561. SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0;
  562. // If the criteria is satisfied within one event, the session matches the
  563. // criteria.
  564. SESSION_CRITERIA_WITHIN_SAME_EVENT = 1;
  565. // If the criteria is satisfied within one session, the session matches
  566. // the criteria.
  567. SESSION_CRITERIA_WITHIN_SAME_SESSION = 2;
  568. }
  569. // Conditions tell Analytics what data to include in or exclude from the
  570. // segment.
  571. message SessionSegmentConditionGroup {
  572. // Data is included or excluded from the segment based on if it matches
  573. // the condition group. This scoping defines how many events the
  574. // `segmentFilterExpression` is evaluated on before the condition group
  575. // is determined to be matched or not. For example if `conditionScoping =
  576. // SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
  577. // events in a session, and then, the condition group is determined to be
  578. // matched or not for this session. For example if `conditionScoping =
  579. // SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
  580. // single event, and then, the condition group is determined to be matched or
  581. // not for this session.
  582. //
  583. // Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
  584. // is used.
  585. SessionCriteriaScoping condition_scoping = 1;
  586. // Data is included or excluded from the segment based on if it matches
  587. // this expression. Expressions express criteria on dimension, metrics,
  588. // and/or parameters.
  589. SegmentFilterExpression segment_filter_expression = 2;
  590. }
  591. // Specifies which sessions are excluded in this segment.
  592. message SessionSegmentExclusion {
  593. // Specifies how long an exclusion will last if a session matches the
  594. // `sessionExclusionCriteria`.
  595. //
  596. // Optional. If unspecified, a `sessionExclusionDuration` of
  597. // `SESSION_EXCLUSION_TEMPORARY` is used.
  598. SessionExclusionDuration session_exclusion_duration = 1;
  599. // If a session meets this condition, the session is excluded from
  600. // membership in the segment for the `sessionExclusionDuration`.
  601. SessionSegmentCriteria session_exclusion_criteria = 2;
  602. }
  603. // Enumerates options for how long an exclusion will last if a session
  604. // matches the `sessionExclusionCriteria`.
  605. enum SessionExclusionDuration {
  606. // Unspecified exclusion duration. Do not specify.
  607. SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0;
  608. // Temporarily exclude sessions from the segment during periods when the
  609. // session meets the `sessionExclusionCriteria` condition.
  610. SESSION_EXCLUSION_TEMPORARY = 1;
  611. // Permanently exclude sessions from the segment if the session ever meets
  612. // the `sessionExclusionCriteria` condition.
  613. SESSION_EXCLUSION_PERMANENT = 2;
  614. }
  615. // Event segments are subsets of events that were triggered on your site or app.
  616. // for example, all purchase events made in a particular location; app_exception
  617. // events that occurred on a specific operating system.
  618. message EventSegment {
  619. // Defines which events are included in this segment. Optional.
  620. EventSegmentCriteria event_inclusion_criteria = 1;
  621. // Defines which events are excluded in this segment. Optional.
  622. EventSegmentExclusion exclusion = 2;
  623. }
  624. // An event matches a criteria if the event meet the conditions in the
  625. // criteria.
  626. message EventSegmentCriteria {
  627. // An event matches this criteria if the event matches each of these
  628. // `andConditionGroups`.
  629. repeated EventSegmentConditionGroup and_condition_groups = 1;
  630. }
  631. // Scoping specifies which events are considered when evaluating if an event
  632. // meets a criteria.
  633. enum EventCriteriaScoping {
  634. // Unspecified criteria scoping. Do not specify.
  635. EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0;
  636. // If the criteria is satisfied within one event, the event matches the
  637. // criteria.
  638. EVENT_CRITERIA_WITHIN_SAME_EVENT = 1;
  639. }
  640. // Conditions tell Analytics what data to include in or exclude from the
  641. // segment.
  642. message EventSegmentConditionGroup {
  643. // `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
  644. //
  645. // Optional. If unspecified, a `conditionScoping` of
  646. // `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
  647. EventCriteriaScoping condition_scoping = 1;
  648. // Data is included or excluded from the segment based on if it matches
  649. // this expression. Expressions express criteria on dimension, metrics,
  650. // and/or parameters.
  651. SegmentFilterExpression segment_filter_expression = 2;
  652. }
  653. // Specifies which events are excluded in this segment.
  654. message EventSegmentExclusion {
  655. // `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
  656. //
  657. // Optional. If unspecified, an `eventExclusionDuration` of
  658. // `EVENT_EXCLUSION_PERMANENT` is used.
  659. EventExclusionDuration event_exclusion_duration = 1;
  660. // If an event meets this condition, the event is excluded from membership
  661. // in the segment for the `eventExclusionDuration`.
  662. EventSegmentCriteria event_exclusion_criteria = 2;
  663. }
  664. // Enumerates options for how long an exclusion will last if an event
  665. // matches the `eventExclusionCriteria`.
  666. enum EventExclusionDuration {
  667. // Unspecified exclusion duration. Do not specify.
  668. EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0;
  669. // Permanently exclude events from the segment if the event ever meets
  670. // the `eventExclusionCriteria` condition.
  671. EVENT_EXCLUSION_PERMANENT = 1;
  672. }
  673. // A segment is a subset of your Analytics data. For example, of your entire set
  674. // of users, one segment might be users from a particular country or city.
  675. // Another segment might be users who purchase a particular line of products or
  676. // who visit a specific part of your site or trigger certain events in your app.
  677. //
  678. // To learn more, see [GA4 Segment
  679. // Builder](https://support.google.com/analytics/answer/9304353).
  680. message Segment {
  681. // The name for this segment. If unspecified, segments are named "Segment".
  682. // This name defines string value returned by the `segment` dimension. The
  683. // `segment` dimension prefixes segment names by the 1-based index number of
  684. // the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
  685. string name = 1;
  686. // A segment is specified in one scope.
  687. oneof one_segment_scope {
  688. // User segments are subsets of users who engaged with your site or app.
  689. UserSegment user_segment = 2;
  690. // Session segments are subsets of the sessions that occurred on your site
  691. // or app.
  692. SessionSegment session_segment = 3;
  693. // Event segments are subsets of events that were triggered on your site or
  694. // app.
  695. EventSegment event_segment = 4;
  696. }
  697. }
  698. // Expresses combinations of segment filters.
  699. message SegmentFilterExpression {
  700. // Specify one type of filter for `SegmentFilterExpression`.
  701. oneof expr {
  702. // The SegmentFilterExpression in `andGroup` have an AND relationship.
  703. SegmentFilterExpressionList and_group = 1;
  704. // The SegmentFilterExpression in `orGroup` have an OR relationship.
  705. SegmentFilterExpressionList or_group = 2;
  706. // The SegmentFilterExpression is NOT of `notExpression`.
  707. SegmentFilterExpression not_expression = 3;
  708. // A primitive segment filter.
  709. SegmentFilter segment_filter = 4;
  710. // Creates a filter that matches events of a single event name. If a
  711. // parameter filter expression is specified, only the subset of events that
  712. // match both the single event name and the parameter filter expressions
  713. // match this event filter.
  714. SegmentEventFilter segment_event_filter = 5;
  715. }
  716. }
  717. // A list of segment filter expressions.
  718. message SegmentFilterExpressionList {
  719. // The list of segment filter expressions
  720. repeated SegmentFilterExpression expressions = 1;
  721. }
  722. // An expression to filter dimension or metric values.
  723. message SegmentFilter {
  724. // The dimension name or metric name.
  725. string field_name = 1;
  726. // Specify one type of filter for `Filter`.
  727. oneof one_filter {
  728. // Strings related filter.
  729. StringFilter string_filter = 4;
  730. // A filter for in list values.
  731. InListFilter in_list_filter = 5;
  732. // A filter for numeric or date values.
  733. NumericFilter numeric_filter = 6;
  734. // A filter for between two values.
  735. BetweenFilter between_filter = 7;
  736. }
  737. // Specifies the scope for the filter.
  738. SegmentFilterScoping filter_scoping = 8;
  739. }
  740. // Scopings specify how the dimensions & metrics of multiple events
  741. // should be considered when evaluating a segment filter.
  742. message SegmentFilterScoping {
  743. // If `atAnyPointInTime` is true, this filter evaluates to true for all
  744. // events if it evaluates to true for any event in the date range of the
  745. // request.
  746. //
  747. // This `atAnyPointInTime` parameter does not extend the date range of
  748. // events in the report. If `atAnyPointInTime` is true, only events within
  749. // the report's date range are considered when evaluating this filter.
  750. //
  751. // This `atAnyPointInTime` is only able to be specified if the criteria
  752. // scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
  753. // sequences.
  754. //
  755. // If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
  756. // false is used if unspecified.
  757. optional bool at_any_point_in_time = 1;
  758. }
  759. // Creates a filter that matches events of a single event name. If a parameter
  760. // filter expression is specified, only the subset of events that match both the
  761. // single event name and the parameter filter expressions match this event
  762. // filter.
  763. message SegmentEventFilter {
  764. // This filter matches events of this single event name. Event name is
  765. // required.
  766. optional string event_name = 1;
  767. // If specified, this filter matches events that match both the single event
  768. // name and the parameter filter expressions.
  769. //
  770. // Inside the parameter filter expression, only parameter filters are
  771. // available.
  772. optional SegmentParameterFilterExpression segment_parameter_filter_expression = 2;
  773. }
  774. // Expresses combinations of segment filter on parameters.
  775. message SegmentParameterFilterExpression {
  776. // Specify one type of filter for `SegmentParameterFilterExpression`.
  777. oneof expr {
  778. // The SegmentParameterFilterExpression in `andGroup` have an AND
  779. // relationship.
  780. SegmentParameterFilterExpressionList and_group = 1;
  781. // The SegmentParameterFilterExpression in `orGroup` have an OR
  782. // relationship.
  783. SegmentParameterFilterExpressionList or_group = 2;
  784. // The SegmentParameterFilterExpression is NOT of `notExpression`.
  785. SegmentParameterFilterExpression not_expression = 3;
  786. // A primitive segment parameter filter.
  787. SegmentParameterFilter segment_parameter_filter = 4;
  788. }
  789. }
  790. // A list of segment parameter filter expressions.
  791. message SegmentParameterFilterExpressionList {
  792. // The list of segment parameter filter expressions.
  793. repeated SegmentParameterFilterExpression expressions = 1;
  794. }
  795. // An expression to filter parameter values in a segment.
  796. message SegmentParameterFilter {
  797. // The field that is being filtered.
  798. oneof one_parameter {
  799. // This filter will be evaluated on the specified event parameter. Event
  800. // parameters are logged as parameters of the event. Event parameters
  801. // include fields like "firebase_screen" & "currency".
  802. //
  803. // Event parameters can only be used in segments & funnels and can only be
  804. // used in a descendent filter from an EventFilter. In a descendent filter
  805. // from an EventFilter either event or item parameters should be used.
  806. string event_parameter_name = 1;
  807. // This filter will be evaluated on the specified item parameter. Item
  808. // parameters are logged as parameters in the item array. Item parameters
  809. // include fields like "item_name" & "item_category".
  810. //
  811. // Item parameters can only be used in segments & funnels and can only be
  812. // used in a descendent filter from an EventFilter. In a descendent filter
  813. // from an EventFilter either event or item parameters should be used.
  814. //
  815. // Item parameters are only available in ecommerce events. To learn more
  816. // about ecommerce events, see the [Measure ecommerce]
  817. // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
  818. // guide.
  819. string item_parameter_name = 2;
  820. }
  821. // Specify one type of filter.
  822. oneof one_filter {
  823. // Strings related filter.
  824. StringFilter string_filter = 4;
  825. // A filter for in list values.
  826. InListFilter in_list_filter = 5;
  827. // A filter for numeric or date values.
  828. NumericFilter numeric_filter = 6;
  829. // A filter for between two values.
  830. BetweenFilter between_filter = 7;
  831. }
  832. // Specifies the scope for the filter.
  833. SegmentParameterFilterScoping filter_scoping = 8;
  834. }
  835. // Scopings specify how multiple events should be considered when evaluating a
  836. // segment parameter filter.
  837. message SegmentParameterFilterScoping {
  838. // Accumulates the parameter over the specified period of days before
  839. // applying the filter. Only supported if criteria scoping is
  840. // `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
  841. // parameter is `event_count`.
  842. //
  843. // For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
  844. // the event parameter is "event_count", and the Filter's criteria is
  845. // greater than 5, this filter will accumulate the event count of purchase
  846. // events over every 3 consecutive day period in the report's date range; a
  847. // user will pass this Filter's criteria to be included in this segment if
  848. // their count of purchase events exceeds 5 in any 3 consecutive day period.
  849. // For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
  850. // 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
  851. //
  852. // The date range is not extended for the purpose of having a full N day
  853. // window near the start of the date range. For example if a report is for
  854. // 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
  855. // period will be effectively shortened because no event data outside the
  856. // report's date range will be read. For example, the first four periods
  857. // will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
  858. // 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
  859. //
  860. // `inAnyNDayPeriod` is optional. If not specified, the
  861. // `segmentParameterFilter` is applied to each event individually.
  862. optional int64 in_any_n_day_period = 1;
  863. }
  864. // Expresses combinations of funnel filters.
  865. message FunnelFilterExpression {
  866. // Specify one type of filter for `FunnelFilterExpression`.
  867. oneof expr {
  868. // The FunnelFilterExpression in `andGroup` have an AND relationship.
  869. FunnelFilterExpressionList and_group = 1;
  870. // The FunnelFilterExpression in `orGroup` have an OR relationship.
  871. FunnelFilterExpressionList or_group = 2;
  872. // The FunnelFilterExpression is NOT of `notExpression`.
  873. FunnelFilterExpression not_expression = 3;
  874. // A funnel filter for a dimension or metric.
  875. FunnelFieldFilter funnel_field_filter = 4;
  876. // Creates a filter that matches events of a single event name. If a
  877. // parameter filter expression is specified, only the subset of events that
  878. // match both the single event name and the parameter filter expressions
  879. // match this event filter.
  880. FunnelEventFilter funnel_event_filter = 5;
  881. }
  882. }
  883. // A list of funnel filter expressions.
  884. message FunnelFilterExpressionList {
  885. // The list of funnel filter expressions.
  886. repeated FunnelFilterExpression expressions = 1;
  887. }
  888. // An expression to filter dimension or metric values.
  889. message FunnelFieldFilter {
  890. // The dimension name or metric name.
  891. string field_name = 1;
  892. // Specify one type of filter.
  893. oneof one_filter {
  894. // Strings related filter.
  895. StringFilter string_filter = 4;
  896. // A filter for in list values.
  897. InListFilter in_list_filter = 5;
  898. // A filter for numeric or date values.
  899. NumericFilter numeric_filter = 6;
  900. // A filter for between two values.
  901. BetweenFilter between_filter = 7;
  902. }
  903. }
  904. // Creates a filter that matches events of a single event name. If a parameter
  905. // filter expression is specified, only the subset of events that match both the
  906. // single event name and the parameter filter expressions match this event
  907. // filter.
  908. message FunnelEventFilter {
  909. // This filter matches events of this single event name. Event name is
  910. // required.
  911. optional string event_name = 1;
  912. // If specified, this filter matches events that match both the single event
  913. // name and the parameter filter expressions.
  914. //
  915. // Inside the parameter filter expression, only parameter filters are
  916. // available.
  917. optional FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
  918. }
  919. // Expresses combinations of funnel filters on parameters.
  920. message FunnelParameterFilterExpression {
  921. // Specify one type of filter for `FunnelParameterFilterExpression`.
  922. oneof expr {
  923. // The FunnelParameterFilterExpression in `andGroup` have an AND
  924. // relationship.
  925. FunnelParameterFilterExpressionList and_group = 1;
  926. // The FunnelParameterFilterExpression in `orGroup` have an OR
  927. // relationship.
  928. FunnelParameterFilterExpressionList or_group = 2;
  929. // The FunnelParameterFilterExpression is NOT of `notExpression`.
  930. FunnelParameterFilterExpression not_expression = 3;
  931. // A primitive funnel parameter filter.
  932. FunnelParameterFilter funnel_parameter_filter = 4;
  933. }
  934. }
  935. // A list of funnel parameter filter expressions.
  936. message FunnelParameterFilterExpressionList {
  937. // The list of funnel parameter filter expressions.
  938. repeated FunnelParameterFilterExpression expressions = 1;
  939. }
  940. // An expression to filter parameter values in a funnel.
  941. message FunnelParameterFilter {
  942. // The field that is being filtered.
  943. oneof one_parameter {
  944. // This filter will be evaluated on the specified event parameter. Event
  945. // parameters are logged as parameters of the event. Event parameters
  946. // include fields like "firebase_screen" & "currency".
  947. //
  948. // Event parameters can only be used in segments & funnels and can only be
  949. // used in a descendent filter from an EventFilter. In a descendent filter
  950. // from an EventFilter either event or item parameters should be used.
  951. string event_parameter_name = 1;
  952. // This filter will be evaluated on the specified item parameter. Item
  953. // parameters are logged as parameters in the item array. Item parameters
  954. // include fields like "item_name" & "item_category".
  955. //
  956. // Item parameters can only be used in segments & funnels and can only be
  957. // used in a descendent filter from an EventFilter. In a descendent filter
  958. // from an EventFilter either event or item parameters should be used.
  959. //
  960. // Item parameters are only available in ecommerce events. To learn more
  961. // about ecommerce events, see the [Measure ecommerce]
  962. // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
  963. // guide.
  964. string item_parameter_name = 2;
  965. }
  966. // Specify one type of filter.
  967. oneof one_filter {
  968. // Strings related filter.
  969. StringFilter string_filter = 4;
  970. // A filter for in list values.
  971. InListFilter in_list_filter = 5;
  972. // A filter for numeric or date values.
  973. NumericFilter numeric_filter = 6;
  974. // A filter for between two values.
  975. BetweenFilter between_filter = 7;
  976. }
  977. }
  978. // The funnel report's response metadata carries additional information about
  979. // the funnel report.
  980. message FunnelResponseMetadata {
  981. // If funnel report results are
  982. // [sampled](https://support.google.com/analytics/answer/2637192), this
  983. // describes what percentage of events were used in this funnel report. One
  984. // `samplingMetadatas` is populated for each date range. Each
  985. // `samplingMetadatas` corresponds to a date range in order that date ranges
  986. // were specified in the request.
  987. //
  988. // However if the results are not sampled, this field will not be defined.
  989. repeated SamplingMetadata sampling_metadatas = 1;
  990. }
  991. // If funnel report results are
  992. // [sampled](https://support.google.com/analytics/answer/2637192), this
  993. // metadata describes what percentage of events were used in this funnel
  994. // report for a date range. Sampling is the practice of analyzing a subset of
  995. // all data in order to uncover the meaningful information in the larger data
  996. // set.
  997. message SamplingMetadata {
  998. // The total number of events read in this sampled report for a date range.
  999. // This is the size of the subset this property's data that was analyzed in
  1000. // this funnel report.
  1001. int64 samples_read_count = 1;
  1002. // The total number of events present in this property's data that could
  1003. // have been analyzed in this funnel report for a date range. Sampling
  1004. // uncovers the meaningful information about the larger data set, and this
  1005. // is the size of the larger data set.
  1006. //
  1007. // To calculate the percentage of available data that was used in this
  1008. // funnel report, compute `samplesReadCount/samplingSpaceSize`.
  1009. int64 sampling_space_size = 2;
  1010. }
  1011. // A metric's value type.
  1012. enum MetricType {
  1013. // Unspecified type.
  1014. METRIC_TYPE_UNSPECIFIED = 0;
  1015. // Integer type.
  1016. TYPE_INTEGER = 1;
  1017. // Floating point type.
  1018. TYPE_FLOAT = 2;
  1019. // A duration of seconds; a special floating point type.
  1020. TYPE_SECONDS = 4;
  1021. // A duration in milliseconds; a special floating point type.
  1022. TYPE_MILLISECONDS = 5;
  1023. // A duration in minutes; a special floating point type.
  1024. TYPE_MINUTES = 6;
  1025. // A duration in hours; a special floating point type.
  1026. TYPE_HOURS = 7;
  1027. // A custom metric of standard type; a special floating point type.
  1028. TYPE_STANDARD = 8;
  1029. // An amount of money; a special floating point type.
  1030. TYPE_CURRENCY = 9;
  1031. // A length in feet; a special floating point type.
  1032. TYPE_FEET = 10;
  1033. // A length in miles; a special floating point type.
  1034. TYPE_MILES = 11;
  1035. // A length in meters; a special floating point type.
  1036. TYPE_METERS = 12;
  1037. // A length in kilometers; a special floating point type.
  1038. TYPE_KILOMETERS = 13;
  1039. }