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

com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata Maven / Gradle / Ivy

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

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

/**
 * 
 * Metadata associated with a Dynamic Lineup attribute.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.DynamicLineupAttributeMetadata} */ public final class DynamicLineupAttributeMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata) DynamicLineupAttributeMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicLineupAttributeMetadata.newBuilder() to construct. private DynamicLineupAttributeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicLineupAttributeMetadata() { sampleChannels_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicLineupAttributeMetadata(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.class, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.Builder.class); } public interface SampleChannelOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel) com.google.protobuf.MessageOrBuilder { /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return Whether the youtubeChannel field is set. */ boolean hasYoutubeChannel(); /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return The youtubeChannel. */ com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel(); /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder(); /** *
     * The name of the sample channel.
     * 
* * string display_name = 2; * @return The displayName. */ java.lang.String getDisplayName(); /** *
     * The name of the sample channel.
     * 
* * string display_name = 2; * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return Whether the youtubeChannelMetadata field is set. */ boolean hasYoutubeChannelMetadata(); /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return The youtubeChannelMetadata. */ com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata getYoutubeChannelMetadata(); /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder getYoutubeChannelMetadataOrBuilder(); } /** *
   * A YouTube channel returned as an example of the content in a lineup.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel} */ public static final class SampleChannel extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel) SampleChannelOrBuilder { private static final long serialVersionUID = 0L; // Use SampleChannel.newBuilder() to construct. private SampleChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SampleChannel() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SampleChannel(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_SampleChannel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_SampleChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.class, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder.class); } private int bitField0_; public static final int YOUTUBE_CHANNEL_FIELD_NUMBER = 1; private com.google.ads.googleads.v17.common.YouTubeChannelInfo youtubeChannel_; /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return Whether the youtubeChannel field is set. */ @java.lang.Override public boolean hasYoutubeChannel() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return The youtubeChannel. */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() { return youtubeChannel_ == null ? com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } /** *
     * A YouTube channel.
     * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ @java.lang.Override public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { return youtubeChannel_ == null ? com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** *
     * The name of the sample channel.
     * 
* * string display_name = 2; * @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 sample channel.
     * 
* * string display_name = 2; * @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_METADATA_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtubeChannelMetadata_; /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return Whether the youtubeChannelMetadata field is set. */ @java.lang.Override public boolean hasYoutubeChannelMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return The youtubeChannelMetadata. */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata getYoutubeChannelMetadata() { return youtubeChannelMetadata_ == null ? com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.getDefaultInstance() : youtubeChannelMetadata_; } /** *
     * Metadata for the sample channel.
     * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ @java.lang.Override public com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder getYoutubeChannelMetadataOrBuilder() { return youtubeChannelMetadata_ == null ? com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.getDefaultInstance() : youtubeChannelMetadata_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getYoutubeChannel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getYoutubeChannelMetadata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getYoutubeChannel()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getYoutubeChannelMetadata()); } 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel)) { return super.equals(obj); } com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel other = (com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel) obj; if (hasYoutubeChannel() != other.hasYoutubeChannel()) return false; if (hasYoutubeChannel()) { if (!getYoutubeChannel() .equals(other.getYoutubeChannel())) return false; } if (!getDisplayName() .equals(other.getDisplayName())) return false; if (hasYoutubeChannelMetadata() != other.hasYoutubeChannelMetadata()) return false; if (hasYoutubeChannelMetadata()) { if (!getYoutubeChannelMetadata() .equals(other.getYoutubeChannelMetadata())) 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(); if (hasYoutubeChannel()) { hash = (37 * hash) + YOUTUBE_CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getYoutubeChannel().hashCode(); } hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); if (hasYoutubeChannelMetadata()) { hash = (37 * hash) + YOUTUBE_CHANNEL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getYoutubeChannelMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel 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; } /** *
     * A YouTube channel returned as an example of the content in a lineup.
     * 
* * Protobuf type {@code google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel) com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_SampleChannel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_SampleChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.class, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder.class); } // Construct using com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.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(); getYoutubeChannelMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; youtubeChannel_ = null; if (youtubeChannelBuilder_ != null) { youtubeChannelBuilder_.dispose(); youtubeChannelBuilder_ = null; } displayName_ = ""; youtubeChannelMetadata_ = null; if (youtubeChannelMetadataBuilder_ != null) { youtubeChannelMetadataBuilder_.dispose(); youtubeChannelMetadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_SampleChannel_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel build() { com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel buildPartial() { com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel result = new com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.youtubeChannel_ = youtubeChannelBuilder_ == null ? youtubeChannel_ : youtubeChannelBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.youtubeChannelMetadata_ = youtubeChannelMetadataBuilder_ == null ? youtubeChannelMetadata_ : youtubeChannelMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel) { return mergeFrom((com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel other) { if (other == com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.getDefaultInstance()) return this; if (other.hasYoutubeChannel()) { mergeYoutubeChannel(other.getYoutubeChannel()); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasYoutubeChannelMetadata()) { mergeYoutubeChannelMetadata(other.getYoutubeChannelMetadata()); } 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: { input.readMessage( getYoutubeChannelFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getYoutubeChannelMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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 com.google.ads.googleads.v17.common.YouTubeChannelInfo youtubeChannel_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder> youtubeChannelBuilder_; /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return Whether the youtubeChannel field is set. */ public boolean hasYoutubeChannel() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; * @return The youtubeChannel. */ public com.google.ads.googleads.v17.common.YouTubeChannelInfo getYoutubeChannel() { if (youtubeChannelBuilder_ == null) { return youtubeChannel_ == null ? com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } else { return youtubeChannelBuilder_.getMessage(); } } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public Builder setYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } youtubeChannel_ = value; } else { youtubeChannelBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public Builder setYoutubeChannel( com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder builderForValue) { if (youtubeChannelBuilder_ == null) { youtubeChannel_ = builderForValue.build(); } else { youtubeChannelBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public Builder mergeYoutubeChannel(com.google.ads.googleads.v17.common.YouTubeChannelInfo value) { if (youtubeChannelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && youtubeChannel_ != null && youtubeChannel_ != com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance()) { getYoutubeChannelBuilder().mergeFrom(value); } else { youtubeChannel_ = value; } } else { youtubeChannelBuilder_.mergeFrom(value); } if (youtubeChannel_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public Builder clearYoutubeChannel() { bitField0_ = (bitField0_ & ~0x00000001); youtubeChannel_ = null; if (youtubeChannelBuilder_ != null) { youtubeChannelBuilder_.dispose(); youtubeChannelBuilder_ = null; } onChanged(); return this; } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder getYoutubeChannelBuilder() { bitField0_ |= 0x00000001; onChanged(); return getYoutubeChannelFieldBuilder().getBuilder(); } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ public com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder getYoutubeChannelOrBuilder() { if (youtubeChannelBuilder_ != null) { return youtubeChannelBuilder_.getMessageOrBuilder(); } else { return youtubeChannel_ == null ? com.google.ads.googleads.v17.common.YouTubeChannelInfo.getDefaultInstance() : youtubeChannel_; } } /** *
       * A YouTube channel.
       * 
* * .google.ads.googleads.v17.common.YouTubeChannelInfo youtube_channel = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder> getYoutubeChannelFieldBuilder() { if (youtubeChannelBuilder_ == null) { youtubeChannelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.YouTubeChannelInfo, com.google.ads.googleads.v17.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v17.common.YouTubeChannelInfoOrBuilder>( getYoutubeChannel(), getParentForChildren(), isClean()); youtubeChannel_ = null; } return youtubeChannelBuilder_; } private java.lang.Object displayName_ = ""; /** *
       * The name of the sample channel.
       * 
* * string display_name = 2; * @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 sample channel.
       * 
* * string display_name = 2; * @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 sample channel.
       * 
* * string display_name = 2; * @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_ |= 0x00000002; onChanged(); return this; } /** *
       * The name of the sample channel.
       * 
* * string display_name = 2; * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * The name of the sample channel.
       * 
* * string display_name = 2; * @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_ |= 0x00000002; onChanged(); return this; } private com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtubeChannelMetadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder> youtubeChannelMetadataBuilder_; /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return Whether the youtubeChannelMetadata field is set. */ public boolean hasYoutubeChannelMetadata() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; * @return The youtubeChannelMetadata. */ public com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata getYoutubeChannelMetadata() { if (youtubeChannelMetadataBuilder_ == null) { return youtubeChannelMetadata_ == null ? com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.getDefaultInstance() : youtubeChannelMetadata_; } else { return youtubeChannelMetadataBuilder_.getMessage(); } } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public Builder setYoutubeChannelMetadata(com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata value) { if (youtubeChannelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } youtubeChannelMetadata_ = value; } else { youtubeChannelMetadataBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public Builder setYoutubeChannelMetadata( com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.Builder builderForValue) { if (youtubeChannelMetadataBuilder_ == null) { youtubeChannelMetadata_ = builderForValue.build(); } else { youtubeChannelMetadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public Builder mergeYoutubeChannelMetadata(com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata value) { if (youtubeChannelMetadataBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && youtubeChannelMetadata_ != null && youtubeChannelMetadata_ != com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.getDefaultInstance()) { getYoutubeChannelMetadataBuilder().mergeFrom(value); } else { youtubeChannelMetadata_ = value; } } else { youtubeChannelMetadataBuilder_.mergeFrom(value); } if (youtubeChannelMetadata_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public Builder clearYoutubeChannelMetadata() { bitField0_ = (bitField0_ & ~0x00000004); youtubeChannelMetadata_ = null; if (youtubeChannelMetadataBuilder_ != null) { youtubeChannelMetadataBuilder_.dispose(); youtubeChannelMetadataBuilder_ = null; } onChanged(); return this; } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.Builder getYoutubeChannelMetadataBuilder() { bitField0_ |= 0x00000004; onChanged(); return getYoutubeChannelMetadataFieldBuilder().getBuilder(); } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ public com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder getYoutubeChannelMetadataOrBuilder() { if (youtubeChannelMetadataBuilder_ != null) { return youtubeChannelMetadataBuilder_.getMessageOrBuilder(); } else { return youtubeChannelMetadata_ == null ? com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.getDefaultInstance() : youtubeChannelMetadata_; } } /** *
       * Metadata for the sample channel.
       * 
* * .google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata youtube_channel_metadata = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder> getYoutubeChannelMetadataFieldBuilder() { if (youtubeChannelMetadataBuilder_ == null) { youtubeChannelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadata.Builder, com.google.ads.googleads.v17.services.YouTubeChannelAttributeMetadataOrBuilder>( getYoutubeChannelMetadata(), getParentForChildren(), isClean()); youtubeChannelMetadata_ = null; } return youtubeChannelMetadataBuilder_; } @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.v17.services.DynamicLineupAttributeMetadata.SampleChannel) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel) private static final com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel(); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SampleChannel 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.v17.services.DynamicLineupAttributeMetadata.SampleChannel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int INVENTORY_COUNTRY_FIELD_NUMBER = 1; private com.google.ads.googleads.v17.common.LocationInfo inventoryCountry_; /** *
   * The national market associated with the lineup.
   * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; * @return Whether the inventoryCountry field is set. */ @java.lang.Override public boolean hasInventoryCountry() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The national market associated with the lineup.
   * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; * @return The inventoryCountry. */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfo getInventoryCountry() { return inventoryCountry_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : inventoryCountry_; } /** *
   * The national market associated with the lineup.
   * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ @java.lang.Override public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getInventoryCountryOrBuilder() { return inventoryCountry_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : inventoryCountry_; } public static final int MEDIAN_MONTHLY_INVENTORY_FIELD_NUMBER = 2; private long medianMonthlyInventory_ = 0L; /** *
   * The median number of impressions per month on this lineup.
   * 
* * optional int64 median_monthly_inventory = 2; * @return Whether the medianMonthlyInventory field is set. */ @java.lang.Override public boolean hasMedianMonthlyInventory() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The median number of impressions per month on this lineup.
   * 
* * optional int64 median_monthly_inventory = 2; * @return The medianMonthlyInventory. */ @java.lang.Override public long getMedianMonthlyInventory() { return medianMonthlyInventory_; } public static final int CHANNEL_COUNT_LOWER_BOUND_FIELD_NUMBER = 3; private long channelCountLowerBound_ = 0L; /** *
   * The lower end of a range containing the number of channels in the lineup.
   * 
* * optional int64 channel_count_lower_bound = 3; * @return Whether the channelCountLowerBound field is set. */ @java.lang.Override public boolean hasChannelCountLowerBound() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The lower end of a range containing the number of channels in the lineup.
   * 
* * optional int64 channel_count_lower_bound = 3; * @return The channelCountLowerBound. */ @java.lang.Override public long getChannelCountLowerBound() { return channelCountLowerBound_; } public static final int CHANNEL_COUNT_UPPER_BOUND_FIELD_NUMBER = 4; private long channelCountUpperBound_ = 0L; /** *
   * The upper end of a range containing the number of channels in the lineup.
   * 
* * optional int64 channel_count_upper_bound = 4; * @return Whether the channelCountUpperBound field is set. */ @java.lang.Override public boolean hasChannelCountUpperBound() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The upper end of a range containing the number of channels in the lineup.
   * 
* * optional int64 channel_count_upper_bound = 4; * @return The channelCountUpperBound. */ @java.lang.Override public long getChannelCountUpperBound() { return channelCountUpperBound_; } public static final int SAMPLE_CHANNELS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private java.util.List sampleChannels_; /** *
   * Examples of channels that are included in the lineup.
   * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ @java.lang.Override public java.util.List getSampleChannelsList() { return sampleChannels_; } /** *
   * Examples of channels that are included in the lineup.
   * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ @java.lang.Override public java.util.List getSampleChannelsOrBuilderList() { return sampleChannels_; } /** *
   * Examples of channels that are included in the lineup.
   * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ @java.lang.Override public int getSampleChannelsCount() { return sampleChannels_.size(); } /** *
   * Examples of channels that are included in the lineup.
   * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel getSampleChannels(int index) { return sampleChannels_.get(index); } /** *
   * Examples of channels that are included in the lineup.
   * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder getSampleChannelsOrBuilder( int index) { return sampleChannels_.get(index); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getInventoryCountry()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, medianMonthlyInventory_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, channelCountLowerBound_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(4, channelCountUpperBound_); } for (int i = 0; i < sampleChannels_.size(); i++) { output.writeMessage(5, sampleChannels_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInventoryCountry()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, medianMonthlyInventory_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, channelCountLowerBound_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, channelCountUpperBound_); } for (int i = 0; i < sampleChannels_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, sampleChannels_.get(i)); } 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.v17.services.DynamicLineupAttributeMetadata)) { return super.equals(obj); } com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata other = (com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata) obj; if (hasInventoryCountry() != other.hasInventoryCountry()) return false; if (hasInventoryCountry()) { if (!getInventoryCountry() .equals(other.getInventoryCountry())) return false; } if (hasMedianMonthlyInventory() != other.hasMedianMonthlyInventory()) return false; if (hasMedianMonthlyInventory()) { if (getMedianMonthlyInventory() != other.getMedianMonthlyInventory()) return false; } if (hasChannelCountLowerBound() != other.hasChannelCountLowerBound()) return false; if (hasChannelCountLowerBound()) { if (getChannelCountLowerBound() != other.getChannelCountLowerBound()) return false; } if (hasChannelCountUpperBound() != other.hasChannelCountUpperBound()) return false; if (hasChannelCountUpperBound()) { if (getChannelCountUpperBound() != other.getChannelCountUpperBound()) return false; } if (!getSampleChannelsList() .equals(other.getSampleChannelsList())) 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(); if (hasInventoryCountry()) { hash = (37 * hash) + INVENTORY_COUNTRY_FIELD_NUMBER; hash = (53 * hash) + getInventoryCountry().hashCode(); } if (hasMedianMonthlyInventory()) { hash = (37 * hash) + MEDIAN_MONTHLY_INVENTORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMedianMonthlyInventory()); } if (hasChannelCountLowerBound()) { hash = (37 * hash) + CHANNEL_COUNT_LOWER_BOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getChannelCountLowerBound()); } if (hasChannelCountUpperBound()) { hash = (37 * hash) + CHANNEL_COUNT_UPPER_BOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getChannelCountUpperBound()); } if (getSampleChannelsCount() > 0) { hash = (37 * hash) + SAMPLE_CHANNELS_FIELD_NUMBER; hash = (53 * hash) + getSampleChannelsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata 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; } /** *
   * Metadata associated with a Dynamic Lineup attribute.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.DynamicLineupAttributeMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata) com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.class, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.Builder.class); } // Construct using com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInventoryCountryFieldBuilder(); getSampleChannelsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; inventoryCountry_ = null; if (inventoryCountryBuilder_ != null) { inventoryCountryBuilder_.dispose(); inventoryCountryBuilder_ = null; } medianMonthlyInventory_ = 0L; channelCountLowerBound_ = 0L; channelCountUpperBound_ = 0L; if (sampleChannelsBuilder_ == null) { sampleChannels_ = java.util.Collections.emptyList(); } else { sampleChannels_ = null; sampleChannelsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_DynamicLineupAttributeMetadata_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata build() { com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata buildPartial() { com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata result = new com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata result) { if (sampleChannelsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { sampleChannels_ = java.util.Collections.unmodifiableList(sampleChannels_); bitField0_ = (bitField0_ & ~0x00000010); } result.sampleChannels_ = sampleChannels_; } else { result.sampleChannels_ = sampleChannelsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.inventoryCountry_ = inventoryCountryBuilder_ == null ? inventoryCountry_ : inventoryCountryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.medianMonthlyInventory_ = medianMonthlyInventory_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.channelCountLowerBound_ = channelCountLowerBound_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.channelCountUpperBound_ = channelCountUpperBound_; to_bitField0_ |= 0x00000008; } 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.v17.services.DynamicLineupAttributeMetadata) { return mergeFrom((com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata other) { if (other == com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.getDefaultInstance()) return this; if (other.hasInventoryCountry()) { mergeInventoryCountry(other.getInventoryCountry()); } if (other.hasMedianMonthlyInventory()) { setMedianMonthlyInventory(other.getMedianMonthlyInventory()); } if (other.hasChannelCountLowerBound()) { setChannelCountLowerBound(other.getChannelCountLowerBound()); } if (other.hasChannelCountUpperBound()) { setChannelCountUpperBound(other.getChannelCountUpperBound()); } if (sampleChannelsBuilder_ == null) { if (!other.sampleChannels_.isEmpty()) { if (sampleChannels_.isEmpty()) { sampleChannels_ = other.sampleChannels_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSampleChannelsIsMutable(); sampleChannels_.addAll(other.sampleChannels_); } onChanged(); } } else { if (!other.sampleChannels_.isEmpty()) { if (sampleChannelsBuilder_.isEmpty()) { sampleChannelsBuilder_.dispose(); sampleChannelsBuilder_ = null; sampleChannels_ = other.sampleChannels_; bitField0_ = (bitField0_ & ~0x00000010); sampleChannelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSampleChannelsFieldBuilder() : null; } else { sampleChannelsBuilder_.addAllMessages(other.sampleChannels_); } } } 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: { input.readMessage( getInventoryCountryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { medianMonthlyInventory_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { channelCountLowerBound_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { channelCountUpperBound_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel m = input.readMessage( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.parser(), extensionRegistry); if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); sampleChannels_.add(m); } else { sampleChannelsBuilder_.addMessage(m); } break; } // case 42 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 com.google.ads.googleads.v17.common.LocationInfo inventoryCountry_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> inventoryCountryBuilder_; /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; * @return Whether the inventoryCountry field is set. */ public boolean hasInventoryCountry() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; * @return The inventoryCountry. */ public com.google.ads.googleads.v17.common.LocationInfo getInventoryCountry() { if (inventoryCountryBuilder_ == null) { return inventoryCountry_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : inventoryCountry_; } else { return inventoryCountryBuilder_.getMessage(); } } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public Builder setInventoryCountry(com.google.ads.googleads.v17.common.LocationInfo value) { if (inventoryCountryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } inventoryCountry_ = value; } else { inventoryCountryBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public Builder setInventoryCountry( com.google.ads.googleads.v17.common.LocationInfo.Builder builderForValue) { if (inventoryCountryBuilder_ == null) { inventoryCountry_ = builderForValue.build(); } else { inventoryCountryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public Builder mergeInventoryCountry(com.google.ads.googleads.v17.common.LocationInfo value) { if (inventoryCountryBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && inventoryCountry_ != null && inventoryCountry_ != com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance()) { getInventoryCountryBuilder().mergeFrom(value); } else { inventoryCountry_ = value; } } else { inventoryCountryBuilder_.mergeFrom(value); } if (inventoryCountry_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public Builder clearInventoryCountry() { bitField0_ = (bitField0_ & ~0x00000001); inventoryCountry_ = null; if (inventoryCountryBuilder_ != null) { inventoryCountryBuilder_.dispose(); inventoryCountryBuilder_ = null; } onChanged(); return this; } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public com.google.ads.googleads.v17.common.LocationInfo.Builder getInventoryCountryBuilder() { bitField0_ |= 0x00000001; onChanged(); return getInventoryCountryFieldBuilder().getBuilder(); } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ public com.google.ads.googleads.v17.common.LocationInfoOrBuilder getInventoryCountryOrBuilder() { if (inventoryCountryBuilder_ != null) { return inventoryCountryBuilder_.getMessageOrBuilder(); } else { return inventoryCountry_ == null ? com.google.ads.googleads.v17.common.LocationInfo.getDefaultInstance() : inventoryCountry_; } } /** *
     * The national market associated with the lineup.
     * 
* * .google.ads.googleads.v17.common.LocationInfo inventory_country = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder> getInventoryCountryFieldBuilder() { if (inventoryCountryBuilder_ == null) { inventoryCountryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.LocationInfo, com.google.ads.googleads.v17.common.LocationInfo.Builder, com.google.ads.googleads.v17.common.LocationInfoOrBuilder>( getInventoryCountry(), getParentForChildren(), isClean()); inventoryCountry_ = null; } return inventoryCountryBuilder_; } private long medianMonthlyInventory_ ; /** *
     * The median number of impressions per month on this lineup.
     * 
* * optional int64 median_monthly_inventory = 2; * @return Whether the medianMonthlyInventory field is set. */ @java.lang.Override public boolean hasMedianMonthlyInventory() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The median number of impressions per month on this lineup.
     * 
* * optional int64 median_monthly_inventory = 2; * @return The medianMonthlyInventory. */ @java.lang.Override public long getMedianMonthlyInventory() { return medianMonthlyInventory_; } /** *
     * The median number of impressions per month on this lineup.
     * 
* * optional int64 median_monthly_inventory = 2; * @param value The medianMonthlyInventory to set. * @return This builder for chaining. */ public Builder setMedianMonthlyInventory(long value) { medianMonthlyInventory_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The median number of impressions per month on this lineup.
     * 
* * optional int64 median_monthly_inventory = 2; * @return This builder for chaining. */ public Builder clearMedianMonthlyInventory() { bitField0_ = (bitField0_ & ~0x00000002); medianMonthlyInventory_ = 0L; onChanged(); return this; } private long channelCountLowerBound_ ; /** *
     * The lower end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_lower_bound = 3; * @return Whether the channelCountLowerBound field is set. */ @java.lang.Override public boolean hasChannelCountLowerBound() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The lower end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_lower_bound = 3; * @return The channelCountLowerBound. */ @java.lang.Override public long getChannelCountLowerBound() { return channelCountLowerBound_; } /** *
     * The lower end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_lower_bound = 3; * @param value The channelCountLowerBound to set. * @return This builder for chaining. */ public Builder setChannelCountLowerBound(long value) { channelCountLowerBound_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The lower end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_lower_bound = 3; * @return This builder for chaining. */ public Builder clearChannelCountLowerBound() { bitField0_ = (bitField0_ & ~0x00000004); channelCountLowerBound_ = 0L; onChanged(); return this; } private long channelCountUpperBound_ ; /** *
     * The upper end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_upper_bound = 4; * @return Whether the channelCountUpperBound field is set. */ @java.lang.Override public boolean hasChannelCountUpperBound() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The upper end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_upper_bound = 4; * @return The channelCountUpperBound. */ @java.lang.Override public long getChannelCountUpperBound() { return channelCountUpperBound_; } /** *
     * The upper end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_upper_bound = 4; * @param value The channelCountUpperBound to set. * @return This builder for chaining. */ public Builder setChannelCountUpperBound(long value) { channelCountUpperBound_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The upper end of a range containing the number of channels in the lineup.
     * 
* * optional int64 channel_count_upper_bound = 4; * @return This builder for chaining. */ public Builder clearChannelCountUpperBound() { bitField0_ = (bitField0_ & ~0x00000008); channelCountUpperBound_ = 0L; onChanged(); return this; } private java.util.List sampleChannels_ = java.util.Collections.emptyList(); private void ensureSampleChannelsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { sampleChannels_ = new java.util.ArrayList(sampleChannels_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder> sampleChannelsBuilder_; /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public java.util.List getSampleChannelsList() { if (sampleChannelsBuilder_ == null) { return java.util.Collections.unmodifiableList(sampleChannels_); } else { return sampleChannelsBuilder_.getMessageList(); } } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public int getSampleChannelsCount() { if (sampleChannelsBuilder_ == null) { return sampleChannels_.size(); } else { return sampleChannelsBuilder_.getCount(); } } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel getSampleChannels(int index) { if (sampleChannelsBuilder_ == null) { return sampleChannels_.get(index); } else { return sampleChannelsBuilder_.getMessage(index); } } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder setSampleChannels( int index, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel value) { if (sampleChannelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleChannelsIsMutable(); sampleChannels_.set(index, value); onChanged(); } else { sampleChannelsBuilder_.setMessage(index, value); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder setSampleChannels( int index, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder builderForValue) { if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); sampleChannels_.set(index, builderForValue.build()); onChanged(); } else { sampleChannelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder addSampleChannels(com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel value) { if (sampleChannelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleChannelsIsMutable(); sampleChannels_.add(value); onChanged(); } else { sampleChannelsBuilder_.addMessage(value); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder addSampleChannels( int index, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel value) { if (sampleChannelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSampleChannelsIsMutable(); sampleChannels_.add(index, value); onChanged(); } else { sampleChannelsBuilder_.addMessage(index, value); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder addSampleChannels( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder builderForValue) { if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); sampleChannels_.add(builderForValue.build()); onChanged(); } else { sampleChannelsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder addSampleChannels( int index, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder builderForValue) { if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); sampleChannels_.add(index, builderForValue.build()); onChanged(); } else { sampleChannelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder addAllSampleChannels( java.lang.Iterable values) { if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sampleChannels_); onChanged(); } else { sampleChannelsBuilder_.addAllMessages(values); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder clearSampleChannels() { if (sampleChannelsBuilder_ == null) { sampleChannels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { sampleChannelsBuilder_.clear(); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public Builder removeSampleChannels(int index) { if (sampleChannelsBuilder_ == null) { ensureSampleChannelsIsMutable(); sampleChannels_.remove(index); onChanged(); } else { sampleChannelsBuilder_.remove(index); } return this; } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder getSampleChannelsBuilder( int index) { return getSampleChannelsFieldBuilder().getBuilder(index); } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder getSampleChannelsOrBuilder( int index) { if (sampleChannelsBuilder_ == null) { return sampleChannels_.get(index); } else { return sampleChannelsBuilder_.getMessageOrBuilder(index); } } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public java.util.List getSampleChannelsOrBuilderList() { if (sampleChannelsBuilder_ != null) { return sampleChannelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sampleChannels_); } } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder addSampleChannelsBuilder() { return getSampleChannelsFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.getDefaultInstance()); } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder addSampleChannelsBuilder( int index) { return getSampleChannelsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.getDefaultInstance()); } /** *
     * Examples of channels that are included in the lineup.
     * 
* * repeated .google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel sample_channels = 5; */ public java.util.List getSampleChannelsBuilderList() { return getSampleChannelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder> getSampleChannelsFieldBuilder() { if (sampleChannelsBuilder_ == null) { sampleChannelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannel.Builder, com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata.SampleChannelOrBuilder>( sampleChannels_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); sampleChannels_ = null; } return sampleChannelsBuilder_; } @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.v17.services.DynamicLineupAttributeMetadata) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.DynamicLineupAttributeMetadata) private static final com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata(); } public static com.google.ads.googleads.v17.services.DynamicLineupAttributeMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicLineupAttributeMetadata 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.v17.services.DynamicLineupAttributeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy