Class ConversionValues.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversionValues.Builder>
com.google.analytics.admin.v1alpha.ConversionValues.Builder
All Implemented Interfaces:
ConversionValuesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConversionValues

public static final class ConversionValues.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversionValues.Builder> implements ConversionValuesOrBuilder
 Conversion value settings for a postback window for SKAdNetwork conversion
 value schema.
 
Protobuf type google.analytics.admin.v1alpha.ConversionValues
  • 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.Builder<ConversionValues.Builder>
    • clear

      public ConversionValues.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConversionValues.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConversionValues.Builder>
    • getDefaultInstanceForType

      public ConversionValues getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConversionValues build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConversionValues buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ConversionValues.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionValues.Builder>
    • mergeFrom

      public ConversionValues.Builder mergeFrom(ConversionValues other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConversionValues.Builder>
    • mergeFrom

      public ConversionValues.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversionValues.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Display name of the SKAdNetwork conversion value.
       The max allowed display name length is 50 UTF-16 code units.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface ConversionValuesOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name of the SKAdNetwork conversion value.
       The max allowed display name length is 50 UTF-16 code units.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface ConversionValuesOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public ConversionValues.Builder setDisplayName(String value)
       Display name of the SKAdNetwork conversion value.
       The max allowed display name length is 50 UTF-16 code units.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public ConversionValues.Builder clearDisplayName()
       Display name of the SKAdNetwork conversion value.
       The max allowed display name length is 50 UTF-16 code units.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public ConversionValues.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name of the SKAdNetwork conversion value.
       The max allowed display name length is 50 UTF-16 code units.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasFineValue

      public boolean hasFineValue()
       The fine-grained conversion value.  This is applicable only to the first
       postback window. Its valid values are [0,63], both inclusive. It must be
       set for postback window 1, and must not be set for postback window 2 & 3.
       This value is not guaranteed to be unique.
      
       If the configuration for the first postback window is re-used for second or
       third postback windows this field has no effect.
       
      optional int32 fine_value = 2;
      Specified by:
      hasFineValue in interface ConversionValuesOrBuilder
      Returns:
      Whether the fineValue field is set.
    • getFineValue

      public int getFineValue()
       The fine-grained conversion value.  This is applicable only to the first
       postback window. Its valid values are [0,63], both inclusive. It must be
       set for postback window 1, and must not be set for postback window 2 & 3.
       This value is not guaranteed to be unique.
      
       If the configuration for the first postback window is re-used for second or
       third postback windows this field has no effect.
       
      optional int32 fine_value = 2;
      Specified by:
      getFineValue in interface ConversionValuesOrBuilder
      Returns:
      The fineValue.
    • setFineValue

      public ConversionValues.Builder setFineValue(int value)
       The fine-grained conversion value.  This is applicable only to the first
       postback window. Its valid values are [0,63], both inclusive. It must be
       set for postback window 1, and must not be set for postback window 2 & 3.
       This value is not guaranteed to be unique.
      
       If the configuration for the first postback window is re-used for second or
       third postback windows this field has no effect.
       
      optional int32 fine_value = 2;
      Parameters:
      value - The fineValue to set.
      Returns:
      This builder for chaining.
    • clearFineValue

      public ConversionValues.Builder clearFineValue()
       The fine-grained conversion value.  This is applicable only to the first
       postback window. Its valid values are [0,63], both inclusive. It must be
       set for postback window 1, and must not be set for postback window 2 & 3.
       This value is not guaranteed to be unique.
      
       If the configuration for the first postback window is re-used for second or
       third postback windows this field has no effect.
       
      optional int32 fine_value = 2;
      Returns:
      This builder for chaining.
    • getCoarseValueValue

      public int getCoarseValueValue()
       Required. A coarse grained conversion value.
      
       This value is not guaranteed to be unique.
       
      .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCoarseValueValue in interface ConversionValuesOrBuilder
      Returns:
      The enum numeric value on the wire for coarseValue.
    • setCoarseValueValue

      public ConversionValues.Builder setCoarseValueValue(int value)
       Required. A coarse grained conversion value.
      
       This value is not guaranteed to be unique.
       
      .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for coarseValue to set.
      Returns:
      This builder for chaining.
    • getCoarseValue

      public CoarseValue getCoarseValue()
       Required. A coarse grained conversion value.
      
       This value is not guaranteed to be unique.
       
      .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCoarseValue in interface ConversionValuesOrBuilder
      Returns:
      The coarseValue.
    • setCoarseValue

      public ConversionValues.Builder setCoarseValue(CoarseValue value)
       Required. A coarse grained conversion value.
      
       This value is not guaranteed to be unique.
       
      .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The coarseValue to set.
      Returns:
      This builder for chaining.
    • clearCoarseValue

      public ConversionValues.Builder clearCoarseValue()
       Required. A coarse grained conversion value.
      
       This value is not guaranteed to be unique.
       
      .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getEventMappingsList

      public List<EventMapping> getEventMappingsList()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      Specified by:
      getEventMappingsList in interface ConversionValuesOrBuilder
    • getEventMappingsCount

      public int getEventMappingsCount()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      Specified by:
      getEventMappingsCount in interface ConversionValuesOrBuilder
    • getEventMappings

      public EventMapping getEventMappings(int index)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      Specified by:
      getEventMappings in interface ConversionValuesOrBuilder
    • setEventMappings

      public ConversionValues.Builder setEventMappings(int index, EventMapping value)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • setEventMappings

      public ConversionValues.Builder setEventMappings(int index, EventMapping.Builder builderForValue)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addEventMappings

      public ConversionValues.Builder addEventMappings(EventMapping value)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addEventMappings

      public ConversionValues.Builder addEventMappings(int index, EventMapping value)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addEventMappings

      public ConversionValues.Builder addEventMappings(EventMapping.Builder builderForValue)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addEventMappings

      public ConversionValues.Builder addEventMappings(int index, EventMapping.Builder builderForValue)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addAllEventMappings

      public ConversionValues.Builder addAllEventMappings(Iterable<? extends EventMapping> values)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • clearEventMappings

      public ConversionValues.Builder clearEventMappings()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • removeEventMappings

      public ConversionValues.Builder removeEventMappings(int index)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • getEventMappingsBuilder

      public EventMapping.Builder getEventMappingsBuilder(int index)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • getEventMappingsOrBuilder

      public EventMappingOrBuilder getEventMappingsOrBuilder(int index)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      Specified by:
      getEventMappingsOrBuilder in interface ConversionValuesOrBuilder
    • getEventMappingsOrBuilderList

      public List<? extends EventMappingOrBuilder> getEventMappingsOrBuilderList()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      Specified by:
      getEventMappingsOrBuilderList in interface ConversionValuesOrBuilder
    • addEventMappingsBuilder

      public EventMapping.Builder addEventMappingsBuilder()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • addEventMappingsBuilder

      public EventMapping.Builder addEventMappingsBuilder(int index)
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • getEventMappingsBuilderList

      public List<EventMapping.Builder> getEventMappingsBuilderList()
       Event conditions that must be met for this Conversion Value to be achieved.
       The conditions in this list are ANDed together. It must have minimum of 1
       entry and maximum of 3 entries, if the postback window is enabled.
       
      repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    • getLockEnabled

      public boolean getLockEnabled()
       If true, the SDK should lock to this conversion value for the current
       postback window.
       
      bool lock_enabled = 5;
      Specified by:
      getLockEnabled in interface ConversionValuesOrBuilder
      Returns:
      The lockEnabled.
    • setLockEnabled

      public ConversionValues.Builder setLockEnabled(boolean value)
       If true, the SDK should lock to this conversion value for the current
       postback window.
       
      bool lock_enabled = 5;
      Parameters:
      value - The lockEnabled to set.
      Returns:
      This builder for chaining.
    • clearLockEnabled

      public ConversionValues.Builder clearLockEnabled()
       If true, the SDK should lock to this conversion value for the current
       postback window.
       
      bool lock_enabled = 5;
      Returns:
      This builder for chaining.