Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gapic-libraries-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<artifactId>google-cloud-pom-parent</artifactId>
<groupId>com.google.cloud</groupId>
<version>1.87.0</version><!-- {x-version-update:google-cloud-java:current} -->
<version>1.87.1</version><!-- {x-version-update:google-cloud-java:current} -->
<relativePath>../google-cloud-pom-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
googleapis_commitish: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1
googleapis_commitish: b282a4f9799f6725a1683d38ef3bb41f19c22b25
libraries_bom_version: 26.83.0
is_monorepo: true
libraries:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@
* </td>
* </tr>
* <tr>
* <td><p> IngestAdEvents</td>
* <td><p> Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics.
* <p> This feature is only available to accounts on an allowlist.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> ingestAdEvents(IngestAdEventsRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> ingestAdEventsCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> RetrieveRequestStatus</td>
* <td><p> Gets the status of a request given request id.</td>
* <td>
Expand Down Expand Up @@ -438,6 +453,71 @@ public final UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEven
return stub.ingestEventsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics.
*
* <p>This feature is only available to accounts on an allowlist.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
* IngestAdEventsRequest request =
* IngestAdEventsRequest.newBuilder()
* .addAllAdEvents(new ArrayList<AdEvent>())
* .setEncryptionInfo(EncryptionInfo.newBuilder().build())
* .setValidateOnly(true)
* .build();
* IngestAdEventsResponse response = ingestionServiceClient.ingestAdEvents(request);
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final IngestAdEventsResponse ingestAdEvents(IngestAdEventsRequest request) {
return ingestAdEventsCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics.
*
* <p>This feature is only available to accounts on an allowlist.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
* IngestAdEventsRequest request =
* IngestAdEventsRequest.newBuilder()
* .addAllAdEvents(new ArrayList<AdEvent>())
* .setEncryptionInfo(EncryptionInfo.newBuilder().build())
* .setValidateOnly(true)
* .build();
* ApiFuture<IngestAdEventsResponse> future =
* ingestionServiceClient.ingestAdEventsCallable().futureCall(request);
* // Do something.
* IngestAdEventsResponse response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsCallable() {
return stub.ingestAdEventsCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the status of a request given request id.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public UnaryCallSettings<IngestEventsRequest, IngestEventsResponse> ingestEvents
return ((IngestionServiceStubSettings) getStubSettings()).ingestEventsSettings();
}

/** Returns the object with the settings used for calls to ingestAdEvents. */
public UnaryCallSettings<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsSettings() {
return ((IngestionServiceStubSettings) getStubSettings()).ingestAdEventsSettings();
}

/** Returns the object with the settings used for calls to retrieveRequestStatus. */
public UnaryCallSettings<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusSettings() {
Expand Down Expand Up @@ -238,6 +243,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().ingestEventsSettings();
}

/** Returns the builder for the settings used for calls to ingestAdEvents. */
public UnaryCallSettings.Builder<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsSettings() {
return getStubSettingsBuilder().ingestAdEventsSettings();
}

/** Returns the builder for the settings used for calls to retrieveRequestStatus. */
public UnaryCallSettings.Builder<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"grpc": {
"libraryClient": "IngestionServiceClient",
"rpcs": {
"IngestAdEvents": {
"methods": ["ingestAdEvents", "ingestAdEventsCallable"]
},
"IngestAudienceMembers": {
"methods": ["ingestAudienceMembers", "ingestAudienceMembersCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.google.ads.datamanager.v1.stub;

import com.google.ads.datamanager.v1.IngestAdEventsRequest;
import com.google.ads.datamanager.v1.IngestAdEventsResponse;
import com.google.ads.datamanager.v1.IngestAudienceMembersRequest;
import com.google.ads.datamanager.v1.IngestAudienceMembersResponse;
import com.google.ads.datamanager.v1.IngestEventsRequest;
Expand Down Expand Up @@ -80,6 +82,18 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub {
.setSampledToLocalTracing(true)
.build();

private static final MethodDescriptor<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsMethodDescriptor =
MethodDescriptor.<IngestAdEventsRequest, IngestAdEventsResponse>newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents")
.setRequestMarshaller(
ProtoUtils.marshaller(IngestAdEventsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(IngestAdEventsResponse.getDefaultInstance()))
.setSampledToLocalTracing(true)
.build();

private static final MethodDescriptor<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusMethodDescriptor =
MethodDescriptor.<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>newBuilder()
Expand All @@ -97,6 +111,7 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub {
private final UnaryCallable<RemoveAudienceMembersRequest, RemoveAudienceMembersResponse>
removeAudienceMembersCallable;
private final UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEventsCallable;
private final UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsCallable;
private final UnaryCallable<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusCallable;

Expand Down Expand Up @@ -160,6 +175,11 @@ protected GrpcIngestionServiceStub(
GrpcCallSettings.<IngestEventsRequest, IngestEventsResponse>newBuilder()
.setMethodDescriptor(ingestEventsMethodDescriptor)
.build();
GrpcCallSettings<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsTransportSettings =
GrpcCallSettings.<IngestAdEventsRequest, IngestAdEventsResponse>newBuilder()
.setMethodDescriptor(ingestAdEventsMethodDescriptor)
.build();
GrpcCallSettings<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusTransportSettings =
GrpcCallSettings
Expand All @@ -180,6 +200,9 @@ protected GrpcIngestionServiceStub(
this.ingestEventsCallable =
callableFactory.createUnaryCallable(
ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext);
this.ingestAdEventsCallable =
callableFactory.createUnaryCallable(
ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext);
this.retrieveRequestStatusCallable =
callableFactory.createUnaryCallable(
retrieveRequestStatusTransportSettings,
Expand Down Expand Up @@ -211,6 +234,11 @@ public UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEventsCall
return ingestEventsCallable;
}

@Override
public UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsCallable() {
return ingestAdEventsCallable;
}

@Override
public UnaryCallable<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusCallable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.google.ads.datamanager.v1.stub;

import com.google.ads.datamanager.v1.IngestAdEventsRequest;
import com.google.ads.datamanager.v1.IngestAdEventsResponse;
import com.google.ads.datamanager.v1.IngestAudienceMembersRequest;
import com.google.ads.datamanager.v1.IngestAudienceMembersResponse;
import com.google.ads.datamanager.v1.IngestEventsRequest;
Expand Down Expand Up @@ -166,6 +168,42 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub {
.build())
.build();

private static final ApiMethodDescriptor<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsMethodDescriptor =
ApiMethodDescriptor.<IngestAdEventsRequest, IngestAdEventsResponse>newBuilder()
.setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents")
.setHttpMethod("POST")
.setType(ApiMethodDescriptor.MethodType.UNARY)
.setRequestFormatter(
ProtoMessageRequestFormatter.<IngestAdEventsRequest>newBuilder()
.setPath(
"/v1/adEvents:ingest",
request -> {
Map<String, String> fields = new HashMap<>();
ProtoRestSerializer<IngestAdEventsRequest> serializer =
ProtoRestSerializer.create();
return fields;
})
.setQueryParamsExtractor(
request -> {
Map<String, List<String>> fields = new HashMap<>();
ProtoRestSerializer<IngestAdEventsRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().build(), true))
.build())
.setResponseParser(
ProtoMessageResponseParser.<IngestAdEventsResponse>newBuilder()
.setDefaultInstance(IngestAdEventsResponse.getDefaultInstance())
.setDefaultTypeRegistry(typeRegistry)
.build())
.build();

private static final ApiMethodDescriptor<
RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusMethodDescriptor =
Expand Down Expand Up @@ -207,6 +245,7 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub {
private final UnaryCallable<RemoveAudienceMembersRequest, RemoveAudienceMembersResponse>
removeAudienceMembersCallable;
private final UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEventsCallable;
private final UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsCallable;
private final UnaryCallable<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusCallable;

Expand Down Expand Up @@ -271,6 +310,12 @@ protected HttpJsonIngestionServiceStub(
.setMethodDescriptor(ingestEventsMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
HttpJsonCallSettings<IngestAdEventsRequest, IngestAdEventsResponse>
ingestAdEventsTransportSettings =
HttpJsonCallSettings.<IngestAdEventsRequest, IngestAdEventsResponse>newBuilder()
.setMethodDescriptor(ingestAdEventsMethodDescriptor)
.setTypeRegistry(typeRegistry)
.build();
HttpJsonCallSettings<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusTransportSettings =
HttpJsonCallSettings
Expand All @@ -292,6 +337,9 @@ protected HttpJsonIngestionServiceStub(
this.ingestEventsCallable =
callableFactory.createUnaryCallable(
ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext);
this.ingestAdEventsCallable =
callableFactory.createUnaryCallable(
ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext);
this.retrieveRequestStatusCallable =
callableFactory.createUnaryCallable(
retrieveRequestStatusTransportSettings,
Expand All @@ -308,6 +356,7 @@ public static List<ApiMethodDescriptor> getMethodDescriptors() {
methodDescriptors.add(ingestAudienceMembersMethodDescriptor);
methodDescriptors.add(removeAudienceMembersMethodDescriptor);
methodDescriptors.add(ingestEventsMethodDescriptor);
methodDescriptors.add(ingestAdEventsMethodDescriptor);
methodDescriptors.add(retrieveRequestStatusMethodDescriptor);
return methodDescriptors;
}
Expand All @@ -329,6 +378,11 @@ public UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEventsCall
return ingestEventsCallable;
}

@Override
public UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsCallable() {
return ingestAdEventsCallable;
}

@Override
public UnaryCallable<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusCallable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.google.ads.datamanager.v1.stub;

import com.google.ads.datamanager.v1.IngestAdEventsRequest;
import com.google.ads.datamanager.v1.IngestAdEventsResponse;
import com.google.ads.datamanager.v1.IngestAudienceMembersRequest;
import com.google.ads.datamanager.v1.IngestAudienceMembersResponse;
import com.google.ads.datamanager.v1.IngestEventsRequest;
Expand Down Expand Up @@ -51,6 +53,10 @@ public UnaryCallable<IngestEventsRequest, IngestEventsResponse> ingestEventsCall
throw new UnsupportedOperationException("Not implemented: ingestEventsCallable()");
}

public UnaryCallable<IngestAdEventsRequest, IngestAdEventsResponse> ingestAdEventsCallable() {
throw new UnsupportedOperationException("Not implemented: ingestAdEventsCallable()");
}

public UnaryCallable<RetrieveRequestStatusRequest, RetrieveRequestStatusResponse>
retrieveRequestStatusCallable() {
throw new UnsupportedOperationException("Not implemented: retrieveRequestStatusCallable()");
Expand Down
Loading
Loading