com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/services/keyword_plan_idea_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Response message for
* [KeywordPlanIdeaService.GenerateAdGroupThemes][google.ads.googleads.v17.services.KeywordPlanIdeaService.GenerateAdGroupThemes].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.GenerateAdGroupThemesResponse}
*/
public final class GenerateAdGroupThemesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)
GenerateAdGroupThemesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenerateAdGroupThemesResponse.newBuilder() to construct.
private GenerateAdGroupThemesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenerateAdGroupThemesResponse() {
adGroupKeywordSuggestions_ = java.util.Collections.emptyList();
unusableAdGroups_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GenerateAdGroupThemesResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAdGroupThemesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAdGroupThemesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.class, com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.Builder.class);
}
public static final int AD_GROUP_KEYWORD_SUGGESTIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List adGroupKeywordSuggestions_;
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
@java.lang.Override
public java.util.List getAdGroupKeywordSuggestionsList() {
return adGroupKeywordSuggestions_;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder>
getAdGroupKeywordSuggestionsOrBuilderList() {
return adGroupKeywordSuggestions_;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
@java.lang.Override
public int getAdGroupKeywordSuggestionsCount() {
return adGroupKeywordSuggestions_.size();
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion getAdGroupKeywordSuggestions(int index) {
return adGroupKeywordSuggestions_.get(index);
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder getAdGroupKeywordSuggestionsOrBuilder(
int index) {
return adGroupKeywordSuggestions_.get(index);
}
public static final int UNUSABLE_AD_GROUPS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List unusableAdGroups_;
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
@java.lang.Override
public java.util.List getUnusableAdGroupsList() {
return unusableAdGroups_;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder>
getUnusableAdGroupsOrBuilderList() {
return unusableAdGroups_;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
@java.lang.Override
public int getUnusableAdGroupsCount() {
return unusableAdGroups_.size();
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.UnusableAdGroup getUnusableAdGroups(int index) {
return unusableAdGroups_.get(index);
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder getUnusableAdGroupsOrBuilder(
int index) {
return unusableAdGroups_.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 < adGroupKeywordSuggestions_.size(); i++) {
output.writeMessage(1, adGroupKeywordSuggestions_.get(i));
}
for (int i = 0; i < unusableAdGroups_.size(); i++) {
output.writeMessage(2, unusableAdGroups_.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 < adGroupKeywordSuggestions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, adGroupKeywordSuggestions_.get(i));
}
for (int i = 0; i < unusableAdGroups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, unusableAdGroups_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse other = (com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse) obj;
if (!getAdGroupKeywordSuggestionsList()
.equals(other.getAdGroupKeywordSuggestionsList())) return false;
if (!getUnusableAdGroupsList()
.equals(other.getUnusableAdGroupsList())) 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 (getAdGroupKeywordSuggestionsCount() > 0) {
hash = (37 * hash) + AD_GROUP_KEYWORD_SUGGESTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAdGroupKeywordSuggestionsList().hashCode();
}
if (getUnusableAdGroupsCount() > 0) {
hash = (37 * hash) + UNUSABLE_AD_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getUnusableAdGroupsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse 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;
}
/**
*
* Response message for
* [KeywordPlanIdeaService.GenerateAdGroupThemes][google.ads.googleads.v17.services.KeywordPlanIdeaService.GenerateAdGroupThemes].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.GenerateAdGroupThemesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAdGroupThemesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAdGroupThemesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.class, com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (adGroupKeywordSuggestionsBuilder_ == null) {
adGroupKeywordSuggestions_ = java.util.Collections.emptyList();
} else {
adGroupKeywordSuggestions_ = null;
adGroupKeywordSuggestionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (unusableAdGroupsBuilder_ == null) {
unusableAdGroups_ = java.util.Collections.emptyList();
} else {
unusableAdGroups_ = null;
unusableAdGroupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateAdGroupThemesResponse_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse build() {
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse buildPartial() {
com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse result = new com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse result) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
adGroupKeywordSuggestions_ = java.util.Collections.unmodifiableList(adGroupKeywordSuggestions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.adGroupKeywordSuggestions_ = adGroupKeywordSuggestions_;
} else {
result.adGroupKeywordSuggestions_ = adGroupKeywordSuggestionsBuilder_.build();
}
if (unusableAdGroupsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
unusableAdGroups_ = java.util.Collections.unmodifiableList(unusableAdGroups_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.unusableAdGroups_ = unusableAdGroups_;
} else {
result.unusableAdGroups_ = unusableAdGroupsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse 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.v17.services.GenerateAdGroupThemesResponse) {
return mergeFrom((com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse other) {
if (other == com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.getDefaultInstance()) return this;
if (adGroupKeywordSuggestionsBuilder_ == null) {
if (!other.adGroupKeywordSuggestions_.isEmpty()) {
if (adGroupKeywordSuggestions_.isEmpty()) {
adGroupKeywordSuggestions_ = other.adGroupKeywordSuggestions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.addAll(other.adGroupKeywordSuggestions_);
}
onChanged();
}
} else {
if (!other.adGroupKeywordSuggestions_.isEmpty()) {
if (adGroupKeywordSuggestionsBuilder_.isEmpty()) {
adGroupKeywordSuggestionsBuilder_.dispose();
adGroupKeywordSuggestionsBuilder_ = null;
adGroupKeywordSuggestions_ = other.adGroupKeywordSuggestions_;
bitField0_ = (bitField0_ & ~0x00000001);
adGroupKeywordSuggestionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdGroupKeywordSuggestionsFieldBuilder() : null;
} else {
adGroupKeywordSuggestionsBuilder_.addAllMessages(other.adGroupKeywordSuggestions_);
}
}
}
if (unusableAdGroupsBuilder_ == null) {
if (!other.unusableAdGroups_.isEmpty()) {
if (unusableAdGroups_.isEmpty()) {
unusableAdGroups_ = other.unusableAdGroups_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.addAll(other.unusableAdGroups_);
}
onChanged();
}
} else {
if (!other.unusableAdGroups_.isEmpty()) {
if (unusableAdGroupsBuilder_.isEmpty()) {
unusableAdGroupsBuilder_.dispose();
unusableAdGroupsBuilder_ = null;
unusableAdGroups_ = other.unusableAdGroups_;
bitField0_ = (bitField0_ & ~0x00000002);
unusableAdGroupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnusableAdGroupsFieldBuilder() : null;
} else {
unusableAdGroupsBuilder_.addAllMessages(other.unusableAdGroups_);
}
}
}
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.v17.services.AdGroupKeywordSuggestion m =
input.readMessage(
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.parser(),
extensionRegistry);
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.add(m);
} else {
adGroupKeywordSuggestionsBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
com.google.ads.googleads.v17.services.UnusableAdGroup m =
input.readMessage(
com.google.ads.googleads.v17.services.UnusableAdGroup.parser(),
extensionRegistry);
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.add(m);
} else {
unusableAdGroupsBuilder_.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 adGroupKeywordSuggestions_ =
java.util.Collections.emptyList();
private void ensureAdGroupKeywordSuggestionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
adGroupKeywordSuggestions_ = new java.util.ArrayList(adGroupKeywordSuggestions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder> adGroupKeywordSuggestionsBuilder_;
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public java.util.List getAdGroupKeywordSuggestionsList() {
if (adGroupKeywordSuggestionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(adGroupKeywordSuggestions_);
} else {
return adGroupKeywordSuggestionsBuilder_.getMessageList();
}
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public int getAdGroupKeywordSuggestionsCount() {
if (adGroupKeywordSuggestionsBuilder_ == null) {
return adGroupKeywordSuggestions_.size();
} else {
return adGroupKeywordSuggestionsBuilder_.getCount();
}
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion getAdGroupKeywordSuggestions(int index) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
return adGroupKeywordSuggestions_.get(index);
} else {
return adGroupKeywordSuggestionsBuilder_.getMessage(index);
}
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder setAdGroupKeywordSuggestions(
int index, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion value) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.set(index, value);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder setAdGroupKeywordSuggestions(
int index, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder builderForValue) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.set(index, builderForValue.build());
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder addAdGroupKeywordSuggestions(com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion value) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.add(value);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder addAdGroupKeywordSuggestions(
int index, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion value) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.add(index, value);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder addAdGroupKeywordSuggestions(
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder builderForValue) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.add(builderForValue.build());
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder addAdGroupKeywordSuggestions(
int index, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder builderForValue) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.add(index, builderForValue.build());
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder addAllAdGroupKeywordSuggestions(
java.lang.Iterable extends com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion> values) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, adGroupKeywordSuggestions_);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder clearAdGroupKeywordSuggestions() {
if (adGroupKeywordSuggestionsBuilder_ == null) {
adGroupKeywordSuggestions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.clear();
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public Builder removeAdGroupKeywordSuggestions(int index) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
ensureAdGroupKeywordSuggestionsIsMutable();
adGroupKeywordSuggestions_.remove(index);
onChanged();
} else {
adGroupKeywordSuggestionsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder getAdGroupKeywordSuggestionsBuilder(
int index) {
return getAdGroupKeywordSuggestionsFieldBuilder().getBuilder(index);
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder getAdGroupKeywordSuggestionsOrBuilder(
int index) {
if (adGroupKeywordSuggestionsBuilder_ == null) {
return adGroupKeywordSuggestions_.get(index); } else {
return adGroupKeywordSuggestionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public java.util.List extends com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder>
getAdGroupKeywordSuggestionsOrBuilderList() {
if (adGroupKeywordSuggestionsBuilder_ != null) {
return adGroupKeywordSuggestionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(adGroupKeywordSuggestions_);
}
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder addAdGroupKeywordSuggestionsBuilder() {
return getAdGroupKeywordSuggestionsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.getDefaultInstance());
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder addAdGroupKeywordSuggestionsBuilder(
int index) {
return getAdGroupKeywordSuggestionsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.getDefaultInstance());
}
/**
*
* A list of suggested AdGroup/keyword pairings.
*
*
* repeated .google.ads.googleads.v17.services.AdGroupKeywordSuggestion ad_group_keyword_suggestions = 1;
*/
public java.util.List
getAdGroupKeywordSuggestionsBuilderList() {
return getAdGroupKeywordSuggestionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder>
getAdGroupKeywordSuggestionsFieldBuilder() {
if (adGroupKeywordSuggestionsBuilder_ == null) {
adGroupKeywordSuggestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestion.Builder, com.google.ads.googleads.v17.services.AdGroupKeywordSuggestionOrBuilder>(
adGroupKeywordSuggestions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
adGroupKeywordSuggestions_ = null;
}
return adGroupKeywordSuggestionsBuilder_;
}
private java.util.List unusableAdGroups_ =
java.util.Collections.emptyList();
private void ensureUnusableAdGroupsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
unusableAdGroups_ = new java.util.ArrayList(unusableAdGroups_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.UnusableAdGroup, com.google.ads.googleads.v17.services.UnusableAdGroup.Builder, com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder> unusableAdGroupsBuilder_;
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public java.util.List getUnusableAdGroupsList() {
if (unusableAdGroupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(unusableAdGroups_);
} else {
return unusableAdGroupsBuilder_.getMessageList();
}
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public int getUnusableAdGroupsCount() {
if (unusableAdGroupsBuilder_ == null) {
return unusableAdGroups_.size();
} else {
return unusableAdGroupsBuilder_.getCount();
}
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public com.google.ads.googleads.v17.services.UnusableAdGroup getUnusableAdGroups(int index) {
if (unusableAdGroupsBuilder_ == null) {
return unusableAdGroups_.get(index);
} else {
return unusableAdGroupsBuilder_.getMessage(index);
}
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder setUnusableAdGroups(
int index, com.google.ads.googleads.v17.services.UnusableAdGroup value) {
if (unusableAdGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.set(index, value);
onChanged();
} else {
unusableAdGroupsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder setUnusableAdGroups(
int index, com.google.ads.googleads.v17.services.UnusableAdGroup.Builder builderForValue) {
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.set(index, builderForValue.build());
onChanged();
} else {
unusableAdGroupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder addUnusableAdGroups(com.google.ads.googleads.v17.services.UnusableAdGroup value) {
if (unusableAdGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.add(value);
onChanged();
} else {
unusableAdGroupsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder addUnusableAdGroups(
int index, com.google.ads.googleads.v17.services.UnusableAdGroup value) {
if (unusableAdGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.add(index, value);
onChanged();
} else {
unusableAdGroupsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder addUnusableAdGroups(
com.google.ads.googleads.v17.services.UnusableAdGroup.Builder builderForValue) {
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.add(builderForValue.build());
onChanged();
} else {
unusableAdGroupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder addUnusableAdGroups(
int index, com.google.ads.googleads.v17.services.UnusableAdGroup.Builder builderForValue) {
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.add(index, builderForValue.build());
onChanged();
} else {
unusableAdGroupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder addAllUnusableAdGroups(
java.lang.Iterable extends com.google.ads.googleads.v17.services.UnusableAdGroup> values) {
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unusableAdGroups_);
onChanged();
} else {
unusableAdGroupsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder clearUnusableAdGroups() {
if (unusableAdGroupsBuilder_ == null) {
unusableAdGroups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
unusableAdGroupsBuilder_.clear();
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public Builder removeUnusableAdGroups(int index) {
if (unusableAdGroupsBuilder_ == null) {
ensureUnusableAdGroupsIsMutable();
unusableAdGroups_.remove(index);
onChanged();
} else {
unusableAdGroupsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public com.google.ads.googleads.v17.services.UnusableAdGroup.Builder getUnusableAdGroupsBuilder(
int index) {
return getUnusableAdGroupsFieldBuilder().getBuilder(index);
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder getUnusableAdGroupsOrBuilder(
int index) {
if (unusableAdGroupsBuilder_ == null) {
return unusableAdGroups_.get(index); } else {
return unusableAdGroupsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public java.util.List extends com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder>
getUnusableAdGroupsOrBuilderList() {
if (unusableAdGroupsBuilder_ != null) {
return unusableAdGroupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unusableAdGroups_);
}
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public com.google.ads.googleads.v17.services.UnusableAdGroup.Builder addUnusableAdGroupsBuilder() {
return getUnusableAdGroupsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.services.UnusableAdGroup.getDefaultInstance());
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public com.google.ads.googleads.v17.services.UnusableAdGroup.Builder addUnusableAdGroupsBuilder(
int index) {
return getUnusableAdGroupsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.services.UnusableAdGroup.getDefaultInstance());
}
/**
*
* A list of provided AdGroups that could not be used as suggestions.
*
*
* repeated .google.ads.googleads.v17.services.UnusableAdGroup unusable_ad_groups = 2;
*/
public java.util.List
getUnusableAdGroupsBuilderList() {
return getUnusableAdGroupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.UnusableAdGroup, com.google.ads.googleads.v17.services.UnusableAdGroup.Builder, com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder>
getUnusableAdGroupsFieldBuilder() {
if (unusableAdGroupsBuilder_ == null) {
unusableAdGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.services.UnusableAdGroup, com.google.ads.googleads.v17.services.UnusableAdGroup.Builder, com.google.ads.googleads.v17.services.UnusableAdGroupOrBuilder>(
unusableAdGroups_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
unusableAdGroups_ = null;
}
return unusableAdGroupsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GenerateAdGroupThemesResponse)
private static final com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse();
}
public static com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenerateAdGroupThemesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy