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.v17.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.v17.services.GoogleAdsService.Search].Protobuf type
google.ads.googleads.v17.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) Number of elements to retrieve in a single page.Token of the page to retrieve.Required.If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response.Determines whether a summary row will be returned.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.DescriptorintNumber of elements to retrieve in a single page.Token of the page to retrieve.com.google.protobuf.ByteStringToken of the page to retrieve.getQuery()Required.com.google.protobuf.ByteStringRequired.booleanIf true, the total number of results that match the query ignoring the LIMIT clause will be included in the response.Determines whether a summary row will be returned.intDetermines whether a summary row will be returned.booleanIf true, the request is validated but not executed.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) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCustomerId(String value) Required.setCustomerIdBytes(com.google.protobuf.ByteString value) Required.setPageSize(int value) Number of elements to retrieve in a single page.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) setReturnTotalResultsCount(boolean value) If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response.Determines whether a summary row will be returned.setSummaryRowSettingValue(int value) Determines whether a summary row will be returned.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()Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources.
int32 page_size = 4;- Specified by:
getPageSizein interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The pageSize.
-
setPageSize
Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources.
int32 page_size = 4;- Parameters:
value- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
Number of elements to retrieve in a single page. When too large a page is requested, the server may decide to further limit the number of returned resources.
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.
-
getReturnTotalResultsCount
public boolean getReturnTotalResultsCount()If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false.
bool return_total_results_count = 7;- Specified by:
getReturnTotalResultsCountin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The returnTotalResultsCount.
-
setReturnTotalResultsCount
If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false.
bool return_total_results_count = 7;- Parameters:
value- The returnTotalResultsCount to set.- Returns:
- This builder for chaining.
-
clearReturnTotalResultsCount
If true, the total number of results that match the query ignoring the LIMIT clause will be included in the response. Default is false.
bool return_total_results_count = 7;- Returns:
- This builder for chaining.
-
getSummaryRowSettingValue
public int getSummaryRowSettingValue()Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned.
.google.ads.googleads.v17.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8;- Specified by:
getSummaryRowSettingValuein interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The enum numeric value on the wire for summaryRowSetting.
-
setSummaryRowSettingValue
Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned.
.google.ads.googleads.v17.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8;- Parameters:
value- The enum numeric value on the wire for summaryRowSetting to set.- Returns:
- This builder for chaining.
-
getSummaryRowSetting
Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned.
.google.ads.googleads.v17.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8;- Specified by:
getSummaryRowSettingin interfaceSearchGoogleAdsRequestOrBuilder- Returns:
- The summaryRowSetting.
-
setSummaryRowSetting
public SearchGoogleAdsRequest.Builder setSummaryRowSetting(SummaryRowSettingEnum.SummaryRowSetting value) Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned.
.google.ads.googleads.v17.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8;- Parameters:
value- The summaryRowSetting to set.- Returns:
- This builder for chaining.
-
clearSummaryRowSetting
Determines whether a summary row will be returned. By default, summary row is not returned. If requested, the summary row will be sent in a response by itself after all other query results are returned.
.google.ads.googleads.v17.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8;- Returns:
- This builder for chaining.
-
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>
-