All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v18.services.YouTubeChannelInsights Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v18/services/content_creator_insights_service.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v18.services;

/**
 * 
 * YouTube Channel insights, and its metadata (such as channel name and channel
 * ID), returned for a creator insights response.
 * 
* * Protobuf type {@code google.ads.googleads.v18.services.YouTubeChannelInsights} */ public final class YouTubeChannelInsights extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.YouTubeChannelInsights) YouTubeChannelInsightsOrBuilder { private static final long serialVersionUID = 0L; // Use YouTubeChannelInsights.newBuilder() to construct. private YouTubeChannelInsights(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private YouTubeChannelInsights() { displayName_ = ""; channelAudienceDemographics_ = java.util.Collections.emptyList(); channelAttributes_ = java.util.Collections.emptyList(); channelType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new YouTubeChannelInsights(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_YouTubeChannelInsights_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_YouTubeChannelInsights_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.services.YouTubeChannelInsights.class, com.google.ads.googleads.v18.services.YouTubeChannelInsights.Builder.class); } private int bitField0_; public static final int DISPLAY_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** *
   * The name of the YouTube Channel.
   * 
* * string display_name = 1; * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** *
   * The name of the YouTube Channel.
   * 
* * string display_name = 1; * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int YOUTUBE_CHANNEL_FIELD_NUMBER = 2; private com.google.ads.googleads.v18.common.YouTubeChannelInfo youtubeChannel_; /** *
   * The YouTube Channel ID.
   * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; * @return Whether the youtubeChannel field is set. */ @java.lang.Override public boolean hasYoutubeChannel() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The YouTube Channel ID.
   * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; * @return The youtubeChannel. */ @java.lang.Override public com.google.ads.googleads.v18.common.YouTubeChannelInfo getYoutubeChannel() { return youtubeChannel_ == null ? com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } /** *
   * The YouTube Channel ID.
   * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ @java.lang.Override public com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { return youtubeChannel_ == null ? com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } public static final int CHANNEL_METRICS_FIELD_NUMBER = 3; private com.google.ads.googleads.v18.services.YouTubeMetrics channelMetrics_; /** *
   * The metrics for a YouTube Channel.
   * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; * @return Whether the channelMetrics field is set. */ @java.lang.Override public boolean hasChannelMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The metrics for a YouTube Channel.
   * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; * @return The channelMetrics. */ @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeMetrics getChannelMetrics() { return channelMetrics_ == null ? com.google.ads.googleads.v18.services.YouTubeMetrics.getDefaultInstance() : channelMetrics_; } /** *
   * The metrics for a YouTube Channel.
   * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeMetricsOrBuilder getChannelMetricsOrBuilder() { return channelMetrics_ == null ? com.google.ads.googleads.v18.services.YouTubeMetrics.getDefaultInstance() : channelMetrics_; } public static final int CHANNEL_AUDIENCE_DEMOGRAPHICS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List channelAudienceDemographics_; /** *
   * The types of audiences and demographics associated with a channel's main
   * audience. Audiences and demographics will have a breakdown of subscriber
   * share across dimensions of the same value.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ @java.lang.Override public java.util.List getChannelAudienceDemographicsList() { return channelAudienceDemographics_; } /** *
   * The types of audiences and demographics associated with a channel's main
   * audience. Audiences and demographics will have a breakdown of subscriber
   * share across dimensions of the same value.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ @java.lang.Override public java.util.List getChannelAudienceDemographicsOrBuilderList() { return channelAudienceDemographics_; } /** *
   * The types of audiences and demographics associated with a channel's main
   * audience. Audiences and demographics will have a breakdown of subscriber
   * share across dimensions of the same value.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ @java.lang.Override public int getChannelAudienceDemographicsCount() { return channelAudienceDemographics_.size(); } /** *
   * The types of audiences and demographics associated with a channel's main
   * audience. Audiences and demographics will have a breakdown of subscriber
   * share across dimensions of the same value.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ @java.lang.Override public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata getChannelAudienceDemographics(int index) { return channelAudienceDemographics_.get(index); } /** *
   * The types of audiences and demographics associated with a channel's main
   * audience. Audiences and demographics will have a breakdown of subscriber
   * share across dimensions of the same value.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ @java.lang.Override public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder getChannelAudienceDemographicsOrBuilder( int index) { return channelAudienceDemographics_.get(index); } public static final int CHANNEL_ATTRIBUTES_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List channelAttributes_; /** *
   * The attributes associated with the content made by a channel.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ @java.lang.Override public java.util.List getChannelAttributesList() { return channelAttributes_; } /** *
   * The attributes associated with the content made by a channel.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ @java.lang.Override public java.util.List getChannelAttributesOrBuilderList() { return channelAttributes_; } /** *
   * The attributes associated with the content made by a channel.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ @java.lang.Override public int getChannelAttributesCount() { return channelAttributes_.size(); } /** *
   * The attributes associated with the content made by a channel.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ @java.lang.Override public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata getChannelAttributes(int index) { return channelAttributes_.get(index); } /** *
   * The attributes associated with the content made by a channel.
   * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ @java.lang.Override public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder getChannelAttributesOrBuilder( int index) { return channelAttributes_.get(index); } public static final int CHANNEL_TYPE_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object channelType_ = ""; /** *
   * Metadata string associated with the type of channel.
   * 
* * string channel_type = 6; * @return The channelType. */ @java.lang.Override public java.lang.String getChannelType() { java.lang.Object ref = channelType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelType_ = s; return s; } } /** *
   * Metadata string associated with the type of channel.
   * 
* * string channel_type = 6; * @return The bytes for channelType. */ @java.lang.Override public com.google.protobuf.ByteString getChannelTypeBytes() { java.lang.Object ref = channelType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getYoutubeChannel()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getChannelMetrics()); } for (int i = 0; i < channelAudienceDemographics_.size(); i++) { output.writeMessage(4, channelAudienceDemographics_.get(i)); } for (int i = 0; i < channelAttributes_.size(); i++) { output.writeMessage(5, channelAttributes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, channelType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getYoutubeChannel()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getChannelMetrics()); } for (int i = 0; i < channelAudienceDemographics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, channelAudienceDemographics_.get(i)); } for (int i = 0; i < channelAttributes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, channelAttributes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channelType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, channelType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v18.services.YouTubeChannelInsights)) { return super.equals(obj); } com.google.ads.googleads.v18.services.YouTubeChannelInsights other = (com.google.ads.googleads.v18.services.YouTubeChannelInsights) obj; if (!getDisplayName() .equals(other.getDisplayName())) return false; if (hasYoutubeChannel() != other.hasYoutubeChannel()) return false; if (hasYoutubeChannel()) { if (!getYoutubeChannel() .equals(other.getYoutubeChannel())) return false; } if (hasChannelMetrics() != other.hasChannelMetrics()) return false; if (hasChannelMetrics()) { if (!getChannelMetrics() .equals(other.getChannelMetrics())) return false; } if (!getChannelAudienceDemographicsList() .equals(other.getChannelAudienceDemographicsList())) return false; if (!getChannelAttributesList() .equals(other.getChannelAttributesList())) return false; if (!getChannelType() .equals(other.getChannelType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (hasYoutubeChannel()) { hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getYoutubeChannel().hashCode(); } if (hasChannelMetrics()) { hash = (37 * hash) + CHANNEL_METRICS_FIELD_NUMBER; hash = (53 * hash) + getChannelMetrics().hashCode(); } if (getChannelAudienceDemographicsCount() > 0) { hash = (37 * hash) + CHANNEL_AUDIENCE_DEMOGRAPHICS_FIELD_NUMBER; hash = (53 * hash) + getChannelAudienceDemographicsList().hashCode(); } if (getChannelAttributesCount() > 0) { hash = (37 * hash) + CHANNEL_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getChannelAttributesList().hashCode(); } hash = (37 * hash) + CHANNEL_TYPE_FIELD_NUMBER; hash = (53 * hash) + getChannelType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v18.services.YouTubeChannelInsights prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * YouTube Channel insights, and its metadata (such as channel name and channel
   * ID), returned for a creator insights response.
   * 
* * Protobuf type {@code google.ads.googleads.v18.services.YouTubeChannelInsights} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.YouTubeChannelInsights) com.google.ads.googleads.v18.services.YouTubeChannelInsightsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_YouTubeChannelInsights_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_YouTubeChannelInsights_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v18.services.YouTubeChannelInsights.class, com.google.ads.googleads.v18.services.YouTubeChannelInsights.Builder.class); } // Construct using com.google.ads.googleads.v18.services.YouTubeChannelInsights.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getYoutubeChannelFieldBuilder(); getChannelMetricsFieldBuilder(); getChannelAudienceDemographicsFieldBuilder(); getChannelAttributesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; displayName_ = ""; youtubeChannel_ = null; if (youtubeChannelBuilder_ != null) { youtubeChannelBuilder_.dispose(); youtubeChannelBuilder_ = null; } channelMetrics_ = null; if (channelMetricsBuilder_ != null) { channelMetricsBuilder_.dispose(); channelMetricsBuilder_ = null; } if (channelAudienceDemographicsBuilder_ == null) { channelAudienceDemographics_ = java.util.Collections.emptyList(); } else { channelAudienceDemographics_ = null; channelAudienceDemographicsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (channelAttributesBuilder_ == null) { channelAttributes_ = java.util.Collections.emptyList(); } else { channelAttributes_ = null; channelAttributesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); channelType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_YouTubeChannelInsights_descriptor; } @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeChannelInsights getDefaultInstanceForType() { return com.google.ads.googleads.v18.services.YouTubeChannelInsights.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeChannelInsights build() { com.google.ads.googleads.v18.services.YouTubeChannelInsights result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeChannelInsights buildPartial() { com.google.ads.googleads.v18.services.YouTubeChannelInsights result = new com.google.ads.googleads.v18.services.YouTubeChannelInsights(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v18.services.YouTubeChannelInsights result) { if (channelAudienceDemographicsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { channelAudienceDemographics_ = java.util.Collections.unmodifiableList(channelAudienceDemographics_); bitField0_ = (bitField0_ & ~0x00000008); } result.channelAudienceDemographics_ = channelAudienceDemographics_; } else { result.channelAudienceDemographics_ = channelAudienceDemographicsBuilder_.build(); } if (channelAttributesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { channelAttributes_ = java.util.Collections.unmodifiableList(channelAttributes_); bitField0_ = (bitField0_ & ~0x00000010); } result.channelAttributes_ = channelAttributes_; } else { result.channelAttributes_ = channelAttributesBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v18.services.YouTubeChannelInsights result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.youtubeChannel_ = youtubeChannelBuilder_ == null ? youtubeChannel_ : youtubeChannelBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.channelMetrics_ = channelMetricsBuilder_ == null ? channelMetrics_ : channelMetricsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.channelType_ = channelType_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v18.services.YouTubeChannelInsights) { return mergeFrom((com.google.ads.googleads.v18.services.YouTubeChannelInsights)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v18.services.YouTubeChannelInsights other) { if (other == com.google.ads.googleads.v18.services.YouTubeChannelInsights.getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasYoutubeChannel()) { mergeYoutubeChannel(other.getYoutubeChannel()); } if (other.hasChannelMetrics()) { mergeChannelMetrics(other.getChannelMetrics()); } if (channelAudienceDemographicsBuilder_ == null) { if (!other.channelAudienceDemographics_.isEmpty()) { if (channelAudienceDemographics_.isEmpty()) { channelAudienceDemographics_ = other.channelAudienceDemographics_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.addAll(other.channelAudienceDemographics_); } onChanged(); } } else { if (!other.channelAudienceDemographics_.isEmpty()) { if (channelAudienceDemographicsBuilder_.isEmpty()) { channelAudienceDemographicsBuilder_.dispose(); channelAudienceDemographicsBuilder_ = null; channelAudienceDemographics_ = other.channelAudienceDemographics_; bitField0_ = (bitField0_ & ~0x00000008); channelAudienceDemographicsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChannelAudienceDemographicsFieldBuilder() : null; } else { channelAudienceDemographicsBuilder_.addAllMessages(other.channelAudienceDemographics_); } } } if (channelAttributesBuilder_ == null) { if (!other.channelAttributes_.isEmpty()) { if (channelAttributes_.isEmpty()) { channelAttributes_ = other.channelAttributes_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureChannelAttributesIsMutable(); channelAttributes_.addAll(other.channelAttributes_); } onChanged(); } } else { if (!other.channelAttributes_.isEmpty()) { if (channelAttributesBuilder_.isEmpty()) { channelAttributesBuilder_.dispose(); channelAttributesBuilder_ = null; channelAttributes_ = other.channelAttributes_; bitField0_ = (bitField0_ & ~0x00000010); channelAttributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChannelAttributesFieldBuilder() : null; } else { channelAttributesBuilder_.addAllMessages(other.channelAttributes_); } } } if (!other.getChannelType().isEmpty()) { channelType_ = other.channelType_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getYoutubeChannelFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getChannelMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata m = input.readMessage( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.parser(), extensionRegistry); if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.add(m); } else { channelAudienceDemographicsBuilder_.addMessage(m); } break; } // case 34 case 42: { com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata m = input.readMessage( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.parser(), extensionRegistry); if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); channelAttributes_.add(m); } else { channelAttributesBuilder_.addMessage(m); } break; } // case 42 case 50: { channelType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object displayName_ = ""; /** *
     * The name of the YouTube Channel.
     * 
