Class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction (0.23.0)

public static final class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction extends GeneratedMessageV3 implements ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder

A metric actively restricted in creating the report.

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

Inheritance

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

Static Fields

METRIC_NAME_FIELD_NUMBER

public static final int METRIC_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESTRICTED_METRIC_TYPES_FIELD_NUMBER

public static final int RESTRICTED_METRIC_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction getDefaultInstance()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder newBuilder()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

newBuilder(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction prototype)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder newBuilder(ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction prototype)
Parameter
NameDescription
prototypeResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

parseDelimitedFrom(InputStream input)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction> parser()
Returns
TypeDescription
Parser<ActiveMetricRestriction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction> getParserForType()
Returns
TypeDescription
Parser<ActiveMetricRestriction>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasMetricName()

public boolean hasMetricName()

The name of the restricted metric.

optional string metric_name = 1;

Returns
TypeDescription
boolean

Whether the metricName field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder newBuilderForType()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder toBuilder()
Returns
TypeDescription
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException