com.google.api.gax.grpc.GrpcTransportChannel Java Examples
The following examples show how to use
com.google.api.gax.grpc.GrpcTransportChannel.
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: BaseIT.java From kafka-pubsub-emulator with Apache License 2.0 | 6 votes |
public static TransportChannelProvider getChannelProvider() { ManagedChannel channel = null; if (USE_SSL) { try { channel = NettyChannelBuilder.forAddress(LOCALHOST, PORT) .maxInboundMessageSize(100000) .sslContext( GrpcSslContexts.forClient() .trustManager(InsecureTrustManagerFactory.INSTANCE) .build()) .overrideAuthority(LOCALHOST + ":" + PORT) .build(); } catch (SSLException e) { fail("Unable to create SSL channel " + e.getMessage()); } } else { channel = ManagedChannelBuilder.forAddress(LOCALHOST, PORT).usePlaintext(true).build(); } return FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel)); }
Example #2
Source File: PhotosLibraryStubSettings.java From java-photoslibrary with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PhotosLibraryStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPhotosLibraryStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #3
Source File: KeywordViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public KeywordViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcKeywordViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #4
Source File: CampaignCriterionServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CampaignCriterionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCampaignCriterionServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #5
Source File: FeedServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public FeedServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcFeedServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #6
Source File: AdServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AdServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAdServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #7
Source File: MediaFileServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public MediaFileServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcMediaFileServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #8
Source File: AgeRangeViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AgeRangeViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAgeRangeViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #9
Source File: CarrierConstantServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CarrierConstantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCarrierConstantServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #10
Source File: CampaignCriterionServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CampaignCriterionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCampaignCriterionServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #11
Source File: OperatingSystemVersionConstantServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public OperatingSystemVersionConstantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcOperatingSystemVersionConstantServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #12
Source File: MobileDeviceConstantServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public MobileDeviceConstantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcMobileDeviceConstantServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #13
Source File: UserLocationViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public UserLocationViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcUserLocationViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #14
Source File: LandingPageViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public LandingPageViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcLandingPageViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #15
Source File: GeoTargetConstantServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public GeoTargetConstantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcGeoTargetConstantServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #16
Source File: MobileDeviceConstantServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public MobileDeviceConstantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcMobileDeviceConstantServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #17
Source File: PaidOrganicSearchTermViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PaidOrganicSearchTermViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPaidOrganicSearchTermViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #18
Source File: LabelServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public LabelServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcLabelServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #19
Source File: InvoiceServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public InvoiceServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcInvoiceServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #20
Source File: SearchTermViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SearchTermViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSearchTermViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #21
Source File: CustomerNegativeCriterionServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CustomerNegativeCriterionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCustomerNegativeCriterionServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #22
Source File: CampaignLabelServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CampaignLabelServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCampaignLabelServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #23
Source File: CustomerExtensionSettingServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CustomerExtensionSettingServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCustomerExtensionSettingServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #24
Source File: ConversionUploadServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ConversionUploadServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcConversionUploadServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #25
Source File: ProductGroupViewServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ProductGroupViewServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcProductGroupViewServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #26
Source File: SharedCriterionServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SharedCriterionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSharedCriterionServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #27
Source File: MerchantCenterLinkServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public MerchantCenterLinkServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcMerchantCenterLinkServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #28
Source File: AdGroupAdServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AdGroupAdServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAdGroupAdServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #29
Source File: AccountBudgetProposalServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AccountBudgetProposalServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAccountBudgetProposalServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }
Example #30
Source File: AdGroupFeedServiceStubSettings.java From google-ads-java with Apache License 2.0 | 5 votes |
@BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AdGroupFeedServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAdGroupFeedServiceStub.create(this); } else { throw new UnsupportedOperationException( "Transport not supported: " + getTransportChannelProvider().getTransportName()); } }