Package com.google.analytics.data.v1beta
Class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
- All Implemented Interfaces:
ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction
public static final class ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllRestrictedMetricTypes(Iterable<? extends RestrictedMetricType> values) The reason for this metric's restriction.The reason for this metric's restriction.The reason for this metric's restriction.addRestrictedMetricTypesValue(int value) The reason for this metric's restriction.build()clear()The name of the restricted metric.The reason for this metric's restriction.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the restricted metric.com.google.protobuf.ByteStringThe name of the restricted metric.getRestrictedMetricTypes(int index) The reason for this metric's restriction.intThe reason for this metric's restriction.The reason for this metric's restriction.intgetRestrictedMetricTypesValue(int index) The reason for this metric's restriction.The reason for this metric's restriction.booleanThe name of the restricted metric.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMetricName(String value) The name of the restricted metric.setMetricNameBytes(com.google.protobuf.ByteString value) The name of the restricted metric.setRestrictedMetricTypes(int index, RestrictedMetricType value) The reason for this metric's restriction.setRestrictedMetricTypesValue(int index, int value) The reason for this metric's restriction.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
-
getDefaultInstanceForType
public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>
-
mergeFrom
public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder>- Throws:
IOException
-
hasMetricName
public boolean hasMetricName()The name of the restricted metric.
optional string metric_name = 1;- Specified by:
hasMetricNamein interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- Whether the metricName field is set.
-
getMetricName
The name of the restricted metric.
optional string metric_name = 1;- Specified by:
getMetricNamein interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- The metricName.
-
getMetricNameBytes
public com.google.protobuf.ByteString getMetricNameBytes()The name of the restricted metric.
optional string metric_name = 1;- Specified by:
getMetricNameBytesin interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- The bytes for metricName.
-
setMetricName
public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setMetricName(String value) The name of the restricted metric.
optional string metric_name = 1;- Parameters:
value- The metricName to set.- Returns:
- This builder for chaining.
-
clearMetricName
The name of the restricted metric.
optional string metric_name = 1;- Returns:
- This builder for chaining.
-
setMetricNameBytes
public ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.Builder setMetricNameBytes(com.google.protobuf.ByteString value) The name of the restricted metric.
optional string metric_name = 1;- Parameters:
value- The bytes for metricName to set.- Returns:
- This builder for chaining.
-
getRestrictedMetricTypesList
The reason for this metric's restriction.
repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;- Specified by:
getRestrictedMetricTypesListin interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- A list containing the restrictedMetricTypes.
-
getRestrictedMetricTypesCount
public int getRestrictedMetricTypesCount()The reason for this metric's restriction.
repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;- Specified by:
getRestrictedMetricTypesCountin interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- The count of restrictedMetricTypes.
-
getRestrictedMetricTypes
The reason for this metric's restriction.
repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;- Specified by:
getRestrictedMetricTypesin interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The restrictedMetricTypes at the given index.
-
setRestrictedMetricTypes
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:
index- The index to set the value at.value- The restrictedMetricTypes to set.- Returns:
- This builder for chaining.
-
addRestrictedMetricTypes
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;- Parameters:
value- The restrictedMetricTypes to add.- Returns:
- This builder for chaining.
-
addAllRestrictedMetricTypes
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;- Parameters:
values- The restrictedMetricTypes to add.- Returns:
- 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:
- This builder for chaining.
-
getRestrictedMetricTypesValueList
The reason for this metric's restriction.
repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;- Specified by:
getRestrictedMetricTypesValueListin interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for restrictedMetricTypes.
-
getRestrictedMetricTypesValue
public int getRestrictedMetricTypesValue(int index) The reason for this metric's restriction.
repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2;- Specified by:
getRestrictedMetricTypesValuein interfaceResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestrictionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of restrictedMetricTypes at the given index.
-
setRestrictedMetricTypesValue
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:
index- The index to set the value at.value- The enum numeric value on the wire for restrictedMetricTypes to set.- Returns:
- This builder for chaining.
-
addRestrictedMetricTypesValue
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;- Parameters:
value- The enum numeric value on the wire for restrictedMetricTypes to add.- Returns:
- This builder for chaining.
-
addAllRestrictedMetricTypesValue
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;- Parameters:
values- The enum numeric values on the wire for restrictedMetricTypes to add.- Returns:
- This builder for chaining.
-