com.google.api.gax.rpc.UnaryCallSettings Java Examples

The following examples show how to use com.google.api.gax.rpc.UnaryCallSettings. 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: GeoTargetConstantServiceSettings.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: CustomerLabelServiceStubSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
protected Builder(CustomerLabelServiceStubSettings settings) {
  super(settings);

  getCustomerLabelSettings = settings.getCustomerLabelSettings.toBuilder();
  mutateCustomerLabelsSettings = settings.mutateCustomerLabelsSettings.toBuilder();

  unaryMethodSettingsBuilders =
      ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
          getCustomerLabelSettings, mutateCustomerLabelsSettings);
}
 
Example #3
Source File: SharedSetServiceSettings.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: DistanceViewServiceSettings.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: CustomerClientServiceStubSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
protected Builder(CustomerClientServiceStubSettings settings) {
  super(settings);

  getCustomerClientSettings = settings.getCustomerClientSettings.toBuilder();

  unaryMethodSettingsBuilders =
      ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(getCustomerClientSettings);
}
 
Example #6
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 #7
Source File: ManagedPlacementViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
protected Builder(ManagedPlacementViewServiceStubSettings settings) {
  super(settings);

  getManagedPlacementViewSettings = settings.getManagedPlacementViewSettings.toBuilder();

  unaryMethodSettingsBuilders =
      ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(getManagedPlacementViewSettings);
}
 
Example #8
Source File: CustomerFeedServiceStubSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
protected Builder(CustomerFeedServiceStubSettings settings) {
  super(settings);

  getCustomerFeedSettings = settings.getCustomerFeedSettings.toBuilder();
  mutateCustomerFeedsSettings = settings.mutateCustomerFeedsSettings.toBuilder();

  unaryMethodSettingsBuilders =
      ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
          getCustomerFeedSettings, mutateCustomerFeedsSettings);
}
 
Example #9
Source File: BillingSetupServiceSettings.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: AdGroupAdLabelServiceStubSettings.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
protected Builder(AdGroupAdLabelServiceStubSettings settings) {
  super(settings);

  getAdGroupAdLabelSettings = settings.getAdGroupAdLabelSettings.toBuilder();
  mutateAdGroupAdLabelsSettings = settings.mutateAdGroupAdLabelsSettings.toBuilder();

  unaryMethodSettingsBuilders =
      ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
          getAdGroupAdLabelSettings, mutateAdGroupAdLabelsSettings);
}
 
Example #11
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 #12
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 #13
Source File: AdGroupLabelServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to getAdGroupLabel. */
public UnaryCallSettings.Builder<GetAdGroupLabelRequest, AdGroupLabel>
    getAdGroupLabelSettings() {
  return getStubSettingsBuilder().getAdGroupLabelSettings();
}
 
Example #14
Source File: OfflineUserDataJobServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to addOfflineUserDataJobOperations. */
public UnaryCallSettings<
        AddOfflineUserDataJobOperationsRequest, AddOfflineUserDataJobOperationsResponse>
    addOfflineUserDataJobOperationsSettings() {
  return addOfflineUserDataJobOperationsSettings;
}
 
Example #15
Source File: AdGroupAdServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to mutateAdGroupAds. */
public UnaryCallSettings<MutateAdGroupAdsRequest, MutateAdGroupAdsResponse>
    mutateAdGroupAdsSettings() {
  return ((AdGroupAdServiceStubSettings) getStubSettings()).mutateAdGroupAdsSettings();
}
 
Example #16
Source File: CustomerServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
public ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders() {
  return unaryMethodSettingsBuilders;
}
 
Example #17
Source File: HotelGroupViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to getHotelGroupView. */
public UnaryCallSettings.Builder<GetHotelGroupViewRequest, HotelGroupView>
    getHotelGroupViewSettings() {
  return getHotelGroupViewSettings;
}
 
Example #18
Source File: CampaignSharedSetServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to mutateCampaignSharedSets. */
public UnaryCallSettings.Builder<
        MutateCampaignSharedSetsRequest, MutateCampaignSharedSetsResponse>
    mutateCampaignSharedSetsSettings() {
  return getStubSettingsBuilder().mutateCampaignSharedSetsSettings();
}
 
Example #19
Source File: CampaignCriterionSimulationServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to getCampaignCriterionSimulation. */
public UnaryCallSettings.Builder<
        GetCampaignCriterionSimulationRequest, CampaignCriterionSimulation>
    getCampaignCriterionSimulationSettings() {
  return getStubSettingsBuilder().getCampaignCriterionSimulationSettings();
}
 
Example #20
Source File: CustomerNegativeCriterionServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 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(unaryMethodSettingsBuilders, settingsUpdater);
  return this;
}
 
Example #21
Source File: KeywordPlanNegativeKeywordServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 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(unaryMethodSettingsBuilders, settingsUpdater);
  return this;
}
 
Example #22
Source File: AdGroupExtensionSettingServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
public ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders() {
  return unaryMethodSettingsBuilders;
}
 
Example #23
Source File: KeywordPlanNegativeKeywordServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to mutateKeywordPlanNegativeKeywords. */
public UnaryCallSettings.Builder<
        MutateKeywordPlanNegativeKeywordsRequest, MutateKeywordPlanNegativeKeywordsResponse>
    mutateKeywordPlanNegativeKeywordsSettings() {
  return getStubSettingsBuilder().mutateKeywordPlanNegativeKeywordsSettings();
}
 
Example #24
Source File: FeedMappingServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 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(unaryMethodSettingsBuilders, settingsUpdater);
  return this;
}
 
Example #25
Source File: CustomInterestServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to mutateCustomInterests. */
public UnaryCallSettings<MutateCustomInterestsRequest, MutateCustomInterestsResponse>
    mutateCustomInterestsSettings() {
  return mutateCustomInterestsSettings;
}
 
Example #26
Source File: CampaignLabelServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the builder for the settings used for calls to mutateCampaignLabels. */
public UnaryCallSettings.Builder<MutateCampaignLabelsRequest, MutateCampaignLabelsResponse>
    mutateCampaignLabelsSettings() {
  return mutateCampaignLabelsSettings;
}
 
Example #27
Source File: InvoiceServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to listInvoices. */
public UnaryCallSettings<ListInvoicesRequest, ListInvoicesResponse> listInvoicesSettings() {
  return ((InvoiceServiceStubSettings) getStubSettings()).listInvoicesSettings();
}
 
Example #28
Source File: OperatingSystemVersionConstantServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to getOperatingSystemVersionConstant. */
public UnaryCallSettings<GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant>
    getOperatingSystemVersionConstantSettings() {
  return getOperatingSystemVersionConstantSettings;
}
 
Example #29
Source File: ChangeStatusServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
public ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders() {
  return unaryMethodSettingsBuilders;
}
 
Example #30
Source File: KeywordPlanKeywordServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns the object with the settings used for calls to getKeywordPlanKeyword. */
public UnaryCallSettings<GetKeywordPlanKeywordRequest, KeywordPlanKeyword>
    getKeywordPlanKeywordSettings() {
  return getKeywordPlanKeywordSettings;
}