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.v1beta.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.v1beta.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()
       Output only. Resource name.
       Format: accounts/{account}/dataSharingSettings
       Example: "accounts/1000/dataSharingSettings"
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface DataSharingSettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

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

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

      public boolean getSharingWithGoogleSupportEnabled()
       Allows Google support to access the data in order to help troubleshoot
       issues.
       
      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 support to access the data in order to help troubleshoot
       issues.
       
      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 support to access the data in order to help troubleshoot
       issues.
       
      bool sharing_with_google_support_enabled = 2;
      Returns:
      This builder for chaining.
    • getSharingWithGoogleAssignedSalesEnabled

      public boolean getSharingWithGoogleAssignedSalesEnabled()
       Allows Google sales teams that are assigned to the customer to access the
       data in order to suggest configuration changes to improve results.
       Sales team restrictions still apply when enabled.
       
      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 sales teams that are assigned to the customer to access the
       data in order to suggest configuration changes to improve results.
       Sales team restrictions still apply when enabled.
       
      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 sales teams that are assigned to the customer to access the
       data in order to suggest configuration changes to improve results.
       Sales team restrictions still apply when enabled.
       
      bool sharing_with_google_assigned_sales_enabled = 3;
      Returns:
      This builder for chaining.
    • getSharingWithGoogleAnySalesEnabled

      public boolean getSharingWithGoogleAnySalesEnabled()
       Allows any of Google sales to access the data in order to suggest
       configuration changes to improve results.
       
      bool sharing_with_google_any_sales_enabled = 4;
      Specified by:
      getSharingWithGoogleAnySalesEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithGoogleAnySalesEnabled.
    • setSharingWithGoogleAnySalesEnabled

      public DataSharingSettings.Builder setSharingWithGoogleAnySalesEnabled(boolean value)
       Allows any of Google sales to access the data in order to suggest
       configuration changes to improve results.
       
      bool sharing_with_google_any_sales_enabled = 4;
      Parameters:
      value - The sharingWithGoogleAnySalesEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithGoogleAnySalesEnabled

      public DataSharingSettings.Builder clearSharingWithGoogleAnySalesEnabled()
       Allows any of Google sales to access the data in order to suggest
       configuration changes to improve results.
       
      bool sharing_with_google_any_sales_enabled = 4;
      Returns:
      This builder for chaining.
    • getSharingWithGoogleProductsEnabled

      public boolean getSharingWithGoogleProductsEnabled()
       Allows Google to use the data to improve other Google products or services.
       
      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.
       
      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.
       
      bool sharing_with_google_products_enabled = 5;
      Returns:
      This builder for chaining.
    • getSharingWithOthersEnabled

      public boolean getSharingWithOthersEnabled()
       Allows Google to share the data anonymously in aggregate form with others.
       
      bool sharing_with_others_enabled = 6;
      Specified by:
      getSharingWithOthersEnabled in interface DataSharingSettingsOrBuilder
      Returns:
      The sharingWithOthersEnabled.
    • setSharingWithOthersEnabled

      public DataSharingSettings.Builder setSharingWithOthersEnabled(boolean value)
       Allows Google to share the data anonymously in aggregate form with others.
       
      bool sharing_with_others_enabled = 6;
      Parameters:
      value - The sharingWithOthersEnabled to set.
      Returns:
      This builder for chaining.
    • clearSharingWithOthersEnabled

      public DataSharingSettings.Builder clearSharingWithOthersEnabled()
       Allows Google to share the data anonymously in aggregate form with others.
       
      bool sharing_with_others_enabled = 6;
      Returns:
      This builder for chaining.