Class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder (0.94.0)

public static final class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder extends GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder> implements ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder

A metric actively restricted in creating the report.

Protobuf type google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRestrictedMetricTypes(Iterable<? extends RestrictedMetricType> values)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder addAllRestrictedMetricTypes(Iterable<? extends RestrictedMetricType> values)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
values Iterable<? extends com.google.analytics.data.v1beta.RestrictedMetricType>

The restrictedMetricTypes to add.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

addAllRestrictedMetricTypesValue(Iterable<Integer> values)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder addAllRestrictedMetricTypesValue(Iterable<Integer> values)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for restrictedMetricTypes to add.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

addRestrictedMetricTypes(RestrictedMetricType value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder addRestrictedMetricTypes(RestrictedMetricType value)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
value RestrictedMetricType

The restrictedMetricTypes to add.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

addRestrictedMetricTypesValue(int value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder addRestrictedMetricTypesValue(int value)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for restrictedMetricTypes to add.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

build()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction build()
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

buildPartial()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction buildPartial()
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

clear()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clear()
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

clearMetricName()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

clearRestrictedMetricTypes()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearRestrictedMetricTypes()

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

getDefaultInstanceForType()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction getDefaultInstanceForType()
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetricName()

public String getMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
Type Description
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The name of the restricted metric.

optional string metric_name = 1;

Returns
Type Description
ByteString

The bytes for metricName.

getRestrictedMetricTypes(int index)

public RestrictedMetricType getRestrictedMetricTypes(int index)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
RestrictedMetricType

The restrictedMetricTypes at the given index.

getRestrictedMetricTypesCount()

public int getRestrictedMetricTypesCount()

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Returns
Type Description
int

The count of restrictedMetricTypes.

getRestrictedMetricTypesList()

public List<RestrictedMetricType> getRestrictedMetricTypesList()

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Returns
Type Description
List<RestrictedMetricType>

A list containing the restrictedMetricTypes.

getRestrictedMetricTypesValue(int index)

public int getRestrictedMetricTypesValue(int index)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of restrictedMetricTypes at the given index.

getRestrictedMetricTypesValueList()

public List<Integer> getRestrictedMetricTypesValueList()

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for restrictedMetricTypes.

hasMetricName()

public boolean hasMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
Type Description
boolean

Whether the metricName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction other)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction other)
Parameter
Name Description
other ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

setMetricName(String value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setMetricName(String value)

The name of the restricted metric.

optional string metric_name = 1;

Parameter
Name Description
value String

The metricName to set.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

setMetricNameBytes(ByteString value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setMetricNameBytes(ByteString value)

The name of the restricted metric.

optional string metric_name = 1;

Parameter
Name Description
value ByteString

The bytes for metricName to set.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

setRestrictedMetricTypes(int index, RestrictedMetricType value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setRestrictedMetricTypes(int index, RestrictedMetricType value)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameters
Name Description
index int

The index to set the value at.

value RestrictedMetricType

The restrictedMetricTypes to set.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

setRestrictedMetricTypesValue(int index, int value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setRestrictedMetricTypesValue(int index, int value)

The reason for this metric's restriction.

repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for restrictedMetricTypes to set.

Returns
Type Description
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.