Class ResponsiveSearchAdInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
com.google.ads.googleads.v18.common.ResponsiveSearchAdInfo.Builder
- All Implemented Interfaces:
ResponsiveSearchAdInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResponsiveSearchAdInfo
public static final class ResponsiveSearchAdInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
implements ResponsiveSearchAdInfoOrBuilder
A responsive search ad. Responsive search ads let you create an ad that adapts to show more text, and more relevant messages, to your customers. Enter multiple headlines and descriptions when creating a responsive search ad, and over time, Google Ads will automatically test different combinations and learn which combinations perform best. By adapting your ad's content to more closely match potential customers' search terms, responsive search ads may improve your campaign's performance. More information at https://support.google.com/google-ads/answer/7684791Protobuf type
google.ads.googleads.v18.common.ResponsiveSearchAdInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllDescriptions(Iterable<? extends AdTextAsset> values) List of text assets for descriptions.addAllHeadlines(Iterable<? extends AdTextAsset> values) List of text assets for headlines.addDescriptions(int index, AdTextAsset value) List of text assets for descriptions.addDescriptions(int index, AdTextAsset.Builder builderForValue) List of text assets for descriptions.addDescriptions(AdTextAsset value) List of text assets for descriptions.addDescriptions(AdTextAsset.Builder builderForValue) List of text assets for descriptions.List of text assets for descriptions.addDescriptionsBuilder(int index) List of text assets for descriptions.addHeadlines(int index, AdTextAsset value) List of text assets for headlines.addHeadlines(int index, AdTextAsset.Builder builderForValue) List of text assets for headlines.addHeadlines(AdTextAsset value) List of text assets for headlines.addHeadlines(AdTextAsset.Builder builderForValue) List of text assets for headlines.List of text assets for headlines.addHeadlinesBuilder(int index) List of text assets for headlines.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()List of text assets for descriptions.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) List of text assets for headlines.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) First part of text that can be appended to the URL in the ad.Second part of text that can be appended to the URL in the ad.clone()getDescriptions(int index) List of text assets for descriptions.getDescriptionsBuilder(int index) List of text assets for descriptions.List of text assets for descriptions.intList of text assets for descriptions.List of text assets for descriptions.getDescriptionsOrBuilder(int index) List of text assets for descriptions.List<? extends AdTextAssetOrBuilder>List of text assets for descriptions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHeadlines(int index) List of text assets for headlines.getHeadlinesBuilder(int index) List of text assets for headlines.List of text assets for headlines.intList of text assets for headlines.List of text assets for headlines.getHeadlinesOrBuilder(int index) List of text assets for headlines.List<? extends AdTextAssetOrBuilder>List of text assets for headlines.getPath1()First part of text that can be appended to the URL in the ad.com.google.protobuf.ByteStringFirst part of text that can be appended to the URL in the ad.getPath2()Second part of text that can be appended to the URL in the ad.com.google.protobuf.ByteStringSecond part of text that can be appended to the URL in the ad.booleanhasPath1()First part of text that can be appended to the URL in the ad.booleanhasPath2()Second part of text that can be appended to the URL in the ad.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ResponsiveSearchAdInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeDescriptions(int index) List of text assets for descriptions.removeHeadlines(int index) List of text assets for headlines.setDescriptions(int index, AdTextAsset value) List of text assets for descriptions.setDescriptions(int index, AdTextAsset.Builder builderForValue) List of text assets for descriptions.setHeadlines(int index, AdTextAsset value) List of text assets for headlines.setHeadlines(int index, AdTextAsset.Builder builderForValue) List of text assets for headlines.First part of text that can be appended to the URL in the ad.setPath1Bytes(com.google.protobuf.ByteString value) First part of text that can be appended to the URL in the ad.Second part of text that can be appended to the URL in the ad.setPath2Bytes(com.google.protobuf.ByteString value) Second part of text that can be appended to the URL in the ad.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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<ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.Builder>
-
setField
public ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.Builder>
-
clearField
public ResponsiveSearchAdInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
-
clearOneof
public ResponsiveSearchAdInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
-
setRepeatedField
public ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.Builder>
-
addRepeatedField
public ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResponsiveSearchAdInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
-
mergeFrom
public ResponsiveSearchAdInfo.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<ResponsiveSearchAdInfo.Builder>- Throws:
IOException
-
getHeadlinesList
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;- Specified by:
getHeadlinesListin interfaceResponsiveSearchAdInfoOrBuilder
-
getHeadlinesCount
public int getHeadlinesCount()List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;- Specified by:
getHeadlinesCountin interfaceResponsiveSearchAdInfoOrBuilder
-
getHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;- Specified by:
getHeadlinesin interfaceResponsiveSearchAdInfoOrBuilder
-
setHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
setHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addAllHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
clearHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
removeHeadlines
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
getHeadlinesBuilder
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
getHeadlinesOrBuilder
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;- Specified by:
getHeadlinesOrBuilderin interfaceResponsiveSearchAdInfoOrBuilder
-
getHeadlinesOrBuilderList
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1;- Specified by:
getHeadlinesOrBuilderListin interfaceResponsiveSearchAdInfoOrBuilder
-
addHeadlinesBuilder
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
addHeadlinesBuilder
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
getHeadlinesBuilderList
List of text assets for headlines. When the ad serves the headlines will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset headlines = 1; -
getDescriptionsList
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;- Specified by:
getDescriptionsListin interfaceResponsiveSearchAdInfoOrBuilder
-
getDescriptionsCount
public int getDescriptionsCount()List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;- Specified by:
getDescriptionsCountin interfaceResponsiveSearchAdInfoOrBuilder
-
getDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;- Specified by:
getDescriptionsin interfaceResponsiveSearchAdInfoOrBuilder
-
setDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
setDescriptions
public ResponsiveSearchAdInfo.Builder setDescriptions(int index, AdTextAsset.Builder builderForValue) List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addDescriptions
public ResponsiveSearchAdInfo.Builder addDescriptions(int index, AdTextAsset.Builder builderForValue) List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addAllDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
clearDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
removeDescriptions
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
getDescriptionsBuilder
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
getDescriptionsOrBuilder
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;- Specified by:
getDescriptionsOrBuilderin interfaceResponsiveSearchAdInfoOrBuilder
-
getDescriptionsOrBuilderList
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2;- Specified by:
getDescriptionsOrBuilderListin interfaceResponsiveSearchAdInfoOrBuilder
-
addDescriptionsBuilder
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
addDescriptionsBuilder
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
getDescriptionsBuilderList
List of text assets for descriptions. When the ad serves the descriptions will be selected from this list.
repeated .google.ads.googleads.v18.common.AdTextAsset descriptions = 2; -
hasPath1
public boolean hasPath1()First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Specified by:
hasPath1in interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- Whether the path1 field is set.
-
getPath1
First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Specified by:
getPath1in interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- The path1.
-
getPath1Bytes
public com.google.protobuf.ByteString getPath1Bytes()First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Specified by:
getPath1Bytesin interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- The bytes for path1.
-
setPath1
First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Parameters:
value- The path1 to set.- Returns:
- This builder for chaining.
-
clearPath1
First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Returns:
- This builder for chaining.
-
setPath1Bytes
First part of text that can be appended to the URL in the ad.
optional string path1 = 5;- Parameters:
value- The bytes for path1 to set.- Returns:
- This builder for chaining.
-
hasPath2
public boolean hasPath2()Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Specified by:
hasPath2in interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- Whether the path2 field is set.
-
getPath2
Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Specified by:
getPath2in interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- The path2.
-
getPath2Bytes
public com.google.protobuf.ByteString getPath2Bytes()Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Specified by:
getPath2Bytesin interfaceResponsiveSearchAdInfoOrBuilder- Returns:
- The bytes for path2.
-
setPath2
Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Parameters:
value- The path2 to set.- Returns:
- This builder for chaining.
-
clearPath2
Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Returns:
- This builder for chaining.
-
setPath2Bytes
Second part of text that can be appended to the URL in the ad. This field can only be set when `path1` is also set.
optional string path2 = 6;- Parameters:
value- The bytes for path2 to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ResponsiveSearchAdInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
-
mergeUnknownFields
public final ResponsiveSearchAdInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ResponsiveSearchAdInfo.Builder>
-