public final class MetricMetadata extends com.google.protobuf.GeneratedMessageV3 implements MetricMetadataOrBuilder
Explains a metric.Protobuf type
google.analytics.data.v1beta.MetricMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
MetricMetadata.BlockedReason
Justifications for why this metric is blocked.
|
static class |
MetricMetadata.Builder
Explains a metric.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
API_NAME_FIELD_NUMBER |
static int |
BLOCKED_REASONS_FIELD_NUMBER |
static int |
CATEGORY_FIELD_NUMBER |
static int |
CUSTOM_DEFINITION_FIELD_NUMBER |
static int |
DEPRECATED_API_NAMES_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
EXPRESSION_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
UI_NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getApiName()
A metric name.
|
com.google.protobuf.ByteString |
getApiNameBytes()
A metric name.
|
MetricMetadata.BlockedReason |
getBlockedReasons(int index)
If reasons are specified, your access is blocked to this metric for this
property.
|
int |
getBlockedReasonsCount()
If reasons are specified, your access is blocked to this metric for this
property.
|
List<MetricMetadata.BlockedReason> |
getBlockedReasonsList()
If reasons are specified, your access is blocked to this metric for this
property.
|
int |
getBlockedReasonsValue(int index)
If reasons are specified, your access is blocked to this metric for this
property.
|
List<Integer> |
getBlockedReasonsValueList()
If reasons are specified, your access is blocked to this metric for this
property.
|
String |
getCategory()
The display name of the category that this metrics belongs to.
|
com.google.protobuf.ByteString |
getCategoryBytes()
The display name of the category that this metrics belongs to.
|
boolean |
getCustomDefinition()
True if the metric is a custom metric for this property.
|
static MetricMetadata |
getDefaultInstance() |
MetricMetadata |
getDefaultInstanceForType() |
String |
getDeprecatedApiNames(int index)
Still usable but deprecated names for this metric.
|
com.google.protobuf.ByteString |
getDeprecatedApiNamesBytes(int index)
Still usable but deprecated names for this metric.
|
int |
getDeprecatedApiNamesCount()
Still usable but deprecated names for this metric.
|
com.google.protobuf.ProtocolStringList |
getDeprecatedApiNamesList()
Still usable but deprecated names for this metric.
|
String |
getDescription()
Description of how this metric is used and calculated.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Description of how this metric is used and calculated.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getExpression()
The mathematical expression for this derived metric.
|
com.google.protobuf.ByteString |
getExpressionBytes()
The mathematical expression for this derived metric.
|
com.google.protobuf.Parser<MetricMetadata> |
getParserForType() |
int |
getSerializedSize() |
MetricType |
getType()
The type of this metric.
|
int |
getTypeValue()
The type of this metric.
|
String |
getUiName()
This metric's name within the Google Analytics user interface.
|
com.google.protobuf.ByteString |
getUiNameBytes()
This metric's name within the Google Analytics user interface.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MetricMetadata.Builder |
newBuilder() |
static MetricMetadata.Builder |
newBuilder(MetricMetadata prototype) |
MetricMetadata.Builder |
newBuilderForType() |
protected MetricMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MetricMetadata |
parseDelimitedFrom(InputStream input) |
static MetricMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricMetadata |
parseFrom(byte[] data) |
static MetricMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricMetadata |
parseFrom(ByteBuffer data) |
static MetricMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static MetricMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MetricMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetricMetadata |
parseFrom(InputStream input) |
static MetricMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MetricMetadata> |
parser() |
MetricMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int API_NAME_FIELD_NUMBER
public static final int UI_NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int DEPRECATED_API_NAMES_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int EXPRESSION_FIELD_NUMBER
public static final int CUSTOM_DEFINITION_FIELD_NUMBER
public static final int BLOCKED_REASONS_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getApiName()
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;getApiName in interface MetricMetadataOrBuilderpublic com.google.protobuf.ByteString getApiNameBytes()
A metric name. Useable in [Metric](#Metric)'s `name`. For example, `eventCount`.
string api_name = 1;getApiNameBytes in interface MetricMetadataOrBuilderpublic String getUiName()
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;getUiName in interface MetricMetadataOrBuilderpublic com.google.protobuf.ByteString getUiNameBytes()
This metric's name within the Google Analytics user interface. For example, `Event count`.
string ui_name = 2;getUiNameBytes in interface MetricMetadataOrBuilderpublic String getDescription()
Description of how this metric is used and calculated.
string description = 3;getDescription in interface MetricMetadataOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
Description of how this metric is used and calculated.
string description = 3;getDescriptionBytes in interface MetricMetadataOrBuilderpublic 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;getDeprecatedApiNamesList in interface MetricMetadataOrBuilderpublic 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;getDeprecatedApiNamesCount in interface MetricMetadataOrBuilderpublic String getDeprecatedApiNames(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;getDeprecatedApiNames in interface MetricMetadataOrBuilderindex - The index of the element to return.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;getDeprecatedApiNamesBytes in interface MetricMetadataOrBuilderindex - The index of the value to return.public int getTypeValue()
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;getTypeValue in interface MetricMetadataOrBuilderpublic MetricType getType()
The type of this metric.
.google.analytics.data.v1beta.MetricType type = 5;getType in interface MetricMetadataOrBuilderpublic 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;getExpression in interface MetricMetadataOrBuilderpublic 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;getExpressionBytes in interface MetricMetadataOrBuilderpublic boolean getCustomDefinition()
True if the metric is a custom metric for this property.
bool custom_definition = 7;getCustomDefinition in interface MetricMetadataOrBuilderpublic 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.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8;
getBlockedReasonsList in interface MetricMetadataOrBuilderpublic 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;
getBlockedReasonsCount in interface MetricMetadataOrBuilderpublic MetricMetadata.BlockedReason getBlockedReasons(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;
getBlockedReasons in interface MetricMetadataOrBuilderindex - The index of the element to return.public List<Integer> 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;
getBlockedReasonsValueList in interface MetricMetadataOrBuilderpublic 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;
getBlockedReasonsValue in interface MetricMetadataOrBuilderindex - The index of the value to return.public String getCategory()
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
string category = 10;getCategory in interface MetricMetadataOrBuilderpublic 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;getCategoryBytes in interface MetricMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MetricMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricMetadata parseFrom(InputStream input) throws IOException
IOExceptionpublic static MetricMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetricMetadata parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MetricMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MetricMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MetricMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MetricMetadata.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MetricMetadata.Builder newBuilder()
public static MetricMetadata.Builder newBuilder(MetricMetadata prototype)
public MetricMetadata.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MetricMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MetricMetadata getDefaultInstance()
public static com.google.protobuf.Parser<MetricMetadata> parser()
public com.google.protobuf.Parser<MetricMetadata> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MetricMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.