Class YouTubeMetrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
com.google.ads.googleads.v23.services.YouTubeMetrics.Builder
- All Implemented Interfaces:
YouTubeMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- YouTubeMetrics
public static final class YouTubeMetrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
implements YouTubeMetricsOrBuilder
YouTube Channel metrics.Protobuf type
google.ads.googleads.v23.services.YouTubeMetrics-
Method Summary
Modifier and TypeMethodDescriptionaddAllPartnershipOpportunities(Iterable<? extends PartnershipOpportunityEnum.PartnershipOpportunity> values) Partnership opportunities available for this creator.Partnership opportunities available for this creator.Partnership opportunities available for this creator.addPartnershipOpportunitiesValue(int value) Partnership opportunities available for this creator.build()clear()The average number of comments per video in the last 28 days.The average number of likes per video in the last 28 days.The average number of shares per video in the last 28 days.The average number of views per video in the last 28 days.The total number of comments across all videos of this channel.The lifetime engagement rate of this channel.When true, this channel has published a live stream in the last 90 days.When true, this channel has published a Shorts video in the last 90 days.When true, this creator can be partnered with to create original branded content using the Google Ads creator partnership platform, BrandConnect.The total number of likes across all videos of this channel.Partnership opportunities available for this creator.The total number of shares across all videos of this channel.The total number of Shorts videos.The total number of views across all Shorts videos of this channel.The number of subscribers.The total number of videos.The total number of views.doubleThe 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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleThe lifetime engagement rate of this channel.booleanWhen true, this channel has published a live stream in the last 90 days.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.getPartnershipOpportunities(int index) Partnership opportunities available for this creator.intPartnership opportunities available for this creator.Partnership opportunities available for this creator.intgetPartnershipOpportunitiesValue(int index) Partnership opportunities available for this creator.Partnership opportunities available for this creator.longThe 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(YouTubeMetrics other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAverageCommentsPerVideo(double value) The average number of comments per video in the last 28 days.setAverageLikesPerVideo(double value) The average number of likes per video in the last 28 days.setAverageSharesPerVideo(double value) The average number of shares per video in the last 28 days.setAverageViewsPerVideo(double value) The average number of views per video in the last 28 days.setCommentsCount(long value) The total number of comments across all videos of this channel.setEngagementRate(double value) The lifetime engagement rate of this channel.setIsActiveLiveStreamCreator(boolean value) When true, this channel has published a live stream in the last 90 days.setIsActiveShortsCreator(boolean value) When true, this channel has published a Shorts video in the last 90 days.setIsBrandConnectCreator(boolean value) When true, this creator can be partnered with to create original branded content using the Google Ads creator partnership platform, BrandConnect.setLikesCount(long value) The total number of likes across all videos of this channel.setPartnershipOpportunities(int index, PartnershipOpportunityEnum.PartnershipOpportunity value) Partnership opportunities available for this creator.setPartnershipOpportunitiesValue(int index, int value) Partnership opportunities available for this creator.setSharesCount(long value) The total number of shares across all videos of this channel.setShortsVideoCount(long value) The total number of Shorts videos.setShortsViewsCount(long value) The total number of views across all Shorts videos of this channel.setSubscriberCount(long value) The number of subscribers.setVideoCount(long value) The total number of videos.setViewsCount(long value) The total number of views.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<YouTubeMetrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<YouTubeMetrics.Builder>
-
mergeFrom
public YouTubeMetrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<YouTubeMetrics.Builder>- Throws:
IOException
-
getSubscriberCount
public long getSubscriberCount()The number of subscribers.
int64 subscriber_count = 1;- Specified by:
getSubscriberCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The subscriberCount.
-
setSubscriberCount
The number of subscribers.
int64 subscriber_count = 1;- Parameters:
value- The subscriberCount to set.- Returns:
- This builder for chaining.
-
clearSubscriberCount
The number of subscribers.
int64 subscriber_count = 1;- Returns:
- This builder for chaining.
-
getViewsCount
public long getViewsCount()The total number of views.
int64 views_count = 2;- Specified by:
getViewsCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The viewsCount.
-
setViewsCount
The total number of views.
int64 views_count = 2;- Parameters:
value- The viewsCount to set.- Returns:
- This builder for chaining.
-
clearViewsCount
The total number of views.
int64 views_count = 2;- Returns:
- This builder for chaining.
-
getVideoCount
public long getVideoCount()The total number of videos.
int64 video_count = 3;- Specified by:
getVideoCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The videoCount.
-
setVideoCount
The total number of videos.
int64 video_count = 3;- Parameters:
value- The videoCount to set.- Returns:
- This builder for chaining.
-
clearVideoCount
The total number of videos.
int64 video_count = 3;- Returns:
- This builder for chaining.
-
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.
-
setLikesCount
The total number of likes across all videos of this channel.
int64 likes_count = 5;- Parameters:
value- The likesCount to set.- Returns:
- This builder for chaining.
-
clearLikesCount
The total number of likes across all videos of this channel.
int64 likes_count = 5;- Returns:
- This builder for chaining.
-
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.
-
setCommentsCount
The total number of comments across all videos of this channel.
int64 comments_count = 7;- Parameters:
value- The commentsCount to set.- Returns:
- This builder for chaining.
-
clearCommentsCount
The total number of comments across all videos of this channel.
int64 comments_count = 7;- Returns:
- This builder for chaining.
-
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:
getEngagementRatein interfaceYouTubeMetricsOrBuilder- Returns:
- The engagementRate.
-
setEngagementRate
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;- Parameters:
value- The engagementRate to set.- Returns:
- This builder for chaining.
-
clearEngagementRate
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;- Returns:
- This builder for chaining.
-
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.
-
setAverageViewsPerVideo
The average number of views per video in the last 28 days.
double average_views_per_video = 9;- Parameters:
value- The averageViewsPerVideo to set.- Returns:
- This builder for chaining.
-
clearAverageViewsPerVideo
The average number of views per video in the last 28 days.
double average_views_per_video = 9;- Returns:
- This builder for chaining.
-
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.
-
setAverageLikesPerVideo
The average number of likes per video in the last 28 days.
double average_likes_per_video = 10;- Parameters:
value- The averageLikesPerVideo to set.- Returns:
- This builder for chaining.
-
clearAverageLikesPerVideo
The average number of likes per video in the last 28 days.
double average_likes_per_video = 10;- Returns:
- This builder for chaining.
-
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.
-
setAverageCommentsPerVideo
The average number of comments per video in the last 28 days.
double average_comments_per_video = 12;- Parameters:
value- The averageCommentsPerVideo to set.- Returns:
- This builder for chaining.
-
clearAverageCommentsPerVideo
The average number of comments per video in the last 28 days.
double average_comments_per_video = 12;- Returns:
- This builder for chaining.
-
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.
-
setShortsViewsCount
The total number of views across all Shorts videos of this channel.
int64 shorts_views_count = 13;- Parameters:
value- The shortsViewsCount to set.- Returns:
- This builder for chaining.
-
clearShortsViewsCount
The total number of views across all Shorts videos of this channel.
int64 shorts_views_count = 13;- Returns:
- This builder for chaining.
-
getShortsVideoCount
public long getShortsVideoCount()The total number of Shorts videos.
int64 shorts_video_count = 14;- Specified by:
getShortsVideoCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The shortsVideoCount.
-
setShortsVideoCount
The total number of Shorts videos.
int64 shorts_video_count = 14;- Parameters:
value- The shortsVideoCount to set.- Returns:
- This builder for chaining.
-
clearShortsVideoCount
The total number of Shorts videos.
int64 shorts_video_count = 14;- Returns:
- This builder for chaining.
-
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.
-
setIsActiveShortsCreator
When true, this channel has published a Shorts video in the last 90 days.
bool is_active_shorts_creator = 4;- Parameters:
value- The isActiveShortsCreator to set.- Returns:
- This builder for chaining.
-
clearIsActiveShortsCreator
When true, this channel has published a Shorts video in the last 90 days.
bool is_active_shorts_creator = 4;- Returns:
- This builder for chaining.
-
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:
getIsActiveLiveStreamCreatorin interfaceYouTubeMetricsOrBuilder- Returns:
- The isActiveLiveStreamCreator.
-
setIsActiveLiveStreamCreator
When true, this channel has published a live stream in the last 90 days.
bool is_active_live_stream_creator = 16;- Parameters:
value- The isActiveLiveStreamCreator to set.- Returns:
- This builder for chaining.
-
clearIsActiveLiveStreamCreator
When true, this channel has published a live stream in the last 90 days.
bool is_active_live_stream_creator = 16;- Returns:
- This builder for chaining.
-
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.
-
setIsBrandConnectCreator
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;- Parameters:
value- The isBrandConnectCreator to set.- Returns:
- This builder for chaining.
-
clearIsBrandConnectCreator
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;- Returns:
- This builder for chaining.
-
getPartnershipOpportunitiesList
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Specified by:
getPartnershipOpportunitiesListin interfaceYouTubeMetricsOrBuilder- Returns:
- A list containing the partnershipOpportunities.
-
getPartnershipOpportunitiesCount
public int getPartnershipOpportunitiesCount()Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Specified by:
getPartnershipOpportunitiesCountin interfaceYouTubeMetricsOrBuilder- Returns:
- The count of partnershipOpportunities.
-
getPartnershipOpportunities
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Specified by:
getPartnershipOpportunitiesin interfaceYouTubeMetricsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The partnershipOpportunities at the given index.
-
setPartnershipOpportunities
public YouTubeMetrics.Builder setPartnershipOpportunities(int index, PartnershipOpportunityEnum.PartnershipOpportunity value) Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
index- The index to set the value at.value- The partnershipOpportunities to set.- Returns:
- This builder for chaining.
-
addPartnershipOpportunities
public YouTubeMetrics.Builder addPartnershipOpportunities(PartnershipOpportunityEnum.PartnershipOpportunity value) Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
value- The partnershipOpportunities to add.- Returns:
- This builder for chaining.
-
addAllPartnershipOpportunities
public YouTubeMetrics.Builder addAllPartnershipOpportunities(Iterable<? extends PartnershipOpportunityEnum.PartnershipOpportunity> values) Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
values- The partnershipOpportunities to add.- Returns:
- This builder for chaining.
-
clearPartnershipOpportunities
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Returns:
- This builder for chaining.
-
getPartnershipOpportunitiesValueList
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Specified by:
getPartnershipOpportunitiesValueListin interfaceYouTubeMetricsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for partnershipOpportunities.
-
getPartnershipOpportunitiesValue
public int getPartnershipOpportunitiesValue(int index) Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Specified by:
getPartnershipOpportunitiesValuein interfaceYouTubeMetricsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of partnershipOpportunities at the given index.
-
setPartnershipOpportunitiesValue
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for partnershipOpportunities to set.- Returns:
- This builder for chaining.
-
addPartnershipOpportunitiesValue
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
value- The enum numeric value on the wire for partnershipOpportunities to add.- Returns:
- This builder for chaining.
-
addAllPartnershipOpportunitiesValue
Partnership opportunities available for this creator.
repeated .google.ads.googleads.v23.enums.PartnershipOpportunityEnum.PartnershipOpportunity partnership_opportunities = 17;- Parameters:
values- The enum numeric values on the wire for partnershipOpportunities to add.- Returns:
- This builder for chaining.
-