Class GenerateAudienceCompositionInsightsRequest

  • All Implemented Interfaces:
    GenerateAudienceCompositionInsightsRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class GenerateAudienceCompositionInsightsRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements GenerateAudienceCompositionInsightsRequestOrBuilder
     Request message for
     [AudienceInsightsService.GenerateAudienceCompositionInsights][google.ads.googleads.v15.services.AudienceInsightsService.GenerateAudienceCompositionInsights].
     
    Protobuf type google.ads.googleads.v15.services.GenerateAudienceCompositionInsightsRequest
    See Also:
    Serialized Form
    • Field Detail

      • CUSTOMER_ID_FIELD_NUMBER

        public static final int CUSTOMER_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BASELINE_AUDIENCE_FIELD_NUMBER

        public static final int BASELINE_AUDIENCE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATA_MONTH_FIELD_NUMBER

        public static final int DATA_MONTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DIMENSIONS_FIELD_NUMBER

        public static final int DIMENSIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER

        public static final int CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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 GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        Whether the audience field is set.
      • hasBaselineAudience

        public boolean hasBaselineAudience()
         The baseline audience to which the audience of interest is being
         compared.
         
        .google.ads.googleads.v15.services.InsightsAudience baseline_audience = 6;
        Specified by:
        hasBaselineAudience in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        Whether the baselineAudience field is set.
      • getDataMonth

        public java.lang.String getDataMonth()
         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 = 3;
        Specified by:
        getDataMonth in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        The dataMonth.
      • getDataMonthBytes

        public com.google.protobuf.ByteString getDataMonthBytes()
         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 = 3;
        Specified by:
        getDataMonthBytes in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        The bytes for dataMonth.
      • getDimensionsCount

        public int getDimensionsCount()
         Required. The audience dimensions for which composition insights should be
         returned.
         
        repeated .google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDimensionsCount in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        The count of dimensions.
      • getDimensionsValueList

        public java.util.List<java.lang.Integer> getDimensionsValueList()
         Required. The audience dimensions for which composition insights should be
         returned.
         
        repeated .google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDimensionsValueList in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for dimensions.
      • getDimensionsValue

        public int getDimensionsValue​(int index)
         Required. The audience dimensions for which composition insights should be
         returned.
         
        repeated .google.ads.googleads.v15.enums.AudienceInsightsDimensionEnum.AudienceInsightsDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDimensionsValue in interface GenerateAudienceCompositionInsightsRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of dimensions at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(java.nio.ByteBuffer data)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(java.nio.ByteBuffer data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(com.google.protobuf.ByteString data)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(com.google.protobuf.ByteString data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(byte[] data)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(byte[] data,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(java.io.InputStream input,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static GenerateAudienceCompositionInsightsRequest parseDelimitedFrom​(java.io.InputStream input,
                                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static GenerateAudienceCompositionInsightsRequest parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public GenerateAudienceCompositionInsightsRequest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • getParserForType

        public com.google.protobuf.Parser<GenerateAudienceCompositionInsightsRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public GenerateAudienceCompositionInsightsRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder