Class SearchGoogleAdsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
com.google.ads.googleads.v18.services.SearchGoogleAdsRequest.Builder
- All Implemented Interfaces:
SearchGoogleAdsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchGoogleAdsRequest
public static final class SearchGoogleAdsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
implements SearchGoogleAdsRequestOrBuilder
Request message for [GoogleAdsService.Search][google.ads.googleads.v18.services.GoogleAdsService.Search].Protobuf type
google.ads.googleads.v18.services.SearchGoogleAdsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) This field is deprecated and will be removed in a future version of the API.Token of the page to retrieve.Required.Settings that allow users to specify request count, summary row, and results behavior.If true, the request is validated but not executed.clone()Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThis field is deprecated and will be removed in a future version of the API.Token of the page to retrieve.com.google.protobuf.ByteStringToken of the page to retrieve.getQuery()Required.com.google.protobuf.ByteStringRequired.Settings that allow users to specify request count, summary row, and results behavior.Settings that allow users to specify request count, summary row, and results behavior.Settings that allow users to specify request count, summary row, and results behavior.booleanIf true, the request is validated but not executed.booleanSettings that allow users to specify request count, summary row, and results behavior.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(SearchGoogleAdsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Settings that allow users to specify request count, summary row, and results behavior.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCustomerId(String value) Required.setCustomerIdBytes(com.google.protobuf.ByteString value) Required.setPageSize(int value) This field is deprecated and will be removed in a future version of the API.setPageToken(String value) Token of the page to retrieve.setPageTokenBytes(com.google.protobuf.ByteString value) Token of the page to retrieve.Required.setQueryBytes(com.google.protobuf.ByteString value) Required.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSearchSettings(SearchSettings value) Settings that allow users to specify request count, summary row, and results behavior.setSearchSettings(SearchSettings.Builder builderForValue) Settings that allow users to specify request count, summary row, and results behavior.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValidateOnly(boolean value) If true, the request is validated but not executed.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<SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.Builder>
-
setField
public SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.Builder>
-
clearField
public SearchGoogleAdsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
-
clearOneof
public SearchGoogleAdsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
-
setRepeatedField
public SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.Builder>
-
addRepeatedField
public SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchGoogleAdsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
-
mergeFrom
public SearchGoogleAdsRequest.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<SearchGoogleAdsRequest.Builder>- Throws:
IOException
-
getCustomerId
Required. The ID of the customer being queried.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The customerId.
-
getCustomerIdBytes
public com.google.protobuf.ByteString getCustomerIdBytes()Required. The ID of the customer being queried.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCustomerIdBytesin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The bytes for customerId.
-
setCustomerId
Required. The ID of the customer being queried.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The customerId to set.- Returns:
- This builder for chaining.
-
clearCustomerId
Required. The ID of the customer being queried.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setCustomerIdBytes
Required. The ID of the customer being queried.
string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for customerId to set.- Returns:
- This builder for chaining.
-
getQuery
Required. The query string.
string query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()Required. The query string.
string query = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryBytesin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The bytes for query.
-
setQuery
Required. The query string.
string query = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
Required. The query string.
string query = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setQueryBytes
Required. The query string.
string query = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
getPageToken
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
string page_token = 3;- Specified by:
getPageTokenin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
string page_token = 3;- Specified by:
getPageTokenBytesin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The bytes for pageToken.
-
setPageToken
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
string page_token = 3;- Parameters:
value- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
string page_token = 3;- Returns:
- This builder for chaining.
-
setPageTokenBytes
Token of the page to retrieve. If not specified, the first page of results will be returned. Use the value obtained from `next_page_token` in the previous response in order to request the next page of results.
string page_token = 3;- Parameters:
value- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getPageSize
public int getPageSize()This field is deprecated and will be removed in a future version of the API. As of v17, Google Ads API will return a `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. See https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html to learn more details.
int32 page_size = 4;- Specified by:
getPageSizein interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The pageSize.
-
setPageSize
This field is deprecated and will be removed in a future version of the API. As of v17, Google Ads API will return a `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. See https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html to learn more details.
int32 page_size = 4;- Parameters:
value- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
This field is deprecated and will be removed in a future version of the API. As of v17, Google Ads API will return a `PAGE_SIZE_NOT_SUPPORTED` error if this field is set in the request body. See https://ads-developers.googleblog.com/2024/07/upcoming-changes-to-page-size-in-google.html to learn more details.
int32 page_size = 4;- Returns:
- This builder for chaining.
-
getValidateOnly
public boolean getValidateOnly()If true, the request is validated but not executed.
bool validate_only = 5;- Specified by:
getValidateOnlyin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The validateOnly.
-
setValidateOnly
If true, the request is validated but not executed.
bool validate_only = 5;- Parameters:
value- The validateOnly to set.- Returns:
- This builder for chaining.
-
clearValidateOnly
If true, the request is validated but not executed.
bool validate_only = 5;- Returns:
- This builder for chaining.
-
hasSearchSettings
public boolean hasSearchSettings()Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10;- Specified by:
hasSearchSettingsin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- Whether the searchSettings field is set.
-
getSearchSettings
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10;- Specified by:
getSearchSettingsin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The searchSettings.
-
setSearchSettings
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10; -
setSearchSettings
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10; -
mergeSearchSettings
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10; -
clearSearchSettings
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10; -
getSearchSettingsBuilder
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10; -
getSearchSettingsOrBuilder
Settings that allow users to specify request count, summary row, and results behavior.
.google.ads.googleads.v18.services.SearchSettings search_settings = 10;- Specified by:
getSearchSettingsOrBuilderin interfaceSearchGoogleAdsRequestOrBuilder
-
setUnknownFields
public final SearchGoogleAdsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
-
mergeUnknownFields
public final SearchGoogleAdsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchGoogleAdsRequest.Builder>
-