
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v18 Show documentation
Show all versions of google-ads-stubs-v18 Show documentation
Stubs for GAAPI version google-ads-stubs-v18
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;
/**
*
* Request message for [ContentCreatorInsightsService.GenerateCreatorInsights]
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest}
*/
public final class GenerateCreatorInsightsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest)
GenerateCreatorInsightsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenerateCreatorInsightsRequest.newBuilder() to construct.
private GenerateCreatorInsightsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenerateCreatorInsightsRequest() {
customerId_ = "";
customerInsightsGroup_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GenerateCreatorInsightsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_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_GenerateCreatorInsightsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.Builder.class);
}
public interface SearchAttributesOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List
getAudienceAttributesList();
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.AudienceInsightsAttribute getAudienceAttributes(int index);
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
int getAudienceAttributesCount();
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getAudienceAttributesOrBuilderList();
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getAudienceAttributesOrBuilder(
int index);
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List
getCreatorAttributesList();
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.AudienceInsightsAttribute getCreatorAttributes(int index);
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
int getCreatorAttributesCount();
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getCreatorAttributesOrBuilderList();
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getCreatorAttributesOrBuilder(
int index);
}
/**
*
* The audience attributes (such as Age, Gender, Affinity, and In-Market) and
* creator attributes (such as creator location and creator's content topics)
* used to search for top creators.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes}
*/
public static final class SearchAttributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)
SearchAttributesOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchAttributes.newBuilder() to construct.
private SearchAttributes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchAttributes() {
audienceAttributes_ = java.util.Collections.emptyList();
creatorAttributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchAttributes();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_SearchAttributes_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_GenerateCreatorInsightsRequest_SearchAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder.class);
}
public static final int AUDIENCE_ATTRIBUTES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List audienceAttributes_;
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List getAudienceAttributesList() {
return audienceAttributes_;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getAudienceAttributesOrBuilderList() {
return audienceAttributes_;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public int getAudienceAttributesCount() {
return audienceAttributes_.size();
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute getAudienceAttributes(int index) {
return audienceAttributes_.get(index);
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getAudienceAttributesOrBuilder(
int index) {
return audienceAttributes_.get(index);
}
public static final int CREATOR_ATTRIBUTES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List creatorAttributes_;
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List getCreatorAttributesList() {
return creatorAttributes_;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getCreatorAttributesOrBuilderList() {
return creatorAttributes_;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public int getCreatorAttributesCount() {
return creatorAttributes_.size();
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute getCreatorAttributes(int index) {
return creatorAttributes_.get(index);
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getCreatorAttributesOrBuilder(
int index) {
return creatorAttributes_.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 {
for (int i = 0; i < audienceAttributes_.size(); i++) {
output.writeMessage(1, audienceAttributes_.get(i));
}
for (int i = 0; i < creatorAttributes_.size(); i++) {
output.writeMessage(2, creatorAttributes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < audienceAttributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, audienceAttributes_.get(i));
}
for (int i = 0; i < creatorAttributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, creatorAttributes_.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.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes other = (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) obj;
if (!getAudienceAttributesList()
.equals(other.getAudienceAttributesList())) return false;
if (!getCreatorAttributesList()
.equals(other.getCreatorAttributesList())) 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 (getAudienceAttributesCount() > 0) {
hash = (37 * hash) + AUDIENCE_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAudienceAttributesList().hashCode();
}
if (getCreatorAttributesCount() > 0) {
hash = (37 * hash) + CREATOR_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getCreatorAttributesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes 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;
}
/**
*
* The audience attributes (such as Age, Gender, Affinity, and In-Market) and
* creator attributes (such as creator location and creator's content topics)
* used to search for top creators.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_SearchAttributes_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_GenerateCreatorInsightsRequest_SearchAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder.class);
}
// Construct using com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (audienceAttributesBuilder_ == null) {
audienceAttributes_ = java.util.Collections.emptyList();
} else {
audienceAttributes_ = null;
audienceAttributesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (creatorAttributesBuilder_ == null) {
creatorAttributes_ = java.util.Collections.emptyList();
} else {
creatorAttributes_ = null;
creatorAttributesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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_GenerateCreatorInsightsRequest_SearchAttributes_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes getDefaultInstanceForType() {
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes build() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes buildPartial() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes result = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes result) {
if (audienceAttributesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
audienceAttributes_ = java.util.Collections.unmodifiableList(audienceAttributes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.audienceAttributes_ = audienceAttributes_;
} else {
result.audienceAttributes_ = audienceAttributesBuilder_.build();
}
if (creatorAttributesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
creatorAttributes_ = java.util.Collections.unmodifiableList(creatorAttributes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.creatorAttributes_ = creatorAttributes_;
} else {
result.creatorAttributes_ = creatorAttributesBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes result) {
int from_bitField0_ = 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.GenerateCreatorInsightsRequest.SearchAttributes) {
return mergeFrom((com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes other) {
if (other == com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance()) return this;
if (audienceAttributesBuilder_ == null) {
if (!other.audienceAttributes_.isEmpty()) {
if (audienceAttributes_.isEmpty()) {
audienceAttributes_ = other.audienceAttributes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAudienceAttributesIsMutable();
audienceAttributes_.addAll(other.audienceAttributes_);
}
onChanged();
}
} else {
if (!other.audienceAttributes_.isEmpty()) {
if (audienceAttributesBuilder_.isEmpty()) {
audienceAttributesBuilder_.dispose();
audienceAttributesBuilder_ = null;
audienceAttributes_ = other.audienceAttributes_;
bitField0_ = (bitField0_ & ~0x00000001);
audienceAttributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAudienceAttributesFieldBuilder() : null;
} else {
audienceAttributesBuilder_.addAllMessages(other.audienceAttributes_);
}
}
}
if (creatorAttributesBuilder_ == null) {
if (!other.creatorAttributes_.isEmpty()) {
if (creatorAttributes_.isEmpty()) {
creatorAttributes_ = other.creatorAttributes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCreatorAttributesIsMutable();
creatorAttributes_.addAll(other.creatorAttributes_);
}
onChanged();
}
} else {
if (!other.creatorAttributes_.isEmpty()) {
if (creatorAttributesBuilder_.isEmpty()) {
creatorAttributesBuilder_.dispose();
creatorAttributesBuilder_ = null;
creatorAttributes_ = other.creatorAttributes_;
bitField0_ = (bitField0_ & ~0x00000002);
creatorAttributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCreatorAttributesFieldBuilder() : null;
} else {
creatorAttributesBuilder_.addAllMessages(other.creatorAttributes_);
}
}
}
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: {
com.google.ads.googleads.v18.common.AudienceInsightsAttribute m =
input.readMessage(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.parser(),
extensionRegistry);
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
audienceAttributes_.add(m);
} else {
audienceAttributesBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v18.common.AudienceInsightsAttribute m =
input.readMessage(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.parser(),
extensionRegistry);
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
creatorAttributes_.add(m);
} else {
creatorAttributesBuilder_.addMessage(m);
}
break;
} // case 18
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.util.List audienceAttributes_ =
java.util.Collections.emptyList();
private void ensureAudienceAttributesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
audienceAttributes_ = new java.util.ArrayList(audienceAttributes_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder> audienceAttributesBuilder_;
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List getAudienceAttributesList() {
if (audienceAttributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(audienceAttributes_);
} else {
return audienceAttributesBuilder_.getMessageList();
}
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public int getAudienceAttributesCount() {
if (audienceAttributesBuilder_ == null) {
return audienceAttributes_.size();
} else {
return audienceAttributesBuilder_.getCount();
}
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute getAudienceAttributes(int index) {
if (audienceAttributesBuilder_ == null) {
return audienceAttributes_.get(index);
} else {
return audienceAttributesBuilder_.getMessage(index);
}
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setAudienceAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (audienceAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAudienceAttributesIsMutable();
audienceAttributes_.set(index, value);
onChanged();
} else {
audienceAttributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setAudienceAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
audienceAttributes_.set(index, builderForValue.build());
onChanged();
} else {
audienceAttributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAudienceAttributes(com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (audienceAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAudienceAttributesIsMutable();
audienceAttributes_.add(value);
onChanged();
} else {
audienceAttributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAudienceAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (audienceAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAudienceAttributesIsMutable();
audienceAttributes_.add(index, value);
onChanged();
} else {
audienceAttributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAudienceAttributes(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
audienceAttributes_.add(builderForValue.build());
onChanged();
} else {
audienceAttributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAudienceAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
audienceAttributes_.add(index, builderForValue.build());
onChanged();
} else {
audienceAttributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAllAudienceAttributes(
java.lang.Iterable extends com.google.ads.googleads.v18.common.AudienceInsightsAttribute> values) {
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, audienceAttributes_);
onChanged();
} else {
audienceAttributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearAudienceAttributes() {
if (audienceAttributesBuilder_ == null) {
audienceAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
audienceAttributesBuilder_.clear();
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeAudienceAttributes(int index) {
if (audienceAttributesBuilder_ == null) {
ensureAudienceAttributesIsMutable();
audienceAttributes_.remove(index);
onChanged();
} else {
audienceAttributesBuilder_.remove(index);
}
return this;
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder getAudienceAttributesBuilder(
int index) {
return getAudienceAttributesFieldBuilder().getBuilder(index);
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getAudienceAttributesOrBuilder(
int index) {
if (audienceAttributesBuilder_ == null) {
return audienceAttributes_.get(index); } else {
return audienceAttributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getAudienceAttributesOrBuilderList() {
if (audienceAttributesBuilder_ != null) {
return audienceAttributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(audienceAttributes_);
}
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder addAudienceAttributesBuilder() {
return getAudienceAttributesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.getDefaultInstance());
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder addAudienceAttributesBuilder(
int index) {
return getAudienceAttributesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.getDefaultInstance());
}
/**
*
* Optional. Audience attributes that describe an audience of viewers. This
* is used to search for creators whose own viewers match the input
* audience.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute audience_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List
getAudienceAttributesBuilderList() {
return getAudienceAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getAudienceAttributesFieldBuilder() {
if (audienceAttributesBuilder_ == null) {
audienceAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>(
audienceAttributes_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
audienceAttributes_ = null;
}
return audienceAttributesBuilder_;
}
private java.util.List creatorAttributes_ =
java.util.Collections.emptyList();
private void ensureCreatorAttributesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
creatorAttributes_ = new java.util.ArrayList(creatorAttributes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder> creatorAttributesBuilder_;
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List getCreatorAttributesList() {
if (creatorAttributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(creatorAttributes_);
} else {
return creatorAttributesBuilder_.getMessageList();
}
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public int getCreatorAttributesCount() {
if (creatorAttributesBuilder_ == null) {
return creatorAttributes_.size();
} else {
return creatorAttributesBuilder_.getCount();
}
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute getCreatorAttributes(int index) {
if (creatorAttributesBuilder_ == null) {
return creatorAttributes_.get(index);
} else {
return creatorAttributesBuilder_.getMessage(index);
}
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setCreatorAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (creatorAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatorAttributesIsMutable();
creatorAttributes_.set(index, value);
onChanged();
} else {
creatorAttributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setCreatorAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
creatorAttributes_.set(index, builderForValue.build());
onChanged();
} else {
creatorAttributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addCreatorAttributes(com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (creatorAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatorAttributesIsMutable();
creatorAttributes_.add(value);
onChanged();
} else {
creatorAttributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addCreatorAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute value) {
if (creatorAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCreatorAttributesIsMutable();
creatorAttributes_.add(index, value);
onChanged();
} else {
creatorAttributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addCreatorAttributes(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
creatorAttributes_.add(builderForValue.build());
onChanged();
} else {
creatorAttributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addCreatorAttributes(
int index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder builderForValue) {
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
creatorAttributes_.add(index, builderForValue.build());
onChanged();
} else {
creatorAttributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAllCreatorAttributes(
java.lang.Iterable extends com.google.ads.googleads.v18.common.AudienceInsightsAttribute> values) {
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, creatorAttributes_);
onChanged();
} else {
creatorAttributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearCreatorAttributes() {
if (creatorAttributesBuilder_ == null) {
creatorAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
creatorAttributesBuilder_.clear();
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeCreatorAttributes(int index) {
if (creatorAttributesBuilder_ == null) {
ensureCreatorAttributesIsMutable();
creatorAttributes_.remove(index);
onChanged();
} else {
creatorAttributesBuilder_.remove(index);
}
return this;
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder getCreatorAttributesBuilder(
int index) {
return getCreatorAttributesFieldBuilder().getBuilder(index);
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder getCreatorAttributesOrBuilder(
int index) {
if (creatorAttributesBuilder_ == null) {
return creatorAttributes_.get(index); } else {
return creatorAttributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List extends com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getCreatorAttributesOrBuilderList() {
if (creatorAttributesBuilder_ != null) {
return creatorAttributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(creatorAttributes_);
}
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder addCreatorAttributesBuilder() {
return getCreatorAttributesFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.AudienceInsightsAttribute.getDefaultInstance());
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder addCreatorAttributesBuilder(
int index) {
return getCreatorAttributesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.getDefaultInstance());
}
/**
*
* Optional. Creator attributes that describe a collection of types of
* content. This is used to search for creators whose content matches the
* input creator attributes.
*
*
* repeated .google.ads.googleads.v18.common.AudienceInsightsAttribute creator_attributes = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List
getCreatorAttributesBuilderList() {
return getCreatorAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>
getCreatorAttributesFieldBuilder() {
if (creatorAttributesBuilder_ == null) {
creatorAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.AudienceInsightsAttribute, com.google.ads.googleads.v18.common.AudienceInsightsAttribute.Builder, com.google.ads.googleads.v18.common.AudienceInsightsAttributeOrBuilder>(
creatorAttributes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
creatorAttributes_ = null;
}
return creatorAttributesBuilder_;
}
@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.GenerateCreatorInsightsRequest.SearchAttributes)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes)
private static final com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes();
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchAttributes 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.GenerateCreatorInsightsRequest.SearchAttributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface YouTubeChannelsOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List
getYoutubeChannelsList();
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.YouTubeChannelInfo getYoutubeChannels(int index);
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
int getYoutubeChannelsCount();
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
java.util.List extends com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelsOrBuilderList();
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder getYoutubeChannelsOrBuilder(
int index);
}
/**
*
* A collection of YouTube Channels.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels}
*/
public static final class YouTubeChannels extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)
YouTubeChannelsOrBuilder {
private static final long serialVersionUID = 0L;
// Use YouTubeChannels.newBuilder() to construct.
private YouTubeChannels(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private YouTubeChannels() {
youtubeChannels_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new YouTubeChannels();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_YouTubeChannels_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_GenerateCreatorInsightsRequest_YouTubeChannels_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder.class);
}
public static final int YOUTUBE_CHANNELS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List youtubeChannels_;
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List getYoutubeChannelsList() {
return youtubeChannels_;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelsOrBuilderList() {
return youtubeChannels_;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public int getYoutubeChannelsCount() {
return youtubeChannels_.size();
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.YouTubeChannelInfo getYoutubeChannels(int index) {
return youtubeChannels_.get(index);
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder getYoutubeChannelsOrBuilder(
int index) {
return youtubeChannels_.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 {
for (int i = 0; i < youtubeChannels_.size(); i++) {
output.writeMessage(1, youtubeChannels_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < youtubeChannels_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, youtubeChannels_.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.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels other = (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) obj;
if (!getYoutubeChannelsList()
.equals(other.getYoutubeChannelsList())) 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 (getYoutubeChannelsCount() > 0) {
hash = (37 * hash) + YOUTUBE_CHANNELS_FIELD_NUMBER;
hash = (53 * hash) + getYoutubeChannelsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels 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 collection of YouTube Channels.
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_YouTubeChannels_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_GenerateCreatorInsightsRequest_YouTubeChannels_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder.class);
}
// Construct using com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (youtubeChannelsBuilder_ == null) {
youtubeChannels_ = java.util.Collections.emptyList();
} else {
youtubeChannels_ = null;
youtubeChannelsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
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_GenerateCreatorInsightsRequest_YouTubeChannels_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels getDefaultInstanceForType() {
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels build() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels buildPartial() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels result = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels result) {
if (youtubeChannelsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
youtubeChannels_ = java.util.Collections.unmodifiableList(youtubeChannels_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.youtubeChannels_ = youtubeChannels_;
} else {
result.youtubeChannels_ = youtubeChannelsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels result) {
int from_bitField0_ = 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.GenerateCreatorInsightsRequest.YouTubeChannels) {
return mergeFrom((com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels other) {
if (other == com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance()) return this;
if (youtubeChannelsBuilder_ == null) {
if (!other.youtubeChannels_.isEmpty()) {
if (youtubeChannels_.isEmpty()) {
youtubeChannels_ = other.youtubeChannels_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.addAll(other.youtubeChannels_);
}
onChanged();
}
} else {
if (!other.youtubeChannels_.isEmpty()) {
if (youtubeChannelsBuilder_.isEmpty()) {
youtubeChannelsBuilder_.dispose();
youtubeChannelsBuilder_ = null;
youtubeChannels_ = other.youtubeChannels_;
bitField0_ = (bitField0_ & ~0x00000001);
youtubeChannelsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getYoutubeChannelsFieldBuilder() : null;
} else {
youtubeChannelsBuilder_.addAllMessages(other.youtubeChannels_);
}
}
}
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: {
com.google.ads.googleads.v18.common.YouTubeChannelInfo m =
input.readMessage(
com.google.ads.googleads.v18.common.YouTubeChannelInfo.parser(),
extensionRegistry);
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.add(m);
} else {
youtubeChannelsBuilder_.addMessage(m);
}
break;
} // case 10
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.util.List youtubeChannels_ =
java.util.Collections.emptyList();
private void ensureYoutubeChannelsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
youtubeChannels_ = new java.util.ArrayList(youtubeChannels_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder> youtubeChannelsBuilder_;
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List getYoutubeChannelsList() {
if (youtubeChannelsBuilder_ == null) {
return java.util.Collections.unmodifiableList(youtubeChannels_);
} else {
return youtubeChannelsBuilder_.getMessageList();
}
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public int getYoutubeChannelsCount() {
if (youtubeChannelsBuilder_ == null) {
return youtubeChannels_.size();
} else {
return youtubeChannelsBuilder_.getCount();
}
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.YouTubeChannelInfo getYoutubeChannels(int index) {
if (youtubeChannelsBuilder_ == null) {
return youtubeChannels_.get(index);
} else {
return youtubeChannelsBuilder_.getMessage(index);
}
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setYoutubeChannels(
int index, com.google.ads.googleads.v18.common.YouTubeChannelInfo value) {
if (youtubeChannelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureYoutubeChannelsIsMutable();
youtubeChannels_.set(index, value);
onChanged();
} else {
youtubeChannelsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder setYoutubeChannels(
int index, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder builderForValue) {
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.set(index, builderForValue.build());
onChanged();
} else {
youtubeChannelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addYoutubeChannels(com.google.ads.googleads.v18.common.YouTubeChannelInfo value) {
if (youtubeChannelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureYoutubeChannelsIsMutable();
youtubeChannels_.add(value);
onChanged();
} else {
youtubeChannelsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addYoutubeChannels(
int index, com.google.ads.googleads.v18.common.YouTubeChannelInfo value) {
if (youtubeChannelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureYoutubeChannelsIsMutable();
youtubeChannels_.add(index, value);
onChanged();
} else {
youtubeChannelsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addYoutubeChannels(
com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder builderForValue) {
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.add(builderForValue.build());
onChanged();
} else {
youtubeChannelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addYoutubeChannels(
int index, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder builderForValue) {
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.add(index, builderForValue.build());
onChanged();
} else {
youtubeChannelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder addAllYoutubeChannels(
java.lang.Iterable extends com.google.ads.googleads.v18.common.YouTubeChannelInfo> values) {
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, youtubeChannels_);
onChanged();
} else {
youtubeChannelsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder clearYoutubeChannels() {
if (youtubeChannelsBuilder_ == null) {
youtubeChannels_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
youtubeChannelsBuilder_.clear();
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public Builder removeYoutubeChannels(int index) {
if (youtubeChannelsBuilder_ == null) {
ensureYoutubeChannelsIsMutable();
youtubeChannels_.remove(index);
onChanged();
} else {
youtubeChannelsBuilder_.remove(index);
}
return this;
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder getYoutubeChannelsBuilder(
int index) {
return getYoutubeChannelsFieldBuilder().getBuilder(index);
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder getYoutubeChannelsOrBuilder(
int index) {
if (youtubeChannelsBuilder_ == null) {
return youtubeChannels_.get(index); } else {
return youtubeChannelsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List extends com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelsOrBuilderList() {
if (youtubeChannelsBuilder_ != null) {
return youtubeChannelsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(youtubeChannels_);
}
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder addYoutubeChannelsBuilder() {
return getYoutubeChannelsFieldBuilder().addBuilder(
com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance());
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder addYoutubeChannelsBuilder(
int index) {
return getYoutubeChannelsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v18.common.YouTubeChannelInfo.getDefaultInstance());
}
/**
*
* Optional. The YouTube Channel IDs to fetch creator insights for.
*
*
* repeated .google.ads.googleads.v18.common.YouTubeChannelInfo youtube_channels = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
public java.util.List
getYoutubeChannelsBuilderList() {
return getYoutubeChannelsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>
getYoutubeChannelsFieldBuilder() {
if (youtubeChannelsBuilder_ == null) {
youtubeChannelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v18.common.YouTubeChannelInfo, com.google.ads.googleads.v18.common.YouTubeChannelInfo.Builder, com.google.ads.googleads.v18.common.YouTubeChannelInfoOrBuilder>(
youtubeChannels_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
youtubeChannels_ = null;
}
return youtubeChannelsBuilder_;
}
@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.GenerateCreatorInsightsRequest.YouTubeChannels)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels)
private static final com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels();
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public YouTubeChannels 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.GenerateCreatorInsightsRequest.YouTubeChannels getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int criteriaCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object criteria_;
public enum CriteriaCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SEARCH_ATTRIBUTES(3),
SEARCH_CHANNELS(4),
CRITERIA_NOT_SET(0);
private final int value;
private CriteriaCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CriteriaCase valueOf(int value) {
return forNumber(value);
}
public static CriteriaCase forNumber(int value) {
switch (value) {
case 3: return SEARCH_ATTRIBUTES;
case 4: return SEARCH_CHANNELS;
case 0: return CRITERIA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CriteriaCase
getCriteriaCase() {
return CriteriaCase.forNumber(
criteriaCase_);
}
public static final int CUSTOMER_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object customerId_ = "";
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The customerId.
*/
@java.lang.Override
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
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();
customerId_ = s;
return s;
}
}
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object customerInsightsGroup_ = "";
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The customerInsightsGroup.
*/
@java.lang.Override
public java.lang.String getCustomerInsightsGroup() {
java.lang.Object ref = customerInsightsGroup_;
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();
customerInsightsGroup_ = s;
return s;
}
}
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerInsightsGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerInsightsGroupBytes() {
java.lang.Object ref = customerInsightsGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerInsightsGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEARCH_ATTRIBUTES_FIELD_NUMBER = 3;
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
* @return Whether the searchAttributes field is set.
*/
@java.lang.Override
public boolean hasSearchAttributes() {
return criteriaCase_ == 3;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
* @return The searchAttributes.
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes getSearchAttributes() {
if (criteriaCase_ == 3) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder getSearchAttributesOrBuilder() {
if (criteriaCase_ == 3) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
public static final int SEARCH_CHANNELS_FIELD_NUMBER = 4;
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
* @return Whether the searchChannels field is set.
*/
@java.lang.Override
public boolean hasSearchChannels() {
return criteriaCase_ == 4;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
* @return The searchChannels.
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels getSearchChannels() {
if (criteriaCase_ == 4) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder getSearchChannelsOrBuilder() {
if (criteriaCase_ == 4) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
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(customerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerInsightsGroup_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customerInsightsGroup_);
}
if (criteriaCase_ == 3) {
output.writeMessage(3, (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_);
}
if (criteriaCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_);
}
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(customerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerInsightsGroup_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customerInsightsGroup_);
}
if (criteriaCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_);
}
if (criteriaCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_);
}
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.GenerateCreatorInsightsRequest)) {
return super.equals(obj);
}
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest other = (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest) obj;
if (!getCustomerId()
.equals(other.getCustomerId())) return false;
if (!getCustomerInsightsGroup()
.equals(other.getCustomerInsightsGroup())) return false;
if (!getCriteriaCase().equals(other.getCriteriaCase())) return false;
switch (criteriaCase_) {
case 3:
if (!getSearchAttributes()
.equals(other.getSearchAttributes())) return false;
break;
case 4:
if (!getSearchChannels()
.equals(other.getSearchChannels())) return false;
break;
case 0:
default:
}
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) + CUSTOMER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCustomerId().hashCode();
hash = (37 * hash) + CUSTOMER_INSIGHTS_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getCustomerInsightsGroup().hashCode();
switch (criteriaCase_) {
case 3:
hash = (37 * hash) + SEARCH_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getSearchAttributes().hashCode();
break;
case 4:
hash = (37 * hash) + SEARCH_CHANNELS_FIELD_NUMBER;
hash = (53 * hash) + getSearchChannels().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest 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;
}
/**
*
* Request message for [ContentCreatorInsightsService.GenerateCreatorInsights]
*
*
* Protobuf type {@code google.ads.googleads.v18.services.GenerateCreatorInsightsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest)
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v18.services.ContentCreatorInsightsServiceProto.internal_static_google_ads_googleads_v18_services_GenerateCreatorInsightsRequest_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_GenerateCreatorInsightsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.class, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.Builder.class);
}
// Construct using com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
customerId_ = "";
customerInsightsGroup_ = "";
if (searchAttributesBuilder_ != null) {
searchAttributesBuilder_.clear();
}
if (searchChannelsBuilder_ != null) {
searchChannelsBuilder_.clear();
}
criteriaCase_ = 0;
criteria_ = null;
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_GenerateCreatorInsightsRequest_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest getDefaultInstanceForType() {
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest build() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest buildPartial() {
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest result = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.customerId_ = customerId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.customerInsightsGroup_ = customerInsightsGroup_;
}
}
private void buildPartialOneofs(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest result) {
result.criteriaCase_ = criteriaCase_;
result.criteria_ = this.criteria_;
if (criteriaCase_ == 3 &&
searchAttributesBuilder_ != null) {
result.criteria_ = searchAttributesBuilder_.build();
}
if (criteriaCase_ == 4 &&
searchChannelsBuilder_ != null) {
result.criteria_ = searchChannelsBuilder_.build();
}
}
@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.GenerateCreatorInsightsRequest) {
return mergeFrom((com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest other) {
if (other == com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.getDefaultInstance()) return this;
if (!other.getCustomerId().isEmpty()) {
customerId_ = other.customerId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getCustomerInsightsGroup().isEmpty()) {
customerInsightsGroup_ = other.customerInsightsGroup_;
bitField0_ |= 0x00000002;
onChanged();
}
switch (other.getCriteriaCase()) {
case SEARCH_ATTRIBUTES: {
mergeSearchAttributes(other.getSearchAttributes());
break;
}
case SEARCH_CHANNELS: {
mergeSearchChannels(other.getSearchChannels());
break;
}
case CRITERIA_NOT_SET: {
break;
}
}
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: {
customerId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
customerInsightsGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getSearchAttributesFieldBuilder().getBuilder(),
extensionRegistry);
criteriaCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getSearchChannelsFieldBuilder().getBuilder(),
extensionRegistry);
criteriaCase_ = 4;
break;
} // case 34
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 criteriaCase_ = 0;
private java.lang.Object criteria_;
public CriteriaCase
getCriteriaCase() {
return CriteriaCase.forNumber(
criteriaCase_);
}
public Builder clearCriteria() {
criteriaCase_ = 0;
criteria_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object customerId_ = "";
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The customerId.
*/
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerId.
*/
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
customerId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearCustomerId() {
customerId_ = getDefaultInstance().getCustomerId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required. The ID of the customer.
*
*
* string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
customerId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object customerInsightsGroup_ = "";
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The customerInsightsGroup.
*/
public java.lang.String getCustomerInsightsGroup() {
java.lang.Object ref = customerInsightsGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerInsightsGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for customerInsightsGroup.
*/
public com.google.protobuf.ByteString
getCustomerInsightsGroupBytes() {
java.lang.Object ref = customerInsightsGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerInsightsGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @param value The customerInsightsGroup to set.
* @return This builder for chaining.
*/
public Builder setCustomerInsightsGroup(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
customerInsightsGroup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearCustomerInsightsGroup() {
customerInsightsGroup_ = getDefaultInstance().getCustomerInsightsGroup();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Required. The name of the customer being planned for. This is a
* user-defined value.
*
*
* string customer_insights_group = 2 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for customerInsightsGroup to set.
* @return This builder for chaining.
*/
public Builder setCustomerInsightsGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
customerInsightsGroup_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder> searchAttributesBuilder_;
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
* @return Whether the searchAttributes field is set.
*/
@java.lang.Override
public boolean hasSearchAttributes() {
return criteriaCase_ == 3;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
* @return The searchAttributes.
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes getSearchAttributes() {
if (searchAttributesBuilder_ == null) {
if (criteriaCase_ == 3) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
} else {
if (criteriaCase_ == 3) {
return searchAttributesBuilder_.getMessage();
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
public Builder setSearchAttributes(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes value) {
if (searchAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criteria_ = value;
onChanged();
} else {
searchAttributesBuilder_.setMessage(value);
}
criteriaCase_ = 3;
return this;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
public Builder setSearchAttributes(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder builderForValue) {
if (searchAttributesBuilder_ == null) {
criteria_ = builderForValue.build();
onChanged();
} else {
searchAttributesBuilder_.setMessage(builderForValue.build());
}
criteriaCase_ = 3;
return this;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
public Builder mergeSearchAttributes(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes value) {
if (searchAttributesBuilder_ == null) {
if (criteriaCase_ == 3 &&
criteria_ != com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance()) {
criteria_ = com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.newBuilder((com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_)
.mergeFrom(value).buildPartial();
} else {
criteria_ = value;
}
onChanged();
} else {
if (criteriaCase_ == 3) {
searchAttributesBuilder_.mergeFrom(value);
} else {
searchAttributesBuilder_.setMessage(value);
}
}
criteriaCase_ = 3;
return this;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
public Builder clearSearchAttributes() {
if (searchAttributesBuilder_ == null) {
if (criteriaCase_ == 3) {
criteriaCase_ = 0;
criteria_ = null;
onChanged();
}
} else {
if (criteriaCase_ == 3) {
criteriaCase_ = 0;
criteria_ = null;
}
searchAttributesBuilder_.clear();
}
return this;
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder getSearchAttributesBuilder() {
return getSearchAttributesFieldBuilder().getBuilder();
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder getSearchAttributesOrBuilder() {
if ((criteriaCase_ == 3) && (searchAttributesBuilder_ != null)) {
return searchAttributesBuilder_.getMessageOrBuilder();
} else {
if (criteriaCase_ == 3) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
}
/**
*
* The list of attributes to search for top creators in.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes search_attributes = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder>
getSearchAttributesFieldBuilder() {
if (searchAttributesBuilder_ == null) {
if (!(criteriaCase_ == 3)) {
criteria_ = com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.getDefaultInstance();
}
searchAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributesOrBuilder>(
(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.SearchAttributes) criteria_,
getParentForChildren(),
isClean());
criteria_ = null;
}
criteriaCase_ = 3;
onChanged();
return searchAttributesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder> searchChannelsBuilder_;
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
* @return Whether the searchChannels field is set.
*/
@java.lang.Override
public boolean hasSearchChannels() {
return criteriaCase_ == 4;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
* @return The searchChannels.
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels getSearchChannels() {
if (searchChannelsBuilder_ == null) {
if (criteriaCase_ == 4) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
} else {
if (criteriaCase_ == 4) {
return searchChannelsBuilder_.getMessage();
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
public Builder setSearchChannels(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels value) {
if (searchChannelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criteria_ = value;
onChanged();
} else {
searchChannelsBuilder_.setMessage(value);
}
criteriaCase_ = 4;
return this;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
public Builder setSearchChannels(
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder builderForValue) {
if (searchChannelsBuilder_ == null) {
criteria_ = builderForValue.build();
onChanged();
} else {
searchChannelsBuilder_.setMessage(builderForValue.build());
}
criteriaCase_ = 4;
return this;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
public Builder mergeSearchChannels(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels value) {
if (searchChannelsBuilder_ == null) {
if (criteriaCase_ == 4 &&
criteria_ != com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance()) {
criteria_ = com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.newBuilder((com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_)
.mergeFrom(value).buildPartial();
} else {
criteria_ = value;
}
onChanged();
} else {
if (criteriaCase_ == 4) {
searchChannelsBuilder_.mergeFrom(value);
} else {
searchChannelsBuilder_.setMessage(value);
}
}
criteriaCase_ = 4;
return this;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
public Builder clearSearchChannels() {
if (searchChannelsBuilder_ == null) {
if (criteriaCase_ == 4) {
criteriaCase_ = 0;
criteria_ = null;
onChanged();
}
} else {
if (criteriaCase_ == 4) {
criteriaCase_ = 0;
criteria_ = null;
}
searchChannelsBuilder_.clear();
}
return this;
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder getSearchChannelsBuilder() {
return getSearchChannelsFieldBuilder().getBuilder();
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder getSearchChannelsOrBuilder() {
if ((criteriaCase_ == 4) && (searchChannelsBuilder_ != null)) {
return searchChannelsBuilder_.getMessageOrBuilder();
} else {
if (criteriaCase_ == 4) {
return (com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_;
}
return com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
}
/**
*
* The list of YouTube Channel IDs to fetch creator insights for.
*
*
* .google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels search_channels = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder>
getSearchChannelsFieldBuilder() {
if (searchChannelsBuilder_ == null) {
if (!(criteriaCase_ == 4)) {
criteria_ = com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.getDefaultInstance();
}
searchChannelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels.Builder, com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannelsOrBuilder>(
(com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest.YouTubeChannels) criteria_,
getParentForChildren(),
isClean());
criteria_ = null;
}
criteriaCase_ = 4;
onChanged();
return searchChannelsBuilder_;
}
@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.GenerateCreatorInsightsRequest)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v18.services.GenerateCreatorInsightsRequest)
private static final com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest();
}
public static com.google.ads.googleads.v18.services.GenerateCreatorInsightsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenerateCreatorInsightsRequest 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.GenerateCreatorInsightsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy