Class GenerateSuggestedTargetingInsightsRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateSuggestedTargetingInsightsRequest.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.GeneratedMessageV3.Builder<GenerateSuggestedTargetingInsightsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public GenerateSuggestedTargetingInsightsRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws java.io.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<GenerateSuggestedTargetingInsightsRequest.Builder>
        Throws:
        java.io.IOException
      • setCustomerId

        public GenerateSuggestedTargetingInsightsRequest.Builder setCustomerId​(java.lang.String value)
         Required. The ID of the customer.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The customerId to set.
        Returns:
        This builder for chaining.
      • setCustomerIdBytes

        public GenerateSuggestedTargetingInsightsRequest.Builder setCustomerIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the customer.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for customerId to set.
        Returns:
        This builder for chaining.
      • hasAudience

        public boolean hasAudience()
         Required. The audience of interest for which insights are being requested.
         
        .google.ads.googleads.v15.services.InsightsAudience audience = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAudience in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        Whether the audience field is set.
      • clearAudience

        public GenerateSuggestedTargetingInsightsRequest.Builder clearAudience()
         Required. The audience of interest for which insights are being requested.
         
        .google.ads.googleads.v15.services.InsightsAudience audience = 2 [(.google.api.field_behavior) = REQUIRED];
      • getAudienceBuilder

        public InsightsAudience.Builder getAudienceBuilder()
         Required. The audience of interest for which insights are being requested.
         
        .google.ads.googleads.v15.services.InsightsAudience audience = 2 [(.google.api.field_behavior) = REQUIRED];
      • hasBaselineAudience

        public boolean hasBaselineAudience()
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasBaselineAudience in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        Whether the baselineAudience field is set.
      • getBaselineAudience

        public InsightsAudience getBaselineAudience()
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBaselineAudience in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        The baselineAudience.
      • setBaselineAudience

        public GenerateSuggestedTargetingInsightsRequest.Builder setBaselineAudience​(InsightsAudience value)
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setBaselineAudience

        public GenerateSuggestedTargetingInsightsRequest.Builder setBaselineAudience​(InsightsAudience.Builder builderForValue)
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
      • mergeBaselineAudience

        public GenerateSuggestedTargetingInsightsRequest.Builder mergeBaselineAudience​(InsightsAudience value)
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
      • clearBaselineAudience

        public GenerateSuggestedTargetingInsightsRequest.Builder clearBaselineAudience()
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getBaselineAudienceBuilder

        public InsightsAudience.Builder getBaselineAudienceBuilder()
         Optional. The baseline audience.  The default, if unspecified, is all
         people in the same country as the audience of interest.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getDataMonth

        public java.lang.String getDataMonth()
         Optional. The one-month range of historical data to use for insights, in
         the format "yyyy-mm". If unset, insights will be returned for the last
         thirty days of data.
         
        string data_month = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataMonth in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        The dataMonth.
      • getDataMonthBytes

        public com.google.protobuf.ByteString getDataMonthBytes()
         Optional. The one-month range of historical data to use for insights, in
         the format "yyyy-mm". If unset, insights will be returned for the last
         thirty days of data.
         
        string data_month = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataMonthBytes in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        The bytes for dataMonth.
      • setDataMonth

        public GenerateSuggestedTargetingInsightsRequest.Builder setDataMonth​(java.lang.String value)
         Optional. The one-month range of historical data to use for insights, in
         the format "yyyy-mm". If unset, insights will be returned for the last
         thirty days of data.
         
        string data_month = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The dataMonth to set.
        Returns:
        This builder for chaining.
      • clearDataMonth

        public GenerateSuggestedTargetingInsightsRequest.Builder clearDataMonth()
         Optional. The one-month range of historical data to use for insights, in
         the format "yyyy-mm". If unset, insights will be returned for the last
         thirty days of data.
         
        string data_month = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDataMonthBytes

        public GenerateSuggestedTargetingInsightsRequest.Builder setDataMonthBytes​(com.google.protobuf.ByteString value)
         Optional. The one-month range of historical data to use for insights, in
         the format "yyyy-mm". If unset, insights will be returned for the last
         thirty days of data.
         
        string data_month = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for dataMonth to set.
        Returns:
        This builder for chaining.
      • getCustomerInsightsGroup

        public java.lang.String getCustomerInsightsGroup()
         Optional. The name of the customer being planned for.  This is a
         user-defined value.
         
        string customer_insights_group = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomerInsightsGroup in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        The customerInsightsGroup.
      • getCustomerInsightsGroupBytes

        public com.google.protobuf.ByteString getCustomerInsightsGroupBytes()
         Optional. The name of the customer being planned for.  This is a
         user-defined value.
         
        string customer_insights_group = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomerInsightsGroupBytes in interface GenerateSuggestedTargetingInsightsRequestOrBuilder
        Returns:
        The bytes for customerInsightsGroup.
      • setCustomerInsightsGroup

        public GenerateSuggestedTargetingInsightsRequest.Builder setCustomerInsightsGroup​(java.lang.String value)
         Optional. The name of the customer being planned for.  This is a
         user-defined value.
         
        string customer_insights_group = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The customerInsightsGroup to set.
        Returns:
        This builder for chaining.
      • clearCustomerInsightsGroup

        public GenerateSuggestedTargetingInsightsRequest.Builder clearCustomerInsightsGroup()
         Optional. The name of the customer being planned for.  This is a
         user-defined value.
         
        string customer_insights_group = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setCustomerInsightsGroupBytes

        public GenerateSuggestedTargetingInsightsRequest.Builder setCustomerInsightsGroupBytes​(com.google.protobuf.ByteString value)
         Optional. The name of the customer being planned for.  This is a
         user-defined value.
         
        string customer_insights_group = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for customerInsightsGroup to set.
        Returns:
        This builder for chaining.