Class KeywordPlanKeywordHistoricalMetrics.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
- com.google.ads.googleads.v10.services.KeywordPlanKeywordHistoricalMetrics.Builder
-
- All Implemented Interfaces:
KeywordPlanKeywordHistoricalMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- KeywordPlanKeywordHistoricalMetrics
public static final class KeywordPlanKeywordHistoricalMetrics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder> implements KeywordPlanKeywordHistoricalMetricsOrBuilder
A keyword historical metrics.
Protobuf typegoogle.ads.googleads.v10.services.KeywordPlanKeywordHistoricalMetrics
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeywordPlanKeywordHistoricalMetrics.BuilderaddAllCloseVariants(java.lang.Iterable<java.lang.String> values)The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetrics.BuilderaddCloseVariants(java.lang.String value)The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetrics.BuilderaddCloseVariantsBytes(com.google.protobuf.ByteString value)The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetrics.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)KeywordPlanKeywordHistoricalMetricsbuild()KeywordPlanKeywordHistoricalMetricsbuildPartial()KeywordPlanKeywordHistoricalMetrics.Builderclear()KeywordPlanKeywordHistoricalMetrics.BuilderclearCloseVariants()The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetrics.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)KeywordPlanKeywordHistoricalMetrics.BuilderclearKeywordMetrics()The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)KeywordPlanKeywordHistoricalMetrics.BuilderclearSearchQuery()The text of the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.Builderclone()java.lang.StringgetCloseVariants(int index)The list of close variant queries for search_query whose search results are combined into the search_query.com.google.protobuf.ByteStringgetCloseVariantsBytes(int index)The list of close variant queries for search_query whose search results are combined into the search_query.intgetCloseVariantsCount()The list of close variant queries for search_query whose search results are combined into the search_query.com.google.protobuf.ProtocolStringListgetCloseVariantsList()The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetricsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()KeywordPlanHistoricalMetricsgetKeywordMetrics()The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanHistoricalMetrics.BuildergetKeywordMetricsBuilder()The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanHistoricalMetricsOrBuildergetKeywordMetricsOrBuilder()The historical metrics for the query associated with one or more ad_group_keywords in the plan.java.lang.StringgetSearchQuery()The text of the query associated with one or more ad_group_keywords in the plan.com.google.protobuf.ByteStringgetSearchQueryBytes()The text of the query associated with one or more ad_group_keywords in the plan.booleanhasKeywordMetrics()The historical metrics for the query associated with one or more ad_group_keywords in the plan.booleanhasSearchQuery()The text of the query associated with one or more ad_group_keywords in the plan.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()KeywordPlanKeywordHistoricalMetrics.BuildermergeFrom(KeywordPlanKeywordHistoricalMetrics other)KeywordPlanKeywordHistoricalMetrics.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)KeywordPlanKeywordHistoricalMetrics.BuildermergeFrom(com.google.protobuf.Message other)KeywordPlanKeywordHistoricalMetrics.BuildermergeKeywordMetrics(KeywordPlanHistoricalMetrics value)The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)KeywordPlanKeywordHistoricalMetrics.BuildersetCloseVariants(int index, java.lang.String value)The list of close variant queries for search_query whose search results are combined into the search_query.KeywordPlanKeywordHistoricalMetrics.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)KeywordPlanKeywordHistoricalMetrics.BuildersetKeywordMetrics(KeywordPlanHistoricalMetrics value)The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuildersetKeywordMetrics(KeywordPlanHistoricalMetrics.Builder builderForValue)The historical metrics for the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)KeywordPlanKeywordHistoricalMetrics.BuildersetSearchQuery(java.lang.String value)The text of the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuildersetSearchQueryBytes(com.google.protobuf.ByteString value)The text of the query associated with one or more ad_group_keywords in the plan.KeywordPlanKeywordHistoricalMetrics.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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<KeywordPlanKeywordHistoricalMetrics.Builder>
-
clear
public KeywordPlanKeywordHistoricalMetrics.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<KeywordPlanKeywordHistoricalMetrics.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<KeywordPlanKeywordHistoricalMetrics.Builder>
-
getDefaultInstanceForType
public KeywordPlanKeywordHistoricalMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public KeywordPlanKeywordHistoricalMetrics build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public KeywordPlanKeywordHistoricalMetrics buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public KeywordPlanKeywordHistoricalMetrics.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<KeywordPlanKeywordHistoricalMetrics.Builder>
-
setField
public KeywordPlanKeywordHistoricalMetrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
clearField
public KeywordPlanKeywordHistoricalMetrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
clearOneof
public KeywordPlanKeywordHistoricalMetrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
setRepeatedField
public KeywordPlanKeywordHistoricalMetrics.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
addRepeatedField
public KeywordPlanKeywordHistoricalMetrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
mergeFrom
public KeywordPlanKeywordHistoricalMetrics.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
mergeFrom
public KeywordPlanKeywordHistoricalMetrics.Builder mergeFrom(KeywordPlanKeywordHistoricalMetrics other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
mergeFrom
public KeywordPlanKeywordHistoricalMetrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>- Throws:
java.io.IOException
-
hasSearchQuery
public boolean hasSearchQuery()
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Specified by:
hasSearchQueryin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- Whether the searchQuery field is set.
-
getSearchQuery
public java.lang.String getSearchQuery()
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Specified by:
getSearchQueryin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- The searchQuery.
-
getSearchQueryBytes
public com.google.protobuf.ByteString getSearchQueryBytes()
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Specified by:
getSearchQueryBytesin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- The bytes for searchQuery.
-
setSearchQuery
public KeywordPlanKeywordHistoricalMetrics.Builder setSearchQuery(java.lang.String value)
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Parameters:
value- The searchQuery to set.- Returns:
- This builder for chaining.
-
clearSearchQuery
public KeywordPlanKeywordHistoricalMetrics.Builder clearSearchQuery()
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Returns:
- This builder for chaining.
-
setSearchQueryBytes
public KeywordPlanKeywordHistoricalMetrics.Builder setSearchQueryBytes(com.google.protobuf.ByteString value)
The text of the query associated with one or more ad_group_keywords in the plan. Note that we de-dupe your keywords list, eliminating close variants before returning the plan's keywords as text. For example, if your plan originally contained the keywords 'car' and 'cars', the returned search query will only contain 'cars'. Starting V5, the list of de-duped queries will be included in close_variants field.
optional string search_query = 4;- Parameters:
value- The bytes for searchQuery to set.- Returns:
- This builder for chaining.
-
getCloseVariantsList
public com.google.protobuf.ProtocolStringList getCloseVariantsList()
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Specified by:
getCloseVariantsListin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- A list containing the closeVariants.
-
getCloseVariantsCount
public int getCloseVariantsCount()
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Specified by:
getCloseVariantsCountin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- The count of closeVariants.
-
getCloseVariants
public java.lang.String getCloseVariants(int index)
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Specified by:
getCloseVariantsin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- 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 variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Specified by:
getCloseVariantsBytesin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the closeVariants at the given index.
-
setCloseVariants
public KeywordPlanKeywordHistoricalMetrics.Builder setCloseVariants(int index, java.lang.String value)
The list of close variant queries for search_query whose search results are combined into the search_query.
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
public KeywordPlanKeywordHistoricalMetrics.Builder addCloseVariants(java.lang.String value)
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Parameters:
value- The closeVariants to add.- Returns:
- This builder for chaining.
-
addAllCloseVariants
public KeywordPlanKeywordHistoricalMetrics.Builder addAllCloseVariants(java.lang.Iterable<java.lang.String> values)
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Parameters:
values- The closeVariants to add.- Returns:
- This builder for chaining.
-
clearCloseVariants
public KeywordPlanKeywordHistoricalMetrics.Builder clearCloseVariants()
The list of close variant queries for search_query whose search results are combined into the search_query.
repeated string close_variants = 3;- Returns:
- This builder for chaining.
-
addCloseVariantsBytes
public KeywordPlanKeywordHistoricalMetrics.Builder addCloseVariantsBytes(com.google.protobuf.ByteString value)
The list of close variant queries for search_query whose search results are combined into the search_query.
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 the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
hasKeywordMetricsin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- Whether the keywordMetrics field is set.
-
getKeywordMetrics
public KeywordPlanHistoricalMetrics getKeywordMetrics()
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
getKeywordMetricsin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder- Returns:
- The keywordMetrics.
-
setKeywordMetrics
public KeywordPlanKeywordHistoricalMetrics.Builder setKeywordMetrics(KeywordPlanHistoricalMetrics value)
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
-
setKeywordMetrics
public KeywordPlanKeywordHistoricalMetrics.Builder setKeywordMetrics(KeywordPlanHistoricalMetrics.Builder builderForValue)
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
-
mergeKeywordMetrics
public KeywordPlanKeywordHistoricalMetrics.Builder mergeKeywordMetrics(KeywordPlanHistoricalMetrics value)
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
-
clearKeywordMetrics
public KeywordPlanKeywordHistoricalMetrics.Builder clearKeywordMetrics()
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
-
getKeywordMetricsBuilder
public KeywordPlanHistoricalMetrics.Builder getKeywordMetricsBuilder()
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;
-
getKeywordMetricsOrBuilder
public KeywordPlanHistoricalMetricsOrBuilder getKeywordMetricsOrBuilder()
The historical metrics for the query associated with one or more ad_group_keywords in the plan.
.google.ads.googleads.v10.common.KeywordPlanHistoricalMetrics keyword_metrics = 2;- Specified by:
getKeywordMetricsOrBuilderin interfaceKeywordPlanKeywordHistoricalMetricsOrBuilder
-
setUnknownFields
public final KeywordPlanKeywordHistoricalMetrics.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
mergeUnknownFields
public final KeywordPlanKeywordHistoricalMetrics.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanKeywordHistoricalMetrics.Builder>
-
-