Class DimensionMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DimensionMetadata.Builder>
com.google.analytics.data.v1alpha.DimensionMetadata.Builder
- All Implemented Interfaces:
DimensionMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DimensionMetadata
public static final class DimensionMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DimensionMetadata.Builder>
implements DimensionMetadataOrBuilder
Explains a dimension.Protobuf type
google.analytics.data.v1alpha.DimensionMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllDeprecatedApiNames(Iterable<String> values) Still usable but deprecated names for this dimension.addAllSections(Iterable<? extends Section> values) Specifies the Google Analytics sections this dimension applies to.addAllSectionsValue(Iterable<Integer> values) Specifies the Google Analytics sections this dimension applies to.addDeprecatedApiNames(String value) Still usable but deprecated names for this dimension.addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) Still usable but deprecated names for this dimension.addSections(Section value) Specifies the Google Analytics sections this dimension applies to.addSectionsValue(int value) Specifies the Google Analytics sections this dimension applies to.build()clear()This dimension's name.The display name of the category that this dimension belongs to.True if the dimension is custom to this property.Still usable but deprecated names for this dimension.Description of how this dimension is used and calculated.Specifies the Google Analytics sections this dimension applies to.This dimension's name within the Google Analytics user interface.This dimension's name.com.google.protobuf.ByteStringThis dimension's name.The display name of the category that this dimension belongs to.com.google.protobuf.ByteStringThe display name of the category that this dimension belongs to.booleanTrue if the dimension is custom to this property.getDeprecatedApiNames(int index) Still usable but deprecated names for this dimension.com.google.protobuf.ByteStringgetDeprecatedApiNamesBytes(int index) Still usable but deprecated names for this dimension.intStill usable but deprecated names for this dimension.com.google.protobuf.ProtocolStringListStill usable but deprecated names for this dimension.Description of how this dimension is used and calculated.com.google.protobuf.ByteStringDescription of how this dimension is used and calculated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSections(int index) Specifies the Google Analytics sections this dimension applies to.intSpecifies the Google Analytics sections this dimension applies to.Specifies the Google Analytics sections this dimension applies to.intgetSectionsValue(int index) Specifies the Google Analytics sections this dimension applies to.Specifies the Google Analytics sections this dimension applies to.This dimension's name within the Google Analytics user interface.com.google.protobuf.ByteStringThis dimension's name within the Google Analytics user interface.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DimensionMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApiName(String value) This dimension's name.setApiNameBytes(com.google.protobuf.ByteString value) This dimension's name.setCategory(String value) The display name of the category that this dimension belongs to.setCategoryBytes(com.google.protobuf.ByteString value) The display name of the category that this dimension belongs to.setCustomDefinition(boolean value) True if the dimension is custom to this property.setDeprecatedApiNames(int index, String value) Still usable but deprecated names for this dimension.setDescription(String value) Description of how this dimension is used and calculated.setDescriptionBytes(com.google.protobuf.ByteString value) Description of how this dimension is used and calculated.setSections(int index, Section value) Specifies the Google Analytics sections this dimension applies to.setSectionsValue(int index, int value) Specifies the Google Analytics sections this dimension applies to.This dimension's name within the Google Analytics user interface.setUiNameBytes(com.google.protobuf.ByteString value) This dimension's name within the Google Analytics user interface.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<DimensionMetadata.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<DimensionMetadata.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<DimensionMetadata.Builder>
-
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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DimensionMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DimensionMetadata.Builder>
-
mergeFrom
public DimensionMetadata.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<DimensionMetadata.Builder>- Throws:
IOException
-
getApiName
This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For example, `eventName`.
string api_name = 1;- Specified by:
getApiNamein interfaceDimensionMetadataOrBuilder- Returns:
- The apiName.
-
getApiNameBytes
public com.google.protobuf.ByteString getApiNameBytes()This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For example, `eventName`.
string api_name = 1;- Specified by:
getApiNameBytesin interfaceDimensionMetadataOrBuilder- Returns:
- The bytes for apiName.
-
setApiName
This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For example, `eventName`.
string api_name = 1;- Parameters:
value- The apiName to set.- Returns:
- This builder for chaining.
-
clearApiName
This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For example, `eventName`.
string api_name = 1;- Returns:
- This builder for chaining.
-
setApiNameBytes
This dimension's name. Usable in [Dimension](#Dimension)'s `name`. For example, `eventName`.
string api_name = 1;- Parameters:
value- The bytes for apiName to set.- Returns:
- This builder for chaining.
-
getUiName
This dimension's name within the Google Analytics user interface. For example, `Event name`.
string ui_name = 2;- Specified by:
getUiNamein interfaceDimensionMetadataOrBuilder- Returns:
- The uiName.
-
getUiNameBytes
public com.google.protobuf.ByteString getUiNameBytes()This dimension's name within the Google Analytics user interface. For example, `Event name`.
string ui_name = 2;- Specified by:
getUiNameBytesin interfaceDimensionMetadataOrBuilder- Returns:
- The bytes for uiName.
-
setUiName
This dimension's name within the Google Analytics user interface. For example, `Event name`.
string ui_name = 2;- Parameters:
value- The uiName to set.- Returns:
- This builder for chaining.
-
clearUiName
This dimension's name within the Google Analytics user interface. For example, `Event name`.
string ui_name = 2;- Returns:
- This builder for chaining.
-
setUiNameBytes
This dimension's name within the Google Analytics user interface. For example, `Event name`.
string ui_name = 2;- Parameters:
value- The bytes for uiName to set.- Returns:
- This builder for chaining.
-
getDescription
Description of how this dimension is used and calculated.
string description = 3;- Specified by:
getDescriptionin interfaceDimensionMetadataOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of how this dimension is used and calculated.
string description = 3;- Specified by:
getDescriptionBytesin interfaceDimensionMetadataOrBuilder- Returns:
- The bytes for description.
-
setDescription
Description of how this dimension is used and calculated.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Description of how this dimension is used and calculated.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Description of how this dimension is used and calculated.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDeprecatedApiNamesList
public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList()Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Specified by:
getDeprecatedApiNamesListin interfaceDimensionMetadataOrBuilder- Returns:
- A list containing the deprecatedApiNames.
-
getDeprecatedApiNamesCount
public int getDeprecatedApiNamesCount()Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Specified by:
getDeprecatedApiNamesCountin interfaceDimensionMetadataOrBuilder- Returns:
- The count of deprecatedApiNames.
-
getDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Specified by:
getDeprecatedApiNamesin interfaceDimensionMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The deprecatedApiNames at the given index.
-
getDeprecatedApiNamesBytes
public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Specified by:
getDeprecatedApiNamesBytesin interfaceDimensionMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the deprecatedApiNames at the given index.
-
setDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Parameters:
index- The index to set the value at.value- The deprecatedApiNames to set.- Returns:
- This builder for chaining.
-
addDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Parameters:
value- The deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
addAllDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Parameters:
values- The deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
clearDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Returns:
- This builder for chaining.
-
addDeprecatedApiNamesBytes
Still usable but deprecated names for this dimension. If populated, this dimension is available by either `apiName` or one of `deprecatedApiNames` for a period of time. After the deprecation period, the dimension will be available only by `apiName`.
repeated string deprecated_api_names = 4;- Parameters:
value- The bytes of the deprecatedApiNames to add.- Returns:
- This builder for chaining.
-
getCustomDefinition
public boolean getCustomDefinition()True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316.
bool custom_definition = 5;- Specified by:
getCustomDefinitionin interfaceDimensionMetadataOrBuilder- Returns:
- The customDefinition.
-
setCustomDefinition
True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316.
bool custom_definition = 5;- Parameters:
value- The customDefinition to set.- Returns:
- This builder for chaining.
-
clearCustomDefinition
True if the dimension is custom to this property. This includes user, event, & item scoped custom dimensions; to learn more about custom dimensions, see https://support.google.com/analytics/answer/14240153. This also include custom channel groups; to learn more about custom channel groups, see https://support.google.com/analytics/answer/13051316.
bool custom_definition = 5;- Returns:
- This builder for chaining.
-
getCategory
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
string category = 6;- Specified by:
getCategoryin interfaceDimensionMetadataOrBuilder- Returns:
- The category.
-
getCategoryBytes
public com.google.protobuf.ByteString getCategoryBytes()The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
string category = 6;- Specified by:
getCategoryBytesin interfaceDimensionMetadataOrBuilder- Returns:
- The bytes for category.
-
setCategory
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
string category = 6;- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
string category = 6;- Returns:
- This builder for chaining.
-
setCategoryBytes
The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
string category = 6;- Parameters:
value- The bytes for category to set.- Returns:
- This builder for chaining.
-
getSectionsList
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Specified by:
getSectionsListin interfaceDimensionMetadataOrBuilder- Returns:
- A list containing the sections.
-
getSectionsCount
public int getSectionsCount()Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Specified by:
getSectionsCountin interfaceDimensionMetadataOrBuilder- Returns:
- The count of sections.
-
getSections
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Specified by:
getSectionsin interfaceDimensionMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sections at the given index.
-
setSections
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
index- The index to set the value at.value- The sections to set.- Returns:
- This builder for chaining.
-
addSections
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
value- The sections to add.- Returns:
- This builder for chaining.
-
addAllSections
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
values- The sections to add.- Returns:
- This builder for chaining.
-
clearSections
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Returns:
- This builder for chaining.
-
getSectionsValueList
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Specified by:
getSectionsValueListin interfaceDimensionMetadataOrBuilder- Returns:
- A list containing the enum numeric values on the wire for sections.
-
getSectionsValue
public int getSectionsValue(int index) Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Specified by:
getSectionsValuein interfaceDimensionMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of sections at the given index.
-
setSectionsValue
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for sections to set.- Returns:
- This builder for chaining.
-
addSectionsValue
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
value- The enum numeric value on the wire for sections to add.- Returns:
- This builder for chaining.
-
addAllSectionsValue
Specifies the Google Analytics sections this dimension applies to.
repeated .google.analytics.data.v1alpha.Section sections = 7;- Parameters:
values- The enum numeric values on the wire for sections to add.- Returns:
- This builder for chaining.
-