- 0.65.0 (latest)
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MetricHeader.BuilderImplements
MetricHeaderOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MetricHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
build()
public MetricHeader build()
Returns | |
---|---|
Type | Description |
MetricHeader |
buildPartial()
public MetricHeader buildPartial()
Returns | |
---|---|
Type | Description |
MetricHeader |
clear()
public MetricHeader.Builder clear()
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearField(Descriptors.FieldDescriptor field)
public MetricHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearName()
public MetricHeader.Builder clearName()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MetricHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
clearType()
public MetricHeader.Builder clearType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
clone()
public MetricHeader.Builder clone()
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
getDefaultInstanceForType()
public MetricHeader getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MetricHeader |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
The metric's name.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getType()
public MetricType getType()
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Returns | |
---|---|
Type | Description |
MetricType |
The type. |
getTypeValue()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MetricHeader other)
public MetricHeader.Builder mergeFrom(MetricHeader other)
Parameter | |
---|---|
Name | Description |
other |
MetricHeader |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MetricHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MetricHeader.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MetricHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MetricHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setName(String value)
public MetricHeader.Builder setName(String value)
The metric's name.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
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 | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MetricHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
setType(MetricType value)
public MetricHeader.Builder setType(MetricType value)
The metric's data type.
.google.analytics.data.v1alpha.MetricType type = 2;
Parameter | |
---|---|
Name | Description |
value |
MetricType The type to set. |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setTypeValue(int value)
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 | |
---|---|
Type | Description |
MetricHeader.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MetricHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MetricHeader.Builder |