com.google.api.gax.grpc.InstantiatingGrpcChannelProvider Java Examples

The following examples show how to use com.google.api.gax.grpc.InstantiatingGrpcChannelProvider. 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: GoogleAdsClient.java    From google-ads-java with Apache License 2.0 5 votes vote down vote up
/** Returns a new builder for {@link GoogleAdsClient} with only default values set. */
public static Builder newBuilder() {
  AutoValue_GoogleAdsClient.Builder clientBuilder = new AutoValue_GoogleAdsClient.Builder();
  // Sets the default value for enableGeneratedCatalog.
  clientBuilder.setEnableGeneratedCatalog(false);
  // Constructs the channel provider.
  InstantiatingGrpcChannelProvider transportChannelProvider =
      InstantiatingGrpcChannelProvider.newBuilder()
          .setInterceptorProvider(
              () ->
                  ImmutableList.of(
                      new LoggingInterceptor(
                          new RequestLogger(),
                          clientBuilder.getHeaders(),
                          clientBuilder.getEndpoint())))
          // Issue 131: inbound headers may exceed default (8kb) max header size.
          // Sets max header size to 16MB, which should be more than necessary.
          .setMaxInboundMetadataSize(16 * 1024 * 1024)
          // Sets max response size to 64MB, since large responses will often exceed the default
          // (4MB).
          .setMaxInboundMessageSize(64 * 1024 * 1024)
          .build();
  clientBuilder
      .setEndpoint(DEFAULT_ENDPOINT)
      .setTransportChannelProvider(transportChannelProvider);
  return clientBuilder;
}
 
Example #2
Source File: DisplayKeywordViewServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return DisplayKeywordViewServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #3
Source File: CustomerManagerLinkServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return CustomerManagerLinkServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #4
Source File: MerchantCenterLinkServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return MerchantCenterLinkServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #5
Source File: PaidOrganicSearchTermViewServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return PaidOrganicSearchTermViewServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #6
Source File: AdGroupAudienceViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #7
Source File: MediaFileServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #8
Source File: MobileDeviceConstantServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #9
Source File: ClickViewServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return ClickViewServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #10
Source File: CampaignSharedSetServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return CampaignSharedSetServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #11
Source File: MerchantCenterLinkServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #12
Source File: DistanceViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #13
Source File: AdGroupAdAssetViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #14
Source File: FeedMappingServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #15
Source File: AgeRangeViewServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return AgeRangeViewServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #16
Source File: GoogleAdsFieldServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return GoogleAdsFieldServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #17
Source File: ClickViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #18
Source File: KeywordPlanServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return KeywordPlanServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #19
Source File: AdParameterServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return AdParameterServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #20
Source File: LanguageConstantServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return LanguageConstantServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #21
Source File: GenderViewServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #22
Source File: FeedItemServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #23
Source File: BillingSetupServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return BillingSetupServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #24
Source File: MutateJobServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return MutateJobServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #25
Source File: MutateJobServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #26
Source File: CarrierConstantServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return CarrierConstantServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #27
Source File: ConversionActionServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return ConversionActionServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #28
Source File: UserListServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}
 
Example #29
Source File: UserInterestServiceSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return UserInterestServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
 
Example #30
Source File: ExtensionFeedItemServiceStubSettings.java    From google-ads-java with Apache License 2.0 4 votes vote down vote up
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
  return InstantiatingGrpcChannelProvider.newBuilder();
}