* * string display_name = 1; * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the YouTube Channel.
     * 
* * string display_name = 1; * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the YouTube Channel.
     * 
* * string display_name = 1; * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name of the YouTube Channel.
     * 
* * string display_name = 1; * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name of the YouTube Channel.
     * 
* * string display_name = 1; * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.ads.googleads.v18.common.YouTubeChannelInfo youtubeChannel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder> youtubeChannelBuilder_; /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; * @return Whether the youtubeChannel field is set. */ public boolean hasYoutubeChannel() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; * @return The youtubeChannel. */ public com.google.ads.googleads.v18.common.YouTubeChannelInfo getYoutubeChannel() { if (youtubeChannelBuilder_ == null) { return youtubeChannel_ == null ? com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } else { return youtubeChannelBuilder_.getMessage(); } } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public Builder setYoutubeChannel(com.google.ads.googleads.v18.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } youtubeChannel_ = value; } else { youtubeChannelBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public Builder setYoutubeChannel( com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder builderForValue) { if (youtubeChannelBuilder_ == null) { youtubeChannel_ = builderForValue.build(); } else { youtubeChannelBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public Builder mergeYoutubeChannel(com.google.ads.googleads.v18.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && youtubeChannel_ != null && youtubeChannel_ != com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance()) { getYoutubeChannelBuilder().mergeFrom(value); } else { youtubeChannel_ = value; } } else { youtubeChannelBuilder_.mergeFrom(value); } if (youtubeChannel_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public Builder clearYoutubeChannel() { bitField0_ = (bitField0_ & ~0x00000002); youtubeChannel_ = null; if (youtubeChannelBuilder_ != null) { youtubeChannelBuilder_.dispose(); youtubeChannelBuilder_ = null; } onChanged(); return this; } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder getYoutubeChannelBuilder() { bitField0_ |= 0x00000002; onChanged(); return getYoutubeChannelFieldBuilder().getBuilder(); } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ public com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { if (youtubeChannelBuilder_ != null) { return youtubeChannelBuilder_.getMessageOrBuilder(); } else { return youtubeChannel_ == null ? com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } } /** *
     * The YouTube Channel ID.
     * 
* * .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channel = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder> getYoutubeChannelFieldBuilder() { if (youtubeChannelBuilder_ == null) { youtubeChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>( getYoutubeChannel(), getParentForChildren(), isClean()); youtubeChannel_ = null; } return youtubeChannelBuilder_; } private com.google.ads.googleads.v18.services.YouTubeMetrics channelMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.services.YouTubeMetrics, com.google.ads.googleads.v18.services.YouTubeMetrics.Builder, com.google.ads.googleads.v18.services.YouTubeMetricsOrBuilder> channelMetricsBuilder_; /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; * @return Whether the channelMetrics field is set. */ public boolean hasChannelMetrics() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; * @return The channelMetrics. */ public com.google.ads.googleads.v18.services.YouTubeMetrics getChannelMetrics() { if (channelMetricsBuilder_ == null) { return channelMetrics_ == null ? com.google.ads.googleads.v18.services.YouTubeMetrics.getDefaultInstance() : channelMetrics_; } else { return channelMetricsBuilder_.getMessage(); } } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public Builder setChannelMetrics(com.google.ads.googleads.v18.services.YouTubeMetrics value) { if (channelMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } channelMetrics_ = value; } else { channelMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public Builder setChannelMetrics( com.google.ads.googleads.v18.services.YouTubeMetrics.Builder builderForValue) { if (channelMetricsBuilder_ == null) { channelMetrics_ = builderForValue.build(); } else { channelMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public Builder mergeChannelMetrics(com.google.ads.googleads.v18.services.YouTubeMetrics value) { if (channelMetricsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && channelMetrics_ != null && channelMetrics_ != com.google.ads.googleads.v18.services.YouTubeMetrics.getDefaultInstance()) { getChannelMetricsBuilder().mergeFrom(value); } else { channelMetrics_ = value; } } else { channelMetricsBuilder_.mergeFrom(value); } if (channelMetrics_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public Builder clearChannelMetrics() { bitField0_ = (bitField0_ & ~0x00000004); channelMetrics_ = null; if (channelMetricsBuilder_ != null) { channelMetricsBuilder_.dispose(); channelMetricsBuilder_ = null; } onChanged(); return this; } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public com.google.ads.googleads.v18.services.YouTubeMetrics.Builder getChannelMetricsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChannelMetricsFieldBuilder().getBuilder(); } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ public com.google.ads.googleads.v18.services.YouTubeMetricsOrBuilder getChannelMetricsOrBuilder() { if (channelMetricsBuilder_ != null) { return channelMetricsBuilder_.getMessageOrBuilder(); } else { return channelMetrics_ == null ? com.google.ads.googleads.v18.services.YouTubeMetrics.getDefaultInstance() : channelMetrics_; } } /** *
     * The metrics for a YouTube Channel.
     * 
* * .google.ads.googleads.v18.services.YouTubeMetrics channel_metrics = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.services.YouTubeMetrics, com.google.ads.googleads.v18.services.YouTubeMetrics.Builder, com.google.ads.googleads.v18.services.YouTubeMetricsOrBuilder> getChannelMetricsFieldBuilder() { if (channelMetricsBuilder_ == null) { channelMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v18.services.YouTubeMetrics, com.google.ads.googleads.v18.services.YouTubeMetrics.Builder, com.google.ads.googleads.v18.services.YouTubeMetricsOrBuilder>( getChannelMetrics(), getParentForChildren(), isClean()); channelMetrics_ = null; } return channelMetricsBuilder_; } private java.util.List channelAudienceDemographics_ = java.util.Collections.emptyList(); private void ensureChannelAudienceDemographicsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { channelAudienceDemographics_ = new java.util.ArrayList(channelAudienceDemographics_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder> channelAudienceDemographicsBuilder_; /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public java.util.List getChannelAudienceDemographicsList() { if (channelAudienceDemographicsBuilder_ == null) { return java.util.Collections.unmodifiableList(channelAudienceDemographics_); } else { return channelAudienceDemographicsBuilder_.getMessageList(); } } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public int getChannelAudienceDemographicsCount() { if (channelAudienceDemographicsBuilder_ == null) { return channelAudienceDemographics_.size(); } else { return channelAudienceDemographicsBuilder_.getCount(); } } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata getChannelAudienceDemographics(int index) { if (channelAudienceDemographicsBuilder_ == null) { return channelAudienceDemographics_.get(index); } else { return channelAudienceDemographicsBuilder_.getMessage(index); } } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder setChannelAudienceDemographics( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAudienceDemographicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.set(index, value); onChanged(); } else { channelAudienceDemographicsBuilder_.setMessage(index, value); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder setChannelAudienceDemographics( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.set(index, builderForValue.build()); onChanged(); } else { channelAudienceDemographicsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder addChannelAudienceDemographics(com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAudienceDemographicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.add(value); onChanged(); } else { channelAudienceDemographicsBuilder_.addMessage(value); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder addChannelAudienceDemographics( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAudienceDemographicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.add(index, value); onChanged(); } else { channelAudienceDemographicsBuilder_.addMessage(index, value); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder addChannelAudienceDemographics( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.add(builderForValue.build()); onChanged(); } else { channelAudienceDemographicsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder addChannelAudienceDemographics( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.add(index, builderForValue.build()); onChanged(); } else { channelAudienceDemographicsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder addAllChannelAudienceDemographics( java.lang.Iterable values) { if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, channelAudienceDemographics_); onChanged(); } else { channelAudienceDemographicsBuilder_.addAllMessages(values); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder clearChannelAudienceDemographics() { if (channelAudienceDemographicsBuilder_ == null) { channelAudienceDemographics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { channelAudienceDemographicsBuilder_.clear(); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public Builder removeChannelAudienceDemographics(int index) { if (channelAudienceDemographicsBuilder_ == null) { ensureChannelAudienceDemographicsIsMutable(); channelAudienceDemographics_.remove(index); onChanged(); } else { channelAudienceDemographicsBuilder_.remove(index); } return this; } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder getChannelAudienceDemographicsBuilder( int index) { return getChannelAudienceDemographicsFieldBuilder().getBuilder(index); } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder getChannelAudienceDemographicsOrBuilder( int index) { if (channelAudienceDemographicsBuilder_ == null) { return channelAudienceDemographics_.get(index); } else { return channelAudienceDemographicsBuilder_.getMessageOrBuilder(index); } } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public java.util.List getChannelAudienceDemographicsOrBuilderList() { if (channelAudienceDemographicsBuilder_ != null) { return channelAudienceDemographicsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(channelAudienceDemographics_); } } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder addChannelAudienceDemographicsBuilder() { return getChannelAudienceDemographicsFieldBuilder().addBuilder( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder addChannelAudienceDemographicsBuilder( int index) { return getChannelAudienceDemographicsFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * The types of audiences and demographics associated with a channel's main
     * audience. Audiences and demographics will have a breakdown of subscriber
     * share across dimensions of the same value.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_audience_demographics = 4; */ public java.util.List getChannelAudienceDemographicsBuilderList() { return getChannelAudienceDemographicsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder> getChannelAudienceDemographicsFieldBuilder() { if (channelAudienceDemographicsBuilder_ == null) { channelAudienceDemographicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder>( channelAudienceDemographics_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); channelAudienceDemographics_ = null; } return channelAudienceDemographicsBuilder_; } private java.util.List channelAttributes_ = java.util.Collections.emptyList(); private void ensureChannelAttributesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { channelAttributes_ = new java.util.ArrayList(channelAttributes_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder> channelAttributesBuilder_; /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public java.util.List getChannelAttributesList() { if (channelAttributesBuilder_ == null) { return java.util.Collections.unmodifiableList(channelAttributes_); } else { return channelAttributesBuilder_.getMessageList(); } } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public int getChannelAttributesCount() { if (channelAttributesBuilder_ == null) { return channelAttributes_.size(); } else { return channelAttributesBuilder_.getCount(); } } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata getChannelAttributes(int index) { if (channelAttributesBuilder_ == null) { return channelAttributes_.get(index); } else { return channelAttributesBuilder_.getMessage(index); } } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder setChannelAttributes( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAttributesIsMutable(); channelAttributes_.set(index, value); onChanged(); } else { channelAttributesBuilder_.setMessage(index, value); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder setChannelAttributes( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); channelAttributes_.set(index, builderForValue.build()); onChanged(); } else { channelAttributesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder addChannelAttributes(com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAttributesIsMutable(); channelAttributes_.add(value); onChanged(); } else { channelAttributesBuilder_.addMessage(value); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder addChannelAttributes( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata value) { if (channelAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelAttributesIsMutable(); channelAttributes_.add(index, value); onChanged(); } else { channelAttributesBuilder_.addMessage(index, value); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder addChannelAttributes( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); channelAttributes_.add(builderForValue.build()); onChanged(); } else { channelAttributesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder addChannelAttributes( int index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); channelAttributes_.add(index, builderForValue.build()); onChanged(); } else { channelAttributesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder addAllChannelAttributes( java.lang.Iterable values) { if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, channelAttributes_); onChanged(); } else { channelAttributesBuilder_.addAllMessages(values); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder clearChannelAttributes() { if (channelAttributesBuilder_ == null) { channelAttributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { channelAttributesBuilder_.clear(); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public Builder removeChannelAttributes(int index) { if (channelAttributesBuilder_ == null) { ensureChannelAttributesIsMutable(); channelAttributes_.remove(index); onChanged(); } else { channelAttributesBuilder_.remove(index); } return this; } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder getChannelAttributesBuilder( int index) { return getChannelAttributesFieldBuilder().getBuilder(index); } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder getChannelAttributesOrBuilder( int index) { if (channelAttributesBuilder_ == null) { return channelAttributes_.get(index); } else { return channelAttributesBuilder_.getMessageOrBuilder(index); } } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public java.util.List getChannelAttributesOrBuilderList() { if (channelAttributesBuilder_ != null) { return channelAttributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(channelAttributes_); } } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder addChannelAttributesBuilder() { return getChannelAttributesFieldBuilder().addBuilder( com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder addChannelAttributesBuilder( int index) { return getChannelAttributesFieldBuilder().addBuilder( index, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * The attributes associated with the content made by a channel.
     * 
* * repeated .google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata channel_attributes = 5; */ public java.util.List getChannelAttributesBuilderList() { return getChannelAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder> getChannelAttributesFieldBuilder() { if (channelAttributesBuilder_ == null) { channelAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeMetadataOrBuilder>( channelAttributes_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); channelAttributes_ = null; } return channelAttributesBuilder_; } private java.lang.Object channelType_ = ""; /** *
     * Metadata string associated with the type of channel.
     * 
* * string channel_type = 6; * @return The channelType. */ public java.lang.String getChannelType() { java.lang.Object ref = channelType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); channelType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Metadata string associated with the type of channel.
     * 
* * string channel_type = 6; * @return The bytes for channelType. */ public com.google.protobuf.ByteString getChannelTypeBytes() { java.lang.Object ref = channelType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Metadata string associated with the type of channel.
     * 
* * string channel_type = 6; * @param value The channelType to set. * @return This builder for chaining. */ public Builder setChannelType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Metadata string associated with the type of channel.
     * 
* * string channel_type = 6; * @return This builder for chaining. */ public Builder clearChannelType() { channelType_ = getDefaultInstance().getChannelType(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Metadata string associated with the type of channel.
     * 
* * string channel_type = 6; * @param value The bytes for channelType to set. * @return This builder for chaining. */ public Builder setChannelTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v18.services.YouTubeChannelInsights) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.YouTubeChannelInsights) private static final com.google.ads.googleads.v18.services.YouTubeChannelInsights DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.YouTubeChannelInsights(); } public static com.google.ads.googleads.v18.services.YouTubeChannelInsights getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public YouTubeChannelInsights parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v18.services.YouTubeChannelInsights getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy