Interface MetricMetadataOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MetricMetadata,MetricMetadata.Builder
@Generated
public interface MetricMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionA metric name.com.google.protobuf.ByteStringA metric name.getBlockedReasons(int index) If reasons are specified, your access is blocked to this metric for this property.intIf reasons are specified, your access is blocked to this metric for this property.If reasons are specified, your access is blocked to this metric for this property.intgetBlockedReasonsValue(int index) If reasons are specified, your access is blocked to this metric for this property.If reasons are specified, your access is blocked to this metric for this property.The display name of the category that this metrics belongs to.com.google.protobuf.ByteStringThe display name of the category that this metrics belongs to.booleanTrue if the metric is a custom metric for this property.getDeprecatedApiNames(int index) Still usable but deprecated names for this metric.com.google.protobuf.ByteStringgetDeprecatedApiNamesBytes(int index) Still usable but deprecated names for this metric.intStill usable but deprecated names for this metric.Still usable but deprecated names for this metric.Description of how this metric is used and calculated.com.google.protobuf.ByteStringDescription of how this metric is used and calculated.The mathematical expression for this derived metric.com.google.protobuf.ByteStringThe mathematical expression for this derived metric.getSections(int index) Specifies the Google Analytics sections this metric applies to.intSpecifies the Google Analytics sections this metric applies to.Specifies the Google Analytics sections this metric applies to.intgetSectionsValue(int index) Specifies the Google Analytics sections this metric applies to.Specifies the Google Analytics sections this metric applies to.getType()The type of this metric.intThe type of this metric.This metric's name within the Google Analytics user interface.com.google.protobuf.ByteStringThis metric's name within the Google Analytics user interface.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getApiName
String getApiName()A metric name. Usable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Returns:
- The apiName.
-
getApiNameBytes
com.google.protobuf.ByteString getApiNameBytes()A metric name. Usable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Returns:
- The bytes for apiName.
-
getUiName
String getUiName()This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Returns:
- The uiName.
-
getUiNameBytes
com.google.protobuf.ByteString getUiNameBytes()This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Returns:
- The bytes for uiName.
-
getDescription
String getDescription()Description of how this metric is used and calculated.
string description = 3;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Description of how this metric is used and calculated.
string description = 3;- Returns:
- The bytes for description.
-
getDeprecatedApiNamesList
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`.
repeated string deprecated_api_names = 4;- Returns:
- A list containing the deprecatedApiNames.
-
getDeprecatedApiNamesCount
int getDeprecatedApiNamesCount()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`.
repeated string deprecated_api_names = 4;- Returns:
- The count of deprecatedApiNames.
-
getDeprecatedApiNames
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`.
repeated string deprecated_api_names = 4;- Parameters:
index- The index of the element to return.- Returns:
- The deprecatedApiNames at the given index.
-
getDeprecatedApiNamesBytes
com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) 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`.
repeated string deprecated_api_names = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deprecatedApiNames at the given index.
-
getTypeValue
int getTypeValue()The type of this metric.
.google.analytics.data.v1alpha.MetricType type = 5;- Returns:
- The enum numeric value on the wire for type.
-
getType
MetricType getType()The type of this metric.
.google.analytics.data.v1alpha.MetricType type = 5;- Returns:
- The type.
-
getExpression
String getExpression()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.
string expression = 6;- Returns:
- The expression.
-
getExpressionBytes
com.google.protobuf.ByteString getExpressionBytes()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.
string expression = 6;- Returns:
- The bytes for expression.
-
getCustomDefinition
boolean getCustomDefinition()True if the metric is a custom metric for this property.
bool custom_definition = 7;- Returns:
- The customDefinition.
-
getBlockedReasonsList
List<MetricMetadata.BlockedReason> getBlockedReasonsList()If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8;- Returns:
- A list containing the blockedReasons.
-
getBlockedReasonsCount
int getBlockedReasonsCount()If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8;- Returns:
- The count of blockedReasons.
-
getBlockedReasons
If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
index- The index of the element to return.- Returns:
- The blockedReasons at the given index.
-
getBlockedReasonsValueList
If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8;- Returns:
- A list containing the enum numeric values on the wire for blockedReasons.
-
getBlockedReasonsValue
int getBlockedReasonsValue(int index) If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see [Access and data-restriction management](https://support.google.com/analytics/answer/10851388).
repeated .google.analytics.data.v1alpha.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of blockedReasons at the given index.
-
getCategory
String getCategory()The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 9;- Returns:
- The category.
-
getCategoryBytes
com.google.protobuf.ByteString getCategoryBytes()The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 9;- Returns:
- The bytes for category.
-
getSectionsList
Specifies the Google Analytics sections this metric applies to.
repeated .google.analytics.data.v1alpha.Section sections = 10;- Returns:
- A list containing the sections.
-
getSectionsCount
int getSectionsCount()Specifies the Google Analytics sections this metric applies to.
repeated .google.analytics.data.v1alpha.Section sections = 10;- Returns:
- The count of sections.
-
getSections
Specifies the Google Analytics sections this metric applies to.
repeated .google.analytics.data.v1alpha.Section sections = 10;- Parameters:
index- The index of the element to return.- Returns:
- The sections at the given index.
-
getSectionsValueList
Specifies the Google Analytics sections this metric applies to.
repeated .google.analytics.data.v1alpha.Section sections = 10;- Returns:
- A list containing the enum numeric values on the wire for sections.
-
getSectionsValue
int getSectionsValue(int index) Specifies the Google Analytics sections this metric applies to.
repeated .google.analytics.data.v1alpha.Section sections = 10;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of sections at the given index.
-