Class DataSharingSettings.Builder

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

public static final class DataSharingSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSharingSettings.Builder> implements DataSharingSettingsOrBuilder
 A resource message representing data sharing settings of a Google Analytics
 account.
 
Protobuf type google.analytics.admin.v1alpha.DataSharingSettings
  • 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<DataSharingSettings.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<DataSharingSettings.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<DataSharingSettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getName()
       Identifier. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface DataSharingSettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface DataSharingSettingsOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DataSharingSettings.Builder setName(String value)
       Identifier. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DataSharingSettings.Builder clearName()
       Identifier. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DataSharingSettings.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSharingWithGoogleSupportEnabled

      public boolean getSharingWithGoogleSupportEnabled()
       Allows Google technical support representatives access to your Google
       Analytics data and account when necessary to provide service and find
       solutions to technical issues.
      
       This field maps to the "Technical support" field in the Google Analytics
       Admin UI.
       
      bool sharing_with_google_support_enabled = 2;
      Specified by:
      getSharingWithGoogleSupportEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithGoogleSupportEnabled.
    • setSharingWithGoogleSupportEnabled

      public DataSharingSettings.Builder setSharingWithGoogleSupportEnabled(boolean value)
       Allows Google technical support representatives access to your Google
       Analytics data and account when necessary to provide service and find
       solutions to technical issues.
      
       This field maps to the "Technical support" field in the Google Analytics
       Admin UI.
       
      bool sharing_with_google_support_enabled = 2;
      Parameters:
      value - The sharingWithGoogleSupportEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithGoogleSupportEnabled

      public DataSharingSettings.Builder clearSharingWithGoogleSupportEnabled()
       Allows Google technical support representatives access to your Google
       Analytics data and account when necessary to provide service and find
       solutions to technical issues.
      
       This field maps to the "Technical support" field in the Google Analytics
       Admin UI.
       
      bool sharing_with_google_support_enabled = 2;
      Returns:
      This builder for chaining.
    • getSharingWithGoogleAssignedSalesEnabled

      public boolean getSharingWithGoogleAssignedSalesEnabled()
       Allows Google access to your Google Analytics account data, including
       account usage and configuration data, product spending, and users
       associated with your Google Analytics account, so that Google can help you
       make the most of Google products, providing you with insights, offers,
       recommendations, and optimization tips across Google Analytics and other
       Google products for business.
      
       This field maps to the "Recommendations for your business" field in the
       Google Analytics Admin UI.
       
      bool sharing_with_google_assigned_sales_enabled = 3;
      Specified by:
      getSharingWithGoogleAssignedSalesEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithGoogleAssignedSalesEnabled.
    • setSharingWithGoogleAssignedSalesEnabled

      public DataSharingSettings.Builder setSharingWithGoogleAssignedSalesEnabled(boolean value)
       Allows Google access to your Google Analytics account data, including
       account usage and configuration data, product spending, and users
       associated with your Google Analytics account, so that Google can help you
       make the most of Google products, providing you with insights, offers,
       recommendations, and optimization tips across Google Analytics and other
       Google products for business.
      
       This field maps to the "Recommendations for your business" field in the
       Google Analytics Admin UI.
       
      bool sharing_with_google_assigned_sales_enabled = 3;
      Parameters:
      value - The sharingWithGoogleAssignedSalesEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithGoogleAssignedSalesEnabled

      public DataSharingSettings.Builder clearSharingWithGoogleAssignedSalesEnabled()
       Allows Google access to your Google Analytics account data, including
       account usage and configuration data, product spending, and users
       associated with your Google Analytics account, so that Google can help you
       make the most of Google products, providing you with insights, offers,
       recommendations, and optimization tips across Google Analytics and other
       Google products for business.
      
       This field maps to the "Recommendations for your business" field in the
       Google Analytics Admin UI.
       
      bool sharing_with_google_assigned_sales_enabled = 3;
      Returns:
      This builder for chaining.
    • getSharingWithGoogleAnySalesEnabled

      @Deprecated public boolean getSharingWithGoogleAnySalesEnabled()
      Deprecated.
      google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724
       Deprecated. This field is no longer used and always returns false.
       
      bool sharing_with_google_any_sales_enabled = 4 [deprecated = true];
      Specified by:
      getSharingWithGoogleAnySalesEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithGoogleAnySalesEnabled.
    • setSharingWithGoogleAnySalesEnabled

      @Deprecated public DataSharingSettings.Builder setSharingWithGoogleAnySalesEnabled(boolean value)
      Deprecated.
      google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724
       Deprecated. This field is no longer used and always returns false.
       
      bool sharing_with_google_any_sales_enabled = 4 [deprecated = true];
      Parameters:
      value - The sharingWithGoogleAnySalesEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithGoogleAnySalesEnabled

      @Deprecated public DataSharingSettings.Builder clearSharingWithGoogleAnySalesEnabled()
      Deprecated.
      google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724
       Deprecated. This field is no longer used and always returns false.
       
      bool sharing_with_google_any_sales_enabled = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • getSharingWithGoogleProductsEnabled

      public boolean getSharingWithGoogleProductsEnabled()
       Allows Google to use the data to improve other Google products or services.
      
       This fields maps to the "Google products & services" field in the Google
       Analytics Admin UI.
       
      bool sharing_with_google_products_enabled = 5;
      Specified by:
      getSharingWithGoogleProductsEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithGoogleProductsEnabled.
    • setSharingWithGoogleProductsEnabled

      public DataSharingSettings.Builder setSharingWithGoogleProductsEnabled(boolean value)
       Allows Google to use the data to improve other Google products or services.
      
       This fields maps to the "Google products & services" field in the Google
       Analytics Admin UI.
       
      bool sharing_with_google_products_enabled = 5;
      Parameters:
      value - The sharingWithGoogleProductsEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithGoogleProductsEnabled

      public DataSharingSettings.Builder clearSharingWithGoogleProductsEnabled()
       Allows Google to use the data to improve other Google products or services.
      
       This fields maps to the "Google products & services" field in the Google
       Analytics Admin UI.
       
      bool sharing_with_google_products_enabled = 5;
      Returns:
      This builder for chaining.
    • getSharingWithOthersEnabled

      public boolean getSharingWithOthersEnabled()
       Enable features like predictions, modeled data, and benchmarking that can
       provide you with richer business insights when you contribute aggregated
       measurement data. The data you share (including information about the
       property from which it is shared) is aggregated and de-identified before
       being used to generate business insights.
      
       This field maps to the "Modeling contributions & business insights" field
       in the Google Analytics Admin UI.
       
      bool sharing_with_others_enabled = 6;
      Specified by:
      getSharingWithOthersEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithOthersEnabled.
    • setSharingWithOthersEnabled

      public DataSharingSettings.Builder setSharingWithOthersEnabled(boolean value)
       Enable features like predictions, modeled data, and benchmarking that can
       provide you with richer business insights when you contribute aggregated
       measurement data. The data you share (including information about the
       property from which it is shared) is aggregated and de-identified before
       being used to generate business insights.
      
       This field maps to the "Modeling contributions & business insights" field
       in the Google Analytics Admin UI.
       
      bool sharing_with_others_enabled = 6;
      Parameters:
      value - The sharingWithOthersEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithOthersEnabled

      public DataSharingSettings.Builder clearSharingWithOthersEnabled()
       Enable features like predictions, modeled data, and benchmarking that can
       provide you with richer business insights when you contribute aggregated
       measurement data. The data you share (including information about the
       property from which it is shared) is aggregated and de-identified before
       being used to generate business insights.
      
       This field maps to the "Modeling contributions & business insights" field
       in the Google Analytics Admin UI.
       
      bool sharing_with_others_enabled = 6;
      Returns:
      This builder for chaining.