Send feedback
Class MetricHeader.Builder (0.16.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.16.0 keyboard_arrow_down
public static final class MetricHeader . Builder extends GeneratedMessageV3 . Builder<MetricHeader . Builder > 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public MetricHeader . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public MetricHeader build ()
Returns
public MetricHeader buildPartial ()
Returns
public MetricHeader . Builder clear ()
Returns
Overrides
public MetricHeader . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public MetricHeader . Builder clearName ()
The metric's name.
string name = 1;
Returns
public MetricHeader . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public MetricHeader . Builder clearType ()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns
public MetricHeader . Builder clone ()
Returns
Overrides
public MetricHeader getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
The metric's name.
string name = 1;
Returns
Type Description String The name.
public ByteString getNameBytes ()
The metric's name.
string name = 1;
Returns
public MetricType getType ()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns
public int getTypeValue ()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns
Type Description int The enum numeric value on the wire for type.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public MetricHeader . Builder mergeFrom ( MetricHeader other )
Parameter
Returns
public MetricHeader . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public MetricHeader . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final MetricHeader . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public MetricHeader . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public MetricHeader . Builder setName ( String value )
The metric's name.
string name = 1;
Parameter
Name Description value String
The name to set.
Returns
public MetricHeader . Builder setNameBytes ( ByteString value )
The metric's name.
string name = 1;
Parameter
Name Description value ByteString
The bytes for name to set.
Returns
public MetricHeader . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public MetricHeader . Builder setType ( MetricType value )
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Parameter
Returns
public MetricHeader . Builder setTypeValue ( int value )
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Parameter
Name Description value int
The enum numeric value on the wire for type to set.
Returns
public final MetricHeader . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]