Class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder (0.47.0)

public static final class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder extends GeneratedMessageV3.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

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.analytics.data.v1beta.RestrictedMetricType>

The restrictedMetricTypes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

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
NameDescription
valueRestrictedMetricType

The restrictedMetricTypes to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

build()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction build()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

buildPartial()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction buildPartial()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

clear()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clear()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

clearMetricName()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

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
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

clone()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clone()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

getDefaultInstanceForType()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction getDefaultInstanceForType()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetricName()

public String getMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
TypeDescription
String

The metricName.

getMetricNameBytes()

public ByteString getMetricNameBytes()

The name of the restricted metric.

optional string metric_name = 1;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the metricName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction other)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction other)
Parameter
NameDescription
otherResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The metricName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for metricName to set.

Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueRestrictedMetricType

The restrictedMetricTypes to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides