All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.services.AudienceInsightsServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.google.ads.googleads.v17.services;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Audience Insights Service helps users find information about groups of
 * people and how they can be reached with Google Ads. Accessible to
 * allowlisted customers only.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/audience_insights_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AudienceInsightsServiceGrpc { private AudienceInsightsServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.AudienceInsightsService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGenerateInsightsFinderReportMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateInsightsFinderReport", requestType = com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateInsightsFinderReportResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateInsightsFinderReportMethod() { io.grpc.MethodDescriptor getGenerateInsightsFinderReportMethod; if ((getGenerateInsightsFinderReportMethod = AudienceInsightsServiceGrpc.getGenerateInsightsFinderReportMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getGenerateInsightsFinderReportMethod = AudienceInsightsServiceGrpc.getGenerateInsightsFinderReportMethod) == null) { AudienceInsightsServiceGrpc.getGenerateInsightsFinderReportMethod = getGenerateInsightsFinderReportMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateInsightsFinderReport")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateInsightsFinderReportResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("GenerateInsightsFinderReport")) .build(); } } } return getGenerateInsightsFinderReportMethod; } private static volatile io.grpc.MethodDescriptor getListAudienceInsightsAttributesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListAudienceInsightsAttributes", requestType = com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest.class, responseType = com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListAudienceInsightsAttributesMethod() { io.grpc.MethodDescriptor getListAudienceInsightsAttributesMethod; if ((getListAudienceInsightsAttributesMethod = AudienceInsightsServiceGrpc.getListAudienceInsightsAttributesMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getListAudienceInsightsAttributesMethod = AudienceInsightsServiceGrpc.getListAudienceInsightsAttributesMethod) == null) { AudienceInsightsServiceGrpc.getListAudienceInsightsAttributesMethod = getListAudienceInsightsAttributesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAudienceInsightsAttributes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("ListAudienceInsightsAttributes")) .build(); } } } return getListAudienceInsightsAttributesMethod; } private static volatile io.grpc.MethodDescriptor getListInsightsEligibleDatesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInsightsEligibleDates", requestType = com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest.class, responseType = com.google.ads.googleads.v17.services.ListInsightsEligibleDatesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListInsightsEligibleDatesMethod() { io.grpc.MethodDescriptor getListInsightsEligibleDatesMethod; if ((getListInsightsEligibleDatesMethod = AudienceInsightsServiceGrpc.getListInsightsEligibleDatesMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getListInsightsEligibleDatesMethod = AudienceInsightsServiceGrpc.getListInsightsEligibleDatesMethod) == null) { AudienceInsightsServiceGrpc.getListInsightsEligibleDatesMethod = getListInsightsEligibleDatesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInsightsEligibleDates")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.ListInsightsEligibleDatesResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("ListInsightsEligibleDates")) .build(); } } } return getListInsightsEligibleDatesMethod; } private static volatile io.grpc.MethodDescriptor getGenerateAudienceCompositionInsightsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateAudienceCompositionInsights", requestType = com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateAudienceCompositionInsightsMethod() { io.grpc.MethodDescriptor getGenerateAudienceCompositionInsightsMethod; if ((getGenerateAudienceCompositionInsightsMethod = AudienceInsightsServiceGrpc.getGenerateAudienceCompositionInsightsMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getGenerateAudienceCompositionInsightsMethod = AudienceInsightsServiceGrpc.getGenerateAudienceCompositionInsightsMethod) == null) { AudienceInsightsServiceGrpc.getGenerateAudienceCompositionInsightsMethod = getGenerateAudienceCompositionInsightsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAudienceCompositionInsights")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("GenerateAudienceCompositionInsights")) .build(); } } } return getGenerateAudienceCompositionInsightsMethod; } private static volatile io.grpc.MethodDescriptor getGenerateSuggestedTargetingInsightsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateSuggestedTargetingInsights", requestType = com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateSuggestedTargetingInsightsMethod() { io.grpc.MethodDescriptor getGenerateSuggestedTargetingInsightsMethod; if ((getGenerateSuggestedTargetingInsightsMethod = AudienceInsightsServiceGrpc.getGenerateSuggestedTargetingInsightsMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getGenerateSuggestedTargetingInsightsMethod = AudienceInsightsServiceGrpc.getGenerateSuggestedTargetingInsightsMethod) == null) { AudienceInsightsServiceGrpc.getGenerateSuggestedTargetingInsightsMethod = getGenerateSuggestedTargetingInsightsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateSuggestedTargetingInsights")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("GenerateSuggestedTargetingInsights")) .build(); } } } return getGenerateSuggestedTargetingInsightsMethod; } private static volatile io.grpc.MethodDescriptor getGenerateAudienceOverlapInsightsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateAudienceOverlapInsights", requestType = com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateAudienceOverlapInsightsMethod() { io.grpc.MethodDescriptor getGenerateAudienceOverlapInsightsMethod; if ((getGenerateAudienceOverlapInsightsMethod = AudienceInsightsServiceGrpc.getGenerateAudienceOverlapInsightsMethod) == null) { synchronized (AudienceInsightsServiceGrpc.class) { if ((getGenerateAudienceOverlapInsightsMethod = AudienceInsightsServiceGrpc.getGenerateAudienceOverlapInsightsMethod) == null) { AudienceInsightsServiceGrpc.getGenerateAudienceOverlapInsightsMethod = getGenerateAudienceOverlapInsightsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAudienceOverlapInsights")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsResponse.getDefaultInstance())) .setSchemaDescriptor(new AudienceInsightsServiceMethodDescriptorSupplier("GenerateAudienceOverlapInsights")) .build(); } } } return getGenerateAudienceOverlapInsightsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static AudienceInsightsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AudienceInsightsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceStub(channel, callOptions); } }; return AudienceInsightsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AudienceInsightsServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AudienceInsightsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceBlockingStub(channel, callOptions); } }; return AudienceInsightsServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AudienceInsightsServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AudienceInsightsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceFutureStub(channel, callOptions); } }; return AudienceInsightsServiceFutureStub.newStub(factory, channel); } /** *
   * Audience Insights Service helps users find information about groups of
   * people and how they can be reached with Google Ads. Accessible to
   * allowlisted customers only.
   * 
*/ public interface AsyncService { /** *
     * Creates a saved report that can be viewed in the Insights Finder tool.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void generateInsightsFinderReport(com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateInsightsFinderReportMethod(), responseObserver); } /** *
     * Searches for audience attributes that can be used to generate insights.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void listAudienceInsightsAttributes(com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAudienceInsightsAttributesMethod(), responseObserver); } /** *
     * Lists date ranges for which audience insights data can be requested.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void listInsightsEligibleDates(com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInsightsEligibleDatesMethod(), responseObserver); } /** *
     * Returns a collection of attributes that are represented in an audience of
     * interest, with metrics that compare each attribute's share of the audience
     * with its share of a baseline audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void generateAudienceCompositionInsights(com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAudienceCompositionInsightsMethod(), responseObserver); } /** *
     * Returns a collection of targeting insights (e.g. targetable audiences) that
     * are relevant to the requested audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void generateSuggestedTargetingInsights(com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateSuggestedTargetingInsightsMethod(), responseObserver); } /** *
     * Returns a collection of audience attributes along with estimates of the
     * overlap between their potential YouTube reach and that of a given input
     * attribute.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ default void generateAudienceOverlapInsights(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAudienceOverlapInsightsMethod(), responseObserver); } } /** * Base class for the server implementation of the service AudienceInsightsService. *
   * Audience Insights Service helps users find information about groups of
   * people and how they can be reached with Google Ads. Accessible to
   * allowlisted customers only.
   * 
*/ public static abstract class AudienceInsightsServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return AudienceInsightsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AudienceInsightsService. *
   * Audience Insights Service helps users find information about groups of
   * people and how they can be reached with Google Ads. Accessible to
   * allowlisted customers only.
   * 
*/ public static final class AudienceInsightsServiceStub extends io.grpc.stub.AbstractAsyncStub { private AudienceInsightsServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AudienceInsightsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceStub(channel, callOptions); } /** *
     * Creates a saved report that can be viewed in the Insights Finder tool.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void generateInsightsFinderReport(com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateInsightsFinderReportMethod(), getCallOptions()), request, responseObserver); } /** *
     * Searches for audience attributes that can be used to generate insights.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void listAudienceInsightsAttributes(com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAudienceInsightsAttributesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Lists date ranges for which audience insights data can be requested.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void listInsightsEligibleDates(com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListInsightsEligibleDatesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a collection of attributes that are represented in an audience of
     * interest, with metrics that compare each attribute's share of the audience
     * with its share of a baseline audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void generateAudienceCompositionInsights(com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateAudienceCompositionInsightsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a collection of targeting insights (e.g. targetable audiences) that
     * are relevant to the requested audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void generateSuggestedTargetingInsights(com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateSuggestedTargetingInsightsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a collection of audience attributes along with estimates of the
     * overlap between their potential YouTube reach and that of a given input
     * attribute.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public void generateAudienceOverlapInsights(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateAudienceOverlapInsightsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AudienceInsightsService. *
   * Audience Insights Service helps users find information about groups of
   * people and how they can be reached with Google Ads. Accessible to
   * allowlisted customers only.
   * 
*/ public static final class AudienceInsightsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AudienceInsightsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AudienceInsightsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceBlockingStub(channel, callOptions); } /** *
     * Creates a saved report that can be viewed in the Insights Finder tool.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateInsightsFinderReportResponse generateInsightsFinderReport(com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateInsightsFinderReportMethod(), getCallOptions(), request); } /** *
     * Searches for audience attributes that can be used to generate insights.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesResponse listAudienceInsightsAttributes(com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAudienceInsightsAttributesMethod(), getCallOptions(), request); } /** *
     * Lists date ranges for which audience insights data can be requested.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.ListInsightsEligibleDatesResponse listInsightsEligibleDates(com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInsightsEligibleDatesMethod(), getCallOptions(), request); } /** *
     * Returns a collection of attributes that are represented in an audience of
     * interest, with metrics that compare each attribute's share of the audience
     * with its share of a baseline audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsResponse generateAudienceCompositionInsights(com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateAudienceCompositionInsightsMethod(), getCallOptions(), request); } /** *
     * Returns a collection of targeting insights (e.g. targetable audiences) that
     * are relevant to the requested audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsResponse generateSuggestedTargetingInsights(com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateSuggestedTargetingInsightsMethod(), getCallOptions(), request); } /** *
     * Returns a collection of audience attributes along with estimates of the
     * overlap between their potential YouTube reach and that of a given input
     * attribute.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsResponse generateAudienceOverlapInsights(com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateAudienceOverlapInsightsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AudienceInsightsService. *
   * Audience Insights Service helps users find information about groups of
   * people and how they can be reached with Google Ads. Accessible to
   * allowlisted customers only.
   * 
*/ public static final class AudienceInsightsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private AudienceInsightsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AudienceInsightsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AudienceInsightsServiceFutureStub(channel, callOptions); } /** *
     * Creates a saved report that can be viewed in the Insights Finder tool.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateInsightsFinderReport( com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateInsightsFinderReportMethod(), getCallOptions()), request); } /** *
     * Searches for audience attributes that can be used to generate insights.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listAudienceInsightsAttributes( com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAudienceInsightsAttributesMethod(), getCallOptions()), request); } /** *
     * Lists date ranges for which audience insights data can be requested.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listInsightsEligibleDates( com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInsightsEligibleDatesMethod(), getCallOptions()), request); } /** *
     * Returns a collection of attributes that are represented in an audience of
     * interest, with metrics that compare each attribute's share of the audience
     * with its share of a baseline audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateAudienceCompositionInsights( com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateAudienceCompositionInsightsMethod(), getCallOptions()), request); } /** *
     * Returns a collection of targeting insights (e.g. targetable audiences) that
     * are relevant to the requested audience.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateSuggestedTargetingInsights( com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateSuggestedTargetingInsightsMethod(), getCallOptions()), request); } /** *
     * Returns a collection of audience attributes along with estimates of the
     * overlap between their potential YouTube reach and that of a given input
     * attribute.
     * List of thrown errors:
     *   [AudienceInsightsError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateAudienceOverlapInsights( com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateAudienceOverlapInsightsMethod(), getCallOptions()), request); } } private static final int METHODID_GENERATE_INSIGHTS_FINDER_REPORT = 0; private static final int METHODID_LIST_AUDIENCE_INSIGHTS_ATTRIBUTES = 1; private static final int METHODID_LIST_INSIGHTS_ELIGIBLE_DATES = 2; private static final int METHODID_GENERATE_AUDIENCE_COMPOSITION_INSIGHTS = 3; private static final int METHODID_GENERATE_SUGGESTED_TARGETING_INSIGHTS = 4; private static final int METHODID_GENERATE_AUDIENCE_OVERLAP_INSIGHTS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GENERATE_INSIGHTS_FINDER_REPORT: serviceImpl.generateInsightsFinderReport((com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_AUDIENCE_INSIGHTS_ATTRIBUTES: serviceImpl.listAudienceInsightsAttributes((com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_INSIGHTS_ELIGIBLE_DATES: serviceImpl.listInsightsEligibleDates((com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_AUDIENCE_COMPOSITION_INSIGHTS: serviceImpl.generateAudienceCompositionInsights((com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_SUGGESTED_TARGETING_INSIGHTS: serviceImpl.generateSuggestedTargetingInsights((com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_AUDIENCE_OVERLAP_INSIGHTS: serviceImpl.generateAudienceOverlapInsights((com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGenerateInsightsFinderReportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateInsightsFinderReportRequest, com.google.ads.googleads.v17.services.GenerateInsightsFinderReportResponse>( service, METHODID_GENERATE_INSIGHTS_FINDER_REPORT))) .addMethod( getListAudienceInsightsAttributesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesRequest, com.google.ads.googleads.v17.services.ListAudienceInsightsAttributesResponse>( service, METHODID_LIST_AUDIENCE_INSIGHTS_ATTRIBUTES))) .addMethod( getListInsightsEligibleDatesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.ListInsightsEligibleDatesRequest, com.google.ads.googleads.v17.services.ListInsightsEligibleDatesResponse>( service, METHODID_LIST_INSIGHTS_ELIGIBLE_DATES))) .addMethod( getGenerateAudienceCompositionInsightsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsRequest, com.google.ads.googleads.v17.services.GenerateAudienceCompositionInsightsResponse>( service, METHODID_GENERATE_AUDIENCE_COMPOSITION_INSIGHTS))) .addMethod( getGenerateSuggestedTargetingInsightsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsRequest, com.google.ads.googleads.v17.services.GenerateSuggestedTargetingInsightsResponse>( service, METHODID_GENERATE_SUGGESTED_TARGETING_INSIGHTS))) .addMethod( getGenerateAudienceOverlapInsightsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsRequest, com.google.ads.googleads.v17.services.GenerateAudienceOverlapInsightsResponse>( service, METHODID_GENERATE_AUDIENCE_OVERLAP_INSIGHTS))) .build(); } private static abstract class AudienceInsightsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AudienceInsightsServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AudienceInsightsService"); } } private static final class AudienceInsightsServiceFileDescriptorSupplier extends AudienceInsightsServiceBaseDescriptorSupplier { AudienceInsightsServiceFileDescriptorSupplier() {} } private static final class AudienceInsightsServiceMethodDescriptorSupplier extends AudienceInsightsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; AudienceInsightsServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (AudienceInsightsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AudienceInsightsServiceFileDescriptorSupplier()) .addMethod(getGenerateInsightsFinderReportMethod()) .addMethod(getListAudienceInsightsAttributesMethod()) .addMethod(getListInsightsEligibleDatesMethod()) .addMethod(getGenerateAudienceCompositionInsightsMethod()) .addMethod(getGenerateSuggestedTargetingInsightsMethod()) .addMethod(getGenerateAudienceOverlapInsightsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy