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

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

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;

/**
 * 
 * The result of generating keyword ideas.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.GenerateKeywordIdeaResult} */ public final class GenerateKeywordIdeaResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GenerateKeywordIdeaResult) GenerateKeywordIdeaResultOrBuilder { private static final long serialVersionUID = 0L; // Use GenerateKeywordIdeaResult.newBuilder() to construct. private GenerateKeywordIdeaResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GenerateKeywordIdeaResult() { text_ = ""; closeVariants_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GenerateKeywordIdeaResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordIdeaResult_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_GenerateKeywordIdeaResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.class, com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.Builder.class); } private int bitField0_; public static final int TEXT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** *
   * Text of the keyword idea.
   * As in Keyword Plan historical metrics, this text may not be an actual
   * keyword, but the canonical form of multiple keywords.
   * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
   * 
* * optional string text = 5; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Text of the keyword idea.
   * As in Keyword Plan historical metrics, this text may not be an actual
   * keyword, but the canonical form of multiple keywords.
   * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
   * 
* * optional string text = 5; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; 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(); text_ = s; return s; } } /** *
   * Text of the keyword idea.
   * As in Keyword Plan historical metrics, this text may not be an actual
   * keyword, but the canonical form of multiple keywords.
   * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
   * 
* * optional string text = 5; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEYWORD_IDEA_METRICS_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keywordIdeaMetrics_; /** *
   * The historical metrics for the keyword.
   * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; * @return Whether the keywordIdeaMetrics field is set. */ @java.lang.Override public boolean hasKeywordIdeaMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The historical metrics for the keyword.
   * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; * @return The keywordIdeaMetrics. */ @java.lang.Override public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics getKeywordIdeaMetrics() { return keywordIdeaMetrics_ == null ? com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance() : keywordIdeaMetrics_; } /** *
   * The historical metrics for the keyword.
   * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ @java.lang.Override public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder getKeywordIdeaMetricsOrBuilder() { return keywordIdeaMetrics_ == null ? com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance() : keywordIdeaMetrics_; } public static final int KEYWORD_ANNOTATIONS_FIELD_NUMBER = 6; private com.google.ads.googleads.v17.common.KeywordAnnotations keywordAnnotations_; /** *
   * The annotations for the keyword.
   * The annotation data is only provided if requested.
   * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; * @return Whether the keywordAnnotations field is set. */ @java.lang.Override public boolean hasKeywordAnnotations() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The annotations for the keyword.
   * The annotation data is only provided if requested.
   * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; * @return The keywordAnnotations. */ @java.lang.Override public com.google.ads.googleads.v17.common.KeywordAnnotations getKeywordAnnotations() { return keywordAnnotations_ == null ? com.google.ads.googleads.v17.common.KeywordAnnotations.getDefaultInstance() : keywordAnnotations_; } /** *
   * The annotations for the keyword.
   * The annotation data is only provided if requested.
   * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ @java.lang.Override public com.google.ads.googleads.v17.common.KeywordAnnotationsOrBuilder getKeywordAnnotationsOrBuilder() { return keywordAnnotations_ == null ? com.google.ads.googleads.v17.common.KeywordAnnotations.getDefaultInstance() : keywordAnnotations_; } public static final int CLOSE_VARIANTS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList closeVariants_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * The list of close variants from the requested keywords that
   * are combined into this GenerateKeywordIdeaResult. See
   * https://support.google.com/google-ads/answer/9342105 for the
   * definition of "close variants".
   * 
* * repeated string close_variants = 7; * @return A list containing the closeVariants. */ public com.google.protobuf.ProtocolStringList getCloseVariantsList() { return closeVariants_; } /** *
   * The list of close variants from the requested keywords that
   * are combined into this GenerateKeywordIdeaResult. See
   * https://support.google.com/google-ads/answer/9342105 for the
   * definition of "close variants".
   * 
* * repeated string close_variants = 7; * @return The count of closeVariants. */ public int getCloseVariantsCount() { return closeVariants_.size(); } /** *
   * The list of close variants from the requested keywords that
   * are combined into this GenerateKeywordIdeaResult. See
   * https://support.google.com/google-ads/answer/9342105 for the
   * definition of "close variants".
   * 
* * repeated string close_variants = 7; * @param index The index of the element to return. * @return The closeVariants at the given index. */ public java.lang.String getCloseVariants(int index) { return closeVariants_.get(index); } /** *
   * The list of close variants from the requested keywords that
   * are combined into this GenerateKeywordIdeaResult. See
   * https://support.google.com/google-ads/answer/9342105 for the
   * definition of "close variants".
   * 
* * repeated string close_variants = 7; * @param index The index of the value to return. * @return The bytes of the closeVariants at the given index. */ public com.google.protobuf.ByteString getCloseVariantsBytes(int index) { return closeVariants_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getKeywordIdeaMetrics()); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, text_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getKeywordAnnotations()); } for (int i = 0; i < closeVariants_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, closeVariants_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getKeywordIdeaMetrics()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, text_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getKeywordAnnotations()); } { int dataSize = 0; for (int i = 0; i < closeVariants_.size(); i++) { dataSize += computeStringSizeNoTag(closeVariants_.getRaw(i)); } size += dataSize; size += 1 * getCloseVariantsList().size(); } 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.GenerateKeywordIdeaResult)) { return super.equals(obj); } com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult other = (com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult) obj; if (hasText() != other.hasText()) return false; if (hasText()) { if (!getText() .equals(other.getText())) return false; } if (hasKeywordIdeaMetrics() != other.hasKeywordIdeaMetrics()) return false; if (hasKeywordIdeaMetrics()) { if (!getKeywordIdeaMetrics() .equals(other.getKeywordIdeaMetrics())) return false; } if (hasKeywordAnnotations() != other.hasKeywordAnnotations()) return false; if (hasKeywordAnnotations()) { if (!getKeywordAnnotations() .equals(other.getKeywordAnnotations())) return false; } if (!getCloseVariantsList() .equals(other.getCloseVariantsList())) 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 (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } if (hasKeywordIdeaMetrics()) { hash = (37 * hash) + KEYWORD_IDEA_METRICS_FIELD_NUMBER; hash = (53 * hash) + getKeywordIdeaMetrics().hashCode(); } if (hasKeywordAnnotations()) { hash = (37 * hash) + KEYWORD_ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getKeywordAnnotations().hashCode(); } if (getCloseVariantsCount() > 0) { hash = (37 * hash) + CLOSE_VARIANTS_FIELD_NUMBER; hash = (53 * hash) + getCloseVariantsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult 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 result of generating keyword ideas.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.GenerateKeywordIdeaResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GenerateKeywordIdeaResult) com.google.ads.googleads.v17.services.GenerateKeywordIdeaResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordIdeaResult_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_GenerateKeywordIdeaResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.class, com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.Builder.class); } // Construct using com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeywordIdeaMetricsFieldBuilder(); getKeywordAnnotationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; text_ = ""; keywordIdeaMetrics_ = null; if (keywordIdeaMetricsBuilder_ != null) { keywordIdeaMetricsBuilder_.dispose(); keywordIdeaMetricsBuilder_ = null; } keywordAnnotations_ = null; if (keywordAnnotationsBuilder_ != null) { keywordAnnotationsBuilder_.dispose(); keywordAnnotationsBuilder_ = null; } closeVariants_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_GenerateKeywordIdeaResult_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult build() { com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult buildPartial() { com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult result = new com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.text_ = text_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.keywordIdeaMetrics_ = keywordIdeaMetricsBuilder_ == null ? keywordIdeaMetrics_ : keywordIdeaMetricsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.keywordAnnotations_ = keywordAnnotationsBuilder_ == null ? keywordAnnotations_ : keywordAnnotationsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { closeVariants_.makeImmutable(); result.closeVariants_ = closeVariants_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult) { return mergeFrom((com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult other) { if (other == com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult.getDefaultInstance()) return this; if (other.hasText()) { text_ = other.text_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasKeywordIdeaMetrics()) { mergeKeywordIdeaMetrics(other.getKeywordIdeaMetrics()); } if (other.hasKeywordAnnotations()) { mergeKeywordAnnotations(other.getKeywordAnnotations()); } if (!other.closeVariants_.isEmpty()) { if (closeVariants_.isEmpty()) { closeVariants_ = other.closeVariants_; bitField0_ |= 0x00000008; } else { ensureCloseVariantsIsMutable(); closeVariants_.addAll(other.closeVariants_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26: { input.readMessage( getKeywordIdeaMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 case 42: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 42 case 50: { input.readMessage( getKeywordAnnotationsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 50 case 58: { java.lang.String s = input.readStringRequireUtf8(); ensureCloseVariantsIsMutable(); closeVariants_.add(s); break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object text_ = ""; /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Text of the keyword idea.
     * As in Keyword Plan historical metrics, this text may not be an actual
     * keyword, but the canonical form of multiple keywords.
     * See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService.
     * 
