Package com.google.analytics.data.v1beta
Class MetricMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
com.google.analytics.data.v1beta.MetricMetadata.Builder
- All Implemented Interfaces:
MetricMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetricMetadata
public static final class MetricMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
implements MetricMetadataOrBuilder
Explains a metric.Protobuf type
google.analytics.data.v1beta.MetricMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlockedReasons(Iterable<? extends MetricMetadata.BlockedReason> values) If reasons are specified, your access is blocked to this metric for this property.addAllBlockedReasonsValue(Iterable<Integer> values) If reasons are specified, your access is blocked to this metric for this property.addAllDeprecatedApiNames(Iterable<String> values) Still usable but deprecated names for this metric.If reasons are specified, your access is blocked to this metric for this property.addBlockedReasonsValue(int value) If reasons are specified, your access is blocked to this metric for this property.addDeprecatedApiNames(String value) Still usable but deprecated names for this metric.addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) Still usable but deprecated names for this metric.build()clear()A metric name.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.True if the metric is a custom metric for this property.Still usable but deprecated names for this metric.Description of how this metric is used and calculated.The mathematical expression for this derived metric.The type of this metric.This metric's name within the Google Analytics user interface.A 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.com.google.protobuf.ProtocolStringListStill 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe mathematical expression for this derived metric.com.google.protobuf.ByteStringThe mathematical expression for this derived metric.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MetricMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApiName(String value) A metric name.setApiNameBytes(com.google.protobuf.ByteString value) A metric name.setBlockedReasons(int index, MetricMetadata.BlockedReason value) If reasons are specified, your access is blocked to this metric for this property.setBlockedReasonsValue(int index, int value) If reasons are specified, your access is blocked to this metric for this property.setCategory(String value) The display name of the category that this metrics belongs to.setCategoryBytes(com.google.protobuf.ByteString value) The display name of the category that this metrics belongs to.setCustomDefinition(boolean value) True if the metric is a custom metric for this property.setDeprecatedApiNames(int index, String value) Still usable but deprecated names for this metric.setDescription(String value) Description of how this metric is used and calculated.setDescriptionBytes(com.google.protobuf.ByteString value) Description of how this metric is used and calculated.setExpression(String value) The mathematical expression for this derived metric.setExpressionBytes(com.google.protobuf.ByteString value) The mathematical expression for this derived metric.setType(MetricType value) The type of this metric.setTypeValue(int value) The type of this metric.This metric's name within the Google Analytics user interface.setUiNameBytes(com.google.protobuf.ByteString value) This metric's name within the Google Analytics user interface.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricMetadata.Builder>
-
mergeFrom
public MetricMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricMetadata.Builder>- Throws:
IOException
-
getApiName
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Specified by:
getApiNamein interfaceMetricMetadataOrBuilder- Returns:
- The apiName.
-
getApiNameBytes
public com.google.protobuf.ByteString getApiNameBytes()A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Specified by:
getApiNameBytesin interfaceMetricMetadataOrBuilder- Returns:
- The bytes for apiName.
-
setApiName
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Parameters:
value- The apiName to set.- Returns:
- This builder for chaining.
-
clearApiName
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Returns:
- This builder for chaining.
-
setApiNameBytes
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;- Parameters:
value- The bytes for apiName to set.- Returns:
- This builder for chaining.
-
getUiName
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Specified by:
getUiNamein interfaceMetricMetadataOrBuilder- Returns:
- The uiName.
-
getUiNameBytes
public com.google.protobuf.ByteString getUiNameBytes()This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Specified by:
getUiNameBytesin interfaceMetricMetadataOrBuilder- Returns:
- The bytes for uiName.
-
setUiName
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Parameters:
value- The uiName to set.- Returns:
- This builder for chaining.
-
clearUiName
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Returns:
- This builder for chaining.
-
setUiNameBytes
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;- Parameters:
value- The bytes for uiName to set.- Returns:
- This builder for chaining.
-
getDescription
Description of how this metric is used and calculated.
string description = 3;- Specified by:
getDescriptionin interfaceMetricMetadataOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of how this metric is used and calculated.
string description = 3;- Specified by:
getDescriptionBytesin interfaceMetricMetadataOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description of how this metric is used and calculated.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of how this metric is used and calculated.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of how this metric is used and calculated.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDeprecatedApiNamesList
public com.google.protobuf.ProtocolStringList 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;- Specified by:
getDeprecatedApiNamesListin interfaceMetricMetadataOrBuilder- Returns:
- A list containing the deprecatedApiNames.
-
getDeprecatedApiNamesCount
public 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;- Specified by:
getDeprecatedApiNamesCountin interfaceMetricMetadataOrBuilder- 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;- Specified by:
getDeprecatedApiNamesin interfaceMetricMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deprecatedApiNames at the given index.
-
getDeprecatedApiNamesBytes
public 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;- Specified by:
getDeprecatedApiNamesBytesin interfaceMetricMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deprecatedApiNames at the given index.
-
setDeprecatedApiNames
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 to set the value at.value- The deprecatedApiNames to set.- Returns:
- This builder for chaining.
-
addDeprecatedApiNames
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:
value- The deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
addAllDeprecatedApiNames
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:
values- The deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
clearDeprecatedApiNames
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:
- This builder for chaining.
-
addDeprecatedApiNamesBytes
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:
value- The bytes of the deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;- Specified by:
getTypeValuein interfaceMetricMetadataOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;- Specified by:
getTypein interfaceMetricMetadataOrBuilder- Returns:
- The type.
-
setType
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;- Returns:
- This builder for chaining.
-
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;- Specified by:
getExpressionin interfaceMetricMetadataOrBuilder- Returns:
- The expression.
-
getExpressionBytes
public 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;- Specified by:
getExpressionBytesin interfaceMetricMetadataOrBuilder- Returns:
- The bytes for expression.
-
setExpression
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;- Parameters:
value- The expression to set.- Returns:
- This builder for chaining.
-
clearExpression
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:
- This builder for chaining.
-
setExpressionBytes
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;- Parameters:
value- The bytes for expression to set.- Returns:
- This builder for chaining.
-
getCustomDefinition
public boolean getCustomDefinition()True if the metric is a custom metric for this property.
bool custom_definition = 7;- Specified by:
getCustomDefinitionin interfaceMetricMetadataOrBuilder- Returns:
- The customDefinition.
-
setCustomDefinition
True if the metric is a custom metric for this property.
bool custom_definition = 7;- Parameters:
value- The customDefinition to set.- Returns:
- This builder for chaining.
-
clearCustomDefinition
True if the metric is a custom metric for this property.
bool custom_definition = 7;- Returns:
- This builder for chaining.
-
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Specified by:
getBlockedReasonsListin interfaceMetricMetadataOrBuilder- Returns:
- A list containing the blockedReasons.
-
getBlockedReasonsCount
public 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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Specified by:
getBlockedReasonsCountin interfaceMetricMetadataOrBuilder- 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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Specified by:
getBlockedReasonsin interfaceMetricMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The blockedReasons at the given index.
-
setBlockedReasons
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
index- The index to set the value at.value- The blockedReasons to set.- Returns:
- This builder for chaining.
-
addBlockedReasons
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
value- The blockedReasons to add.- Returns:
- This builder for chaining.
-
addAllBlockedReasons
public MetricMetadata.Builder addAllBlockedReasons(Iterable<? extends MetricMetadata.BlockedReason> values) 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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
values- The blockedReasons to add.- Returns:
- This builder for chaining.
-
clearBlockedReasons
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Returns:
- This builder for chaining.
-
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Specified by:
getBlockedReasonsValueListin interfaceMetricMetadataOrBuilder- Returns:
- A list containing the enum numeric values on the wire for blockedReasons.
-
getBlockedReasonsValue
public 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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Specified by:
getBlockedReasonsValuein interfaceMetricMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of blockedReasons at the given index.
-
setBlockedReasonsValue
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for blockedReasons to set.- Returns:
- This builder for chaining.
-
addBlockedReasonsValue
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
value- The enum numeric value on the wire for blockedReasons to add.- Returns:
- This builder for chaining.
-
addAllBlockedReasonsValue
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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;- Parameters:
values- The enum numeric values on the wire for blockedReasons to add.- Returns:
- This builder for chaining.
-
getCategory
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 10;- Specified by:
getCategoryin interfaceMetricMetadataOrBuilder- Returns:
- The category.
-
getCategoryBytes
public 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 = 10;- Specified by:
getCategoryBytesin interfaceMetricMetadataOrBuilder- Returns:
- The bytes for category.
-
setCategory
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 10;- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 10;- Returns:
- This builder for chaining.
-
setCategoryBytes
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 10;- Parameters:
value- The bytes for category to set.- Returns:
- This builder for chaining.
-