Class YouTubeMetrics
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v21.services.YouTubeMetrics
- All Implemented Interfaces:
YouTubeMetricsOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class YouTubeMetrics
extends com.google.protobuf.GeneratedMessageV3
implements YouTubeMetricsOrBuilder
YouTube Channel metrics.Protobuf type
google.ads.googleads.v21.services.YouTubeMetrics- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classYouTube Channel metrics.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionSerializer, com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter, com.google.protobuf.GeneratedMessage.ExtendableMessage.FieldEntryNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object> Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleThe average number of comments per video in the last 28 days.doubleThe average number of likes per video in the last 28 days.doubleThe average number of shares per video in the last 28 days.doubleThe average number of views per video in the last 28 days.longThe total number of comments across all videos of this channel.static YouTubeMetricsstatic final com.google.protobuf.Descriptors.DescriptordoubleThe lifetime engagement rate of this channel.booleanWhen true, this channel has published a Shorts video in the last 90 days.booleanWhen true, this creator can be partnered with to create original branded content using the Google Ads creator partnership platform, BrandConnect.longThe total number of likes across all videos of this channel.com.google.protobuf.Parser<YouTubeMetrics>intlongThe total number of shares across all videos of this channel.longThe total number of Shorts videos.longThe total number of views across all Shorts videos of this channel.longThe number of subscribers.longThe total number of videos.longThe total number of views.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic YouTubeMetrics.Builderstatic YouTubeMetrics.BuildernewBuilder(YouTubeMetrics prototype) protected YouTubeMetrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static YouTubeMetricsparseDelimitedFrom(InputStream input) static YouTubeMetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static YouTubeMetricsparseFrom(byte[] data) static YouTubeMetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static YouTubeMetricsparseFrom(com.google.protobuf.ByteString data) static YouTubeMetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static YouTubeMetricsparseFrom(com.google.protobuf.CodedInputStream input) static YouTubeMetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static YouTubeMetricsparseFrom(InputStream input) static YouTubeMetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static YouTubeMetricsparseFrom(ByteBuffer data) static YouTubeMetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<YouTubeMetrics>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongListMethods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsIterator, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionSerializer, newExtensionWriter, newMessageSetExtensionSerializer, newMessageSetExtensionWriterMethods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtensionMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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_BRAND_CONNECT_CREATOR_FIELD_NUMBER
public static final int IS_BRAND_CONNECT_CREATOR_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSubscriberCount
public long getSubscriberCount()The number of subscribers.
int64 subscriber_count = 1;- Specified by:
getSubscriberCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The subscriberCount.
-
getViewsCount
public long getViewsCount()The total number of views.
int64 views_count = 2;- Specified by:
getViewsCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The viewsCount.
-
getVideoCount
public long getVideoCount()The total number of videos.
int64 video_count = 3;- Specified by:
getVideoCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The videoCount.
-
getLikesCount
public long getLikesCount()The total number of likes across all videos of this channel.
int64 likes_count = 5;- Specified by:
getLikesCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The likesCount.
-
getCommentsCount
public long getCommentsCount()The total number of comments across all videos of this channel.
int64 comments_count = 7;- Specified by:
getCommentsCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The commentsCount.
-
getEngagementRate
public double getEngagementRate()The lifetime engagement rate of this channel. The value is computed as the total number of likes, shares, and comments across all videos divided by the total number of video views.
double engagement_rate = 8;- Specified by:
getEngagementRatein interfaceYouTubeMetricsOrBuilder- 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:
getAverageViewsPerVideoin interfaceYouTubeMetricsOrBuilder- 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:
getAverageLikesPerVideoin interfaceYouTubeMetricsOrBuilder- Returns:
- The averageLikesPerVideo.
-
getAverageCommentsPerVideo
public double getAverageCommentsPerVideo()The average number of comments per video in the last 28 days.
double average_comments_per_video = 12;- Specified by:
getAverageCommentsPerVideoin interfaceYouTubeMetricsOrBuilder- 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:
getShortsViewsCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The shortsViewsCount.
-
getShortsVideoCount
public long getShortsVideoCount()The total number of Shorts videos.
int64 shorts_video_count = 14;- Specified by:
getShortsVideoCountin interfaceYouTubeMetricsOrBuilder- 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:
getIsActiveShortsCreatorin interfaceYouTubeMetricsOrBuilder- Returns:
- The isActiveShortsCreator.
-
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:
getIsBrandConnectCreatorin interfaceYouTubeMetricsOrBuilder- Returns:
- The isBrandConnectCreator.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static YouTubeMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected YouTubeMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-