com.google.api.core.ApiFunction Java Examples

The following examples show how to use com.google.api.core.ApiFunction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CarrierConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #2
Source File: FeedPlaceholderViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #3
Source File: VideoServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #4
Source File: AgeRangeViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #5
Source File: MobileDeviceConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #6
Source File: AdGroupCriterionLabelServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #7
Source File: TopicConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #8
Source File: KeywordPlanCampaignServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #9
Source File: AccountBudgetServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #10
Source File: CampaignBidModifierServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #11
Source File: MerchantCenterLinkServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #12
Source File: CarrierConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #13
Source File: GeographicViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #14
Source File: MobileAppCategoryConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #15
Source File: AdGroupCriterionServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #16
Source File: LocationViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #17
Source File: CampaignCriterionSimulationServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #18
Source File: OperatingSystemVersionConstantServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #19
Source File: InvoiceServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #20
Source File: PaidOrganicSearchTermViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #21
Source File: CustomerClientServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #22
Source File: PaymentsAccountServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #23
Source File: ConversionActionServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #24
Source File: InternalPhotosLibraryClient.java    From java-photoslibrary with Apache License 2.0 5 votes vote down vote up
public static ApiFuture<SearchMediaItemsPagedResponse> createAsync(
    PageContext<SearchMediaItemsRequest, SearchMediaItemsResponse, MediaItem> context,
    ApiFuture<SearchMediaItemsResponse> futureResponse) {
  ApiFuture<SearchMediaItemsPage> futurePage =
      SearchMediaItemsPage.createEmptyPage().createPageAsync(context, futureResponse);
  return ApiFutures.transform(
      futurePage,
      new ApiFunction<SearchMediaItemsPage, SearchMediaItemsPagedResponse>() {
        @Override
        public SearchMediaItemsPagedResponse apply(SearchMediaItemsPage input) {
          return new SearchMediaItemsPagedResponse(input);
        }
      },
      MoreExecutors.directExecutor());
}
 
Example #25
Source File: CampaignBudgetServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #26
Source File: HotelGroupViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #27
Source File: KeywordViewServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #28
Source File: LabelServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #29
Source File: CustomerManagerLinkServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}
 
Example #30
Source File: SharedCriterionServiceSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given settings updater function to all of the unary API methods in this service.
 *
 * <p>Note: This method does not support applying settings to streaming methods.
 */
public Builder applyToAllUnaryMethods(
    ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
  super.applyToAllUnaryMethods(
      getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
  return this;
}