public final class MetricHeader extends GeneratedMessageV3 implements MetricHeaderOrBuilder
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.
Protobuf type google.analytics.data.v1alpha.MetricHeader
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MetricHeaderImplements
MetricHeaderOrBuilderStatic Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MetricHeader getDefaultInstance()
Type | Description |
MetricHeader |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MetricHeader.Builder newBuilder()
Type | Description |
MetricHeader.Builder |
newBuilder(MetricHeader prototype)
public static MetricHeader.Builder newBuilder(MetricHeader prototype)
Name | Description |
prototype | MetricHeader |
Type | Description |
MetricHeader.Builder |
parseDelimitedFrom(InputStream input)
public static MetricHeader parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MetricHeader parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MetricHeader parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MetricHeader parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MetricHeader parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MetricHeader parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MetricHeader parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MetricHeader |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MetricHeader> parser()
Type | Description |
Parser<MetricHeader> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public MetricHeader getDefaultInstanceForType()
Type | Description |
MetricHeader |
getName()
public String getName()
The metric's name.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The metric's name.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<MetricHeader> getParserForType()
Type | Description |
Parser<MetricHeader> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getType()
public MetricType getType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Type | Description |
MetricType | The type. |
getTypeValue()
public int getTypeValue()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Type | Description |
int | The enum numeric value on the wire for type. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public MetricHeader.Builder newBuilderForType()
Type | Description |
MetricHeader.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MetricHeader.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MetricHeader.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MetricHeader.Builder toBuilder()
Type | Description |
MetricHeader.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |