Class GenerateKeywordHistoricalMetricsResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
com.google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResult.Builder
- All Implemented Interfaces:
GenerateKeywordHistoricalMetricsResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateKeywordHistoricalMetricsResult
public static final class GenerateKeywordHistoricalMetricsResult.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
implements GenerateKeywordHistoricalMetricsResultOrBuilder
The result of generating keyword historical metrics.Protobuf type
google.ads.googleads.v18.services.GenerateKeywordHistoricalMetricsResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllCloseVariants(Iterable<String> values) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.addCloseVariants(String value) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.addCloseVariantsBytes(com.google.protobuf.ByteString value) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The historical metrics for text and its close variantsclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The text of the query associated with one or more keywords.clone()getCloseVariants(int index) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.com.google.protobuf.ByteStringgetCloseVariantsBytes(int index) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.intThe list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.com.google.protobuf.ProtocolStringListThe list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe historical metrics for text and its close variantsThe historical metrics for text and its close variantsThe historical metrics for text and its close variantsgetText()The text of the query associated with one or more keywords.com.google.protobuf.ByteStringThe text of the query associated with one or more keywords.booleanThe historical metrics for text and its close variantsbooleanhasText()The text of the query associated with one or more keywords.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The historical metrics for text and its close variantsmergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCloseVariants(int index, String value) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.The historical metrics for text and its close variantssetKeywordMetrics(KeywordPlanHistoricalMetrics.Builder builderForValue) The historical metrics for text and its close variantssetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The text of the query associated with one or more keywords.setTextBytes(com.google.protobuf.ByteString value) The text of the query associated with one or more keywords.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
setField
public GenerateKeywordHistoricalMetricsResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
clearField
public GenerateKeywordHistoricalMetricsResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
clearOneof
public GenerateKeywordHistoricalMetricsResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
setRepeatedField
public GenerateKeywordHistoricalMetricsResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
addRepeatedField
public GenerateKeywordHistoricalMetricsResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
mergeFrom
public GenerateKeywordHistoricalMetricsResult.Builder mergeFrom(GenerateKeywordHistoricalMetricsResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
mergeFrom
public GenerateKeywordHistoricalMetricsResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateKeywordHistoricalMetricsResult.Builder>- Throws:
IOException
-
hasText
public boolean hasText()The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Specified by:
hasTextin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- Whether the text field is set.
-
getText
The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Specified by:
getTextin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Specified by:
getTextBytesin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- The bytes for text.
-
setText
The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Returns:
- This builder for chaining.
-
setTextBytes
public GenerateKeywordHistoricalMetricsResult.Builder setTextBytes(com.google.protobuf.ByteString value) The text of the query associated with one or more keywords. Note that we de-dupe your keywords list, eliminating close variants before returning the keywords as text. For example, if your request originally contained the keywords "car" and "cars", the returned search query will only contain "cars". The list of de-duped queries will be included in close_variants field.
optional string text = 1;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
getCloseVariantsList
public com.google.protobuf.ProtocolStringList getCloseVariantsList()The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Specified by:
getCloseVariantsListin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- A list containing the closeVariants.
-
getCloseVariantsCount
public int getCloseVariantsCount()The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Specified by:
getCloseVariantsCountin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- The count of closeVariants.
-
getCloseVariants
The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Specified by:
getCloseVariantsin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The closeVariants at the given index.
-
getCloseVariantsBytes
public com.google.protobuf.ByteString getCloseVariantsBytes(int index) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Specified by:
getCloseVariantsBytesin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the closeVariants at the given index.
-
setCloseVariants
The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Parameters:
index- The index to set the value at.value- The closeVariants to set.- Returns:
- This builder for chaining.
-
addCloseVariants
The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Parameters:
value- The closeVariants to add.- Returns:
- This builder for chaining.
-
addAllCloseVariants
The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Parameters:
values- The closeVariants to add.- Returns:
- This builder for chaining.
-
clearCloseVariants
The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Returns:
- This builder for chaining.
-
addCloseVariantsBytes
public GenerateKeywordHistoricalMetricsResult.Builder addCloseVariantsBytes(com.google.protobuf.ByteString value) The list of close variants from the requested keywords whose stats are combined into this GenerateKeywordHistoricalMetricsResult.
repeated string close_variants = 3;- Parameters:
value- The bytes of the closeVariants to add.- Returns:
- This builder for chaining.
-
hasKeywordMetrics
public boolean hasKeywordMetrics()The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
hasKeywordMetricsin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- Whether the keywordMetrics field is set.
-
getKeywordMetrics
The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
getKeywordMetricsin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder- Returns:
- The keywordMetrics.
-
setKeywordMetrics
public GenerateKeywordHistoricalMetricsResult.Builder setKeywordMetrics(KeywordPlanHistoricalMetrics value) The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -
setKeywordMetrics
public GenerateKeywordHistoricalMetricsResult.Builder setKeywordMetrics(KeywordPlanHistoricalMetrics.Builder builderForValue) The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -
mergeKeywordMetrics
public GenerateKeywordHistoricalMetricsResult.Builder mergeKeywordMetrics(KeywordPlanHistoricalMetrics value) The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -
clearKeywordMetrics
The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -
getKeywordMetricsBuilder
The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -
getKeywordMetricsOrBuilder
The historical metrics for text and its close variants
.google.ads.googleads.v18.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
getKeywordMetricsOrBuilderin interfaceGenerateKeywordHistoricalMetricsResultOrBuilder
-
setUnknownFields
public final GenerateKeywordHistoricalMetricsResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-
mergeUnknownFields
public final GenerateKeywordHistoricalMetricsResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GenerateKeywordHistoricalMetricsResult.Builder>
-