data

package
v0.0.0-...-6cb3ea0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricAggregation_name = map[int32]string{
		0: "METRIC_AGGREGATION_UNSPECIFIED",
		1: "TOTAL",
		5: "MINIMUM",
		6: "MAXIMUM",
		4: "COUNT",
	}
	MetricAggregation_value = map[string]int32{
		"METRIC_AGGREGATION_UNSPECIFIED": 0,
		"TOTAL":                          1,
		"MINIMUM":                        5,
		"MAXIMUM":                        6,
		"COUNT":                          4,
	}
)

Enum value maps for MetricAggregation.

View Source
var (
	MetricType_name = map[int32]string{
		0:  "METRIC_TYPE_UNSPECIFIED",
		1:  "TYPE_INTEGER",
		2:  "TYPE_FLOAT",
		4:  "TYPE_SECONDS",
		5:  "TYPE_MILLISECONDS",
		6:  "TYPE_MINUTES",
		7:  "TYPE_HOURS",
		8:  "TYPE_STANDARD",
		9:  "TYPE_CURRENCY",
		10: "TYPE_FEET",
		11: "TYPE_MILES",
		12: "TYPE_METERS",
		13: "TYPE_KILOMETERS",
	}
	MetricType_value = map[string]int32{
		"METRIC_TYPE_UNSPECIFIED": 0,
		"TYPE_INTEGER":            1,
		"TYPE_FLOAT":              2,
		"TYPE_SECONDS":            4,
		"TYPE_MILLISECONDS":       5,
		"TYPE_MINUTES":            6,
		"TYPE_HOURS":              7,
		"TYPE_STANDARD":           8,
		"TYPE_CURRENCY":           9,
		"TYPE_FEET":               10,
		"TYPE_MILES":              11,
		"TYPE_METERS":             12,
		"TYPE_KILOMETERS":         13,
	}
)

Enum value maps for MetricType.

View Source
var (
	Filter_StringFilter_MatchType_name = map[int32]string{
		0: "MATCH_TYPE_UNSPECIFIED",
		1: "EXACT",
		2: "BEGINS_WITH",
		3: "ENDS_WITH",
		4: "CONTAINS",
		5: "FULL_REGEXP",
		6: "PARTIAL_REGEXP",
	}
	Filter_StringFilter_MatchType_value = map[string]int32{
		"MATCH_TYPE_UNSPECIFIED": 0,
		"EXACT":                  1,
		"BEGINS_WITH":            2,
		"ENDS_WITH":              3,
		"CONTAINS":               4,
		"FULL_REGEXP":            5,
		"PARTIAL_REGEXP":         6,
	}
)

Enum value maps for Filter_StringFilter_MatchType.

View Source
var (
	Filter_NumericFilter_Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "EQUAL",
		2: "LESS_THAN",
		3: "LESS_THAN_OR_EQUAL",
		4: "GREATER_THAN",
		5: "GREATER_THAN_OR_EQUAL",
	}
	Filter_NumericFilter_Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"EQUAL":                 1,
		"LESS_THAN":             2,
		"LESS_THAN_OR_EQUAL":    3,
		"GREATER_THAN":          4,
		"GREATER_THAN_OR_EQUAL": 5,
	}
)

Enum value maps for Filter_NumericFilter_Operation.

View Source
var (
	OrderBy_DimensionOrderBy_OrderType_name = map[int32]string{
		0: "ORDER_TYPE_UNSPECIFIED",
		1: "ALPHANUMERIC",
		2: "CASE_INSENSITIVE_ALPHANUMERIC",
		3: "NUMERIC",
	}
	OrderBy_DimensionOrderBy_OrderType_value = map[string]int32{
		"ORDER_TYPE_UNSPECIFIED":        0,
		"ALPHANUMERIC":                  1,
		"CASE_INSENSITIVE_ALPHANUMERIC": 2,
		"NUMERIC":                       3,
	}
)

Enum value maps for OrderBy_DimensionOrderBy_OrderType.

View Source
var (
	CohortsRange_Granularity_name = map[int32]string{
		0: "GRANULARITY_UNSPECIFIED",
		1: "DAILY",
		2: "WEEKLY",
		3: "MONTHLY",
	}
	CohortsRange_Granularity_value = map[string]int32{
		"GRANULARITY_UNSPECIFIED": 0,
		"DAILY":                   1,
		"WEEKLY":                  2,
		"MONTHLY":                 3,
	}
)

Enum value maps for CohortsRange_Granularity.

View Source
var File_google_analytics_data_v1alpha_analytics_data_api_proto protoreflect.FileDescriptor
View Source
var File_google_analytics_data_v1alpha_data_proto protoreflect.FileDescriptor

Functions

func RegisterAlphaAnalyticsDataServer

func RegisterAlphaAnalyticsDataServer(s *grpc.Server, srv AlphaAnalyticsDataServer)

Types

type AlphaAnalyticsDataClient

type AlphaAnalyticsDataClient interface {
	// Returns a customized report of your Google Analytics event data. Reports
	// contain statistics derived from data collected by the Google Analytics
	// tracking code. The data returned from the API is as a table with columns
	// for the requested dimensions and metrics. Metrics are individual
	// measurements of user activity on your property, such as active users or
	// event count. Dimensions break down metrics across some common criteria,
	// such as country or event name.
	RunReport(ctx context.Context, in *RunReportRequest, opts ...grpc.CallOption) (*RunReportResponse, error)
	// Returns a customized pivot report of your Google Analytics event data.
	// Pivot reports are more advanced and expressive formats than regular
	// reports. In a pivot report, dimensions are only visible if they are
	// included in a pivot. Multiple pivots can be specified to further dissect
	// your data.
	RunPivotReport(ctx context.Context, in *RunPivotReportRequest, opts ...grpc.CallOption) (*RunPivotReportResponse, error)
	// Returns multiple reports in a batch. All reports must be for the same
	// Entity.
	BatchRunReports(ctx context.Context, in *BatchRunReportsRequest, opts ...grpc.CallOption) (*BatchRunReportsResponse, error)
	// Returns multiple pivot reports in a batch. All reports must be for the same
	// Entity.
	BatchRunPivotReports(ctx context.Context, in *BatchRunPivotReportsRequest, opts ...grpc.CallOption) (*BatchRunPivotReportsResponse, error)
	// Returns metadata for dimensions and metrics available in reporting methods.
	// Used to explore the dimensions and metrics. In this method, a Google
	// Analytics GA4 Property Identifier is specified in the request, and
	// the metadata response includes Custom dimensions and metrics as well as
	// Universal metadata.
	//
	// For example if a custom metric with parameter name `levels_unlocked` is
	// registered to a property, the Metadata response will contain
	// `customEvent:levels_unlocked`. Universal metadata are dimensions and
	// metrics applicable to any property such as `country` and `totalUsers`.
	GetMetadata(ctx context.Context, in *GetMetadataRequest, opts ...grpc.CallOption) (*Metadata, error)
	// The Google Analytics Realtime API returns a customized report of realtime
	// event data for your property. These reports show events and usage from the
	// last 30 minutes.
	RunRealtimeReport(ctx context.Context, in *RunRealtimeReportRequest, opts ...grpc.CallOption) (*RunRealtimeReportResponse, error)
}

AlphaAnalyticsDataClient is the client API for AlphaAnalyticsData service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AlphaAnalyticsDataServer

type AlphaAnalyticsDataServer interface {
	// Returns a customized report of your Google Analytics event data. Reports
	// contain statistics derived from data collected by the Google Analytics
	// tracking code. The data returned from the API is as a table with columns
	// for the requested dimensions and metrics. Metrics are individual
	// measurements of user activity on your property, such as active users or
	// event count. Dimensions break down metrics across some common criteria,
	// such as country or event name.
	RunReport(context.Context, *RunReportRequest) (*RunReportResponse, error)
	// Returns a customized pivot report of your Google Analytics event data.
	// Pivot reports are more advanced and expressive formats than regular
	// reports. In a pivot report, dimensions are only visible if they are
	// included in a pivot. Multiple pivots can be specified to further dissect
	// your data.
	RunPivotReport(context.Context, *RunPivotReportRequest) (*RunPivotReportResponse, error)
	// Returns multiple reports in a batch. All reports must be for the same
	// Entity.
	BatchRunReports(context.Context, *BatchRunReportsRequest) (*BatchRunReportsResponse, error)
	// Returns multiple pivot reports in a batch. All reports must be for the same
	// Entity.
	BatchRunPivotReports(context.Context, *BatchRunPivotReportsRequest) (*BatchRunPivotReportsResponse, error)
	// Returns metadata for dimensions and metrics available in reporting methods.
	// Used to explore the dimensions and metrics. In this method, a Google
	// Analytics GA4 Property Identifier is specified in the request, and
	// the metadata response includes Custom dimensions and metrics as well as
	// Universal metadata.
	//
	// For example if a custom metric with parameter name `levels_unlocked` is
	// registered to a property, the Metadata response will contain
	// `customEvent:levels_unlocked`. Universal metadata are dimensions and
	// metrics applicable to any property such as `country` and `totalUsers`.
	GetMetadata(context.Context, *GetMetadataRequest) (*Metadata, error)
	// The Google Analytics Realtime API returns a customized report of realtime
	// event data for your property. These reports show events and usage from the
	// last 30 minutes.
	RunRealtimeReport(context.Context, *RunRealtimeReportRequest) (*RunRealtimeReportResponse, error)
}

AlphaAnalyticsDataServer is the server API for AlphaAnalyticsData service.

type BatchRunPivotReportsRequest

type BatchRunPivotReportsRequest struct {

	// A property whose events are tracked. This entity must be specified for the
	// batch. The entity within RunPivotReportRequest may either be unspecified or
	// consistent with this entity.
	Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// Individual requests. Each request has a separate pivot report response.
	// Each batch request is allowed up to 5 requests.
	Requests []*RunPivotReportRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

The batch request containing multiple pivot report requests.

func (*BatchRunPivotReportsRequest) Descriptor deprecated

func (*BatchRunPivotReportsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchRunPivotReportsRequest.ProtoReflect.Descriptor instead.

func (*BatchRunPivotReportsRequest) GetEntity

func (x *BatchRunPivotReportsRequest) GetEntity() *Entity

func (*BatchRunPivotReportsRequest) GetRequests

func (*BatchRunPivotReportsRequest) ProtoMessage

func (*BatchRunPivotReportsRequest) ProtoMessage()

func (*BatchRunPivotReportsRequest) ProtoReflect

func (*BatchRunPivotReportsRequest) Reset

func (x *BatchRunPivotReportsRequest) Reset()

func (*BatchRunPivotReportsRequest) String

func (x *BatchRunPivotReportsRequest) String() string

type BatchRunPivotReportsResponse

type BatchRunPivotReportsResponse struct {

	// Individual responses. Each response has a separate pivot report request.
	PivotReports []*RunPivotReportResponse `protobuf:"bytes,1,rep,name=pivot_reports,json=pivotReports,proto3" json:"pivot_reports,omitempty"`
	// contains filtered or unexported fields
}

The batch response containing multiple pivot reports.

func (*BatchRunPivotReportsResponse) Descriptor deprecated

func (*BatchRunPivotReportsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchRunPivotReportsResponse.ProtoReflect.Descriptor instead.

func (*BatchRunPivotReportsResponse) GetPivotReports

func (x *BatchRunPivotReportsResponse) GetPivotReports() []*RunPivotReportResponse

func (*BatchRunPivotReportsResponse) ProtoMessage

func (*BatchRunPivotReportsResponse) ProtoMessage()

func (*BatchRunPivotReportsResponse) ProtoReflect

func (*BatchRunPivotReportsResponse) Reset

func (x *BatchRunPivotReportsResponse) Reset()

func (*BatchRunPivotReportsResponse) String

type BatchRunReportsRequest

type BatchRunReportsRequest struct {

	// A property whose events are tracked. This entity must be specified for the
	// batch. The entity within RunReportRequest may either be unspecified or
	// consistent with this entity.
	Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// Individual requests. Each request has a separate report response. Each
	// batch request is allowed up to 5 requests.
	Requests []*RunReportRequest `protobuf:"bytes,2,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

The batch request containing multiple report requests.

func (*BatchRunReportsRequest) Descriptor deprecated

func (*BatchRunReportsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchRunReportsRequest.ProtoReflect.Descriptor instead.

func (*BatchRunReportsRequest) GetEntity

func (x *BatchRunReportsRequest) GetEntity() *Entity

func (*BatchRunReportsRequest) GetRequests

func (x *BatchRunReportsRequest) GetRequests() []*RunReportRequest

func (*BatchRunReportsRequest) ProtoMessage

func (*BatchRunReportsRequest) ProtoMessage()

func (*BatchRunReportsRequest) ProtoReflect

func (x *BatchRunReportsRequest) ProtoReflect() protoreflect.Message

func (*BatchRunReportsRequest) Reset

func (x *BatchRunReportsRequest) Reset()

func (*BatchRunReportsRequest) String

func (x *BatchRunReportsRequest) String() string

type BatchRunReportsResponse

type BatchRunReportsResponse struct {

	// Individual responses. Each response has a separate report request.
	Reports []*RunReportResponse `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
	// contains filtered or unexported fields
}

The batch response containing multiple reports.

func (*BatchRunReportsResponse) Descriptor deprecated

func (*BatchRunReportsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchRunReportsResponse.ProtoReflect.Descriptor instead.

func (*BatchRunReportsResponse) GetReports

func (x *BatchRunReportsResponse) GetReports() []*RunReportResponse

func (*BatchRunReportsResponse) ProtoMessage

func (*BatchRunReportsResponse) ProtoMessage()

func (*BatchRunReportsResponse) ProtoReflect

func (x *BatchRunReportsResponse) ProtoReflect() protoreflect.Message

func (*BatchRunReportsResponse) Reset

func (x *BatchRunReportsResponse) Reset()

func (*BatchRunReportsResponse) String

func (x *BatchRunReportsResponse) String() string

type Cohort

type Cohort struct {

	// Assigns a name to this cohort. The dimension `cohort` is valued to this
	// name in a report response. If set, cannot begin with `cohort_` or
	// `RESERVED_`. If not set, cohorts are named by their zero based index
	// `cohort_0`, `cohort_1`, etc.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Dimension used by the cohort. Required and only supports `firstTouchDate`.
	Dimension string `protobuf:"bytes,2,opt,name=dimension,proto3" json:"dimension,omitempty"`
	// The cohort selects users whose first touch date is between start date and
	// end date defined in the `dateRange`. This `dateRange` does not specify the
	// full date range of event data that is present in a cohort report. In a
	// cohort report, this `dateRange` is extended by the granularity and offset
	// present in the `cohortsRange`; event data for the extended reporting date
	// range is present in a cohort report.
	//
	// In a cohort request, this `dateRange` is required and the `dateRanges` in
	// the `RunReportRequest` or `RunPivotReportRequest` must be unspecified.
	//
	// This `dateRange` should generally be aligned with the cohort's granularity.
	// If `CohortsRange` uses daily granularity, this `dateRange` can be a single
	// day. If `CohortsRange` uses weekly granularity, this `dateRange` can be
	// aligned to a week boundary, starting at Sunday and ending Saturday. If
	// `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to
	// a month, starting at the first and ending on the last day of the month.
	DateRange *DateRange `protobuf:"bytes,3,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// contains filtered or unexported fields
}

Defines a cohort selection criteria. A cohort is a group of users who share a common characteristic. For example, users with the same `firstTouchDate` belong to the same cohort.

func (*Cohort) Descriptor deprecated

func (*Cohort) Descriptor() ([]byte, []int)

Deprecated: Use Cohort.ProtoReflect.Descriptor instead.

func (*Cohort) GetDateRange

func (x *Cohort) GetDateRange() *DateRange

func (*Cohort) GetDimension

func (x *Cohort) GetDimension() string

func (*Cohort) GetName

func (x *Cohort) GetName() string

func (*Cohort) ProtoMessage

func (*Cohort) ProtoMessage()

func (*Cohort) ProtoReflect

func (x *Cohort) ProtoReflect() protoreflect.Message

func (*Cohort) Reset

func (x *Cohort) Reset()

func (*Cohort) String

func (x *Cohort) String() string

type CohortReportSettings

type CohortReportSettings struct {

	// If true, accumulates the result from first touch day to the end day. Not
	// supported in `RunReportRequest`.
	Accumulate bool `protobuf:"varint,1,opt,name=accumulate,proto3" json:"accumulate,omitempty"`
	// contains filtered or unexported fields
}

Optional settings of a cohort report.

func (*CohortReportSettings) Descriptor deprecated

func (*CohortReportSettings) Descriptor() ([]byte, []int)

Deprecated: Use CohortReportSettings.ProtoReflect.Descriptor instead.

func (*CohortReportSettings) GetAccumulate

func (x *CohortReportSettings) GetAccumulate() bool

func (*CohortReportSettings) ProtoMessage

func (*CohortReportSettings) ProtoMessage()

func (*CohortReportSettings) ProtoReflect

func (x *CohortReportSettings) ProtoReflect() protoreflect.Message

func (*CohortReportSettings) Reset

func (x *CohortReportSettings) Reset()

func (*CohortReportSettings) String

func (x *CohortReportSettings) String() string

type CohortSpec

type CohortSpec struct {

	// Defines the selection criteria to group users into cohorts.
	//
	// Most cohort reports define only a single cohort. If multiple cohorts are
	// specified, each cohort can be recognized in the report by their name.
	Cohorts []*Cohort `protobuf:"bytes,1,rep,name=cohorts,proto3" json:"cohorts,omitempty"`
	// Cohort reports follow cohorts over an extended reporting date range. This
	// range specifies an offset duration to follow the cohorts over.
	CohortsRange *CohortsRange `protobuf:"bytes,2,opt,name=cohorts_range,json=cohortsRange,proto3" json:"cohorts_range,omitempty"`
	// Optional settings for a cohort report.
	CohortReportSettings *CohortReportSettings `protobuf:"bytes,3,opt,name=cohort_report_settings,json=cohortReportSettings,proto3" json:"cohort_report_settings,omitempty"`
	// contains filtered or unexported fields
}

Specification of cohorts for a cohort report. Cohort reports can be used for example to create a time series of user retention for the cohort. For example, you could select the cohort of users that were acquired in the first week of September and follow that cohort for the next six weeks. Selecting the users acquired in the first week of September cohort is specified in the `cohort` object. Following that cohort for the next six weeks is specified in the `cohortsRange` object.

The report response could show a weekly time series where say your app has retained 60% of this cohort after three weeks and 25% of this cohort after six weeks. These two percentages can be calculated by the metric `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report.

func (*CohortSpec) Descriptor deprecated

func (*CohortSpec) Descriptor() ([]byte, []int)

Deprecated: Use CohortSpec.ProtoReflect.Descriptor instead.

func (*CohortSpec) GetCohortReportSettings

func (x *CohortSpec) GetCohortReportSettings() *CohortReportSettings

func (*CohortSpec) GetCohorts

func (x *CohortSpec) GetCohorts() []*Cohort

func (*CohortSpec) GetCohortsRange

func (x *CohortSpec) GetCohortsRange() *CohortsRange

func (*CohortSpec) ProtoMessage

func (*CohortSpec) ProtoMessage()

func (*CohortSpec) ProtoReflect

func (x *CohortSpec) ProtoReflect() protoreflect.Message

func (*CohortSpec) Reset

func (x *CohortSpec) Reset()

func (*CohortSpec) String

func (x *CohortSpec) String() string

type CohortsRange

type CohortsRange struct {

	// The granularity used to interpret the `startOffset` and `endOffset` for the
	// extended reporting date range for a cohort report.
	Granularity CohortsRange_Granularity `` /* 136-byte string literal not displayed */
	// `startOffset` specifies the start date of the extended reporting date range
	// for a cohort report. `startOffset` is commonly set to 0 so that reports
	// contain data from the acquisition of the cohort forward.
	//
	// If `granularity` is `DAILY`, the `startDate` of the extended reporting date
	// range is `startDate` of the cohort plus `startOffset` days.
	//
	// If `granularity` is `WEEKLY`, the `startDate` of the extended reporting
	// date range is `startDate` of the cohort plus `startOffset * 7` days.
	//
	// If `granularity` is `MONTHLY`, the `startDate` of the extended reporting
	// date range is `startDate` of the cohort plus `startOffset * 30` days.
	StartOffset int32 `protobuf:"varint,2,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
	// `endOffset` specifies the end date of the extended reporting date range
	// for a cohort report. `endOffset` can be any positive integer but is
	// commonly set to 5 to 10 so that reports contain data on the cohort for the
	// next several granularity time periods.
	//
	// If `granularity` is `DAILY`, the `endDate` of the extended reporting date
	// range is `endDate` of the cohort plus `endOffset` days.
	//
	// If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date
	// range is `endDate` of the cohort plus `endOffset * 7` days.
	//
	// If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date
	// range is `endDate` of the cohort plus `endOffset * 30` days.
	EndOffset int32 `protobuf:"varint,3,opt,name=end_offset,json=endOffset,proto3" json:"end_offset,omitempty"`
	// contains filtered or unexported fields
}

Configures the extended reporting date range for a cohort report. Specifies an offset duration to follow the cohorts over.

func (*CohortsRange) Descriptor deprecated

func (*CohortsRange) Descriptor() ([]byte, []int)

Deprecated: Use CohortsRange.ProtoReflect.Descriptor instead.

func (*CohortsRange) GetEndOffset

func (x *CohortsRange) GetEndOffset() int32

func (*CohortsRange) GetGranularity

func (x *CohortsRange) GetGranularity() CohortsRange_Granularity

func (*CohortsRange) GetStartOffset

func (x *CohortsRange) GetStartOffset() int32

func (*CohortsRange) ProtoMessage

func (*CohortsRange) ProtoMessage()

func (*CohortsRange) ProtoReflect

func (x *CohortsRange) ProtoReflect() protoreflect.Message

func (*CohortsRange) Reset

func (x *CohortsRange) Reset()

func (*CohortsRange) String

func (x *CohortsRange) String() string

type CohortsRange_Granularity

type CohortsRange_Granularity int32

The granularity used to interpret the `startOffset` and `endOffset` for the extended reporting date range for a cohort report.

const (
	// Should never be specified.
	CohortsRange_GRANULARITY_UNSPECIFIED CohortsRange_Granularity = 0
	// Daily granularity. Commonly used if the cohort's `dateRange` is a single
	// day and the request contains `cohortNthDay`.
	CohortsRange_DAILY CohortsRange_Granularity = 1
	// Weekly granularity. Commonly used if the cohort's `dateRange` is a week
	// in duration (starting on Sunday and ending on Saturday) and the request
	// contains `cohortNthWeek`.
	CohortsRange_WEEKLY CohortsRange_Granularity = 2
	// Monthly granularity. Commonly used if the cohort's `dateRange` is a month
	// in duration and the request contains `cohortNthMonth`.
	CohortsRange_MONTHLY CohortsRange_Granularity = 3
)

func (CohortsRange_Granularity) Descriptor

func (CohortsRange_Granularity) Enum

func (CohortsRange_Granularity) EnumDescriptor deprecated

func (CohortsRange_Granularity) EnumDescriptor() ([]byte, []int)

Deprecated: Use CohortsRange_Granularity.Descriptor instead.

func (CohortsRange_Granularity) Number

func (CohortsRange_Granularity) String

func (x CohortsRange_Granularity) String() string

func (CohortsRange_Granularity) Type

type DateRange

type DateRange struct {

	// The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
	// be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also
	// accepted, and in that case, the date is inferred based on the property's
	// reporting time zone.
	StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
	// be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is
	// also accepted, and in that case, the date is inferred based on the
	// property's reporting time zone.
	EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// Assigns a name to this date 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, date ranges are named by their zero based index in
	// the request: `date_range_0`, `date_range_1`, etc.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are allowed up to 4 date ranges.

func (*DateRange) Descriptor deprecated

func (*DateRange) Descriptor() ([]byte, []int)

Deprecated: Use DateRange.ProtoReflect.Descriptor instead.

func (*DateRange) GetEndDate

func (x *DateRange) GetEndDate() string

func (*DateRange) GetName

func (x *DateRange) GetName() string

func (*DateRange) GetStartDate

func (x *DateRange) GetStartDate() string

func (*DateRange) ProtoMessage

func (*DateRange) ProtoMessage()

func (*DateRange) ProtoReflect

func (x *DateRange) ProtoReflect() protoreflect.Message

func (*DateRange) Reset

func (x *DateRange) Reset()

func (*DateRange) String

func (x *DateRange) String() string

type Dimension

type Dimension struct {

	// 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.
	//
	// If `dimensionExpression` is specified, `name` can be any string that you
	// would like. For example if a `dimensionExpression` concatenates `country`
	// and `city`, you could call that dimension `countryAndCity`.
	//
	// Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`,
	// `dimensionExpression`, and `pivots`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// One dimension can be the result of an expression of multiple dimensions.
	// For example, dimension "country, city": concatenate(country, ", ", city).
	DimensionExpression *DimensionExpression `protobuf:"bytes,2,opt,name=dimension_expression,json=dimensionExpression,proto3" json:"dimension_expression,omitempty"`
	// contains filtered or unexported fields
}

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, city could be "Paris" or "New York". Requests are allowed up to 8 dimensions.

func (*Dimension) Descriptor deprecated

func (*Dimension) Descriptor() ([]byte, []int)

Deprecated: Use Dimension.ProtoReflect.Descriptor instead.

func (*Dimension) GetDimensionExpression

func (x *Dimension) GetDimensionExpression() *DimensionExpression

func (*Dimension) GetName

func (x *Dimension) GetName() string

func (*Dimension) ProtoMessage

func (*Dimension) ProtoMessage()

func (*Dimension) ProtoReflect

func (x *Dimension) ProtoReflect() protoreflect.Message

func (*Dimension) Reset

func (x *Dimension) Reset()

func (*Dimension) String

func (x *Dimension) String() string

type DimensionExpression

type DimensionExpression struct {

	// Specify one type of dimension expression for `DimensionExpression`.
	//
	// Types that are assignable to OneExpression:
	//	*DimensionExpression_LowerCase
	//	*DimensionExpression_UpperCase
	//	*DimensionExpression_Concatenate
	OneExpression isDimensionExpression_OneExpression `protobuf_oneof:"one_expression"`
	// contains filtered or unexported fields
}

Used to express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2).

func (*DimensionExpression) Descriptor deprecated

func (*DimensionExpression) Descriptor() ([]byte, []int)

Deprecated: Use DimensionExpression.ProtoReflect.Descriptor instead.

func (*DimensionExpression) GetConcatenate

func (*DimensionExpression) GetLowerCase

func (*DimensionExpression) GetOneExpression

func (m *DimensionExpression) GetOneExpression() isDimensionExpression_OneExpression

func (*DimensionExpression) GetUpperCase

func (*DimensionExpression) ProtoMessage

func (*DimensionExpression) ProtoMessage()

func (*DimensionExpression) ProtoReflect

func (x *DimensionExpression) ProtoReflect() protoreflect.Message

func (*DimensionExpression) Reset

func (x *DimensionExpression) Reset()

func (*DimensionExpression) String

func (x *DimensionExpression) String() string

type DimensionExpression_CaseExpression

type DimensionExpression_CaseExpression struct {

	// Name of a dimension. The name must refer back to a name in dimensions
	// field of the request.
	DimensionName string `protobuf:"bytes,1,opt,name=dimension_name,json=dimensionName,proto3" json:"dimension_name,omitempty"`
	// contains filtered or unexported fields
}

Used to convert a dimension value to a single case.

func (*DimensionExpression_CaseExpression) Descriptor deprecated

func (*DimensionExpression_CaseExpression) Descriptor() ([]byte, []int)

Deprecated: Use DimensionExpression_CaseExpression.ProtoReflect.Descriptor instead.

func (*DimensionExpression_CaseExpression) GetDimensionName

func (x *DimensionExpression_CaseExpression) GetDimensionName() string

func (*DimensionExpression_CaseExpression) ProtoMessage

func (*DimensionExpression_CaseExpression) ProtoMessage()

func (*DimensionExpression_CaseExpression) ProtoReflect

func (*DimensionExpression_CaseExpression) Reset

func (*DimensionExpression_CaseExpression) String

type DimensionExpression_Concatenate

type DimensionExpression_Concatenate struct {
	// Used to combine dimension values to a single dimension.
	// For example, dimension "country, city": concatenate(country, ", ", city).
	Concatenate *DimensionExpression_ConcatenateExpression `protobuf:"bytes,6,opt,name=concatenate,proto3,oneof"`
}

type DimensionExpression_ConcatenateExpression

type DimensionExpression_ConcatenateExpression struct {

	// Names of dimensions. The names must refer back to names in the dimensions
	// field of the request.
	DimensionNames []string `protobuf:"bytes,1,rep,name=dimension_names,json=dimensionNames,proto3" json:"dimension_names,omitempty"`
	// The delimiter placed between dimension names.
	//
	// Delimiters are often single characters such as "|" or "," but can be
	// longer strings. If a dimension value contains the delimiter, both will be
	// present in response with no distinction. For example if dimension 1 value
	// = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the
	// response will contain "US,FR,JP".
	Delimiter string `protobuf:"bytes,2,opt,name=delimiter,proto3" json:"delimiter,omitempty"`
	// contains filtered or unexported fields
}

Used to combine dimension values to a single dimension.

func (*DimensionExpression_ConcatenateExpression) Descriptor deprecated

func (*DimensionExpression_ConcatenateExpression) Descriptor() ([]byte, []int)

Deprecated: Use DimensionExpression_ConcatenateExpression.ProtoReflect.Descriptor instead.

func (*DimensionExpression_ConcatenateExpression) GetDelimiter

func (*DimensionExpression_ConcatenateExpression) GetDimensionNames

func (x *DimensionExpression_ConcatenateExpression) GetDimensionNames() []string

func (*DimensionExpression_ConcatenateExpression) ProtoMessage

func (*DimensionExpression_ConcatenateExpression) ProtoReflect

func (*DimensionExpression_ConcatenateExpression) Reset

func (*DimensionExpression_ConcatenateExpression) String

type DimensionExpression_LowerCase

type DimensionExpression_LowerCase struct {
	// Used to convert a dimension value to lower case.
	LowerCase *DimensionExpression_CaseExpression `protobuf:"bytes,4,opt,name=lower_case,json=lowerCase,proto3,oneof"`
}

type DimensionExpression_UpperCase

type DimensionExpression_UpperCase struct {
	// Used to convert a dimension value to upper case.
	UpperCase *DimensionExpression_CaseExpression `protobuf:"bytes,5,opt,name=upper_case,json=upperCase,proto3,oneof"`
}

type DimensionHeader

type DimensionHeader struct {

	// The dimension's name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Describes a dimension column in the report. Dimensions requested in a report produce column entries within rows and DimensionHeaders. However, dimensions used exclusively within filters or expressions do not produce columns in a report; correspondingly, those dimensions do not produce headers.

func (*DimensionHeader) Descriptor deprecated

func (*DimensionHeader) Descriptor() ([]byte, []int)

Deprecated: Use DimensionHeader.ProtoReflect.Descriptor instead.

func (*DimensionHeader) GetName

func (x *DimensionHeader) GetName() string

func (*DimensionHeader) ProtoMessage

func (*DimensionHeader) ProtoMessage()

func (*DimensionHeader) ProtoReflect

func (x *DimensionHeader) ProtoReflect() protoreflect.Message

func (*DimensionHeader) Reset

func (x *DimensionHeader) Reset()

func (*DimensionHeader) String

func (x *DimensionHeader) String() string

type DimensionMetadata

type DimensionMetadata struct {

	// This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
	// example, `eventName`.
	ApiName string `protobuf:"bytes,1,opt,name=api_name,json=apiName,proto3" json:"api_name,omitempty"`
	// This dimension's name within the Google Analytics user interface. For
	// example, `Event name`.
	UiName string `protobuf:"bytes,2,opt,name=ui_name,json=uiName,proto3" json:"ui_name,omitempty"`
	// Description of how this dimension is used and calculated.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Still usable but deprecated names for this dimension. If populated, this
	// dimension is available by either `apiName` or one of `deprecatedApiNames`
	// for a period of time. After the deprecation period, the dimension will be
	// available only by `apiName`.
	DeprecatedApiNames []string `protobuf:"bytes,4,rep,name=deprecated_api_names,json=deprecatedApiNames,proto3" json:"deprecated_api_names,omitempty"`
	// True if the dimension is a custom dimension for this property.
	CustomDefinition bool `protobuf:"varint,5,opt,name=custom_definition,json=customDefinition,proto3" json:"custom_definition,omitempty"`
	// contains filtered or unexported fields
}

Explains a dimension.

func (*DimensionMetadata) Descriptor deprecated

func (*DimensionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DimensionMetadata.ProtoReflect.Descriptor instead.

func (*DimensionMetadata) GetApiName

func (x *DimensionMetadata) GetApiName() string

func (*DimensionMetadata) GetCustomDefinition

func (x *DimensionMetadata) GetCustomDefinition() bool

func (*DimensionMetadata) GetDeprecatedApiNames

func (x *DimensionMetadata) GetDeprecatedApiNames() []string

func (*DimensionMetadata) GetDescription

func (x *DimensionMetadata) GetDescription() string

func (*DimensionMetadata) GetUiName

func (x *DimensionMetadata) GetUiName() string

func (*DimensionMetadata) ProtoMessage

func (*DimensionMetadata) ProtoMessage()

func (*DimensionMetadata) ProtoReflect

func (x *DimensionMetadata) ProtoReflect() protoreflect.Message

func (*DimensionMetadata) Reset

func (x *DimensionMetadata) Reset()

func (*DimensionMetadata) String

func (x *DimensionMetadata) String() string

type DimensionValue

type DimensionValue struct {

	// One kind of dimension value
	//
	// Types that are assignable to OneValue:
	//	*DimensionValue_Value
	OneValue isDimensionValue_OneValue `protobuf_oneof:"one_value"`
	// contains filtered or unexported fields
}

The value of a dimension.

func (*DimensionValue) Descriptor deprecated

func (*DimensionValue) Descriptor() ([]byte, []int)

Deprecated: Use DimensionValue.ProtoReflect.Descriptor instead.

func (*DimensionValue) GetOneValue

func (m *DimensionValue) GetOneValue() isDimensionValue_OneValue

func (*DimensionValue) GetValue

func (x *DimensionValue) GetValue() string

func (*DimensionValue) ProtoMessage

func (*DimensionValue) ProtoMessage()

func (*DimensionValue) ProtoReflect

func (x *DimensionValue) ProtoReflect() protoreflect.Message

func (*DimensionValue) Reset

func (x *DimensionValue) Reset()

func (*DimensionValue) String

func (x *DimensionValue) String() string

type DimensionValue_Value

type DimensionValue_Value struct {
	// Value as a string if the dimension type is a string.
	Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type Entity

type Entity struct {

	// A Google Analytics GA4 property id. To learn more, see [where to find your
	// Property
	// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
	PropertyId string `protobuf:"bytes,1,opt,name=property_id,json=propertyId,proto3" json:"property_id,omitempty"`
	// contains filtered or unexported fields
}

The unique identifier of the property whose events are tracked.

func (*Entity) Descriptor deprecated

func (*Entity) Descriptor() ([]byte, []int)

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetPropertyId

func (x *Entity) GetPropertyId() string

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

func (x *Entity) ProtoReflect() protoreflect.Message

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type Filter

type Filter struct {

	// The dimension name or metric name. Must be a name defined in dimensions
	// or metrics.
	FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// Specify one type of filter for `Filter`.
	//
	// Types that are assignable to OneFilter:
	//	*Filter_NullFilter
	//	*Filter_StringFilter_
	//	*Filter_InListFilter_
	//	*Filter_NumericFilter_
	//	*Filter_BetweenFilter_
	OneFilter isFilter_OneFilter `protobuf_oneof:"one_filter"`
	// contains filtered or unexported fields
}

An expression to filter dimension or metric values.

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetBetweenFilter

func (x *Filter) GetBetweenFilter() *Filter_BetweenFilter

func (*Filter) GetFieldName

func (x *Filter) GetFieldName() string

func (*Filter) GetInListFilter

func (x *Filter) GetInListFilter() *Filter_InListFilter

func (*Filter) GetNullFilter

func (x *Filter) GetNullFilter() bool

func (*Filter) GetNumericFilter

func (x *Filter) GetNumericFilter() *Filter_NumericFilter

func (*Filter) GetOneFilter

func (m *Filter) GetOneFilter() isFilter_OneFilter

func (*Filter) GetStringFilter

func (x *Filter) GetStringFilter() *Filter_StringFilter

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type FilterExpression

type FilterExpression struct {

	// Specify one type of filter expression for `FilterExpression`.
	//
	// Types that are assignable to Expr:
	//	*FilterExpression_AndGroup
	//	*FilterExpression_OrGroup
	//	*FilterExpression_NotExpression
	//	*FilterExpression_Filter
	Expr isFilterExpression_Expr `protobuf_oneof:"expr"`
	// contains filtered or unexported fields
}

To express dimension or metric filters. The fields in the same FilterExpression need to be either all dimensions or all metrics.

func (*FilterExpression) Descriptor deprecated

func (*FilterExpression) Descriptor() ([]byte, []int)

Deprecated: Use FilterExpression.ProtoReflect.Descriptor instead.

func (*FilterExpression) GetAndGroup

func (x *FilterExpression) GetAndGroup() *FilterExpressionList

func (*FilterExpression) GetExpr

func (m *FilterExpression) GetExpr() isFilterExpression_Expr

func (*FilterExpression) GetFilter

func (x *FilterExpression) GetFilter() *Filter

func (*FilterExpression) GetNotExpression

func (x *FilterExpression) GetNotExpression() *FilterExpression

func (*FilterExpression) GetOrGroup

func (x *FilterExpression) GetOrGroup() *FilterExpressionList

func (*FilterExpression) ProtoMessage

func (*FilterExpression) ProtoMessage()

func (*FilterExpression) ProtoReflect

func (x *FilterExpression) ProtoReflect() protoreflect.Message

func (*FilterExpression) Reset

func (x *FilterExpression) Reset()

func (*FilterExpression) String

func (x *FilterExpression) String() string

type FilterExpressionList

type FilterExpressionList struct {

	// A list of filter expressions.
	Expressions []*FilterExpression `protobuf:"bytes,1,rep,name=expressions,proto3" json:"expressions,omitempty"`
	// contains filtered or unexported fields
}

A list of filter expressions.

func (*FilterExpressionList) Descriptor deprecated

func (*FilterExpressionList) Descriptor() ([]byte, []int)

Deprecated: Use FilterExpressionList.ProtoReflect.Descriptor instead.

func (*FilterExpressionList) GetExpressions

func (x *FilterExpressionList) GetExpressions() []*FilterExpression

func (*FilterExpressionList) ProtoMessage

func (*FilterExpressionList) ProtoMessage()

func (*FilterExpressionList) ProtoReflect

func (x *FilterExpressionList) ProtoReflect() protoreflect.Message

func (*FilterExpressionList) Reset

func (x *FilterExpressionList) Reset()

func (*FilterExpressionList) String

func (x *FilterExpressionList) String() string

type FilterExpression_AndGroup

type FilterExpression_AndGroup struct {
	// The FilterExpressions in and_group have an AND relationship.
	AndGroup *FilterExpressionList `protobuf:"bytes,1,opt,name=and_group,json=andGroup,proto3,oneof"`
}

type FilterExpression_Filter

type FilterExpression_Filter struct {
	// A primitive filter.
	// All fields in filter in same FilterExpression needs to be either all
	// dimensions or metrics.
	Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3,oneof"`
}

type FilterExpression_NotExpression

type FilterExpression_NotExpression struct {
	// The FilterExpression is NOT of not_expression.
	NotExpression *FilterExpression `protobuf:"bytes,3,opt,name=not_expression,json=notExpression,proto3,oneof"`
}

type FilterExpression_OrGroup

type FilterExpression_OrGroup struct {
	// The FilterExpressions in or_group have an OR relationship.
	OrGroup *FilterExpressionList `protobuf:"bytes,2,opt,name=or_group,json=orGroup,proto3,oneof"`
}

type Filter_BetweenFilter

type Filter_BetweenFilter struct {

	// Begins with this number.
	FromValue *NumericValue `protobuf:"bytes,1,opt,name=from_value,json=fromValue,proto3" json:"from_value,omitempty"`
	// Ends with this number.
	ToValue *NumericValue `protobuf:"bytes,2,opt,name=to_value,json=toValue,proto3" json:"to_value,omitempty"`
	// contains filtered or unexported fields
}

To express that the result needs to be between two numbers (inclusive).

func (*Filter_BetweenFilter) Descriptor deprecated

func (*Filter_BetweenFilter) Descriptor() ([]byte, []int)

Deprecated: Use Filter_BetweenFilter.ProtoReflect.Descriptor instead.

func (*Filter_BetweenFilter) GetFromValue

func (x *Filter_BetweenFilter) GetFromValue() *NumericValue

func (*Filter_BetweenFilter) GetToValue

func (x *Filter_BetweenFilter) GetToValue() *NumericValue

func (*Filter_BetweenFilter) ProtoMessage

func (*Filter_BetweenFilter) ProtoMessage()

func (*Filter_BetweenFilter) ProtoReflect

func (x *Filter_BetweenFilter) ProtoReflect() protoreflect.Message

func (*Filter_BetweenFilter) Reset

func (x *Filter_BetweenFilter) Reset()

func (*Filter_BetweenFilter) String

func (x *Filter_BetweenFilter) String() string

type Filter_BetweenFilter_

type Filter_BetweenFilter_ struct {
	// A filter for two values.
	BetweenFilter *Filter_BetweenFilter `protobuf:"bytes,6,opt,name=between_filter,json=betweenFilter,proto3,oneof"`
}

type Filter_InListFilter

type Filter_InListFilter struct {

	// The list of string values.
	// Must be non-empty.
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// If true, the string value is case sensitive.
	CaseSensitive bool `protobuf:"varint,2,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
	// contains filtered or unexported fields
}

The result needs to be in a list of string values.

func (*Filter_InListFilter) Descriptor deprecated

func (*Filter_InListFilter) Descriptor() ([]byte, []int)

Deprecated: Use Filter_InListFilter.ProtoReflect.Descriptor instead.

func (*Filter_InListFilter) GetCaseSensitive

func (x *Filter_InListFilter) GetCaseSensitive() bool

func (*Filter_InListFilter) GetValues

func (x *Filter_InListFilter) GetValues() []string

func (*Filter_InListFilter) ProtoMessage

func (*Filter_InListFilter) ProtoMessage()

func (*Filter_InListFilter) ProtoReflect

func (x *Filter_InListFilter) ProtoReflect() protoreflect.Message

func (*Filter_InListFilter) Reset

func (x *Filter_InListFilter) Reset()

func (*Filter_InListFilter) String

func (x *Filter_InListFilter) String() string

type Filter_InListFilter_

type Filter_InListFilter_ struct {
	// A filter for in list values.
	InListFilter *Filter_InListFilter `protobuf:"bytes,4,opt,name=in_list_filter,json=inListFilter,proto3,oneof"`
}

type Filter_NullFilter

type Filter_NullFilter struct {
	// A filter for null values. If True, a null dimension value is matched by
	// this filter. Null filter is commonly used inside a NOT filter
	// expression. For example, a NOT expression of a null filter removes rows
	// when a dimension is null.
	NullFilter bool `protobuf:"varint,2,opt,name=null_filter,json=nullFilter,proto3,oneof"`
}

type Filter_NumericFilter

type Filter_NumericFilter struct {

	// The operation type for this filter.
	Operation Filter_NumericFilter_Operation `` /* 138-byte string literal not displayed */
	// A numeric value or a date value.
	Value *NumericValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Filters for numeric or date values.

func (*Filter_NumericFilter) Descriptor deprecated

func (*Filter_NumericFilter) Descriptor() ([]byte, []int)

Deprecated: Use Filter_NumericFilter.ProtoReflect.Descriptor instead.

func (*Filter_NumericFilter) GetOperation

func (*Filter_NumericFilter) GetValue

func (x *Filter_NumericFilter) GetValue() *NumericValue

func (*Filter_NumericFilter) ProtoMessage

func (*Filter_NumericFilter) ProtoMessage()

func (*Filter_NumericFilter) ProtoReflect

func (x *Filter_NumericFilter) ProtoReflect() protoreflect.Message

func (*Filter_NumericFilter) Reset

func (x *Filter_NumericFilter) Reset()

func (*Filter_NumericFilter) String

func (x *Filter_NumericFilter) String() string

type Filter_NumericFilter_

type Filter_NumericFilter_ struct {
	// A filter for numeric or date values.
	NumericFilter *Filter_NumericFilter `protobuf:"bytes,5,opt,name=numeric_filter,json=numericFilter,proto3,oneof"`
}

type Filter_NumericFilter_Operation

type Filter_NumericFilter_Operation int32

The operation applied to a numeric filter

const (
	// Unspecified.
	Filter_NumericFilter_OPERATION_UNSPECIFIED Filter_NumericFilter_Operation = 0
	// Equal
	Filter_NumericFilter_EQUAL Filter_NumericFilter_Operation = 1
	// Less than
	Filter_NumericFilter_LESS_THAN Filter_NumericFilter_Operation = 2
	// Less than or equal
	Filter_NumericFilter_LESS_THAN_OR_EQUAL Filter_NumericFilter_Operation = 3
	// Greater than
	Filter_NumericFilter_GREATER_THAN Filter_NumericFilter_Operation = 4
	// Greater than or equal
	Filter_NumericFilter_GREATER_THAN_OR_EQUAL Filter_NumericFilter_Operation = 5
)

func (Filter_NumericFilter_Operation) Descriptor

func (Filter_NumericFilter_Operation) Enum

func (Filter_NumericFilter_Operation) EnumDescriptor deprecated

func (Filter_NumericFilter_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Filter_NumericFilter_Operation.Descriptor instead.

func (Filter_NumericFilter_Operation) Number

func (Filter_NumericFilter_Operation) String

func (Filter_NumericFilter_Operation) Type

type Filter_StringFilter

type Filter_StringFilter struct {

	// The match type for this filter.
	MatchType Filter_StringFilter_MatchType `` /* 154-byte string literal not displayed */
	// The string value used for the matching.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// If true, the string value is case sensitive.
	CaseSensitive bool `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
	// contains filtered or unexported fields
}

The filter for string

func (*Filter_StringFilter) Descriptor deprecated

func (*Filter_StringFilter) Descriptor() ([]byte, []int)

Deprecated: Use Filter_StringFilter.ProtoReflect.Descriptor instead.

func (*Filter_StringFilter) GetCaseSensitive

func (x *Filter_StringFilter) GetCaseSensitive() bool

func (*Filter_StringFilter) GetMatchType

func (*Filter_StringFilter) GetValue

func (x *Filter_StringFilter) GetValue() string

func (*Filter_StringFilter) ProtoMessage

func (*Filter_StringFilter) ProtoMessage()

func (*Filter_StringFilter) ProtoReflect

func (x *Filter_StringFilter) ProtoReflect() protoreflect.Message

func (*Filter_StringFilter) Reset

func (x *Filter_StringFilter) Reset()

func (*Filter_StringFilter) String

func (x *Filter_StringFilter) String() string

type Filter_StringFilter_

type Filter_StringFilter_ struct {
	// Strings related filter.
	StringFilter *Filter_StringFilter `protobuf:"bytes,3,opt,name=string_filter,json=stringFilter,proto3,oneof"`
}

type Filter_StringFilter_MatchType

type Filter_StringFilter_MatchType int32

The match type of a string filter

const (
	// Unspecified
	Filter_StringFilter_MATCH_TYPE_UNSPECIFIED Filter_StringFilter_MatchType = 0
	// Exact match of the string value.
	Filter_StringFilter_EXACT Filter_StringFilter_MatchType = 1
	// Begins with the string value.
	Filter_StringFilter_BEGINS_WITH Filter_StringFilter_MatchType = 2
	// Ends with the string value.
	Filter_StringFilter_ENDS_WITH Filter_StringFilter_MatchType = 3
	// Contains the string value.
	Filter_StringFilter_CONTAINS Filter_StringFilter_MatchType = 4
	// Full regular expression match with the string value.
	Filter_StringFilter_FULL_REGEXP Filter_StringFilter_MatchType = 5
	// Partial regular expression match with the string value.
	Filter_StringFilter_PARTIAL_REGEXP Filter_StringFilter_MatchType = 6
)

func (Filter_StringFilter_MatchType) Descriptor

func (Filter_StringFilter_MatchType) Enum

func (Filter_StringFilter_MatchType) EnumDescriptor deprecated

func (Filter_StringFilter_MatchType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Filter_StringFilter_MatchType.Descriptor instead.

func (Filter_StringFilter_MatchType) Number

func (Filter_StringFilter_MatchType) String

func (Filter_StringFilter_MatchType) Type

type GetMetadataRequest

type GetMetadataRequest struct {

	// Required. The resource name of the metadata to retrieve. This name field is
	// specified in the URL path and not URL parameters. Property is a numeric
	// Google Analytics GA4 Property identifier. To learn more, see [where to find
	// your Property
	// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
	//
	// Example: properties/1234/metadata
	//
	// Set the Property ID to 0 for dimensions and metrics common to all
	// properties. In this special mode, this method will not return custom
	// dimensions and metrics.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for a property's dimension and metric metadata.

func (*GetMetadataRequest) Descriptor deprecated

func (*GetMetadataRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMetadataRequest.ProtoReflect.Descriptor instead.

func (*GetMetadataRequest) GetName

func (x *GetMetadataRequest) GetName() string

func (*GetMetadataRequest) ProtoMessage

func (*GetMetadataRequest) ProtoMessage()

func (*GetMetadataRequest) ProtoReflect

func (x *GetMetadataRequest) ProtoReflect() protoreflect.Message

func (*GetMetadataRequest) Reset

func (x *GetMetadataRequest) Reset()

func (*GetMetadataRequest) String

func (x *GetMetadataRequest) String() string

type Metadata

type Metadata struct {

	// Resource name of this metadata.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The dimension descriptions.
	Dimensions []*DimensionMetadata `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// The metric descriptions.
	Metrics []*MetricMetadata `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

The dimensions and metrics currently accepted in reporting methods.

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDimensions

func (x *Metadata) GetDimensions() []*DimensionMetadata

func (*Metadata) GetMetrics

func (x *Metadata) GetMetrics() []*MetricMetadata

func (*Metadata) GetName

func (x *Metadata) GetName() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Metric

type Metric struct {

	// The name of the metric. See the [API
	// Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
	// for the list of metric names.
	//
	// If `expression` is specified, `name` can be any string that you would like.
	// For example if `expression` is `screenPageViews/sessions`, you could call
	// that metric's name = `viewsPerSession`.
	//
	// Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric
	// `expression`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A mathematical expression for derived metrics. For example, the metric
	// Event count per user is `eventCount/totalUsers`.
	Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
	// Indicates if a metric is invisible in the report response. If a metric is
	// invisible, the metric will not produce a column in the response, but can be
	// used in `metricFilter`, `orderBys`, or a metric `expression`.
	Invisible bool `protobuf:"varint,3,opt,name=invisible,proto3" json:"invisible,omitempty"`
	// contains filtered or unexported fields
}

The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.

func (*Metric) Descriptor deprecated

func (*Metric) Descriptor() ([]byte, []int)

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetExpression

func (x *Metric) GetExpression() string

func (*Metric) GetInvisible

func (x *Metric) GetInvisible() bool

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type MetricAggregation

type MetricAggregation int32

Represents aggregation of metrics.

const (
	// Unspecified operator.
	MetricAggregation_METRIC_AGGREGATION_UNSPECIFIED MetricAggregation = 0
	// SUM operator.
	MetricAggregation_TOTAL MetricAggregation = 1
	// Minimum operator.
	MetricAggregation_MINIMUM MetricAggregation = 5
	// Maximum operator.
	MetricAggregation_MAXIMUM MetricAggregation = 6
	// Count operator.
	MetricAggregation_COUNT MetricAggregation = 4
)

func (MetricAggregation) Descriptor

func (MetricAggregation) Enum

func (MetricAggregation) EnumDescriptor deprecated

func (MetricAggregation) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetricAggregation.Descriptor instead.

func (MetricAggregation) Number

func (MetricAggregation) String

func (x MetricAggregation) String() string

func (MetricAggregation) Type

type MetricHeader

type MetricHeader struct {

	// The metric's name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The metric's data type.
	Type MetricType `protobuf:"varint,2,opt,name=type,proto3,enum=google.analytics.data.v1alpha.MetricType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.

func (*MetricHeader) Descriptor deprecated

func (*MetricHeader) Descriptor() ([]byte, []int)

Deprecated: Use MetricHeader.ProtoReflect.Descriptor instead.

func (*MetricHeader) GetName

func (x *MetricHeader) GetName() string

func (*MetricHeader) GetType

func (x *MetricHeader) GetType() MetricType

func (*MetricHeader) ProtoMessage

func (*MetricHeader) ProtoMessage()

func (*MetricHeader) ProtoReflect

func (x *MetricHeader) ProtoReflect() protoreflect.Message

func (*MetricHeader) Reset

func (x *MetricHeader) Reset()

func (*MetricHeader) String

func (x *MetricHeader) String() string

type MetricMetadata

type MetricMetadata struct {

	// A metric name. Useable in [Metric](#Metric)'s `name`. For example,
	// `eventCount`.
	ApiName string `protobuf:"bytes,1,opt,name=api_name,json=apiName,proto3" json:"api_name,omitempty"`
	// This metric's name within the Google Analytics user interface. For example,
	// `Event count`.
	UiName string `protobuf:"bytes,2,opt,name=ui_name,json=uiName,proto3" json:"ui_name,omitempty"`
	// Description of how this metric is used and calculated.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Still usable but deprecated names for this metric. If populated, this
	// metric is available by either `apiName` or one of `deprecatedApiNames`
	// for a period of time. After the deprecation period, the metric will be
	// available only by `apiName`.
	DeprecatedApiNames []string `protobuf:"bytes,4,rep,name=deprecated_api_names,json=deprecatedApiNames,proto3" json:"deprecated_api_names,omitempty"`
	// The type of this metric.
	Type MetricType `protobuf:"varint,5,opt,name=type,proto3,enum=google.analytics.data.v1alpha.MetricType" json:"type,omitempty"`
	// The mathematical expression for this derived metric. Can be used in
	// [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
	// are not expressions, and for non-expressions, this field is empty.
	Expression string `protobuf:"bytes,6,opt,name=expression,proto3" json:"expression,omitempty"`
	// True if the metric is a custom metric for this property.
	CustomDefinition bool `protobuf:"varint,7,opt,name=custom_definition,json=customDefinition,proto3" json:"custom_definition,omitempty"`
	// contains filtered or unexported fields
}

Explains a metric.

func (*MetricMetadata) Descriptor deprecated

func (*MetricMetadata) Descriptor() ([]byte, []int)

Deprecated: Use MetricMetadata.ProtoReflect.Descriptor instead.

func (*MetricMetadata) GetApiName

func (x *MetricMetadata) GetApiName() string

func (*MetricMetadata) GetCustomDefinition

func (x *MetricMetadata) GetCustomDefinition() bool

func (*MetricMetadata) GetDeprecatedApiNames

func (x *MetricMetadata) GetDeprecatedApiNames() []string

func (*MetricMetadata) GetDescription

func (x *MetricMetadata) GetDescription() string

func (*MetricMetadata) GetExpression

func (x *MetricMetadata) GetExpression() string

func (*MetricMetadata) GetType

func (x *MetricMetadata) GetType() MetricType

func (*MetricMetadata) GetUiName

func (x *MetricMetadata) GetUiName() string

func (*MetricMetadata) ProtoMessage

func (*MetricMetadata) ProtoMessage()

func (*MetricMetadata) ProtoReflect

func (x *MetricMetadata) ProtoReflect() protoreflect.Message

func (*MetricMetadata) Reset

func (x *MetricMetadata) Reset()

func (*MetricMetadata) String

func (x *MetricMetadata) String() string

type MetricType

type MetricType int32

A metric's value type.

const (
	// Unspecified type.
	MetricType_METRIC_TYPE_UNSPECIFIED MetricType = 0
	// Integer type.
	MetricType_TYPE_INTEGER MetricType = 1
	// Floating point type.
	MetricType_TYPE_FLOAT MetricType = 2
	// A duration of seconds; a special floating point type.
	MetricType_TYPE_SECONDS MetricType = 4
	// A duration in milliseconds; a special floating point type.
	MetricType_TYPE_MILLISECONDS MetricType = 5
	// A duration in minutes; a special floating point type.
	MetricType_TYPE_MINUTES MetricType = 6
	// A duration in hours; a special floating point type.
	MetricType_TYPE_HOURS MetricType = 7
	// A custom metric of standard type; a special floating point type.
	MetricType_TYPE_STANDARD MetricType = 8
	// An amount of money; a special floating point type.
	MetricType_TYPE_CURRENCY MetricType = 9
	// A length in feet; a special floating point type.
	MetricType_TYPE_FEET MetricType = 10
	// A length in miles; a special floating point type.
	MetricType_TYPE_MILES MetricType = 11
	// A length in meters; a special floating point type.
	MetricType_TYPE_METERS MetricType = 12
	// A length in kilometers; a special floating point type.
	MetricType_TYPE_KILOMETERS MetricType = 13
)

func (MetricType) Descriptor

func (MetricType) Descriptor() protoreflect.EnumDescriptor

func (MetricType) Enum

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor deprecated

func (MetricType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetricType.Descriptor instead.

func (MetricType) Number

func (x MetricType) Number() protoreflect.EnumNumber

func (MetricType) String

func (x MetricType) String() string

func (MetricType) Type

type MetricValue

type MetricValue struct {

	// One of metric value
	//
	// Types that are assignable to OneValue:
	//	*MetricValue_Value
	OneValue isMetricValue_OneValue `protobuf_oneof:"one_value"`
	// contains filtered or unexported fields
}

The value of a metric.

func (*MetricValue) Descriptor deprecated

func (*MetricValue) Descriptor() ([]byte, []int)

Deprecated: Use MetricValue.ProtoReflect.Descriptor instead.

func (*MetricValue) GetOneValue

func (m *MetricValue) GetOneValue() isMetricValue_OneValue

func (*MetricValue) GetValue

func (x *MetricValue) GetValue() string

func (*MetricValue) ProtoMessage

func (*MetricValue) ProtoMessage()

func (*MetricValue) ProtoReflect

func (x *MetricValue) ProtoReflect() protoreflect.Message

func (*MetricValue) Reset

func (x *MetricValue) Reset()

func (*MetricValue) String

func (x *MetricValue) String() string

type MetricValue_Value

type MetricValue_Value struct {
	// Measurement value. See MetricHeader for type.
	Value string `protobuf:"bytes,4,opt,name=value,proto3,oneof"`
}

type NumericValue

type NumericValue struct {

	// One of a numeric value
	//
	// Types that are assignable to OneValue:
	//	*NumericValue_Int64Value
	//	*NumericValue_DoubleValue
	OneValue isNumericValue_OneValue `protobuf_oneof:"one_value"`
	// contains filtered or unexported fields
}

To represent a number.

func (*NumericValue) Descriptor deprecated

func (*NumericValue) Descriptor() ([]byte, []int)

Deprecated: Use NumericValue.ProtoReflect.Descriptor instead.

func (*NumericValue) GetDoubleValue

func (x *NumericValue) GetDoubleValue() float64

func (*NumericValue) GetInt64Value

func (x *NumericValue) GetInt64Value() int64

func (*NumericValue) GetOneValue

func (m *NumericValue) GetOneValue() isNumericValue_OneValue

func (*NumericValue) ProtoMessage

func (*NumericValue) ProtoMessage()

func (*NumericValue) ProtoReflect

func (x *NumericValue) ProtoReflect() protoreflect.Message

func (*NumericValue) Reset

func (x *NumericValue) Reset()

func (*NumericValue) String

func (x *NumericValue) String() string

type NumericValue_DoubleValue

type NumericValue_DoubleValue struct {
	// Double value
	DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type NumericValue_Int64Value

type NumericValue_Int64Value struct {
	// Integer value
	Int64Value int64 `protobuf:"varint,1,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type OrderBy

type OrderBy struct {

	// Specify one type of order by for `OrderBy`.
	//
	// Types that are assignable to OneOrderBy:
	//	*OrderBy_Metric
	//	*OrderBy_Dimension
	//	*OrderBy_Pivot
	OneOrderBy isOrderBy_OneOrderBy `protobuf_oneof:"one_order_by"`
	// If true, sorts by descending order.
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty"`
	// contains filtered or unexported fields
}

The sort options.

func (*OrderBy) Descriptor deprecated

func (*OrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy) GetDesc

func (x *OrderBy) GetDesc() bool

func (*OrderBy) GetDimension

func (x *OrderBy) GetDimension() *OrderBy_DimensionOrderBy

func (*OrderBy) GetMetric

func (x *OrderBy) GetMetric() *OrderBy_MetricOrderBy

func (*OrderBy) GetOneOrderBy

func (m *OrderBy) GetOneOrderBy() isOrderBy_OneOrderBy

func (*OrderBy) GetPivot

func (x *OrderBy) GetPivot() *OrderBy_PivotOrderBy

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) ProtoReflect

func (x *OrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy) Reset

func (x *OrderBy) Reset()

func (*OrderBy) String

func (x *OrderBy) String() string

type OrderBy_Dimension

type OrderBy_Dimension struct {
	// Sorts results by a dimension's values.
	Dimension *OrderBy_DimensionOrderBy `protobuf:"bytes,2,opt,name=dimension,proto3,oneof"`
}

type OrderBy_DimensionOrderBy

type OrderBy_DimensionOrderBy struct {

	// A dimension name in the request to order by.
	DimensionName string `protobuf:"bytes,1,opt,name=dimension_name,json=dimensionName,proto3" json:"dimension_name,omitempty"`
	// Controls the rule for dimension value ordering.
	OrderType OrderBy_DimensionOrderBy_OrderType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

Sorts by dimension values.

func (*OrderBy_DimensionOrderBy) Descriptor deprecated

func (*OrderBy_DimensionOrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy_DimensionOrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy_DimensionOrderBy) GetDimensionName

func (x *OrderBy_DimensionOrderBy) GetDimensionName() string

func (*OrderBy_DimensionOrderBy) GetOrderType

func (*OrderBy_DimensionOrderBy) ProtoMessage

func (*OrderBy_DimensionOrderBy) ProtoMessage()

func (*OrderBy_DimensionOrderBy) ProtoReflect

func (x *OrderBy_DimensionOrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy_DimensionOrderBy) Reset

func (x *OrderBy_DimensionOrderBy) Reset()

func (*OrderBy_DimensionOrderBy) String

func (x *OrderBy_DimensionOrderBy) String() string

type OrderBy_DimensionOrderBy_OrderType

type OrderBy_DimensionOrderBy_OrderType int32

Rule to order the string dimension values by.

const (
	// Unspecified.
	OrderBy_DimensionOrderBy_ORDER_TYPE_UNSPECIFIED OrderBy_DimensionOrderBy_OrderType = 0
	// Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
	// "b" < "z".
	OrderBy_DimensionOrderBy_ALPHANUMERIC OrderBy_DimensionOrderBy_OrderType = 1
	// Case insensitive alphanumeric sort by lower case Unicode code point.
	// For example, "2" < "A" < "b" < "X" < "z".
	OrderBy_DimensionOrderBy_CASE_INSENSITIVE_ALPHANUMERIC OrderBy_DimensionOrderBy_OrderType = 2
	// Dimension values are converted to numbers before sorting. For example
	// in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
	// "25". Non-numeric dimension values all have equal ordering value below
	// all numeric values.
	OrderBy_DimensionOrderBy_NUMERIC OrderBy_DimensionOrderBy_OrderType = 3
)

func (OrderBy_DimensionOrderBy_OrderType) Descriptor

func (OrderBy_DimensionOrderBy_OrderType) Enum

func (OrderBy_DimensionOrderBy_OrderType) EnumDescriptor deprecated

func (OrderBy_DimensionOrderBy_OrderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderBy_DimensionOrderBy_OrderType.Descriptor instead.

func (OrderBy_DimensionOrderBy_OrderType) Number

func (OrderBy_DimensionOrderBy_OrderType) String

func (OrderBy_DimensionOrderBy_OrderType) Type

type OrderBy_Metric

type OrderBy_Metric struct {
	// Sorts results by a metric's values.
	Metric *OrderBy_MetricOrderBy `protobuf:"bytes,1,opt,name=metric,proto3,oneof"`
}

type OrderBy_MetricOrderBy

type OrderBy_MetricOrderBy struct {

	// A metric name in the request to order by.
	MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
	// contains filtered or unexported fields
}

Sorts by metric values.

func (*OrderBy_MetricOrderBy) Descriptor deprecated

func (*OrderBy_MetricOrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy_MetricOrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy_MetricOrderBy) GetMetricName

func (x *OrderBy_MetricOrderBy) GetMetricName() string

func (*OrderBy_MetricOrderBy) ProtoMessage

func (*OrderBy_MetricOrderBy) ProtoMessage()

func (*OrderBy_MetricOrderBy) ProtoReflect

func (x *OrderBy_MetricOrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy_MetricOrderBy) Reset

func (x *OrderBy_MetricOrderBy) Reset()

func (*OrderBy_MetricOrderBy) String

func (x *OrderBy_MetricOrderBy) String() string

type OrderBy_Pivot

type OrderBy_Pivot struct {
	// Sorts results by a metric's values within a pivot column group.
	Pivot *OrderBy_PivotOrderBy `protobuf:"bytes,3,opt,name=pivot,proto3,oneof"`
}

type OrderBy_PivotOrderBy

type OrderBy_PivotOrderBy struct {

	// In the response to order by, order rows by this column. Must be a metric
	// name from the request.
	MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
	// Used to select a dimension name and value pivot. If multiple pivot
	// selections are given, the sort occurs on rows where all pivot selection
	// dimension name and value pairs match the row's dimension name and value
	// pair.
	PivotSelections []*OrderBy_PivotOrderBy_PivotSelection `protobuf:"bytes,2,rep,name=pivot_selections,json=pivotSelections,proto3" json:"pivot_selections,omitempty"`
	// contains filtered or unexported fields
}

Sorts by a pivot column group.

func (*OrderBy_PivotOrderBy) Descriptor deprecated

func (*OrderBy_PivotOrderBy) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy_PivotOrderBy.ProtoReflect.Descriptor instead.

func (*OrderBy_PivotOrderBy) GetMetricName

func (x *OrderBy_PivotOrderBy) GetMetricName() string

func (*OrderBy_PivotOrderBy) GetPivotSelections

func (x *OrderBy_PivotOrderBy) GetPivotSelections() []*OrderBy_PivotOrderBy_PivotSelection

func (*OrderBy_PivotOrderBy) ProtoMessage

func (*OrderBy_PivotOrderBy) ProtoMessage()

func (*OrderBy_PivotOrderBy) ProtoReflect

func (x *OrderBy_PivotOrderBy) ProtoReflect() protoreflect.Message

func (*OrderBy_PivotOrderBy) Reset

func (x *OrderBy_PivotOrderBy) Reset()

func (*OrderBy_PivotOrderBy) String

func (x *OrderBy_PivotOrderBy) String() string

type OrderBy_PivotOrderBy_PivotSelection

type OrderBy_PivotOrderBy_PivotSelection struct {

	// Must be a dimension name from the request.
	DimensionName string `protobuf:"bytes,1,opt,name=dimension_name,json=dimensionName,proto3" json:"dimension_name,omitempty"`
	// Order by only when the named dimension is this value.
	DimensionValue string `protobuf:"bytes,2,opt,name=dimension_value,json=dimensionValue,proto3" json:"dimension_value,omitempty"`
	// contains filtered or unexported fields
}

A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value.

For example if pivots = {{"browser", "Chrome"}} and metric_name = "Sessions", then the rows will be sorted based on Sessions in Chrome.

---------|----------|----------------|----------|----------------
         |  Chrome  |    Chrome      |  Safari  |     Safari
---------|----------|----------------|----------|----------------
 Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions
---------|----------|----------------|----------|----------------
    US   |    2     |       2        |     3    |        1
---------|----------|----------------|----------|----------------
  Canada |    3     |       1        |     4    |        1
---------|----------|----------------|----------|----------------

func (*OrderBy_PivotOrderBy_PivotSelection) Descriptor deprecated

func (*OrderBy_PivotOrderBy_PivotSelection) Descriptor() ([]byte, []int)

Deprecated: Use OrderBy_PivotOrderBy_PivotSelection.ProtoReflect.Descriptor instead.

func (*OrderBy_PivotOrderBy_PivotSelection) GetDimensionName

func (x *OrderBy_PivotOrderBy_PivotSelection) GetDimensionName() string

func (*OrderBy_PivotOrderBy_PivotSelection) GetDimensionValue

func (x *OrderBy_PivotOrderBy_PivotSelection) GetDimensionValue() string

func (*OrderBy_PivotOrderBy_PivotSelection) ProtoMessage

func (*OrderBy_PivotOrderBy_PivotSelection) ProtoMessage()

func (*OrderBy_PivotOrderBy_PivotSelection) ProtoReflect

func (*OrderBy_PivotOrderBy_PivotSelection) Reset

func (*OrderBy_PivotOrderBy_PivotSelection) String

type Pivot

type Pivot struct {

	// Dimension names for visible columns in the report response. Including
	// "dateRange" produces a date range column; for each row in the response,
	// dimension values in the date range column will indicate the corresponding
	// date range from the request.
	FieldNames []string `protobuf:"bytes,1,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"`
	// Specifies how dimensions are ordered in the pivot. In the first Pivot, the
	// OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
	// Pivots, the OrderBys determine only PivotDimensionHeader ordering.
	// Dimensions specified in these OrderBys must be a subset of
	// Pivot.field_names.
	OrderBys []*OrderBy `protobuf:"bytes,2,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"`
	// The row count of the start row. The first row is counted as row 0.
	Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// The number of rows to return in this pivot. If unspecified, 10 rows are
	// returned. If -1, all rows are returned.
	Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// Aggregate the metrics by dimensions in this pivot using the specified
	// metric_aggregations.
	MetricAggregations []MetricAggregation `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes the visible dimension columns and rows in the report response.

func (*Pivot) Descriptor deprecated

func (*Pivot) Descriptor() ([]byte, []int)

Deprecated: Use Pivot.ProtoReflect.Descriptor instead.

func (*Pivot) GetFieldNames

func (x *Pivot) GetFieldNames() []string

func (*Pivot) GetLimit

func (x *Pivot) GetLimit() int64

func (*Pivot) GetMetricAggregations

func (x *Pivot) GetMetricAggregations() []MetricAggregation

func (*Pivot) GetOffset

func (x *Pivot) GetOffset() int64

func (*Pivot) GetOrderBys

func (x *Pivot) GetOrderBys() []*OrderBy

func (*Pivot) ProtoMessage

func (*Pivot) ProtoMessage()

func (*Pivot) ProtoReflect

func (x *Pivot) ProtoReflect() protoreflect.Message

func (*Pivot) Reset

func (x *Pivot) Reset()

func (*Pivot) String

func (x *Pivot) String() string

type PivotDimensionHeader

type PivotDimensionHeader struct {

	// Values of multiple dimensions in a pivot.
	DimensionValues []*DimensionValue `protobuf:"bytes,1,rep,name=dimension_values,json=dimensionValues,proto3" json:"dimension_values,omitempty"`
	// contains filtered or unexported fields
}

Summarizes dimension values from a row for this pivot.

func (*PivotDimensionHeader) Descriptor deprecated

func (*PivotDimensionHeader) Descriptor() ([]byte, []int)

Deprecated: Use PivotDimensionHeader.ProtoReflect.Descriptor instead.

func (*PivotDimensionHeader) GetDimensionValues

func (x *PivotDimensionHeader) GetDimensionValues() []*DimensionValue

func (*PivotDimensionHeader) ProtoMessage

func (*PivotDimensionHeader) ProtoMessage()

func (*PivotDimensionHeader) ProtoReflect

func (x *PivotDimensionHeader) ProtoReflect() protoreflect.Message

func (*PivotDimensionHeader) Reset

func (x *PivotDimensionHeader) Reset()

func (*PivotDimensionHeader) String

func (x *PivotDimensionHeader) String() string

type PivotHeader

type PivotHeader struct {

	// The size is the same as the cardinality of the corresponding dimension
	// combinations.
	PivotDimensionHeaders []*PivotDimensionHeader `` /* 126-byte string literal not displayed */
	// The cardinality of the pivot as if offset = 0 and limit = -1. The total
	// number of rows for this pivot's fields regardless of how the parameters
	// offset and limit are specified in the request.
	RowCount int32 `protobuf:"varint,2,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
	// contains filtered or unexported fields
}

Dimensions' values in a single pivot.

func (*PivotHeader) Descriptor deprecated

func (*PivotHeader) Descriptor() ([]byte, []int)

Deprecated: Use PivotHeader.ProtoReflect.Descriptor instead.

func (*PivotHeader) GetPivotDimensionHeaders

func (x *PivotHeader) GetPivotDimensionHeaders() []*PivotDimensionHeader

func (*PivotHeader) GetRowCount

func (x *PivotHeader) GetRowCount() int32

func (*PivotHeader) ProtoMessage

func (*PivotHeader) ProtoMessage()

func (*PivotHeader) ProtoReflect

func (x *PivotHeader) ProtoReflect() protoreflect.Message

func (*PivotHeader) Reset

func (x *PivotHeader) Reset()

func (*PivotHeader) String

func (x *PivotHeader) String() string

type PropertyQuota

type PropertyQuota struct {

	// Standard Analytics Properties can use up to 25,000 tokens per day;
	// Analytics 360 Properties can use 250,000 tokens per day. Most requests
	// consume fewer than 10 tokens.
	TokensPerDay *QuotaStatus `protobuf:"bytes,1,opt,name=tokens_per_day,json=tokensPerDay,proto3" json:"tokens_per_day,omitempty"`
	// Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
	// 360 Properties can use 50,000 tokens per day. An API request consumes a
	// single number of tokens, and that number is deducted from both the hourly
	// and daily quotas.
	TokensPerHour *QuotaStatus `protobuf:"bytes,2,opt,name=tokens_per_hour,json=tokensPerHour,proto3" json:"tokens_per_hour,omitempty"`
	// Standard Analytics Properties can send up to 10 concurrent requests;
	// Analytics 360 Properties can use up to 50 concurrent requests.
	ConcurrentRequests *QuotaStatus `protobuf:"bytes,3,opt,name=concurrent_requests,json=concurrentRequests,proto3" json:"concurrent_requests,omitempty"`
	// Standard Analytics Properties and cloud project pairs can have up to 10
	// server errors per hour; Analytics 360 Properties and cloud project pairs
	// can have up to 50 server errors per hour.
	ServerErrorsPerProjectPerHour *QuotaStatus `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

Current state of all quotas for this Analytics Property. If any quota for a property is exhausted, all requests to that property will return Resource Exhausted errors.

func (*PropertyQuota) Descriptor deprecated

func (*PropertyQuota) Descriptor() ([]byte, []int)

Deprecated: Use PropertyQuota.ProtoReflect.Descriptor instead.

func (*PropertyQuota) GetConcurrentRequests

func (x *PropertyQuota) GetConcurrentRequests() *QuotaStatus

func (*PropertyQuota) GetServerErrorsPerProjectPerHour

func (x *PropertyQuota) GetServerErrorsPerProjectPerHour() *QuotaStatus

func (*PropertyQuota) GetTokensPerDay

func (x *PropertyQuota) GetTokensPerDay() *QuotaStatus

func (*PropertyQuota) GetTokensPerHour

func (x *PropertyQuota) GetTokensPerHour() *QuotaStatus

func (*PropertyQuota) ProtoMessage

func (*PropertyQuota) ProtoMessage()

func (*PropertyQuota) ProtoReflect

func (x *PropertyQuota) ProtoReflect() protoreflect.Message

func (*PropertyQuota) Reset

func (x *PropertyQuota) Reset()

func (*PropertyQuota) String

func (x *PropertyQuota) String() string

type QuotaStatus

type QuotaStatus struct {

	// Quota consumed by this request.
	Consumed int32 `protobuf:"varint,1,opt,name=consumed,proto3" json:"consumed,omitempty"`
	// Quota remaining after this request.
	Remaining int32 `protobuf:"varint,2,opt,name=remaining,proto3" json:"remaining,omitempty"`
	// contains filtered or unexported fields
}

Current state for a particular quota group.

func (*QuotaStatus) Descriptor deprecated

func (*QuotaStatus) Descriptor() ([]byte, []int)

Deprecated: Use QuotaStatus.ProtoReflect.Descriptor instead.

func (*QuotaStatus) GetConsumed

func (x *QuotaStatus) GetConsumed() int32

func (*QuotaStatus) GetRemaining

func (x *QuotaStatus) GetRemaining() int32

func (*QuotaStatus) ProtoMessage

func (*QuotaStatus) ProtoMessage()

func (*QuotaStatus) ProtoReflect

func (x *QuotaStatus) ProtoReflect() protoreflect.Message

func (*QuotaStatus) Reset

func (x *QuotaStatus) Reset()

func (*QuotaStatus) String

func (x *QuotaStatus) String() string

type ResponseMetaData

type ResponseMetaData struct {

	// If true, indicates some buckets of dimension combinations are rolled into
	// "(other)" row. This can happen for high cardinality reports.
	DataLossFromOtherRow bool `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response's metadata carrying additional information about the report content.

func (*ResponseMetaData) Descriptor deprecated

func (*ResponseMetaData) Descriptor() ([]byte, []int)

Deprecated: Use ResponseMetaData.ProtoReflect.Descriptor instead.

func (*ResponseMetaData) GetDataLossFromOtherRow

func (x *ResponseMetaData) GetDataLossFromOtherRow() bool

func (*ResponseMetaData) ProtoMessage

func (*ResponseMetaData) ProtoMessage()

func (*ResponseMetaData) ProtoReflect

func (x *ResponseMetaData) ProtoReflect() protoreflect.Message

func (*ResponseMetaData) Reset

func (x *ResponseMetaData) Reset()

func (*ResponseMetaData) String

func (x *ResponseMetaData) String() string

type Row

type Row struct {

	// List of requested dimension values. In a PivotReport, dimension_values
	// are only listed for dimensions included in a pivot.
	DimensionValues []*DimensionValue `protobuf:"bytes,1,rep,name=dimension_values,json=dimensionValues,proto3" json:"dimension_values,omitempty"`
	// List of requested visible metric values.
	MetricValues []*MetricValue `protobuf:"bytes,2,rep,name=metric_values,json=metricValues,proto3" json:"metric_values,omitempty"`
	// contains filtered or unexported fields
}

Report data for each row. For example if RunReportRequest contains:

```none "dimensions": [

{
  "name": "eventName"
},
{
  "name": "countryId"
}

], "metrics": [

{
  "name": "eventCount"
}

] ```

One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and 15 as the eventCount, would be:

```none "dimensionValues": [

{
  "value": "in_app_purchase"
},
{
  "value": "JP"
}

], "metricValues": [

{
  "value": "15"
}

] ```

func (*Row) Descriptor deprecated

func (*Row) Descriptor() ([]byte, []int)

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetDimensionValues

func (x *Row) GetDimensionValues() []*DimensionValue

func (*Row) GetMetricValues

func (x *Row) GetMetricValues() []*MetricValue

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect

func (x *Row) ProtoReflect() protoreflect.Message

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type RunPivotReportRequest

type RunPivotReportRequest struct {

	// A property whose events are tracked. Within a batch request, this entity
	// should either be unspecified or consistent with the batch-level entity.
	Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// The dimensions requested. All defined dimensions must be used by one of the
	// following: dimension_expression, dimension_filter, pivots, order_bys.
	Dimensions []*Dimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// The metrics requested, at least one metric needs to be specified. All
	// defined metrics must be used by one of the following: metric_expression,
	// metric_filter, order_bys.
	Metrics []*Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// The filter clause of dimensions. Dimensions must be requested to be used in
	// this filter. Metrics cannot be used in this filter.
	DimensionFilter *FilterExpression `protobuf:"bytes,4,opt,name=dimension_filter,json=dimensionFilter,proto3" json:"dimension_filter,omitempty"`
	// The filter clause of metrics. Applied at post aggregation phase, similar to
	// SQL having-clause. Metrics must be requested to be used in this filter.
	// Dimensions cannot be used in this filter.
	MetricFilter *FilterExpression `protobuf:"bytes,5,opt,name=metric_filter,json=metricFilter,proto3" json:"metric_filter,omitempty"`
	// Describes the visual format of the report's dimensions in columns or rows.
	// The union of the fieldNames (dimension names) in all pivots must be a
	// subset of dimension names defined in Dimensions. No two pivots can share a
	// dimension. A dimension is only visible if it appears in a pivot.
	Pivots []*Pivot `protobuf:"bytes,6,rep,name=pivots,proto3" json:"pivots,omitempty"`
	// The date range to retrieve event data for the report. If multiple date
	// ranges are specified, event data from each date range is used in the
	// report. A special dimension with field name "dateRange" can be included in
	// a Pivot's field names; if included, the report compares between date
	// ranges. In a cohort request, this `dateRanges` must be unspecified.
	DateRanges []*DateRange `protobuf:"bytes,7,rep,name=date_ranges,json=dateRanges,proto3" json:"date_ranges,omitempty"`
	// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
	// If the field is empty, the report uses the entity's default currency.
	CurrencyCode string `protobuf:"bytes,8,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// Cohort group associated with this request. If there is a cohort group
	// in the request the 'cohort' dimension must be present.
	CohortSpec *CohortSpec `protobuf:"bytes,9,opt,name=cohort_spec,json=cohortSpec,proto3" json:"cohort_spec,omitempty"`
	// If false or unspecified, each row with all metrics equal to 0 will not be
	// returned. If true, these rows will be returned if they are not separately
	// removed by a filter.
	KeepEmptyRows bool `protobuf:"varint,10,opt,name=keep_empty_rows,json=keepEmptyRows,proto3" json:"keep_empty_rows,omitempty"`
	// Toggles whether to return the current state of this Analytics Property's
	// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
	ReturnPropertyQuota bool `protobuf:"varint,11,opt,name=return_property_quota,json=returnPropertyQuota,proto3" json:"return_property_quota,omitempty"`
	// contains filtered or unexported fields
}

The request to generate a pivot report.

func (*RunPivotReportRequest) Descriptor deprecated

func (*RunPivotReportRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunPivotReportRequest.ProtoReflect.Descriptor instead.

func (*RunPivotReportRequest) GetCohortSpec

func (x *RunPivotReportRequest) GetCohortSpec() *CohortSpec

func (*RunPivotReportRequest) GetCurrencyCode

func (x *RunPivotReportRequest) GetCurrencyCode() string

func (*RunPivotReportRequest) GetDateRanges

func (x *RunPivotReportRequest) GetDateRanges() []*DateRange

func (*RunPivotReportRequest) GetDimensionFilter

func (x *RunPivotReportRequest) GetDimensionFilter() *FilterExpression

func (*RunPivotReportRequest) GetDimensions

func (x *RunPivotReportRequest) GetDimensions() []*Dimension

func (*RunPivotReportRequest) GetEntity

func (x *RunPivotReportRequest) GetEntity() *Entity

func (*RunPivotReportRequest) GetKeepEmptyRows

func (x *RunPivotReportRequest) GetKeepEmptyRows() bool

func (*RunPivotReportRequest) GetMetricFilter

func (x *RunPivotReportRequest) GetMetricFilter() *FilterExpression

func (*RunPivotReportRequest) GetMetrics

func (x *RunPivotReportRequest) GetMetrics() []*Metric

func (*RunPivotReportRequest) GetPivots

func (x *RunPivotReportRequest) GetPivots() []*Pivot

func (*RunPivotReportRequest) GetReturnPropertyQuota

func (x *RunPivotReportRequest) GetReturnPropertyQuota() bool

func (*RunPivotReportRequest) ProtoMessage

func (*RunPivotReportRequest) ProtoMessage()

func (*RunPivotReportRequest) ProtoReflect

func (x *RunPivotReportRequest) ProtoReflect() protoreflect.Message

func (*RunPivotReportRequest) Reset

func (x *RunPivotReportRequest) Reset()

func (*RunPivotReportRequest) String

func (x *RunPivotReportRequest) String() string

type RunPivotReportResponse

type RunPivotReportResponse struct {

	// Summarizes the columns and rows created by a pivot. Each pivot in the
	// request produces one header in the response. If we have a request like
	// this:
	//
	//     "pivots": [{
	//       "fieldNames": ["country",
	//         "city"]
	//     },
	//     {
	//       "fieldNames": "eventName"
	//     }]
	//
	// We will have the following `pivotHeaders` in the response:
	//
	//     "pivotHeaders" : [{
	//       "dimensionHeaders": [{
	//         "dimensionValues": [
	//            { "value": "United Kingdom" },
	//            { "value": "London" }
	//          ]
	//       },
	//       {
	//         "dimensionValues": [
	//         { "value": "Japan" },
	//         { "value": "Osaka" }
	//         ]
	//       }]
	//     },
	//     {
	//       "dimensionHeaders": [{
	//         "dimensionValues": [{ "value": "session_start" }]
	//       },
	//       {
	//         "dimensionValues": [{ "value": "scroll" }]
	//       }]
	//     }]
	PivotHeaders []*PivotHeader `protobuf:"bytes,1,rep,name=pivot_headers,json=pivotHeaders,proto3" json:"pivot_headers,omitempty"`
	// Describes dimension columns. The number of DimensionHeaders and ordering of
	// DimensionHeaders matches the dimensions present in rows.
	DimensionHeaders []*DimensionHeader `protobuf:"bytes,7,rep,name=dimension_headers,json=dimensionHeaders,proto3" json:"dimension_headers,omitempty"`
	// Describes metric columns. The number of MetricHeaders and ordering of
	// MetricHeaders matches the metrics present in rows.
	MetricHeaders []*MetricHeader `protobuf:"bytes,2,rep,name=metric_headers,json=metricHeaders,proto3" json:"metric_headers,omitempty"`
	// Rows of dimension value combinations and metric values in the report.
	Rows []*Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	// Aggregation of metric values. Can be totals, minimums, or maximums. The
	// returned aggregations are controlled by the metric_aggregations in the
	// pivot. The type of aggregation returned in each row is shown by the
	// dimension_values which are set to "RESERVED_<MetricAggregation>".
	Aggregates []*Row `protobuf:"bytes,4,rep,name=aggregates,proto3" json:"aggregates,omitempty"`
	// Metadata for the report.
	Metadata *ResponseMetaData `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// This Analytics Property's quota state including this request.
	PropertyQuota *PropertyQuota `protobuf:"bytes,6,opt,name=property_quota,json=propertyQuota,proto3" json:"property_quota,omitempty"`
	// contains filtered or unexported fields
}

The response pivot report table corresponding to a pivot request.

func (*RunPivotReportResponse) Descriptor deprecated

func (*RunPivotReportResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunPivotReportResponse.ProtoReflect.Descriptor instead.

func (*RunPivotReportResponse) GetAggregates

func (x *RunPivotReportResponse) GetAggregates() []*Row

func (*RunPivotReportResponse) GetDimensionHeaders

func (x *RunPivotReportResponse) GetDimensionHeaders() []*DimensionHeader

func (*RunPivotReportResponse) GetMetadata

func (x *RunPivotReportResponse) GetMetadata() *ResponseMetaData

func (*RunPivotReportResponse) GetMetricHeaders

func (x *RunPivotReportResponse) GetMetricHeaders() []*MetricHeader

func (*RunPivotReportResponse) GetPivotHeaders

func (x *RunPivotReportResponse) GetPivotHeaders() []*PivotHeader

func (*RunPivotReportResponse) GetPropertyQuota

func (x *RunPivotReportResponse) GetPropertyQuota() *PropertyQuota

func (*RunPivotReportResponse) GetRows

func (x *RunPivotReportResponse) GetRows() []*Row

func (*RunPivotReportResponse) ProtoMessage

func (*RunPivotReportResponse) ProtoMessage()

func (*RunPivotReportResponse) ProtoReflect

func (x *RunPivotReportResponse) ProtoReflect() protoreflect.Message

func (*RunPivotReportResponse) Reset

func (x *RunPivotReportResponse) Reset()

func (*RunPivotReportResponse) String

func (x *RunPivotReportResponse) String() string

type RunRealtimeReportRequest

type RunRealtimeReportRequest struct {

	// A Google Analytics GA4 property identifier whose events are tracked.
	// Specified in the URL path and not the body. To learn more, see [where to
	// find your Property
	// ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
	//
	// Example: properties/1234
	Property string `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
	// The dimensions requested and displayed.
	Dimensions []*Dimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// The metrics requested and displayed.
	Metrics []*Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// The number of rows to return. If unspecified, 10 rows are returned. If
	// -1, all rows are returned.
	Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
	// The filter clause of dimensions. Dimensions must be requested to be used in
	// this filter. Metrics cannot be used in this filter.
	DimensionFilter *FilterExpression `protobuf:"bytes,5,opt,name=dimension_filter,json=dimensionFilter,proto3" json:"dimension_filter,omitempty"`
	// The filter clause of metrics. Applied at post aggregation phase, similar to
	// SQL having-clause. Metrics must be requested to be used in this filter.
	// Dimensions cannot be used in this filter.
	MetricFilter *FilterExpression `protobuf:"bytes,6,opt,name=metric_filter,json=metricFilter,proto3" json:"metric_filter,omitempty"`
	// Aggregation of metrics. Aggregated metric values will be shown in rows
	// where the dimension_values are set to "RESERVED_(MetricAggregation)".
	MetricAggregations []MetricAggregation `` /* 176-byte string literal not displayed */
	// Specifies how rows are ordered in the response.
	OrderBys []*OrderBy `protobuf:"bytes,8,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"`
	// Toggles whether to return the current state of this Analytics Property's
	// Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota).
	ReturnPropertyQuota bool `protobuf:"varint,9,opt,name=return_property_quota,json=returnPropertyQuota,proto3" json:"return_property_quota,omitempty"`
	// contains filtered or unexported fields
}

The request to generate a realtime report.

func (*RunRealtimeReportRequest) Descriptor deprecated

func (*RunRealtimeReportRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunRealtimeReportRequest.ProtoReflect.Descriptor instead.

func (*RunRealtimeReportRequest) GetDimensionFilter

func (x *RunRealtimeReportRequest) GetDimensionFilter() *FilterExpression

func (*RunRealtimeReportRequest) GetDimensions

func (x *RunRealtimeReportRequest) GetDimensions() []*Dimension

func (*RunRealtimeReportRequest) GetLimit

func (x *RunRealtimeReportRequest) GetLimit() int64

func (*RunRealtimeReportRequest) GetMetricAggregations

func (x *RunRealtimeReportRequest) GetMetricAggregations() []MetricAggregation

func (*RunRealtimeReportRequest) GetMetricFilter

func (x *RunRealtimeReportRequest) GetMetricFilter() *FilterExpression

func (*RunRealtimeReportRequest) GetMetrics

func (x *RunRealtimeReportRequest) GetMetrics() []*Metric

func (*RunRealtimeReportRequest) GetOrderBys

func (x *RunRealtimeReportRequest) GetOrderBys() []*OrderBy

func (*RunRealtimeReportRequest) GetProperty

func (x *RunRealtimeReportRequest) GetProperty() string

func (*RunRealtimeReportRequest) GetReturnPropertyQuota

func (x *RunRealtimeReportRequest) GetReturnPropertyQuota() bool

func (*RunRealtimeReportRequest) ProtoMessage

func (*RunRealtimeReportRequest) ProtoMessage()

func (*RunRealtimeReportRequest) ProtoReflect

func (x *RunRealtimeReportRequest) ProtoReflect() protoreflect.Message

func (*RunRealtimeReportRequest) Reset

func (x *RunRealtimeReportRequest) Reset()

func (*RunRealtimeReportRequest) String

func (x *RunRealtimeReportRequest) String() string

type RunRealtimeReportResponse

type RunRealtimeReportResponse struct {

	// Describes dimension columns. The number of DimensionHeaders and ordering of
	// DimensionHeaders matches the dimensions present in rows.
	DimensionHeaders []*DimensionHeader `protobuf:"bytes,1,rep,name=dimension_headers,json=dimensionHeaders,proto3" json:"dimension_headers,omitempty"`
	// Describes metric columns. The number of MetricHeaders and ordering of
	// MetricHeaders matches the metrics present in rows.
	MetricHeaders []*MetricHeader `protobuf:"bytes,2,rep,name=metric_headers,json=metricHeaders,proto3" json:"metric_headers,omitempty"`
	// Rows of dimension value combinations and metric values in the report.
	Rows []*Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	// If requested, the totaled values of metrics.
	Totals []*Row `protobuf:"bytes,4,rep,name=totals,proto3" json:"totals,omitempty"`
	// If requested, the maximum values of metrics.
	Maximums []*Row `protobuf:"bytes,5,rep,name=maximums,proto3" json:"maximums,omitempty"`
	// If requested, the minimum values of metrics.
	Minimums []*Row `protobuf:"bytes,6,rep,name=minimums,proto3" json:"minimums,omitempty"`
	// The total number of rows in the query result, regardless of the number of
	// rows returned in the response. For example if a query returns 175 rows and
	// includes limit = 50 in the API request, the response will contain row_count
	// = 175 but only 50 rows.
	RowCount int32 `protobuf:"varint,7,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
	// This Analytics Property's Realtime quota state including this request.
	PropertyQuota *PropertyQuota `protobuf:"bytes,8,opt,name=property_quota,json=propertyQuota,proto3" json:"property_quota,omitempty"`
	// contains filtered or unexported fields
}

The response realtime report table corresponding to a request.

func (*RunRealtimeReportResponse) Descriptor deprecated

func (*RunRealtimeReportResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunRealtimeReportResponse.ProtoReflect.Descriptor instead.

func (*RunRealtimeReportResponse) GetDimensionHeaders

func (x *RunRealtimeReportResponse) GetDimensionHeaders() []*DimensionHeader

func (*RunRealtimeReportResponse) GetMaximums

func (x *RunRealtimeReportResponse) GetMaximums() []*Row

func (*RunRealtimeReportResponse) GetMetricHeaders

func (x *RunRealtimeReportResponse) GetMetricHeaders() []*MetricHeader

func (*RunRealtimeReportResponse) GetMinimums

func (x *RunRealtimeReportResponse) GetMinimums() []*Row

func (*RunRealtimeReportResponse) GetPropertyQuota

func (x *RunRealtimeReportResponse) GetPropertyQuota() *PropertyQuota

func (*RunRealtimeReportResponse) GetRowCount

func (x *RunRealtimeReportResponse) GetRowCount() int32

func (*RunRealtimeReportResponse) GetRows

func (x *RunRealtimeReportResponse) GetRows() []*Row

func (*RunRealtimeReportResponse) GetTotals

func (x *RunRealtimeReportResponse) GetTotals() []*Row

func (*RunRealtimeReportResponse) ProtoMessage

func (*RunRealtimeReportResponse) ProtoMessage()

func (*RunRealtimeReportResponse) ProtoReflect

func (*RunRealtimeReportResponse) Reset

func (x *RunRealtimeReportResponse) Reset()

func (*RunRealtimeReportResponse) String

func (x *RunRealtimeReportResponse) String() string

type RunReportRequest

type RunReportRequest struct {

	// A property whose events are tracked. Within a batch request, this entity
	// should either be unspecified or consistent with the batch-level entity.
	Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
	// The dimensions requested and displayed.
	Dimensions []*Dimension `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
	// The metrics requested and displayed.
	Metrics []*Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// Date ranges of data to read. If multiple date ranges are requested, each
	// response row will contain a zero based date range index. If two date
	// ranges overlap, the event data for the overlapping days is included in the
	// response rows for both date ranges. In a cohort request, this `dateRanges`
	// must be unspecified.
	DateRanges []*DateRange `protobuf:"bytes,4,rep,name=date_ranges,json=dateRanges,proto3" json:"date_ranges,omitempty"`
	// The row count of the start row. The first row is counted as row 0.
	//
	// To learn more about this pagination parameter, see
	// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
	Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
	// The number of rows to return. If unspecified, 10 rows are returned. If
	// -1, all rows are returned.
	//
	// To learn more about this pagination parameter, see
	// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
	Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	// Aggregation of metrics. Aggregated metric values will be shown in rows
	// where the dimension_values are set to "RESERVED_(MetricAggregation)".
	MetricAggregations []MetricAggregation `` /* 176-byte string literal not displayed */
	// The filter clause of dimensions. Dimensions must be requested to be used in
	// this filter. Metrics cannot be used in this filter.
	DimensionFilter *FilterExpression `protobuf:"bytes,8,opt,name=dimension_filter,json=dimensionFilter,proto3" json:"dimension_filter,omitempty"`
	// The filter clause of metrics. Applied at post aggregation phase, similar to
	// SQL having-clause. Metrics must be requested to be used in this filter.
	// Dimensions cannot be used in this filter.
	MetricFilter *FilterExpression `protobuf:"bytes,9,opt,name=metric_filter,json=metricFilter,proto3" json:"metric_filter,omitempty"`
	// Specifies how rows are ordered in the response.
	OrderBys []*OrderBy `protobuf:"bytes,10,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"`
	// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
	// If the field is empty, the report uses the entity's default currency.
	CurrencyCode string `protobuf:"bytes,11,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// Cohort group associated with this request. If there is a cohort group
	// in the request the 'cohort' dimension must be present.
	CohortSpec *CohortSpec `protobuf:"bytes,12,opt,name=cohort_spec,json=cohortSpec,proto3" json:"cohort_spec,omitempty"`
	// If false or unspecified, each row with all metrics equal to 0 will not be
	// returned. If true, these rows will be returned if they are not separately
	// removed by a filter.
	KeepEmptyRows bool `protobuf:"varint,13,opt,name=keep_empty_rows,json=keepEmptyRows,proto3" json:"keep_empty_rows,omitempty"`
	// Toggles whether to return the current state of this Analytics Property's
	// quota. Quota is returned in [PropertyQuota](#PropertyQuota).
	ReturnPropertyQuota bool `protobuf:"varint,14,opt,name=return_property_quota,json=returnPropertyQuota,proto3" json:"return_property_quota,omitempty"`
	// contains filtered or unexported fields
}

The request to generate a report.

func (*RunReportRequest) Descriptor deprecated

func (*RunReportRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunReportRequest.ProtoReflect.Descriptor instead.

func (*RunReportRequest) GetCohortSpec

func (x *RunReportRequest) GetCohortSpec() *CohortSpec

func (*RunReportRequest) GetCurrencyCode

func (x *RunReportRequest) GetCurrencyCode() string

func (*RunReportRequest) GetDateRanges

func (x *RunReportRequest) GetDateRanges() []*DateRange

func (*RunReportRequest) GetDimensionFilter

func (x *RunReportRequest) GetDimensionFilter() *FilterExpression

func (*RunReportRequest) GetDimensions

func (x *RunReportRequest) GetDimensions() []*Dimension

func (*RunReportRequest) GetEntity

func (x *RunReportRequest) GetEntity() *Entity

func (*RunReportRequest) GetKeepEmptyRows

func (x *RunReportRequest) GetKeepEmptyRows() bool

func (*RunReportRequest) GetLimit

func (x *RunReportRequest) GetLimit() int64

func (*RunReportRequest) GetMetricAggregations

func (x *RunReportRequest) GetMetricAggregations() []MetricAggregation

func (*RunReportRequest) GetMetricFilter

func (x *RunReportRequest) GetMetricFilter() *FilterExpression

func (*RunReportRequest) GetMetrics

func (x *RunReportRequest) GetMetrics() []*Metric

func (*RunReportRequest) GetOffset

func (x *RunReportRequest) GetOffset() int64

func (*RunReportRequest) GetOrderBys

func (x *RunReportRequest) GetOrderBys() []*OrderBy

func (*RunReportRequest) GetReturnPropertyQuota

func (x *RunReportRequest) GetReturnPropertyQuota() bool

func (*RunReportRequest) ProtoMessage

func (*RunReportRequest) ProtoMessage()

func (*RunReportRequest) ProtoReflect

func (x *RunReportRequest) ProtoReflect() protoreflect.Message

func (*RunReportRequest) Reset

func (x *RunReportRequest) Reset()

func (*RunReportRequest) String

func (x *RunReportRequest) String() string

type RunReportResponse

type RunReportResponse struct {

	// Describes dimension columns. The number of DimensionHeaders and ordering of
	// DimensionHeaders matches the dimensions present in rows.
	DimensionHeaders []*DimensionHeader `protobuf:"bytes,11,rep,name=dimension_headers,json=dimensionHeaders,proto3" json:"dimension_headers,omitempty"`
	// Describes metric columns. The number of MetricHeaders and ordering of
	// MetricHeaders matches the metrics present in rows.
	MetricHeaders []*MetricHeader `protobuf:"bytes,1,rep,name=metric_headers,json=metricHeaders,proto3" json:"metric_headers,omitempty"`
	// Rows of dimension value combinations and metric values in the report.
	Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// If requested, the totaled values of metrics.
	Totals []*Row `protobuf:"bytes,8,rep,name=totals,proto3" json:"totals,omitempty"`
	// If requested, the maximum values of metrics.
	Maximums []*Row `protobuf:"bytes,9,rep,name=maximums,proto3" json:"maximums,omitempty"`
	// If requested, the minimum values of metrics.
	Minimums []*Row `protobuf:"bytes,10,rep,name=minimums,proto3" json:"minimums,omitempty"`
	// The total number of rows in the query result, regardless of the number of
	// rows returned in the response. For example if a query returns 175 rows and
	// includes limit = 50 in the API request, the response will contain row_count
	// = 175 but only 50 rows.
	//
	// To learn more about this pagination parameter, see
	// [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
	RowCount int32 `protobuf:"varint,12,opt,name=row_count,json=rowCount,proto3" json:"row_count,omitempty"`
	// Metadata for the report.
	Metadata *ResponseMetaData `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// This Analytics Property's quota state including this request.
	PropertyQuota *PropertyQuota `protobuf:"bytes,7,opt,name=property_quota,json=propertyQuota,proto3" json:"property_quota,omitempty"`
	// contains filtered or unexported fields
}

The response report table corresponding to a request.

func (*RunReportResponse) Descriptor deprecated

func (*RunReportResponse) Descriptor() ([]byte, []int)

Deprecated: Use RunReportResponse.ProtoReflect.Descriptor instead.

func (*RunReportResponse) GetDimensionHeaders

func (x *RunReportResponse) GetDimensionHeaders() []*DimensionHeader

func (*RunReportResponse) GetMaximums

func (x *RunReportResponse) GetMaximums() []*Row

func (*RunReportResponse) GetMetadata

func (x *RunReportResponse) GetMetadata() *ResponseMetaData

func (*RunReportResponse) GetMetricHeaders

func (x *RunReportResponse) GetMetricHeaders() []*MetricHeader

func (*RunReportResponse) GetMinimums

func (x *RunReportResponse) GetMinimums() []*Row

func (*RunReportResponse) GetPropertyQuota

func (x *RunReportResponse) GetPropertyQuota() *PropertyQuota

func (*RunReportResponse) GetRowCount

func (x *RunReportResponse) GetRowCount() int32

func (*RunReportResponse) GetRows

func (x *RunReportResponse) GetRows() []*Row

func (*RunReportResponse) GetTotals

func (x *RunReportResponse) GetTotals() []*Row

func (*RunReportResponse) ProtoMessage

func (*RunReportResponse) ProtoMessage()

func (*RunReportResponse) ProtoReflect

func (x *RunReportResponse) ProtoReflect() protoreflect.Message

func (*RunReportResponse) Reset

func (x *RunReportResponse) Reset()

func (*RunReportResponse) String

func (x *RunReportResponse) String() string

type UnimplementedAlphaAnalyticsDataServer

type UnimplementedAlphaAnalyticsDataServer struct {
}

UnimplementedAlphaAnalyticsDataServer can be embedded to have forward compatible implementations.

func (*UnimplementedAlphaAnalyticsDataServer) BatchRunPivotReports

func (*UnimplementedAlphaAnalyticsDataServer) BatchRunReports

func (*UnimplementedAlphaAnalyticsDataServer) GetMetadata

func (*UnimplementedAlphaAnalyticsDataServer) RunPivotReport

func (*UnimplementedAlphaAnalyticsDataServer) RunRealtimeReport

func (*UnimplementedAlphaAnalyticsDataServer) RunReport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL