Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 62fd895

Browse files
feat: generating GAPIC libraries for Google Cloud Functions v2beta
PiperOrigin-RevId: 459309277 Source-Link: googleapis/googleapis@2844793 Source-Link: https://github.com/googleapis/googleapis-gen/commit/319987cc0e8789a368e34882271a92b0717c9c8f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzE5OTg3Y2MwZTg3ODlhMzY4ZTM0ODgyMjcxYTkyYjA3MTdjOWM4ZiJ9
1 parent 3c6f8ac commit 62fd895

395 files changed

Lines changed: 77998 additions & 40364 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

grpc-google-cloud-functions-v2alpha/src/main/java/com/google/cloud/functions/v2alpha/FunctionServiceGrpc.java

Lines changed: 0 additions & 1309 deletions
This file was deleted.

grpc-google-cloud-functions-v2beta/src/main/java/com/google/cloud/functions/v2beta/FunctionServiceGrpc.java

Lines changed: 0 additions & 1302 deletions
This file was deleted.

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceClient.java

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
* methods:
6969
*
7070
* <ol>
71-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
71+
* <li> A "flattened" method. With this type of method, the fields of the request type have been
7272
* converted into function parameters. It may be the case that not all fields are available as
7373
* parameters, and not every API method will have a flattened method entry point.
74-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
74+
* <li> A "request object" method. This type of method only takes one parameter, a request object,
7575
* which must be constructed before the call. Not every API method will have a request object
7676
* method.
77-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
77+
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
7878
* callable object, which can be used to initiate calls to the service.
7979
* </ol>
8080
*
@@ -927,9 +927,9 @@ public final UnaryCallable<CallFunctionRequest, CallFunctionResponse> callFuncti
927927
* <p>When uploading source code to the generated signed URL, please follow these restrictions:
928928
*
929929
* <ul>
930-
* <li>Source file type should be a zip file.
931-
* <li>Source file size should not exceed 100MB limit.
932-
* <li>No credentials should be attached - the signed URLs provide access to the target bucket
930+
* <li> Source file type should be a zip file.
931+
* <li> Source file size should not exceed 100MB limit.
932+
* <li> No credentials should be attached - the signed URLs provide access to the target bucket
933933
* using internal service identity; if credentials were attached, the identity from the
934934
* credentials would be used, but that identity does not have permissions to upload files to
935935
* the URL.
@@ -938,14 +938,14 @@ public final UnaryCallable<CallFunctionRequest, CallFunctionResponse> callFuncti
938938
* <p>When making a HTTP PUT request, these two headers need to be specified:
939939
*
940940
* <ul>
941-
* <li>`content-type: application/zip`
942-
* <li>`x-goog-content-length-range: 0,104857600`
941+
* <li> `content-type: application/zip`
942+
* <li> `x-goog-content-length-range: 0,104857600`
943943
* </ul>
944944
*
945945
* <p>And this header SHOULD NOT be specified:
946946
*
947947
* <ul>
948-
* <li>`Authorization: Bearer YOUR_TOKEN`
948+
* <li> `Authorization: Bearer YOUR_TOKEN`
949949
* </ul>
950950
*
951951
* <p>Sample code:
@@ -983,9 +983,9 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
983983
* <p>When uploading source code to the generated signed URL, please follow these restrictions:
984984
*
985985
* <ul>
986-
* <li>Source file type should be a zip file.
987-
* <li>Source file size should not exceed 100MB limit.
988-
* <li>No credentials should be attached - the signed URLs provide access to the target bucket
986+
* <li> Source file type should be a zip file.
987+
* <li> Source file size should not exceed 100MB limit.
988+
* <li> No credentials should be attached - the signed URLs provide access to the target bucket
989989
* using internal service identity; if credentials were attached, the identity from the
990990
* credentials would be used, but that identity does not have permissions to upload files to
991991
* the URL.
@@ -994,14 +994,14 @@ public final GenerateUploadUrlResponse generateUploadUrl(GenerateUploadUrlReques
994994
* <p>When making a HTTP PUT request, these two headers need to be specified:
995995
*
996996
* <ul>
997-
* <li>`content-type: application/zip`
998-
* <li>`x-goog-content-length-range: 0,104857600`
997+
* <li> `content-type: application/zip`
998+
* <li> `x-goog-content-length-range: 0,104857600`
999999
* </ul>
10001000
*
10011001
* <p>And this header SHOULD NOT be specified:
10021002
*
10031003
* <ul>
1004-
* <li>`Authorization: Bearer YOUR_TOKEN`
1004+
* <li> `Authorization: Bearer YOUR_TOKEN`
10051005
* </ul>
10061006
*
10071007
* <p>Sample code:
@@ -1291,10 +1291,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted
12911291

12921292
public static class ListFunctionsPagedResponse
12931293
extends AbstractPagedListResponse<
1294-
ListFunctionsRequest,
1295-
ListFunctionsResponse,
1296-
CloudFunction,
1297-
ListFunctionsPage,
1294+
ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage,
12981295
ListFunctionsFixedSizeCollection> {
12991296

13001297
public static ApiFuture<ListFunctionsPagedResponse> createAsync(
@@ -1344,10 +1341,7 @@ public ApiFuture<ListFunctionsPage> createPageAsync(
13441341

13451342
public static class ListFunctionsFixedSizeCollection
13461343
extends AbstractFixedSizeCollection<
1347-
ListFunctionsRequest,
1348-
ListFunctionsResponse,
1349-
CloudFunction,
1350-
ListFunctionsPage,
1344+
ListFunctionsRequest, ListFunctionsResponse, CloudFunction, ListFunctionsPage,
13511345
ListFunctionsFixedSizeCollection> {
13521346

13531347
private ListFunctionsFixedSizeCollection(List<ListFunctionsPage> pages, int collectionSize) {

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/CloudFunctionsServiceSettings.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.google.api.gax.rpc.ClientSettings;
3030
import com.google.api.gax.rpc.OperationCallSettings;
3131
import com.google.api.gax.rpc.PagedCallSettings;
32+
import com.google.api.gax.rpc.StubSettings;
3233
import com.google.api.gax.rpc.TransportChannelProvider;
3334
import com.google.api.gax.rpc.UnaryCallSettings;
3435
import com.google.cloud.functions.v1.stub.CloudFunctionsServiceStubSettings;
@@ -50,10 +51,10 @@
5051
* <p>The default instance has everything set to sensible defaults:
5152
*
5253
* <ul>
53-
* <li>The default service address (cloudfunctions.googleapis.com) and default port (443) are
54+
* <li> The default service address (cloudfunctions.googleapis.com) and default port (443) are
5455
* used.
55-
* <li>Credentials are acquired automatically through Application Default Credentials.
56-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
56+
* <li> Credentials are acquired automatically through Application Default Credentials.
57+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
5758
* </ul>
5859
*
5960
* <p>The builder of this class is recursive, so contained classes are themselves builders. When

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/gapic_metadata.json

File renamed without changes.

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/package-info.java

File renamed without changes.

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStub.java

File renamed without changes.

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/CloudFunctionsServiceStubSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
* <p>The default instance has everything set to sensible defaults:
8585
*
8686
* <ul>
87-
* <li>The default service address (cloudfunctions.googleapis.com) and default port (443) are
87+
* <li> The default service address (cloudfunctions.googleapis.com) and default port (443) are
8888
* used.
89-
* <li>Credentials are acquired automatically through Application Default Credentials.
90-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
89+
* <li> Credentials are acquired automatically through Application Default Credentials.
90+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
9191
* </ul>
9292
*
9393
* <p>The builder of this class is recursive, so contained classes are themselves builders. When

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceCallableFactory.java

File renamed without changes.

google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java renamed to owl-bot-staging/v1/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/GrpcCloudFunctionsServiceStub.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import io.grpc.MethodDescriptor;
5252
import io.grpc.protobuf.ProtoUtils;
5353
import java.io.IOException;
54+
import java.util.Map;
5455
import java.util.concurrent.TimeUnit;
5556
import javax.annotation.Generated;
5657

0 commit comments

Comments
 (0)