Class CustomDimension

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.analytics.admin.v1alpha.CustomDimension
All Implemented Interfaces:
CustomDimensionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CustomDimension extends com.google.protobuf.GeneratedMessage implements CustomDimensionOrBuilder
 A definition for a CustomDimension.
 
Protobuf type google.analytics.admin.v1alpha.CustomDimension
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • PARAMETER_NAME_FIELD_NUMBER

      public static final int PARAMETER_NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • SCOPE_FIELD_NUMBER

      public static final int SCOPE_FIELD_NUMBER
      See Also:
    • DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER

      public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. Resource name for this CustomDimension resource.
       Format: properties/{property}/customDimensions/{customDimension}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface CustomDimensionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name for this CustomDimension resource.
       Format: properties/{property}/customDimensions/{customDimension}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface CustomDimensionOrBuilder
      Returns:
      The bytes for name.
    • getParameterName

      public String getParameterName()
       Required. Immutable. Tagging parameter name for this custom dimension.
      
       If this is a user-scoped dimension, then this is the user property name.
       If this is an event-scoped dimension, then this is the event parameter
       name.
      
       If this is an item-scoped dimension, then this is the parameter
       name found in the eCommerce items array.
      
       May only contain alphanumeric and underscore characters, starting with a
       letter. Max length of 24 characters for user-scoped dimensions, 40
       characters for event-scoped dimensions.
       
      string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getParameterName in interface CustomDimensionOrBuilder
      Returns:
      The parameterName.
    • getParameterNameBytes

      public com.google.protobuf.ByteString getParameterNameBytes()
       Required. Immutable. Tagging parameter name for this custom dimension.
      
       If this is a user-scoped dimension, then this is the user property name.
       If this is an event-scoped dimension, then this is the event parameter
       name.
      
       If this is an item-scoped dimension, then this is the parameter
       name found in the eCommerce items array.
      
       May only contain alphanumeric and underscore characters, starting with a
       letter. Max length of 24 characters for user-scoped dimensions, 40
       characters for event-scoped dimensions.
       
      string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getParameterNameBytes in interface CustomDimensionOrBuilder
      Returns:
      The bytes for parameterName.
    • getDisplayName

      public String getDisplayName()
       Required. Display name for this custom dimension as shown in the Analytics
       UI. Max length of 82 characters, alphanumeric plus space and underscore
       starting with a letter. Legacy system-generated display names may contain
       square brackets, but updates to this field will never permit square
       brackets.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface CustomDimensionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Display name for this custom dimension as shown in the Analytics
       UI. Max length of 82 characters, alphanumeric plus space and underscore
       starting with a letter. Legacy system-generated display names may contain
       square brackets, but updates to this field will never permit square
       brackets.
       
      string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface CustomDimensionOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       Optional. Description for this custom dimension. Max length of 150
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface CustomDimensionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description for this custom dimension. Max length of 150
       characters.
       
      string description = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface CustomDimensionOrBuilder
      Returns:
      The bytes for description.
    • getScopeValue

      public int getScopeValue()
       Required. Immutable. The scope of this dimension.
       
      .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getScopeValue in interface CustomDimensionOrBuilder
      Returns:
      The enum numeric value on the wire for scope.
    • getScope

      public CustomDimension.DimensionScope getScope()
       Required. Immutable. The scope of this dimension.
       
      .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getScope in interface CustomDimensionOrBuilder
      Returns:
      The scope.
    • getDisallowAdsPersonalization

      public boolean getDisallowAdsPersonalization()
       Optional. If set to true, sets this dimension as NPA and excludes it from
       ads personalization.
      
       This is currently only supported by user-scoped custom dimensions.
       
      bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisallowAdsPersonalization in interface CustomDimensionOrBuilder
      Returns:
      The disallowAdsPersonalization.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CustomDimension parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CustomDimension parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomDimension parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomDimension parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CustomDimension parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomDimension parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CustomDimension parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CustomDimension.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CustomDimension.Builder newBuilder()
    • newBuilder

      public static CustomDimension.Builder newBuilder(CustomDimension prototype)
    • toBuilder

      public CustomDimension.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CustomDimension.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CustomDimension getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CustomDimension> parser()
    • getParserForType

      public com.google.protobuf.Parser<CustomDimension> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CustomDimension getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder