Class YouTubeMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.ads.googleads.v22.services.YouTubeMetrics
All Implemented Interfaces:
YouTubeMetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class YouTubeMetrics extends com.google.protobuf.GeneratedMessage implements YouTubeMetricsOrBuilder
 YouTube Channel metrics.
 
Protobuf type google.ads.googleads.v22.services.YouTubeMetrics
See Also:
  • Field Details

    • SUBSCRIBER_COUNT_FIELD_NUMBER

      public static final int SUBSCRIBER_COUNT_FIELD_NUMBER
      See Also:
    • VIEWS_COUNT_FIELD_NUMBER

      public static final int VIEWS_COUNT_FIELD_NUMBER
      See Also:
    • VIDEO_COUNT_FIELD_NUMBER

      public static final int VIDEO_COUNT_FIELD_NUMBER
      See Also:
    • LIKES_COUNT_FIELD_NUMBER

      public static final int LIKES_COUNT_FIELD_NUMBER
      See Also:
    • SHARES_COUNT_FIELD_NUMBER

      public static final int SHARES_COUNT_FIELD_NUMBER
      See Also:
    • COMMENTS_COUNT_FIELD_NUMBER

      public static final int COMMENTS_COUNT_FIELD_NUMBER
      See Also:
    • ENGAGEMENT_RATE_FIELD_NUMBER

      public static final int ENGAGEMENT_RATE_FIELD_NUMBER
      See Also:
    • AVERAGE_VIEWS_PER_VIDEO_FIELD_NUMBER

      public static final int AVERAGE_VIEWS_PER_VIDEO_FIELD_NUMBER
      See Also:
    • AVERAGE_LIKES_PER_VIDEO_FIELD_NUMBER

      public static final int AVERAGE_LIKES_PER_VIDEO_FIELD_NUMBER
      See Also:
    • AVERAGE_SHARES_PER_VIDEO_FIELD_NUMBER

      public static final int AVERAGE_SHARES_PER_VIDEO_FIELD_NUMBER
      See Also:
    • AVERAGE_COMMENTS_PER_VIDEO_FIELD_NUMBER

      public static final int AVERAGE_COMMENTS_PER_VIDEO_FIELD_NUMBER
      See Also:
    • SHORTS_VIEWS_COUNT_FIELD_NUMBER

      public static final int SHORTS_VIEWS_COUNT_FIELD_NUMBER
      See Also:
    • SHORTS_VIDEO_COUNT_FIELD_NUMBER

      public static final int SHORTS_VIDEO_COUNT_FIELD_NUMBER
      See Also:
    • IS_ACTIVE_SHORTS_CREATOR_FIELD_NUMBER

      public static final int IS_ACTIVE_SHORTS_CREATOR_FIELD_NUMBER
      See Also:
    • IS_ACTIVE_LIVE_STREAM_CREATOR_FIELD_NUMBER

      public static final int IS_ACTIVE_LIVE_STREAM_CREATOR_FIELD_NUMBER
      See Also:
    • IS_BRAND_CONNECT_CREATOR_FIELD_NUMBER

      public static final int IS_BRAND_CONNECT_CREATOR_FIELD_NUMBER
      See Also:
  • 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
    • getSubscriberCount

      public long getSubscriberCount()
       The number of subscribers.
       
      int64 subscriber_count = 1;
      Specified by:
      getSubscriberCount in interface YouTubeMetricsOrBuilder
      Returns:
      The subscriberCount.
    • getViewsCount

      public long getViewsCount()
       The total number of views.
       
      int64 views_count = 2;
      Specified by:
      getViewsCount in interface YouTubeMetricsOrBuilder
      Returns:
      The viewsCount.
    • getVideoCount

      public long getVideoCount()
       The total number of videos.
       
      int64 video_count = 3;
      Specified by:
      getVideoCount in interface YouTubeMetricsOrBuilder
      Returns:
      The videoCount.
    • getLikesCount

      public long getLikesCount()
       The total number of likes across all videos of this channel.
       
      int64 likes_count = 5;
      Specified by:
      getLikesCount in interface YouTubeMetricsOrBuilder
      Returns:
      The likesCount.
    • getSharesCount

      public long getSharesCount()
       The total number of shares across all videos of this channel.
       
      int64 shares_count = 6;
      Specified by:
      getSharesCount in interface YouTubeMetricsOrBuilder
      Returns:
      The sharesCount.
    • getCommentsCount

      public long getCommentsCount()
       The total number of comments across all videos of this channel.
       
      int64 comments_count = 7;
      Specified by:
      getCommentsCount in interface YouTubeMetricsOrBuilder
      Returns:
      The commentsCount.
    • getEngagementRate

      public double getEngagementRate()
       The lifetime engagement rate of this channel. A measurement of how often
       people engage with the creator's content. The value, between 0 and 1, is
       calculated as total engagement divided by total views.
       
      double engagement_rate = 8;
      Specified by:
      getEngagementRate in interface YouTubeMetricsOrBuilder
      Returns:
      The engagementRate.
    • getAverageViewsPerVideo

      public double getAverageViewsPerVideo()
       The average number of views per video in the last 28 days.
       
      double average_views_per_video = 9;
      Specified by:
      getAverageViewsPerVideo in interface YouTubeMetricsOrBuilder
      Returns:
      The averageViewsPerVideo.
    • getAverageLikesPerVideo

      public double getAverageLikesPerVideo()
       The average number of likes per video in the last 28 days.
       
      double average_likes_per_video = 10;
      Specified by:
      getAverageLikesPerVideo in interface YouTubeMetricsOrBuilder
      Returns:
      The averageLikesPerVideo.
    • getAverageSharesPerVideo

      public double getAverageSharesPerVideo()
       The average number of shares per video in the last 28 days.
       
      double average_shares_per_video = 11;
      Specified by:
      getAverageSharesPerVideo in interface YouTubeMetricsOrBuilder
      Returns:
      The averageSharesPerVideo.
    • getAverageCommentsPerVideo

      public double getAverageCommentsPerVideo()
       The average number of comments per video in the last 28 days.
       
      double average_comments_per_video = 12;
      Specified by:
      getAverageCommentsPerVideo in interface YouTubeMetricsOrBuilder
      Returns:
      The averageCommentsPerVideo.
    • getShortsViewsCount

      public long getShortsViewsCount()
       The total number of views across all Shorts videos of this channel.
       
      int64 shorts_views_count = 13;
      Specified by:
      getShortsViewsCount in interface YouTubeMetricsOrBuilder
      Returns:
      The shortsViewsCount.
    • getShortsVideoCount

      public long getShortsVideoCount()
       The total number of Shorts videos.
       
      int64 shorts_video_count = 14;
      Specified by:
      getShortsVideoCount in interface YouTubeMetricsOrBuilder
      Returns:
      The shortsVideoCount.
    • getIsActiveShortsCreator

      public boolean getIsActiveShortsCreator()
       When true, this channel has published a Shorts video in the last 90 days.
       
      bool is_active_shorts_creator = 4;
      Specified by:
      getIsActiveShortsCreator in interface YouTubeMetricsOrBuilder
      Returns:
      The isActiveShortsCreator.
    • getIsActiveLiveStreamCreator

      public boolean getIsActiveLiveStreamCreator()
       When true, this channel has published a live stream in the last 90 days.
       
      bool is_active_live_stream_creator = 16;
      Specified by:
      getIsActiveLiveStreamCreator in interface YouTubeMetricsOrBuilder
      Returns:
      The isActiveLiveStreamCreator.
    • getIsBrandConnectCreator

      public boolean getIsBrandConnectCreator()
       When true, this creator can be partnered with to create original branded
       content using the Google Ads creator partnership platform, BrandConnect.
      
       See https://support.google.com/google-ads/answer/13828964 for more
       information about BrandConnect.
       
      bool is_brand_connect_creator = 15;
      Specified by:
      getIsBrandConnectCreator in interface YouTubeMetricsOrBuilder
      Returns:
      The isBrandConnectCreator.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 YouTubeMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static YouTubeMetrics.Builder newBuilder()
    • newBuilder

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

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

      protected YouTubeMetrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static YouTubeMetrics getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<YouTubeMetrics> 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.GeneratedMessage
    • getDefaultInstanceForType

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