* * optional string text = 5; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keywordIdeaMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder> keywordIdeaMetricsBuilder_; /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; * @return Whether the keywordIdeaMetrics field is set. */ public boolean hasKeywordIdeaMetrics() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; * @return The keywordIdeaMetrics. */ public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics getKeywordIdeaMetrics() { if (keywordIdeaMetricsBuilder_ == null) { return keywordIdeaMetrics_ == null ? com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance() : keywordIdeaMetrics_; } else { return keywordIdeaMetricsBuilder_.getMessage(); } } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public Builder setKeywordIdeaMetrics(com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics value) { if (keywordIdeaMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keywordIdeaMetrics_ = value; } else { keywordIdeaMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public Builder setKeywordIdeaMetrics( com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder builderForValue) { if (keywordIdeaMetricsBuilder_ == null) { keywordIdeaMetrics_ = builderForValue.build(); } else { keywordIdeaMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public Builder mergeKeywordIdeaMetrics(com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics value) { if (keywordIdeaMetricsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && keywordIdeaMetrics_ != null && keywordIdeaMetrics_ != com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance()) { getKeywordIdeaMetricsBuilder().mergeFrom(value); } else { keywordIdeaMetrics_ = value; } } else { keywordIdeaMetricsBuilder_.mergeFrom(value); } if (keywordIdeaMetrics_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public Builder clearKeywordIdeaMetrics() { bitField0_ = (bitField0_ & ~0x00000002); keywordIdeaMetrics_ = null; if (keywordIdeaMetricsBuilder_ != null) { keywordIdeaMetricsBuilder_.dispose(); keywordIdeaMetricsBuilder_ = null; } onChanged(); return this; } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder getKeywordIdeaMetricsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKeywordIdeaMetricsFieldBuilder().getBuilder(); } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ public com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder getKeywordIdeaMetricsOrBuilder() { if (keywordIdeaMetricsBuilder_ != null) { return keywordIdeaMetricsBuilder_.getMessageOrBuilder(); } else { return keywordIdeaMetrics_ == null ? com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.getDefaultInstance() : keywordIdeaMetrics_; } } /** *
     * The historical metrics for the keyword.
     * 
* * .google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder> getKeywordIdeaMetricsFieldBuilder() { if (keywordIdeaMetricsBuilder_ == null) { keywordIdeaMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetrics.Builder, com.google.ads.googleads.v17.common.KeywordPlanHistoricalMetricsOrBuilder>( getKeywordIdeaMetrics(), getParentForChildren(), isClean()); keywordIdeaMetrics_ = null; } return keywordIdeaMetricsBuilder_; } private com.google.ads.googleads.v17.common.KeywordAnnotations keywordAnnotations_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordAnnotations, com.google.ads.googleads.v17.common.KeywordAnnotations.Builder, com.google.ads.googleads.v17.common.KeywordAnnotationsOrBuilder> keywordAnnotationsBuilder_; /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; * @return Whether the keywordAnnotations field is set. */ public boolean hasKeywordAnnotations() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; * @return The keywordAnnotations. */ public com.google.ads.googleads.v17.common.KeywordAnnotations getKeywordAnnotations() { if (keywordAnnotationsBuilder_ == null) { return keywordAnnotations_ == null ? com.google.ads.googleads.v17.common.KeywordAnnotations.getDefaultInstance() : keywordAnnotations_; } else { return keywordAnnotationsBuilder_.getMessage(); } } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public Builder setKeywordAnnotations(com.google.ads.googleads.v17.common.KeywordAnnotations value) { if (keywordAnnotationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keywordAnnotations_ = value; } else { keywordAnnotationsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public Builder setKeywordAnnotations( com.google.ads.googleads.v17.common.KeywordAnnotations.Builder builderForValue) { if (keywordAnnotationsBuilder_ == null) { keywordAnnotations_ = builderForValue.build(); } else { keywordAnnotationsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public Builder mergeKeywordAnnotations(com.google.ads.googleads.v17.common.KeywordAnnotations value) { if (keywordAnnotationsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && keywordAnnotations_ != null && keywordAnnotations_ != com.google.ads.googleads.v17.common.KeywordAnnotations.getDefaultInstance()) { getKeywordAnnotationsBuilder().mergeFrom(value); } else { keywordAnnotations_ = value; } } else { keywordAnnotationsBuilder_.mergeFrom(value); } if (keywordAnnotations_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public Builder clearKeywordAnnotations() { bitField0_ = (bitField0_ & ~0x00000004); keywordAnnotations_ = null; if (keywordAnnotationsBuilder_ != null) { keywordAnnotationsBuilder_.dispose(); keywordAnnotationsBuilder_ = null; } onChanged(); return this; } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public com.google.ads.googleads.v17.common.KeywordAnnotations.Builder getKeywordAnnotationsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getKeywordAnnotationsFieldBuilder().getBuilder(); } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ public com.google.ads.googleads.v17.common.KeywordAnnotationsOrBuilder getKeywordAnnotationsOrBuilder() { if (keywordAnnotationsBuilder_ != null) { return keywordAnnotationsBuilder_.getMessageOrBuilder(); } else { return keywordAnnotations_ == null ? com.google.ads.googleads.v17.common.KeywordAnnotations.getDefaultInstance() : keywordAnnotations_; } } /** *
     * The annotations for the keyword.
     * The annotation data is only provided if requested.
     * 
* * .google.ads.googleads.v17.common.KeywordAnnotations keyword_annotations = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordAnnotations, com.google.ads.googleads.v17.common.KeywordAnnotations.Builder, com.google.ads.googleads.v17.common.KeywordAnnotationsOrBuilder> getKeywordAnnotationsFieldBuilder() { if (keywordAnnotationsBuilder_ == null) { keywordAnnotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.KeywordAnnotations, com.google.ads.googleads.v17.common.KeywordAnnotations.Builder, com.google.ads.googleads.v17.common.KeywordAnnotationsOrBuilder>( getKeywordAnnotations(), getParentForChildren(), isClean()); keywordAnnotations_ = null; } return keywordAnnotationsBuilder_; } private com.google.protobuf.LazyStringArrayList closeVariants_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCloseVariantsIsMutable() { if (!closeVariants_.isModifiable()) { closeVariants_ = new com.google.protobuf.LazyStringArrayList(closeVariants_); } bitField0_ |= 0x00000008; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @return A list containing the closeVariants. */ public com.google.protobuf.ProtocolStringList getCloseVariantsList() { closeVariants_.makeImmutable(); return closeVariants_; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @return The count of closeVariants. */ public int getCloseVariantsCount() { return closeVariants_.size(); } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param index The index of the element to return. * @return The closeVariants at the given index. */ public java.lang.String getCloseVariants(int index) { return closeVariants_.get(index); } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param index The index of the value to return. * @return The bytes of the closeVariants at the given index. */ public com.google.protobuf.ByteString getCloseVariantsBytes(int index) { return closeVariants_.getByteString(index); } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param index The index to set the value at. * @param value The closeVariants to set. * @return This builder for chaining. */ public Builder setCloseVariants( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCloseVariantsIsMutable(); closeVariants_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param value The closeVariants to add. * @return This builder for chaining. */ public Builder addCloseVariants( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCloseVariantsIsMutable(); closeVariants_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param values The closeVariants to add. * @return This builder for chaining. */ public Builder addAllCloseVariants( java.lang.Iterable values) { ensureCloseVariantsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, closeVariants_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @return This builder for chaining. */ public Builder clearCloseVariants() { closeVariants_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     * The list of close variants from the requested keywords that
     * are combined into this GenerateKeywordIdeaResult. See
     * https://support.google.com/google-ads/answer/9342105 for the
     * definition of "close variants".
     * 
* * repeated string close_variants = 7; * @param value The bytes of the closeVariants to add. * @return This builder for chaining. */ public Builder addCloseVariantsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCloseVariantsIsMutable(); closeVariants_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.services.GenerateKeywordIdeaResult) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GenerateKeywordIdeaResult) private static final com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult(); } public static com.google.ads.googleads.v17.services.GenerateKeywordIdeaResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GenerateKeywordIdeaResult 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.GenerateKeywordIdeaResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy