Class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder (0.17.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
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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

build()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction build()
Returns

buildPartial()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction buildPartial()
Returns

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetricName()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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

clone()

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

getDefaultInstanceForType()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction getDefaultInstanceForType()
Returns

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 Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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