- 0.62.0 (latest)
- 0.61.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.49.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.37.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
- 0.14.0
public static final class CustomMetric.Builder extends GeneratedMessageV3.Builder<CustomMetric.Builder> implements CustomMetricOrBuilder
A definition for a custom metric.
Protobuf type google.analytics.admin.v1alpha.CustomMetric
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomMetric.BuilderImplements
CustomMetricOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllRestrictedMetricType(Iterable<? extends CustomMetric.RestrictedMetricType> values)
public CustomMetric.Builder addAllRestrictedMetricType(Iterable<? extends CustomMetric.RestrictedMetricType> values)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Iterable<? extends com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> The restrictedMetricType to add. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
addAllRestrictedMetricTypeValue(Iterable<Integer> values)
public CustomMetric.Builder addAllRestrictedMetricTypeValue(Iterable<Integer> values)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Iterable<Integer> The enum numeric values on the wire for restrictedMetricType to add. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomMetric.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomMetric.Builder |
addRestrictedMetricType(CustomMetric.RestrictedMetricType value)
public CustomMetric.Builder addRestrictedMetricType(CustomMetric.RestrictedMetricType value)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | CustomMetric.RestrictedMetricType The restrictedMetricType to add. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
addRestrictedMetricTypeValue(int value)
public CustomMetric.Builder addRestrictedMetricTypeValue(int value)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | int The enum numeric value on the wire for restrictedMetricType to add. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
build()
public CustomMetric build()
Type | Description |
CustomMetric |
buildPartial()
public CustomMetric buildPartial()
Type | Description |
CustomMetric |
clear()
public CustomMetric.Builder clear()
Type | Description |
CustomMetric.Builder |
clearDescription()
public CustomMetric.Builder clearDescription()
Optional. Description for this custom dimension. Max length of 150 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearDisplayName()
public CustomMetric.Builder clearDisplayName()
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomMetric.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CustomMetric.Builder |
clearMeasurementUnit()
public CustomMetric.Builder clearMeasurementUnit()
Required. The type for the custom metric's value.
.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearName()
public CustomMetric.Builder clearName()
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CustomMetric.Builder |
clearParameterName()
public CustomMetric.Builder clearParameterName()
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearRestrictedMetricType()
public CustomMetric.Builder clearRestrictedMetricType()
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clearScope()
public CustomMetric.Builder clearScope()
Required. Immutable. The scope of this custom metric.
.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
CustomMetric.Builder | This builder for chaining. |
clone()
public CustomMetric.Builder clone()
Type | Description |
CustomMetric.Builder |
getDefaultInstanceForType()
public CustomMetric getDefaultInstanceForType()
Type | Description |
CustomMetric |
getDescription()
public String getDescription()
Optional. Description for this custom dimension. Max length of 150 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Description for this custom dimension. Max length of 150 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String getDisplayName()
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for displayName. |
getMeasurementUnit()
public CustomMetric.MeasurementUnit getMeasurementUnit()
Required. The type for the custom metric's value.
.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CustomMetric.MeasurementUnit | The measurementUnit. |
getMeasurementUnitValue()
public int getMeasurementUnitValue()
Required. The type for the custom metric's value.
.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for measurementUnit. |
getName()
public String getName()
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getParameterName()
public String getParameterName()
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
String | The parameterName. |
getParameterNameBytes()
public ByteString getParameterNameBytes()
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ByteString | The bytes for parameterName. |
getRestrictedMetricType(int index)
public CustomMetric.RestrictedMetricType getRestrictedMetricType(int index)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index of the element to return. |
Type | Description |
CustomMetric.RestrictedMetricType | The restrictedMetricType at the given index. |
getRestrictedMetricTypeCount()
public int getRestrictedMetricTypeCount()
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int | The count of restrictedMetricType. |
getRestrictedMetricTypeList()
public List<CustomMetric.RestrictedMetricType> getRestrictedMetricTypeList()
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<RestrictedMetricType> | A list containing the restrictedMetricType. |
getRestrictedMetricTypeValue(int index)
public int getRestrictedMetricTypeValue(int index)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index of the value to return. |
Type | Description |
int | The enum numeric value on the wire of restrictedMetricType at the given index. |
getRestrictedMetricTypeValueList()
public List<Integer> getRestrictedMetricTypeValueList()
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for restrictedMetricType. |
getScope()
public CustomMetric.MetricScope getScope()
Required. Immutable. The scope of this custom metric.
.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
CustomMetric.MetricScope | The scope. |
getScopeValue()
public int getScopeValue()
Required. Immutable. The scope of this custom metric.
.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Type | Description |
int | The enum numeric value on the wire for scope. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CustomMetric other)
public CustomMetric.Builder mergeFrom(CustomMetric other)
Name | Description |
other | CustomMetric |
Type | Description |
CustomMetric.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomMetric.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CustomMetric.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CustomMetric.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CustomMetric.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomMetric.Builder |
setDescription(String value)
public CustomMetric.Builder setDescription(String value)
Optional. Description for this custom dimension. Max length of 150 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The description to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public CustomMetric.Builder setDescriptionBytes(ByteString value)
Optional. Description for this custom dimension. Max length of 150 characters.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setDisplayName(String value)
public CustomMetric.Builder setDisplayName(String value)
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The displayName to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public CustomMetric.Builder setDisplayNameBytes(ByteString value)
Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomMetric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomMetric.Builder |
setMeasurementUnit(CustomMetric.MeasurementUnit value)
public CustomMetric.Builder setMeasurementUnit(CustomMetric.MeasurementUnit value)
Required. The type for the custom metric's value.
.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | CustomMetric.MeasurementUnit The measurementUnit to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setMeasurementUnitValue(int value)
public CustomMetric.Builder setMeasurementUnitValue(int value)
Required. The type for the custom metric's value.
.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The enum numeric value on the wire for measurementUnit to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setName(String value)
public CustomMetric.Builder setName(String value)
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public CustomMetric.Builder setNameBytes(ByteString value)
Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setParameterName(String value)
public CustomMetric.Builder setParameterName(String value)
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | String The parameterName to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setParameterNameBytes(ByteString value)
public CustomMetric.Builder setParameterNameBytes(ByteString value)
Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | ByteString The bytes for parameterName to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CustomMetric.Builder |
setRestrictedMetricType(int index, CustomMetric.RestrictedMetricType value)
public CustomMetric.Builder setRestrictedMetricType(int index, CustomMetric.RestrictedMetricType value)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index to set the value at. |
value | CustomMetric.RestrictedMetricType The restrictedMetricType to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setRestrictedMetricTypeValue(int index, int value)
public CustomMetric.Builder setRestrictedMetricTypeValue(int index, int value)
Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int The index to set the value at. |
value | int The enum numeric value on the wire for restrictedMetricType to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setScope(CustomMetric.MetricScope value)
public CustomMetric.Builder setScope(CustomMetric.MetricScope value)
Required. Immutable. The scope of this custom metric.
.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | CustomMetric.MetricScope The scope to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setScopeValue(int value)
public CustomMetric.Builder setScopeValue(int value)
Required. Immutable. The scope of this custom metric.
.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | int The enum numeric value on the wire for scope to set. |
Type | Description |
CustomMetric.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomMetric.Builder |