Class SubpropertySyncConfig.Builder

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

public static final class SubpropertySyncConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubpropertySyncConfig.Builder> implements SubpropertySyncConfigOrBuilder
 Subproperty synchronization configuration controls how ordinary property
 configurations are synchronized to subproperties. This resource is
 provisioned automatically for each subproperty.
 
Protobuf type google.analytics.admin.v1alpha.SubpropertySyncConfig
  • 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<SubpropertySyncConfig.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<SubpropertySyncConfig.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<SubpropertySyncConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public SubpropertySyncConfig.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<SubpropertySyncConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public SubpropertySyncConfig.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<SubpropertySyncConfig.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Identifier. Format:
       properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
       Example: properties/1234/subpropertySyncConfigs/5678
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface SubpropertySyncConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Identifier. Format:
       properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
       Example: properties/1234/subpropertySyncConfigs/5678
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface SubpropertySyncConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SubpropertySyncConfig.Builder setName(String value)
       Output only. Identifier. Format:
       properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
       Example: properties/1234/subpropertySyncConfigs/5678
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SubpropertySyncConfig.Builder clearName()
       Output only. Identifier. Format:
       properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
       Example: properties/1234/subpropertySyncConfigs/5678
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public SubpropertySyncConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Identifier. Format:
       properties/{ordinary_property_id}/subpropertySyncConfigs/{subproperty_id}
       Example: properties/1234/subpropertySyncConfigs/5678
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getApplyToProperty

      public String getApplyToProperty()
       Output only. Immutable. Resource name of the subproperty that these
       settings apply to.
       
      string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApplyToProperty in interface SubpropertySyncConfigOrBuilder
      Returns:
      The applyToProperty.
    • getApplyToPropertyBytes

      public com.google.protobuf.ByteString getApplyToPropertyBytes()
       Output only. Immutable. Resource name of the subproperty that these
       settings apply to.
       
      string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getApplyToPropertyBytes in interface SubpropertySyncConfigOrBuilder
      Returns:
      The bytes for applyToProperty.
    • setApplyToProperty

      public SubpropertySyncConfig.Builder setApplyToProperty(String value)
       Output only. Immutable. Resource name of the subproperty that these
       settings apply to.
       
      string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The applyToProperty to set.
      Returns:
      This builder for chaining.
    • clearApplyToProperty

      public SubpropertySyncConfig.Builder clearApplyToProperty()
       Output only. Immutable. Resource name of the subproperty that these
       settings apply to.
       
      string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setApplyToPropertyBytes

      public SubpropertySyncConfig.Builder setApplyToPropertyBytes(com.google.protobuf.ByteString value)
       Output only. Immutable. Resource name of the subproperty that these
       settings apply to.
       
      string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for applyToProperty to set.
      Returns:
      This builder for chaining.
    • getCustomDimensionAndMetricSyncModeValue

      public int getCustomDimensionAndMetricSyncModeValue()
       Required. Specifies the Custom Dimension / Metric synchronization mode for
       the subproperty.
      
       If set to ALL, Custom Dimension / Metric synchronization will be
       immediately enabled.  Local configuration of Custom Dimensions / Metrics
       will not be allowed on the subproperty so long as the synchronization mode
       is set to ALL.
      
       If set to NONE, Custom Dimensions / Metric synchronization is disabled.
       Custom Dimensions / Metrics must be configured explicitly on the
       Subproperty.
       
      .google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode custom_dimension_and_metric_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomDimensionAndMetricSyncModeValue in interface SubpropertySyncConfigOrBuilder
      Returns:
      The enum numeric value on the wire for customDimensionAndMetricSyncMode.
    • setCustomDimensionAndMetricSyncModeValue

      public SubpropertySyncConfig.Builder setCustomDimensionAndMetricSyncModeValue(int value)
       Required. Specifies the Custom Dimension / Metric synchronization mode for
       the subproperty.
      
       If set to ALL, Custom Dimension / Metric synchronization will be
       immediately enabled.  Local configuration of Custom Dimensions / Metrics
       will not be allowed on the subproperty so long as the synchronization mode
       is set to ALL.
      
       If set to NONE, Custom Dimensions / Metric synchronization is disabled.
       Custom Dimensions / Metrics must be configured explicitly on the
       Subproperty.
       
      .google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode custom_dimension_and_metric_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for customDimensionAndMetricSyncMode to set.
      Returns:
      This builder for chaining.
    • getCustomDimensionAndMetricSyncMode

      public SubpropertySyncConfig.SynchronizationMode getCustomDimensionAndMetricSyncMode()
       Required. Specifies the Custom Dimension / Metric synchronization mode for
       the subproperty.
      
       If set to ALL, Custom Dimension / Metric synchronization will be
       immediately enabled.  Local configuration of Custom Dimensions / Metrics
       will not be allowed on the subproperty so long as the synchronization mode
       is set to ALL.
      
       If set to NONE, Custom Dimensions / Metric synchronization is disabled.
       Custom Dimensions / Metrics must be configured explicitly on the
       Subproperty.
       
      .google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode custom_dimension_and_metric_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomDimensionAndMetricSyncMode in interface SubpropertySyncConfigOrBuilder
      Returns:
      The customDimensionAndMetricSyncMode.
    • setCustomDimensionAndMetricSyncMode

      public SubpropertySyncConfig.Builder setCustomDimensionAndMetricSyncMode(SubpropertySyncConfig.SynchronizationMode value)
       Required. Specifies the Custom Dimension / Metric synchronization mode for
       the subproperty.
      
       If set to ALL, Custom Dimension / Metric synchronization will be
       immediately enabled.  Local configuration of Custom Dimensions / Metrics
       will not be allowed on the subproperty so long as the synchronization mode
       is set to ALL.
      
       If set to NONE, Custom Dimensions / Metric synchronization is disabled.
       Custom Dimensions / Metrics must be configured explicitly on the
       Subproperty.
       
      .google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode custom_dimension_and_metric_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customDimensionAndMetricSyncMode to set.
      Returns:
      This builder for chaining.
    • clearCustomDimensionAndMetricSyncMode

      public SubpropertySyncConfig.Builder clearCustomDimensionAndMetricSyncMode()
       Required. Specifies the Custom Dimension / Metric synchronization mode for
       the subproperty.
      
       If set to ALL, Custom Dimension / Metric synchronization will be
       immediately enabled.  Local configuration of Custom Dimensions / Metrics
       will not be allowed on the subproperty so long as the synchronization mode
       is set to ALL.
      
       If set to NONE, Custom Dimensions / Metric synchronization is disabled.
       Custom Dimensions / Metrics must be configured explicitly on the
       Subproperty.
       
      .google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode custom_dimension_and_metric_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.