Class InsightsAudienceDefinition

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.services.InsightsAudienceDefinition
All Implemented Interfaces:
InsightsAudienceDefinitionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class InsightsAudienceDefinition extends com.google.protobuf.GeneratedMessageV3 implements InsightsAudienceDefinitionOrBuilder
 A structured definition of the audience of interest for which insights are
 being requested in AudienceInsightsService.
 
Protobuf type google.ads.googleads.v18.services.InsightsAudienceDefinition
See Also:
  • Field Details

    • AUDIENCE_FIELD_NUMBER

      public static final int AUDIENCE_FIELD_NUMBER
      See Also:
    • BASELINE_AUDIENCE_FIELD_NUMBER

      public static final int BASELINE_AUDIENCE_FIELD_NUMBER
      See Also:
    • DATA_MONTH_FIELD_NUMBER

      public static final int DATA_MONTH_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected 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.v18.services.InsightsAudience audience = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAudience in interface InsightsAudienceDefinitionOrBuilder
      Returns:
      Whether the audience field is set.
    • getAudience

      public InsightsAudience getAudience()
       Required. The audience of interest for which insights are being requested.
       
      .google.ads.googleads.v18.services.InsightsAudience audience = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudience in interface InsightsAudienceDefinitionOrBuilder
      Returns:
      The audience.
    • getAudienceOrBuilder

      public InsightsAudienceOrBuilder getAudienceOrBuilder()
       Required. The audience of interest for which insights are being requested.
       
      .google.ads.googleads.v18.services.InsightsAudience audience = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudienceOrBuilder in interface InsightsAudienceDefinitionOrBuilder
    • 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.v18.services.InsightsAudience baseline_audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBaselineAudience in interface InsightsAudienceDefinitionOrBuilder
      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.v18.services.InsightsAudience baseline_audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBaselineAudience in interface InsightsAudienceDefinitionOrBuilder
      Returns:
      The baselineAudience.
    • getBaselineAudienceOrBuilder

      public InsightsAudienceOrBuilder getBaselineAudienceOrBuilder()
       Optional. The baseline audience. The default, if unspecified, is all people
       in the same country as the audience of interest.
       
      .google.ads.googleads.v18.services.InsightsAudience baseline_audience = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBaselineAudienceOrBuilder in interface InsightsAudienceDefinitionOrBuilder
    • getDataMonth

      public 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataMonth in interface InsightsAudienceDefinitionOrBuilder
      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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataMonthBytes in interface InsightsAudienceDefinitionOrBuilder
      Returns:
      The bytes for dataMonth.
    • 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 IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      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(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 InsightsAudienceDefinition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InsightsAudienceDefinition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

      public static InsightsAudienceDefinition parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static InsightsAudienceDefinition parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static InsightsAudienceDefinition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static InsightsAudienceDefinition.Builder newBuilder()
    • newBuilder

      public static InsightsAudienceDefinition.Builder newBuilder(InsightsAudienceDefinition prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InsightsAudienceDefinition.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static InsightsAudienceDefinition getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InsightsAudienceDefinition> parser()
    • getParserForType

      public com.google.protobuf.Parser<InsightsAudienceDefinition> 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 InsightsAudienceDefinition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder