diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageCallableFactory.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageCallableFactory.java
deleted file mode 100644
index 320b57f4ce..0000000000
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageCallableFactory.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.storage.v2.stub;
-
-import com.google.api.core.BetaApi;
-import com.google.api.gax.httpjson.HttpJsonCallSettings;
-import com.google.api.gax.httpjson.HttpJsonCallableFactory;
-import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
-import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
-import com.google.api.gax.httpjson.longrunning.stub.OperationsStub;
-import com.google.api.gax.rpc.BatchingCallSettings;
-import com.google.api.gax.rpc.ClientContext;
-import com.google.api.gax.rpc.OperationCallSettings;
-import com.google.api.gax.rpc.OperationCallable;
-import com.google.api.gax.rpc.PagedCallSettings;
-import com.google.api.gax.rpc.ServerStreamingCallSettings;
-import com.google.api.gax.rpc.ServerStreamingCallable;
-import com.google.api.gax.rpc.UnaryCallSettings;
-import com.google.api.gax.rpc.UnaryCallable;
-import com.google.longrunning.Operation;
-import javax.annotation.Generated;
-
-// AUTO-GENERATED DOCUMENTATION AND CLASS.
-/**
- * REST callable factory implementation for the Storage service API.
- *
- *
This class is for advanced usage.
- */
-@Generated("by gapic-generator-java")
-@BetaApi
-public class HttpJsonStorageCallableFactory
- implements HttpJsonStubCallableFactory {
-
- @Override
- public UnaryCallable createUnaryCallable(
- HttpJsonCallSettings httpJsonCallSettings,
- UnaryCallSettings callSettings,
- ClientContext clientContext) {
- return HttpJsonCallableFactory.createUnaryCallable(
- httpJsonCallSettings, callSettings, clientContext);
- }
-
- @Override
- public
- UnaryCallable createPagedCallable(
- HttpJsonCallSettings httpJsonCallSettings,
- PagedCallSettings callSettings,
- ClientContext clientContext) {
- return HttpJsonCallableFactory.createPagedCallable(
- httpJsonCallSettings, callSettings, clientContext);
- }
-
- @Override
- public UnaryCallable createBatchingCallable(
- HttpJsonCallSettings httpJsonCallSettings,
- BatchingCallSettings callSettings,
- ClientContext clientContext) {
- return HttpJsonCallableFactory.createBatchingCallable(
- httpJsonCallSettings, callSettings, clientContext);
- }
-
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- @Override
- public
- OperationCallable createOperationCallable(
- HttpJsonCallSettings httpJsonCallSettings,
- OperationCallSettings callSettings,
- ClientContext clientContext,
- OperationsStub operationsStub) {
- UnaryCallable innerCallable =
- HttpJsonCallableFactory.createBaseUnaryCallable(
- httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext);
- HttpJsonOperationSnapshotCallable initialCallable =
- new HttpJsonOperationSnapshotCallable(
- innerCallable,
- httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory());
- return HttpJsonCallableFactory.createOperationCallable(
- callSettings, clientContext, operationsStub.longRunningClient(), initialCallable);
- }
-
- @Override
- public
- ServerStreamingCallable createServerStreamingCallable(
- HttpJsonCallSettings httpJsonCallSettings,
- ServerStreamingCallSettings callSettings,
- ClientContext clientContext) {
- return HttpJsonCallableFactory.createServerStreamingCallable(
- httpJsonCallSettings, callSettings, clientContext);
- }
-}
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageStub.java b/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageStub.java
deleted file mode 100644
index 5c9f6f729d..0000000000
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/HttpJsonStorageStub.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.storage.v2.stub;
-
-import com.google.api.core.BetaApi;
-import com.google.api.core.InternalApi;
-import com.google.api.gax.core.BackgroundResource;
-import com.google.api.gax.core.BackgroundResourceAggregation;
-import com.google.api.gax.httpjson.ApiMethodDescriptor;
-import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
-import com.google.api.gax.rpc.ClientContext;
-import com.google.protobuf.TypeRegistry;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.concurrent.TimeUnit;
-import javax.annotation.Generated;
-
-// AUTO-GENERATED DOCUMENTATION AND CLASS.
-/**
- * REST stub implementation for the Storage service API.
- *
- * This class is for advanced usage and reflects the underlying API directly.
- */
-@Generated("by gapic-generator-java")
-@BetaApi
-public class HttpJsonStorageStub extends StorageStub {
- private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
-
- private final BackgroundResource backgroundResources;
- private final HttpJsonStubCallableFactory callableFactory;
-
- public static final HttpJsonStorageStub create(StorageStubSettings settings) throws IOException {
- return new HttpJsonStorageStub(settings, ClientContext.create(settings));
- }
-
- public static final HttpJsonStorageStub create(ClientContext clientContext) throws IOException {
- return new HttpJsonStorageStub(StorageStubSettings.newHttpJsonBuilder().build(), clientContext);
- }
-
- public static final HttpJsonStorageStub create(
- ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException {
- return new HttpJsonStorageStub(
- StorageStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory);
- }
-
- /**
- * Constructs an instance of HttpJsonStorageStub, using the given settings. This is protected so
- * that it is easy to make a subclass, but otherwise, the static factory methods should be
- * preferred.
- */
- protected HttpJsonStorageStub(StorageStubSettings settings, ClientContext clientContext)
- throws IOException {
- this(settings, clientContext, new HttpJsonStorageCallableFactory());
- }
-
- /**
- * Constructs an instance of HttpJsonStorageStub, using the given settings. This is protected so
- * that it is easy to make a subclass, but otherwise, the static factory methods should be
- * preferred.
- */
- protected HttpJsonStorageStub(
- StorageStubSettings settings,
- ClientContext clientContext,
- HttpJsonStubCallableFactory callableFactory)
- throws IOException {
- this.callableFactory = callableFactory;
-
- this.backgroundResources =
- new BackgroundResourceAggregation(clientContext.getBackgroundResources());
- }
-
- @InternalApi
- public static List getMethodDescriptors() {
- List methodDescriptors = new ArrayList<>();
- return methodDescriptors;
- }
-
- @Override
- public final void close() {
- try {
- backgroundResources.close();
- } catch (RuntimeException e) {
- throw e;
- } catch (Exception e) {
- throw new IllegalStateException("Failed to close resource", e);
- }
- }
-
- @Override
- public void shutdown() {
- backgroundResources.shutdown();
- }
-
- @Override
- public boolean isShutdown() {
- return backgroundResources.isShutdown();
- }
-
- @Override
- public boolean isTerminated() {
- return backgroundResources.isTerminated();
- }
-
- @Override
- public void shutdownNow() {
- backgroundResources.shutdownNow();
- }
-
- @Override
- public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
- return backgroundResources.awaitTermination(duration, unit);
- }
-}
diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientHttpJsonTest.java b/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientHttpJsonTest.java
deleted file mode 100644
index 5b599f0624..0000000000
--- a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientHttpJsonTest.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * Copyright 2022 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.google.storage.v2;
-
-import com.google.api.gax.core.NoCredentialsProvider;
-import com.google.api.gax.httpjson.testing.MockHttpService;
-import com.google.storage.v2.stub.HttpJsonStorageStub;
-import java.io.IOException;
-import javax.annotation.Generated;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-@Generated("by gapic-generator-java")
-public class StorageClientHttpJsonTest {
- private static MockHttpService mockService;
- private static StorageClient client;
-
- @BeforeClass
- public static void startStaticServer() throws IOException {
- mockService =
- new MockHttpService(
- HttpJsonStorageStub.getMethodDescriptors(), StorageSettings.getDefaultEndpoint());
- StorageSettings settings =
- StorageSettings.newHttpJsonBuilder()
- .setTransportChannelProvider(
- StorageSettings.defaultHttpJsonTransportProviderBuilder()
- .setHttpTransport(mockService)
- .build())
- .setCredentialsProvider(NoCredentialsProvider.create())
- .build();
- client = StorageClient.create(settings);
- }
-
- @AfterClass
- public static void stopServer() {
- client.close();
- }
-
- @Before
- public void setUp() {}
-
- @After
- public void tearDown() throws Exception {
- mockService.reset();
- }
-
- @Test
- public void deleteBucketUnsupportedMethodTest() throws Exception {
- // The deleteBucket() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getBucketUnsupportedMethodTest() throws Exception {
- // The getBucket() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void createBucketUnsupportedMethodTest() throws Exception {
- // The createBucket() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void listBucketsUnsupportedMethodTest() throws Exception {
- // The listBuckets() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void lockBucketRetentionPolicyUnsupportedMethodTest() throws Exception {
- // The lockBucketRetentionPolicy() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getIamPolicyUnsupportedMethodTest() throws Exception {
- // The getIamPolicy() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void setIamPolicyUnsupportedMethodTest() throws Exception {
- // The setIamPolicy() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void testIamPermissionsUnsupportedMethodTest() throws Exception {
- // The testIamPermissions() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void updateBucketUnsupportedMethodTest() throws Exception {
- // The updateBucket() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void deleteNotificationUnsupportedMethodTest() throws Exception {
- // The deleteNotification() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getNotificationUnsupportedMethodTest() throws Exception {
- // The getNotification() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void createNotificationUnsupportedMethodTest() throws Exception {
- // The createNotification() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void listNotificationsUnsupportedMethodTest() throws Exception {
- // The listNotifications() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void composeObjectUnsupportedMethodTest() throws Exception {
- // The composeObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void deleteObjectUnsupportedMethodTest() throws Exception {
- // The deleteObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void cancelResumableWriteUnsupportedMethodTest() throws Exception {
- // The cancelResumableWrite() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getObjectUnsupportedMethodTest() throws Exception {
- // The getObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void readObjectUnsupportedMethodTest() throws Exception {
- // The readObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void updateObjectUnsupportedMethodTest() throws Exception {
- // The updateObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void writeObjectUnsupportedMethodTest() throws Exception {
- // The writeObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void listObjectsUnsupportedMethodTest() throws Exception {
- // The listObjects() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void rewriteObjectUnsupportedMethodTest() throws Exception {
- // The rewriteObject() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void startResumableWriteUnsupportedMethodTest() throws Exception {
- // The startResumableWrite() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void queryWriteStatusUnsupportedMethodTest() throws Exception {
- // The queryWriteStatus() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getServiceAccountUnsupportedMethodTest() throws Exception {
- // The getServiceAccount() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void createHmacKeyUnsupportedMethodTest() throws Exception {
- // The createHmacKey() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void deleteHmacKeyUnsupportedMethodTest() throws Exception {
- // The deleteHmacKey() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void getHmacKeyUnsupportedMethodTest() throws Exception {
- // The getHmacKey() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void listHmacKeysUnsupportedMethodTest() throws Exception {
- // The listHmacKeys() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-
- @Test
- public void updateHmacKeyUnsupportedMethodTest() throws Exception {
- // The updateHmacKey() method is not supported in REST transport.
- // This empty test is generated for technical reasons.
- }
-}
diff --git a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java
deleted file mode 100644
index 74422ea150..0000000000
--- a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java
+++ /dev/null
@@ -1,3781 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.google.storage.v2;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- *
- *
- *
- * ## API Overview and Naming Syntax
- * The Cloud Storage gRPC API allows applications to read and write data through
- * the abstractions of buckets and objects. For a description of these
- * abstractions please see https://cloud.google.com/storage/docs.
- * Resources are named as follows:
- * - Projects are referred to as they are defined by the Resource Manager API,
- * using strings like `projects/123456` or `projects/my-string-id`.
- * - Buckets are named using string names of the form:
- * `projects/{project}/buckets/{bucket}`
- * For globally unique buckets, `_` may be substituted for the project.
- * - Objects are uniquely identified by their name along with the name of the
- * bucket they belong to, as separate strings in this API. For example:
- * ReadObjectRequest {
- * bucket: 'projects/_/buckets/my-bucket'
- * object: 'my-object'
- * }
- * Note that object names can contain `/` characters, which are treated as
- * any other character (no special directory semantics).
- *
- */
-@javax.annotation.Generated(
- value = "by gRPC proto compiler",
- comments = "Source: google/storage/v2/storage.proto")
-@io.grpc.stub.annotations.GrpcGenerated
-public final class StorageGrpc {
-
- private StorageGrpc() {}
-
- public static final String SERVICE_NAME = "google.storage.v2.Storage";
-
- // Static method descriptors that strictly reflect the proto.
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
- getDeleteBucketMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DeleteBucket",
- requestType = com.google.storage.v2.DeleteBucketRequest.class,
- responseType = com.google.protobuf.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
- getDeleteBucketMethod() {
- io.grpc.MethodDescriptor
- getDeleteBucketMethod;
- if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
- StorageGrpc.getDeleteBucketMethod =
- getDeleteBucketMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
- .build();
- }
- }
- }
- return getDeleteBucketMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
- getGetBucketMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetBucket",
- requestType = com.google.storage.v2.GetBucketRequest.class,
- responseType = com.google.storage.v2.Bucket.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
- getGetBucketMethod() {
- io.grpc.MethodDescriptor
- getGetBucketMethod;
- if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
- StorageGrpc.getGetBucketMethod =
- getGetBucketMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Bucket.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
- .build();
- }
- }
- }
- return getGetBucketMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
- getCreateBucketMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "CreateBucket",
- requestType = com.google.storage.v2.CreateBucketRequest.class,
- responseType = com.google.storage.v2.Bucket.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
- getCreateBucketMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
- getCreateBucketMethod;
- if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
- StorageGrpc.getCreateBucketMethod =
- getCreateBucketMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Bucket.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
- .build();
- }
- }
- }
- return getCreateBucketMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
- getListBucketsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListBuckets",
- requestType = com.google.storage.v2.ListBucketsRequest.class,
- responseType = com.google.storage.v2.ListBucketsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
- getListBucketsMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
- getListBucketsMethod;
- if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
- StorageGrpc.getListBucketsMethod =
- getListBucketsMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
- .build();
- }
- }
- }
- return getListBucketsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
- getLockBucketRetentionPolicyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "LockBucketRetentionPolicy",
- requestType = com.google.storage.v2.LockBucketRetentionPolicyRequest.class,
- responseType = com.google.storage.v2.Bucket.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
- getLockBucketRetentionPolicyMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
- getLockBucketRetentionPolicyMethod;
- if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
- == null) {
- synchronized (StorageGrpc.class) {
- if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
- == null) {
- StorageGrpc.getLockBucketRetentionPolicyMethod =
- getLockBucketRetentionPolicyMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.LockBucketRetentionPolicyRequest
- .getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Bucket.getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
- .build();
- }
- }
- }
- return getLockBucketRetentionPolicyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
- getGetIamPolicyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
- requestType = com.google.iam.v1.GetIamPolicyRequest.class,
- responseType = com.google.iam.v1.Policy.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
- getGetIamPolicyMethod() {
- io.grpc.MethodDescriptor
- getGetIamPolicyMethod;
- if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
- StorageGrpc.getGetIamPolicyMethod =
- getGetIamPolicyMethod =
- io.grpc.MethodDescriptor
- .newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
- .build();
- }
- }
- }
- return getGetIamPolicyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
- getSetIamPolicyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
- requestType = com.google.iam.v1.SetIamPolicyRequest.class,
- responseType = com.google.iam.v1.Policy.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
- getSetIamPolicyMethod() {
- io.grpc.MethodDescriptor
- getSetIamPolicyMethod;
- if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
- StorageGrpc.getSetIamPolicyMethod =
- getSetIamPolicyMethod =
- io.grpc.MethodDescriptor
- .newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.Policy.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
- .build();
- }
- }
- }
- return getSetIamPolicyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
- getTestIamPermissionsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
- requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
- responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
- getTestIamPermissionsMethod() {
- io.grpc.MethodDescriptor<
- com.google.iam.v1.TestIamPermissionsRequest,
- com.google.iam.v1.TestIamPermissionsResponse>
- getTestIamPermissionsMethod;
- if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
- StorageGrpc.getTestIamPermissionsMethod =
- getTestIamPermissionsMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("TestIamPermissions"))
- .build();
- }
- }
- }
- return getTestIamPermissionsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
- getUpdateBucketMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "UpdateBucket",
- requestType = com.google.storage.v2.UpdateBucketRequest.class,
- responseType = com.google.storage.v2.Bucket.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
- getUpdateBucketMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
- getUpdateBucketMethod;
- if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
- StorageGrpc.getUpdateBucketMethod =
- getUpdateBucketMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Bucket.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
- .build();
- }
- }
- }
- return getUpdateBucketMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteNotificationRequest, com.google.protobuf.Empty>
- getDeleteNotificationMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DeleteNotification",
- requestType = com.google.storage.v2.DeleteNotificationRequest.class,
- responseType = com.google.protobuf.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteNotificationRequest, com.google.protobuf.Empty>
- getDeleteNotificationMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteNotificationRequest, com.google.protobuf.Empty>
- getDeleteNotificationMethod;
- if ((getDeleteNotificationMethod = StorageGrpc.getDeleteNotificationMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getDeleteNotificationMethod = StorageGrpc.getDeleteNotificationMethod) == null) {
- StorageGrpc.getDeleteNotificationMethod =
- getDeleteNotificationMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotification"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.DeleteNotificationRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("DeleteNotification"))
- .build();
- }
- }
- }
- return getDeleteNotificationMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.GetNotificationRequest, com.google.storage.v2.Notification>
- getGetNotificationMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetNotification",
- requestType = com.google.storage.v2.GetNotificationRequest.class,
- responseType = com.google.storage.v2.Notification.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.GetNotificationRequest, com.google.storage.v2.Notification>
- getGetNotificationMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.GetNotificationRequest, com.google.storage.v2.Notification>
- getGetNotificationMethod;
- if ((getGetNotificationMethod = StorageGrpc.getGetNotificationMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetNotificationMethod = StorageGrpc.getGetNotificationMethod) == null) {
- StorageGrpc.getGetNotificationMethod =
- getGetNotificationMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.GetNotificationRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Notification.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetNotification"))
- .build();
- }
- }
- }
- return getGetNotificationMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateNotificationRequest, com.google.storage.v2.Notification>
- getCreateNotificationMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "CreateNotification",
- requestType = com.google.storage.v2.CreateNotificationRequest.class,
- responseType = com.google.storage.v2.Notification.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateNotificationRequest, com.google.storage.v2.Notification>
- getCreateNotificationMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateNotificationRequest, com.google.storage.v2.Notification>
- getCreateNotificationMethod;
- if ((getCreateNotificationMethod = StorageGrpc.getCreateNotificationMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getCreateNotificationMethod = StorageGrpc.getCreateNotificationMethod) == null) {
- StorageGrpc.getCreateNotificationMethod =
- getCreateNotificationMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotification"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CreateNotificationRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Notification.getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("CreateNotification"))
- .build();
- }
- }
- }
- return getCreateNotificationMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ListNotificationsRequest,
- com.google.storage.v2.ListNotificationsResponse>
- getListNotificationsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListNotifications",
- requestType = com.google.storage.v2.ListNotificationsRequest.class,
- responseType = com.google.storage.v2.ListNotificationsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ListNotificationsRequest,
- com.google.storage.v2.ListNotificationsResponse>
- getListNotificationsMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ListNotificationsRequest,
- com.google.storage.v2.ListNotificationsResponse>
- getListNotificationsMethod;
- if ((getListNotificationsMethod = StorageGrpc.getListNotificationsMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getListNotificationsMethod = StorageGrpc.getListNotificationsMethod) == null) {
- StorageGrpc.getListNotificationsMethod =
- getListNotificationsMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListNotificationsRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListNotificationsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListNotifications"))
- .build();
- }
- }
- }
- return getListNotificationsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
- getComposeObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ComposeObject",
- requestType = com.google.storage.v2.ComposeObjectRequest.class,
- responseType = com.google.storage.v2.Object.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
- getComposeObjectMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
- getComposeObjectMethod;
- if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
- StorageGrpc.getComposeObjectMethod =
- getComposeObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Object.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
- .build();
- }
- }
- }
- return getComposeObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
- getDeleteObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DeleteObject",
- requestType = com.google.storage.v2.DeleteObjectRequest.class,
- responseType = com.google.protobuf.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
- getDeleteObjectMethod() {
- io.grpc.MethodDescriptor
- getDeleteObjectMethod;
- if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
- StorageGrpc.getDeleteObjectMethod =
- getDeleteObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.DeleteObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteObject"))
- .build();
- }
- }
- }
- return getDeleteObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.CancelResumableWriteRequest,
- com.google.storage.v2.CancelResumableWriteResponse>
- getCancelResumableWriteMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "CancelResumableWrite",
- requestType = com.google.storage.v2.CancelResumableWriteRequest.class,
- responseType = com.google.storage.v2.CancelResumableWriteResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.CancelResumableWriteRequest,
- com.google.storage.v2.CancelResumableWriteResponse>
- getCancelResumableWriteMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.CancelResumableWriteRequest,
- com.google.storage.v2.CancelResumableWriteResponse>
- getCancelResumableWriteMethod;
- if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
- StorageGrpc.getCancelResumableWriteMethod =
- getCancelResumableWriteMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- generateFullMethodName(SERVICE_NAME, "CancelResumableWrite"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CancelResumableWriteRequest
- .getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CancelResumableWriteResponse
- .getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("CancelResumableWrite"))
- .build();
- }
- }
- }
- return getCancelResumableWriteMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
- getGetObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetObject",
- requestType = com.google.storage.v2.GetObjectRequest.class,
- responseType = com.google.storage.v2.Object.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
- getGetObjectMethod() {
- io.grpc.MethodDescriptor
- getGetObjectMethod;
- if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
- StorageGrpc.getGetObjectMethod =
- getGetObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.GetObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Object.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetObject"))
- .build();
- }
- }
- }
- return getGetObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
- getReadObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ReadObject",
- requestType = com.google.storage.v2.ReadObjectRequest.class,
- responseType = com.google.storage.v2.ReadObjectResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
- getReadObjectMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
- getReadObjectMethod;
- if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
- StorageGrpc.getReadObjectMethod =
- getReadObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ReadObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ReadObjectResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ReadObject"))
- .build();
- }
- }
- }
- return getReadObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
- getUpdateObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "UpdateObject",
- requestType = com.google.storage.v2.UpdateObjectRequest.class,
- responseType = com.google.storage.v2.Object.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
- getUpdateObjectMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
- getUpdateObjectMethod;
- if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
- StorageGrpc.getUpdateObjectMethod =
- getUpdateObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.UpdateObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.Object.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateObject"))
- .build();
- }
- }
- }
- return getUpdateObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
- getWriteObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "WriteObject",
- requestType = com.google.storage.v2.WriteObjectRequest.class,
- responseType = com.google.storage.v2.WriteObjectResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
- getWriteObjectMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
- getWriteObjectMethod;
- if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
- StorageGrpc.getWriteObjectMethod =
- getWriteObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.WriteObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.WriteObjectResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("WriteObject"))
- .build();
- }
- }
- }
- return getWriteObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
- getListObjectsMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListObjects",
- requestType = com.google.storage.v2.ListObjectsRequest.class,
- responseType = com.google.storage.v2.ListObjectsResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
- getListObjectsMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
- getListObjectsMethod;
- if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
- StorageGrpc.getListObjectsMethod =
- getListObjectsMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListObjects"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListObjectsRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListObjectsResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListObjects"))
- .build();
- }
- }
- }
- return getListObjectsMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
- getRewriteObjectMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "RewriteObject",
- requestType = com.google.storage.v2.RewriteObjectRequest.class,
- responseType = com.google.storage.v2.RewriteResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
- getRewriteObjectMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
- getRewriteObjectMethod;
- if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
- StorageGrpc.getRewriteObjectMethod =
- getRewriteObjectMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewriteObject"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.RewriteObjectRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.RewriteResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RewriteObject"))
- .build();
- }
- }
- }
- return getRewriteObjectMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.StartResumableWriteRequest,
- com.google.storage.v2.StartResumableWriteResponse>
- getStartResumableWriteMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "StartResumableWrite",
- requestType = com.google.storage.v2.StartResumableWriteRequest.class,
- responseType = com.google.storage.v2.StartResumableWriteResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.StartResumableWriteRequest,
- com.google.storage.v2.StartResumableWriteResponse>
- getStartResumableWriteMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.StartResumableWriteRequest,
- com.google.storage.v2.StartResumableWriteResponse>
- getStartResumableWriteMethod;
- if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
- StorageGrpc.getStartResumableWriteMethod =
- getStartResumableWriteMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- generateFullMethodName(SERVICE_NAME, "StartResumableWrite"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.StartResumableWriteRequest
- .getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.StartResumableWriteResponse
- .getDefaultInstance()))
- .setSchemaDescriptor(
- new StorageMethodDescriptorSupplier("StartResumableWrite"))
- .build();
- }
- }
- }
- return getStartResumableWriteMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.QueryWriteStatusRequest,
- com.google.storage.v2.QueryWriteStatusResponse>
- getQueryWriteStatusMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "QueryWriteStatus",
- requestType = com.google.storage.v2.QueryWriteStatusRequest.class,
- responseType = com.google.storage.v2.QueryWriteStatusResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.QueryWriteStatusRequest,
- com.google.storage.v2.QueryWriteStatusResponse>
- getQueryWriteStatusMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.QueryWriteStatusRequest,
- com.google.storage.v2.QueryWriteStatusResponse>
- getQueryWriteStatusMethod;
- if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
- StorageGrpc.getQueryWriteStatusMethod =
- getQueryWriteStatusMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWriteStatus"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.QueryWriteStatusRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("QueryWriteStatus"))
- .build();
- }
- }
- }
- return getQueryWriteStatusMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
- getGetServiceAccountMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetServiceAccount",
- requestType = com.google.storage.v2.GetServiceAccountRequest.class,
- responseType = com.google.storage.v2.ServiceAccount.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
- getGetServiceAccountMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
- getGetServiceAccountMethod;
- if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
- StorageGrpc.getGetServiceAccountMethod =
- getGetServiceAccountMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.GetServiceAccountRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ServiceAccount.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetServiceAccount"))
- .build();
- }
- }
- }
- return getGetServiceAccountMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
- getCreateHmacKeyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "CreateHmacKey",
- requestType = com.google.storage.v2.CreateHmacKeyRequest.class,
- responseType = com.google.storage.v2.CreateHmacKeyResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
- getCreateHmacKeyMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
- getCreateHmacKeyMethod;
- if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
- StorageGrpc.getCreateHmacKeyMethod =
- getCreateHmacKeyMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHmacKey"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CreateHmacKeyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.CreateHmacKeyResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateHmacKey"))
- .build();
- }
- }
- }
- return getCreateHmacKeyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
- getDeleteHmacKeyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "DeleteHmacKey",
- requestType = com.google.storage.v2.DeleteHmacKeyRequest.class,
- responseType = com.google.protobuf.Empty.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
- getDeleteHmacKeyMethod() {
- io.grpc.MethodDescriptor
- getDeleteHmacKeyMethod;
- if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
- StorageGrpc.getDeleteHmacKeyMethod =
- getDeleteHmacKeyMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHmacKey"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.DeleteHmacKeyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.protobuf.Empty.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteHmacKey"))
- .build();
- }
- }
- }
- return getDeleteHmacKeyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getGetHmacKeyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "GetHmacKey",
- requestType = com.google.storage.v2.GetHmacKeyRequest.class,
- responseType = com.google.storage.v2.HmacKeyMetadata.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getGetHmacKeyMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getGetHmacKeyMethod;
- if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
- StorageGrpc.getGetHmacKeyMethod =
- getGetHmacKeyMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHmacKey"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.GetHmacKeyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetHmacKey"))
- .build();
- }
- }
- }
- return getGetHmacKeyMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
- getListHmacKeysMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "ListHmacKeys",
- requestType = com.google.storage.v2.ListHmacKeysRequest.class,
- responseType = com.google.storage.v2.ListHmacKeysResponse.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
- getListHmacKeysMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
- getListHmacKeysMethod;
- if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
- StorageGrpc.getListHmacKeysMethod =
- getListHmacKeysMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHmacKeys"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListHmacKeysRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.ListHmacKeysResponse.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListHmacKeys"))
- .build();
- }
- }
- }
- return getListHmacKeysMethod;
- }
-
- private static volatile io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getUpdateHmacKeyMethod;
-
- @io.grpc.stub.annotations.RpcMethod(
- fullMethodName = SERVICE_NAME + '/' + "UpdateHmacKey",
- requestType = com.google.storage.v2.UpdateHmacKeyRequest.class,
- responseType = com.google.storage.v2.HmacKeyMetadata.class,
- methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
- public static io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getUpdateHmacKeyMethod() {
- io.grpc.MethodDescriptor<
- com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
- getUpdateHmacKeyMethod;
- if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
- synchronized (StorageGrpc.class) {
- if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
- StorageGrpc.getUpdateHmacKeyMethod =
- getUpdateHmacKeyMethod =
- io.grpc.MethodDescriptor
- .
- newBuilder()
- .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHmacKey"))
- .setSampledToLocalTracing(true)
- .setRequestMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.UpdateHmacKeyRequest.getDefaultInstance()))
- .setResponseMarshaller(
- io.grpc.protobuf.ProtoUtils.marshaller(
- com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
- .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateHmacKey"))
- .build();
- }
- }
- }
- return getUpdateHmacKeyMethod;
- }
-
- /** Creates a new async stub that supports all call types for the service */
- public static StorageStub newStub(io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public StorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageStub(channel, callOptions);
- }
- };
- return StorageStub.newStub(factory, channel);
- }
-
- /**
- * Creates a new blocking-style stub that supports unary and streaming output calls on the service
- */
- public static StorageBlockingStub newBlockingStub(io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public StorageBlockingStub newStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageBlockingStub(channel, callOptions);
- }
- };
- return StorageBlockingStub.newStub(factory, channel);
- }
-
- /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
- public static StorageFutureStub newFutureStub(io.grpc.Channel channel) {
- io.grpc.stub.AbstractStub.StubFactory factory =
- new io.grpc.stub.AbstractStub.StubFactory() {
- @java.lang.Override
- public StorageFutureStub newStub(
- io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageFutureStub(channel, callOptions);
- }
- };
- return StorageFutureStub.newStub(factory, channel);
- }
-
- /**
- *
- *
- *
- * ## API Overview and Naming Syntax
- * The Cloud Storage gRPC API allows applications to read and write data through
- * the abstractions of buckets and objects. For a description of these
- * abstractions please see https://cloud.google.com/storage/docs.
- * Resources are named as follows:
- * - Projects are referred to as they are defined by the Resource Manager API,
- * using strings like `projects/123456` or `projects/my-string-id`.
- * - Buckets are named using string names of the form:
- * `projects/{project}/buckets/{bucket}`
- * For globally unique buckets, `_` may be substituted for the project.
- * - Objects are uniquely identified by their name along with the name of the
- * bucket they belong to, as separate strings in this API. For example:
- * ReadObjectRequest {
- * bucket: 'projects/_/buckets/my-bucket'
- * object: 'my-object'
- * }
- * Note that object names can contain `/` characters, which are treated as
- * any other character (no special directory semantics).
- *
- */
- public abstract static class StorageImplBase implements io.grpc.BindableService {
-
- /**
- *
- *
- *
- * Permanently deletes an empty bucket.
- *
- */
- public void deleteBucket(
- com.google.storage.v2.DeleteBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getDeleteBucketMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Returns metadata for the specified bucket.
- *
- */
- public void getBucket(
- com.google.storage.v2.GetBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a new bucket.
- *
- */
- public void createBucket(
- com.google.storage.v2.CreateBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getCreateBucketMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of buckets for a given project.
- *
- */
- public void listBuckets(
- com.google.storage.v2.ListBucketsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getListBucketsMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Locks retention policy on a bucket.
- *
- */
- public void lockBucketRetentionPolicy(
- com.google.storage.v2.LockBucketRetentionPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getLockBucketRetentionPolicyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Gets the IAM policy for a specified bucket or object.
- *
- */
- public void getIamPolicy(
- com.google.iam.v1.GetIamPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getGetIamPolicyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates an IAM policy for the specified bucket or object.
- *
- */
- public void setIamPolicy(
- com.google.iam.v1.SetIamPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getSetIamPolicyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Tests a set of permissions on the given bucket or object to see which, if
- * any, are held by the caller.
- *
- */
- public void testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getTestIamPermissionsMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
- *
- */
- public void updateBucket(
- com.google.storage.v2.UpdateBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getUpdateBucketMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Permanently deletes a notification subscription.
- *
- */
- public void deleteNotification(
- com.google.storage.v2.DeleteNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getDeleteNotificationMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * View a notification config.
- *
- */
- public void getNotification(
- com.google.storage.v2.GetNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getGetNotificationMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a notification subscription for a given bucket.
- * These notifications, when triggered, publish messages to the specified
- * Pub/Sub topics.
- * See https://cloud.google.com/storage/docs/pubsub-notifications.
- *
- */
- public void createNotification(
- com.google.storage.v2.CreateNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getCreateNotificationMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of notification subscriptions for a given bucket.
- *
- */
- public void listNotifications(
- com.google.storage.v2.ListNotificationsRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getListNotificationsMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Concatenates a list of existing objects into a new object in the same
- * bucket.
- *
- */
- public void composeObject(
- com.google.storage.v2.ComposeObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getComposeObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Deletes an object and its metadata. Deletions are permanent if versioning
- * is not enabled for the bucket, or if the `generation` parameter is used.
- *
- */
- public void deleteObject(
- com.google.storage.v2.DeleteObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getDeleteObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Cancels an in-progress resumable upload.
- *
- */
- public void cancelResumableWrite(
- com.google.storage.v2.CancelResumableWriteRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getCancelResumableWriteMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves an object's metadata.
- *
- */
- public void getObject(
- com.google.storage.v2.GetObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Reads an object's data.
- *
- */
- public void readObject(
- com.google.storage.v2.ReadObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates an object's metadata.
- * Equivalent to JSON API's storage.objects.patch.
- *
- */
- public void updateObject(
- com.google.storage.v2.UpdateObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getUpdateObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Stores a new object and metadata.
- * An object can be written either in a single message stream or in a
- * resumable sequence of message streams. To write using a single stream,
- * the client should include in the first message of the stream an
- * `WriteObjectSpec` describing the destination bucket, object, and any
- * preconditions. Additionally, the final message must set 'finish_write' to
- * true, or else it is an error.
- * For a resumable write, the client should instead call
- * `StartResumableWrite()`, populating a `WriteObjectSpec` into that request.
- * They should then attach the returned `upload_id` to the first message of
- * each following call to `WriteObject`. If the stream is closed before
- * finishing the upload (either explicitly by the client or due to a network
- * error or an error response from the server), the client should do as
- * follows:
- * - Check the result Status of the stream, to determine if writing can be
- * resumed on this stream or must be restarted from scratch (by calling
- * `StartResumableWrite()`). The resumable errors are DEADLINE_EXCEEDED,
- * INTERNAL, and UNAVAILABLE. For each case, the client should use binary
- * exponential backoff before retrying. Additionally, writes can be
- * resumed after RESOURCE_EXHAUSTED errors, but only after taking
- * appropriate measures, which may include reducing aggregate send rate
- * across clients and/or requesting a quota increase for your project.
- * - If the call to `WriteObject` returns `ABORTED`, that indicates
- * concurrent attempts to update the resumable write, caused either by
- * multiple racing clients or by a single client where the previous
- * request was timed out on the client side but nonetheless reached the
- * server. In this case the client should take steps to prevent further
- * concurrent writes (e.g., increase the timeouts, stop using more than
- * one process to perform the upload, etc.), and then should follow the
- * steps below for resuming the upload.
- * - For resumable errors, the client should call `QueryWriteStatus()` and
- * then continue writing from the returned `persisted_size`. This may be
- * less than the amount of data the client previously sent. Note also that
- * it is acceptable to send data starting at an offset earlier than the
- * returned `persisted_size`; in this case, the service will skip data at
- * offsets that were already persisted (without checking that it matches
- * the previously written data), and write only the data starting from the
- * persisted offset. This behavior can make client-side handling simpler
- * in some cases.
- * The service will not view the object as complete until the client has
- * sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any
- * requests on a stream after sending a request with `finish_write` set to
- * `true` will cause an error. The client **should** check the response it
- * receives to determine how much data the service was able to commit and
- * whether the service views the object as complete.
- * Attempting to resume an already finalized object will result in an OK
- * status, with a WriteObjectResponse containing the finalized object's
- * metadata.
- *
- */
- public io.grpc.stub.StreamObserver writeObject(
- io.grpc.stub.StreamObserver responseObserver) {
- return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
- getWriteObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of objects matching the criteria.
- *
- */
- public void listObjects(
- com.google.storage.v2.ListObjectsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getListObjectsMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Rewrites a source object to a destination object. Optionally overrides
- * metadata.
- *
- */
- public void rewriteObject(
- com.google.storage.v2.RewriteObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getRewriteObjectMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Starts a resumable write. How long the write operation remains valid, and
- * what happens when the write operation becomes invalid, are
- * service-dependent.
- *
- */
- public void startResumableWrite(
- com.google.storage.v2.StartResumableWriteRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getStartResumableWriteMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Determines the `persisted_size` for an object that is being written, which
- * can then be used as the `write_offset` for the next `Write()` call.
- * If the object does not exist (i.e., the object has been deleted, or the
- * first `Write()` has not yet reached the service), this method returns the
- * error `NOT_FOUND`.
- * The client **may** call `QueryWriteStatus()` at any time to determine how
- * much data has been processed for this object. This is useful if the
- * client is buffering data and needs to know which data can be safely
- * evicted. For any sequence of `QueryWriteStatus()` calls for a given
- * object name, the sequence of returned `persisted_size` values will be
- * non-decreasing.
- *
- */
- public void queryWriteStatus(
- com.google.storage.v2.QueryWriteStatusRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getQueryWriteStatusMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves the name of a project's Google Cloud Storage service account.
- *
- */
- public void getServiceAccount(
- com.google.storage.v2.GetServiceAccountRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getGetServiceAccountMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a new HMAC key for the given service account.
- *
- */
- public void createHmacKey(
- com.google.storage.v2.CreateHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getCreateHmacKeyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Deletes a given HMAC key. Key must be in an INACTIVE state.
- *
- */
- public void deleteHmacKey(
- com.google.storage.v2.DeleteHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getDeleteHmacKeyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Gets an existing HMAC key metadata for the given id.
- *
- */
- public void getHmacKey(
- com.google.storage.v2.GetHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHmacKeyMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Lists HMAC keys under a given project with the additional filters provided.
- *
- */
- public void listHmacKeys(
- com.google.storage.v2.ListHmacKeysRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getListHmacKeysMethod(), responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates a given HMAC key state between ACTIVE and INACTIVE.
- *
- */
- public void updateHmacKey(
- com.google.storage.v2.UpdateHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
- getUpdateHmacKeyMethod(), responseObserver);
- }
-
- @java.lang.Override
- public final io.grpc.ServerServiceDefinition bindService() {
- return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
- .addMethod(
- getDeleteBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_BUCKET)))
- .addMethod(
- getGetBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>(
- this, METHODID_GET_BUCKET)))
- .addMethod(
- getCreateBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>(
- this, METHODID_CREATE_BUCKET)))
- .addMethod(
- getListBucketsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.ListBucketsRequest,
- com.google.storage.v2.ListBucketsResponse>(this, METHODID_LIST_BUCKETS)))
- .addMethod(
- getLockBucketRetentionPolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.LockBucketRetentionPolicyRequest,
- com.google.storage.v2.Bucket>(this, METHODID_LOCK_BUCKET_RETENTION_POLICY)))
- .addMethod(
- getGetIamPolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>(
- this, METHODID_GET_IAM_POLICY)))
- .addMethod(
- getSetIamPolicyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>(
- this, METHODID_SET_IAM_POLICY)))
- .addMethod(
- getTestIamPermissionsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.iam.v1.TestIamPermissionsRequest,
- com.google.iam.v1.TestIamPermissionsResponse>(
- this, METHODID_TEST_IAM_PERMISSIONS)))
- .addMethod(
- getUpdateBucketMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>(
- this, METHODID_UPDATE_BUCKET)))
- .addMethod(
- getDeleteNotificationMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.DeleteNotificationRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_NOTIFICATION)))
- .addMethod(
- getGetNotificationMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.GetNotificationRequest,
- com.google.storage.v2.Notification>(this, METHODID_GET_NOTIFICATION)))
- .addMethod(
- getCreateNotificationMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.CreateNotificationRequest,
- com.google.storage.v2.Notification>(this, METHODID_CREATE_NOTIFICATION)))
- .addMethod(
- getListNotificationsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.ListNotificationsRequest,
- com.google.storage.v2.ListNotificationsResponse>(
- this, METHODID_LIST_NOTIFICATIONS)))
- .addMethod(
- getComposeObjectMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>(
- this, METHODID_COMPOSE_OBJECT)))
- .addMethod(
- getDeleteObjectMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_OBJECT)))
- .addMethod(
- getCancelResumableWriteMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.CancelResumableWriteRequest,
- com.google.storage.v2.CancelResumableWriteResponse>(
- this, METHODID_CANCEL_RESUMABLE_WRITE)))
- .addMethod(
- getGetObjectMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>(
- this, METHODID_GET_OBJECT)))
- .addMethod(
- getReadObjectMethod(),
- io.grpc.stub.ServerCalls.asyncServerStreamingCall(
- new MethodHandlers<
- com.google.storage.v2.ReadObjectRequest,
- com.google.storage.v2.ReadObjectResponse>(this, METHODID_READ_OBJECT)))
- .addMethod(
- getUpdateObjectMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>(
- this, METHODID_UPDATE_OBJECT)))
- .addMethod(
- getWriteObjectMethod(),
- io.grpc.stub.ServerCalls.asyncClientStreamingCall(
- new MethodHandlers<
- com.google.storage.v2.WriteObjectRequest,
- com.google.storage.v2.WriteObjectResponse>(this, METHODID_WRITE_OBJECT)))
- .addMethod(
- getListObjectsMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.ListObjectsRequest,
- com.google.storage.v2.ListObjectsResponse>(this, METHODID_LIST_OBJECTS)))
- .addMethod(
- getRewriteObjectMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.RewriteObjectRequest,
- com.google.storage.v2.RewriteResponse>(this, METHODID_REWRITE_OBJECT)))
- .addMethod(
- getStartResumableWriteMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.StartResumableWriteRequest,
- com.google.storage.v2.StartResumableWriteResponse>(
- this, METHODID_START_RESUMABLE_WRITE)))
- .addMethod(
- getQueryWriteStatusMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.QueryWriteStatusRequest,
- com.google.storage.v2.QueryWriteStatusResponse>(
- this, METHODID_QUERY_WRITE_STATUS)))
- .addMethod(
- getGetServiceAccountMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.GetServiceAccountRequest,
- com.google.storage.v2.ServiceAccount>(this, METHODID_GET_SERVICE_ACCOUNT)))
- .addMethod(
- getCreateHmacKeyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.CreateHmacKeyRequest,
- com.google.storage.v2.CreateHmacKeyResponse>(this, METHODID_CREATE_HMAC_KEY)))
- .addMethod(
- getDeleteHmacKeyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>(
- this, METHODID_DELETE_HMAC_KEY)))
- .addMethod(
- getGetHmacKeyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.GetHmacKeyRequest,
- com.google.storage.v2.HmacKeyMetadata>(this, METHODID_GET_HMAC_KEY)))
- .addMethod(
- getListHmacKeysMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.ListHmacKeysRequest,
- com.google.storage.v2.ListHmacKeysResponse>(this, METHODID_LIST_HMAC_KEYS)))
- .addMethod(
- getUpdateHmacKeyMethod(),
- io.grpc.stub.ServerCalls.asyncUnaryCall(
- new MethodHandlers<
- com.google.storage.v2.UpdateHmacKeyRequest,
- com.google.storage.v2.HmacKeyMetadata>(this, METHODID_UPDATE_HMAC_KEY)))
- .build();
- }
- }
-
- /**
- *
- *
- *
- * ## API Overview and Naming Syntax
- * The Cloud Storage gRPC API allows applications to read and write data through
- * the abstractions of buckets and objects. For a description of these
- * abstractions please see https://cloud.google.com/storage/docs.
- * Resources are named as follows:
- * - Projects are referred to as they are defined by the Resource Manager API,
- * using strings like `projects/123456` or `projects/my-string-id`.
- * - Buckets are named using string names of the form:
- * `projects/{project}/buckets/{bucket}`
- * For globally unique buckets, `_` may be substituted for the project.
- * - Objects are uniquely identified by their name along with the name of the
- * bucket they belong to, as separate strings in this API. For example:
- * ReadObjectRequest {
- * bucket: 'projects/_/buckets/my-bucket'
- * object: 'my-object'
- * }
- * Note that object names can contain `/` characters, which are treated as
- * any other character (no special directory semantics).
- *
- */
- public static final class StorageStub extends io.grpc.stub.AbstractAsyncStub {
- private StorageStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected StorageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageStub(channel, callOptions);
- }
-
- /**
- *
- *
- *
- * Permanently deletes an empty bucket.
- *
- */
- public void deleteBucket(
- com.google.storage.v2.DeleteBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteBucketMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Returns metadata for the specified bucket.
- *
- */
- public void getBucket(
- com.google.storage.v2.GetBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a new bucket.
- *
- */
- public void createBucket(
- com.google.storage.v2.CreateBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCreateBucketMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of buckets for a given project.
- *
- */
- public void listBuckets(
- com.google.storage.v2.ListBucketsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListBucketsMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Locks retention policy on a bucket.
- *
- */
- public void lockBucketRetentionPolicy(
- com.google.storage.v2.LockBucketRetentionPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Gets the IAM policy for a specified bucket or object.
- *
- */
- public void getIamPolicy(
- com.google.iam.v1.GetIamPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates an IAM policy for the specified bucket or object.
- *
- */
- public void setIamPolicy(
- com.google.iam.v1.SetIamPolicyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Tests a set of permissions on the given bucket or object to see which, if
- * any, are held by the caller.
- *
- */
- public void testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
- *
- */
- public void updateBucket(
- com.google.storage.v2.UpdateBucketRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdateBucketMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Permanently deletes a notification subscription.
- *
- */
- public void deleteNotification(
- com.google.storage.v2.DeleteNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteNotificationMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * View a notification config.
- *
- */
- public void getNotification(
- com.google.storage.v2.GetNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetNotificationMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a notification subscription for a given bucket.
- * These notifications, when triggered, publish messages to the specified
- * Pub/Sub topics.
- * See https://cloud.google.com/storage/docs/pubsub-notifications.
- *
- */
- public void createNotification(
- com.google.storage.v2.CreateNotificationRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCreateNotificationMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of notification subscriptions for a given bucket.
- *
- */
- public void listNotifications(
- com.google.storage.v2.ListNotificationsRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListNotificationsMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Concatenates a list of existing objects into a new object in the same
- * bucket.
- *
- */
- public void composeObject(
- com.google.storage.v2.ComposeObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getComposeObjectMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Deletes an object and its metadata. Deletions are permanent if versioning
- * is not enabled for the bucket, or if the `generation` parameter is used.
- *
- */
- public void deleteObject(
- com.google.storage.v2.DeleteObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteObjectMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Cancels an in-progress resumable upload.
- *
- */
- public void cancelResumableWrite(
- com.google.storage.v2.CancelResumableWriteRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves an object's metadata.
- *
- */
- public void getObject(
- com.google.storage.v2.GetObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetObjectMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- *
- *
- * Reads an object's data.
- *
- */
- public void readObject(
- com.google.storage.v2.ReadObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncServerStreamingCall(
- getChannel().newCall(getReadObjectMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates an object's metadata.
- * Equivalent to JSON API's storage.objects.patch.
- *
- */
- public void updateObject(
- com.google.storage.v2.UpdateObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdateObjectMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Stores a new object and metadata.
- * An object can be written either in a single message stream or in a
- * resumable sequence of message streams. To write using a single stream,
- * the client should include in the first message of the stream an
- * `WriteObjectSpec` describing the destination bucket, object, and any
- * preconditions. Additionally, the final message must set 'finish_write' to
- * true, or else it is an error.
- * For a resumable write, the client should instead call
- * `StartResumableWrite()`, populating a `WriteObjectSpec` into that request.
- * They should then attach the returned `upload_id` to the first message of
- * each following call to `WriteObject`. If the stream is closed before
- * finishing the upload (either explicitly by the client or due to a network
- * error or an error response from the server), the client should do as
- * follows:
- * - Check the result Status of the stream, to determine if writing can be
- * resumed on this stream or must be restarted from scratch (by calling
- * `StartResumableWrite()`). The resumable errors are DEADLINE_EXCEEDED,
- * INTERNAL, and UNAVAILABLE. For each case, the client should use binary
- * exponential backoff before retrying. Additionally, writes can be
- * resumed after RESOURCE_EXHAUSTED errors, but only after taking
- * appropriate measures, which may include reducing aggregate send rate
- * across clients and/or requesting a quota increase for your project.
- * - If the call to `WriteObject` returns `ABORTED`, that indicates
- * concurrent attempts to update the resumable write, caused either by
- * multiple racing clients or by a single client where the previous
- * request was timed out on the client side but nonetheless reached the
- * server. In this case the client should take steps to prevent further
- * concurrent writes (e.g., increase the timeouts, stop using more than
- * one process to perform the upload, etc.), and then should follow the
- * steps below for resuming the upload.
- * - For resumable errors, the client should call `QueryWriteStatus()` and
- * then continue writing from the returned `persisted_size`. This may be
- * less than the amount of data the client previously sent. Note also that
- * it is acceptable to send data starting at an offset earlier than the
- * returned `persisted_size`; in this case, the service will skip data at
- * offsets that were already persisted (without checking that it matches
- * the previously written data), and write only the data starting from the
- * persisted offset. This behavior can make client-side handling simpler
- * in some cases.
- * The service will not view the object as complete until the client has
- * sent a `WriteObjectRequest` with `finish_write` set to `true`. Sending any
- * requests on a stream after sending a request with `finish_write` set to
- * `true` will cause an error. The client **should** check the response it
- * receives to determine how much data the service was able to commit and
- * whether the service views the object as complete.
- * Attempting to resume an already finalized object will result in an OK
- * status, with a WriteObjectResponse containing the finalized object's
- * metadata.
- *
- */
- public io.grpc.stub.StreamObserver writeObject(
- io.grpc.stub.StreamObserver responseObserver) {
- return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
- getChannel().newCall(getWriteObjectMethod(), getCallOptions()), responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of objects matching the criteria.
- *
- */
- public void listObjects(
- com.google.storage.v2.ListObjectsRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListObjectsMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Rewrites a source object to a destination object. Optionally overrides
- * metadata.
- *
- */
- public void rewriteObject(
- com.google.storage.v2.RewriteObjectRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getRewriteObjectMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Starts a resumable write. How long the write operation remains valid, and
- * what happens when the write operation becomes invalid, are
- * service-dependent.
- *
- */
- public void startResumableWrite(
- com.google.storage.v2.StartResumableWriteRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Determines the `persisted_size` for an object that is being written, which
- * can then be used as the `write_offset` for the next `Write()` call.
- * If the object does not exist (i.e., the object has been deleted, or the
- * first `Write()` has not yet reached the service), this method returns the
- * error `NOT_FOUND`.
- * The client **may** call `QueryWriteStatus()` at any time to determine how
- * much data has been processed for this object. This is useful if the
- * client is buffering data and needs to know which data can be safely
- * evicted. For any sequence of `QueryWriteStatus()` calls for a given
- * object name, the sequence of returned `persisted_size` values will be
- * non-decreasing.
- *
- */
- public void queryWriteStatus(
- com.google.storage.v2.QueryWriteStatusRequest request,
- io.grpc.stub.StreamObserver
- responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Retrieves the name of a project's Google Cloud Storage service account.
- *
- */
- public void getServiceAccount(
- com.google.storage.v2.GetServiceAccountRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Creates a new HMAC key for the given service account.
- *
- */
- public void createHmacKey(
- com.google.storage.v2.CreateHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Deletes a given HMAC key. Key must be in an INACTIVE state.
- *
- */
- public void deleteHmacKey(
- com.google.storage.v2.DeleteHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Gets an existing HMAC key metadata for the given id.
- *
- */
- public void getHmacKey(
- com.google.storage.v2.GetHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request, responseObserver);
- }
-
- /**
- *
- *
- *
- * Lists HMAC keys under a given project with the additional filters provided.
- *
- */
- public void listHmacKeys(
- com.google.storage.v2.ListHmacKeysRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getListHmacKeysMethod(), getCallOptions()),
- request,
- responseObserver);
- }
-
- /**
- *
- *
- *
- * Updates a given HMAC key state between ACTIVE and INACTIVE.
- *
- */
- public void updateHmacKey(
- com.google.storage.v2.UpdateHmacKeyRequest request,
- io.grpc.stub.StreamObserver responseObserver) {
- io.grpc.stub.ClientCalls.asyncUnaryCall(
- getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()),
- request,
- responseObserver);
- }
- }
-
- /**
- *
- *
- *
- * ## API Overview and Naming Syntax
- * The Cloud Storage gRPC API allows applications to read and write data through
- * the abstractions of buckets and objects. For a description of these
- * abstractions please see https://cloud.google.com/storage/docs.
- * Resources are named as follows:
- * - Projects are referred to as they are defined by the Resource Manager API,
- * using strings like `projects/123456` or `projects/my-string-id`.
- * - Buckets are named using string names of the form:
- * `projects/{project}/buckets/{bucket}`
- * For globally unique buckets, `_` may be substituted for the project.
- * - Objects are uniquely identified by their name along with the name of the
- * bucket they belong to, as separate strings in this API. For example:
- * ReadObjectRequest {
- * bucket: 'projects/_/buckets/my-bucket'
- * object: 'my-object'
- * }
- * Note that object names can contain `/` characters, which are treated as
- * any other character (no special directory semantics).
- *
- */
- public static final class StorageBlockingStub
- extends io.grpc.stub.AbstractBlockingStub {
- private StorageBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected StorageBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageBlockingStub(channel, callOptions);
- }
-
- /**
- *
- *
- *
- * Permanently deletes an empty bucket.
- *
- */
- public com.google.protobuf.Empty deleteBucket(
- com.google.storage.v2.DeleteBucketRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getDeleteBucketMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Returns metadata for the specified bucket.
- *
- */
- public com.google.storage.v2.Bucket getBucket(com.google.storage.v2.GetBucketRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetBucketMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Creates a new bucket.
- *
- */
- public com.google.storage.v2.Bucket createBucket(
- com.google.storage.v2.CreateBucketRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getCreateBucketMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of buckets for a given project.
- *
- */
- public com.google.storage.v2.ListBucketsResponse listBuckets(
- com.google.storage.v2.ListBucketsRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getListBucketsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Locks retention policy on a bucket.
- *
- */
- public com.google.storage.v2.Bucket lockBucketRetentionPolicy(
- com.google.storage.v2.LockBucketRetentionPolicyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getLockBucketRetentionPolicyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Gets the IAM policy for a specified bucket or object.
- *
- */
- public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Updates an IAM policy for the specified bucket or object.
- *
- */
- public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getSetIamPolicyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Tests a set of permissions on the given bucket or object to see which, if
- * any, are held by the caller.
- *
- */
- public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
- com.google.iam.v1.TestIamPermissionsRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
- *
- */
- public com.google.storage.v2.Bucket updateBucket(
- com.google.storage.v2.UpdateBucketRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getUpdateBucketMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Permanently deletes a notification subscription.
- *
- */
- public com.google.protobuf.Empty deleteNotification(
- com.google.storage.v2.DeleteNotificationRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getDeleteNotificationMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * View a notification config.
- *
- */
- public com.google.storage.v2.Notification getNotification(
- com.google.storage.v2.GetNotificationRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetNotificationMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Creates a notification subscription for a given bucket.
- * These notifications, when triggered, publish messages to the specified
- * Pub/Sub topics.
- * See https://cloud.google.com/storage/docs/pubsub-notifications.
- *
- */
- public com.google.storage.v2.Notification createNotification(
- com.google.storage.v2.CreateNotificationRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getCreateNotificationMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of notification subscriptions for a given bucket.
- *
- */
- public com.google.storage.v2.ListNotificationsResponse listNotifications(
- com.google.storage.v2.ListNotificationsRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getListNotificationsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Concatenates a list of existing objects into a new object in the same
- * bucket.
- *
- */
- public com.google.storage.v2.Object composeObject(
- com.google.storage.v2.ComposeObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getComposeObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Deletes an object and its metadata. Deletions are permanent if versioning
- * is not enabled for the bucket, or if the `generation` parameter is used.
- *
- */
- public com.google.protobuf.Empty deleteObject(
- com.google.storage.v2.DeleteObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getDeleteObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Cancels an in-progress resumable upload.
- *
- */
- public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite(
- com.google.storage.v2.CancelResumableWriteRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getCancelResumableWriteMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Retrieves an object's metadata.
- *
- */
- public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Reads an object's data.
- *
- */
- public java.util.Iterator readObject(
- com.google.storage.v2.ReadObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
- getChannel(), getReadObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Updates an object's metadata.
- * Equivalent to JSON API's storage.objects.patch.
- *
- */
- public com.google.storage.v2.Object updateObject(
- com.google.storage.v2.UpdateObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getUpdateObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of objects matching the criteria.
- *
- */
- public com.google.storage.v2.ListObjectsResponse listObjects(
- com.google.storage.v2.ListObjectsRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getListObjectsMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Rewrites a source object to a destination object. Optionally overrides
- * metadata.
- *
- */
- public com.google.storage.v2.RewriteResponse rewriteObject(
- com.google.storage.v2.RewriteObjectRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getRewriteObjectMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Starts a resumable write. How long the write operation remains valid, and
- * what happens when the write operation becomes invalid, are
- * service-dependent.
- *
- */
- public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(
- com.google.storage.v2.StartResumableWriteRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getStartResumableWriteMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Determines the `persisted_size` for an object that is being written, which
- * can then be used as the `write_offset` for the next `Write()` call.
- * If the object does not exist (i.e., the object has been deleted, or the
- * first `Write()` has not yet reached the service), this method returns the
- * error `NOT_FOUND`.
- * The client **may** call `QueryWriteStatus()` at any time to determine how
- * much data has been processed for this object. This is useful if the
- * client is buffering data and needs to know which data can be safely
- * evicted. For any sequence of `QueryWriteStatus()` calls for a given
- * object name, the sequence of returned `persisted_size` values will be
- * non-decreasing.
- *
- */
- public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus(
- com.google.storage.v2.QueryWriteStatusRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getQueryWriteStatusMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Retrieves the name of a project's Google Cloud Storage service account.
- *
- */
- public com.google.storage.v2.ServiceAccount getServiceAccount(
- com.google.storage.v2.GetServiceAccountRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetServiceAccountMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Creates a new HMAC key for the given service account.
- *
- */
- public com.google.storage.v2.CreateHmacKeyResponse createHmacKey(
- com.google.storage.v2.CreateHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getCreateHmacKeyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Deletes a given HMAC key. Key must be in an INACTIVE state.
- *
- */
- public com.google.protobuf.Empty deleteHmacKey(
- com.google.storage.v2.DeleteHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getDeleteHmacKeyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Gets an existing HMAC key metadata for the given id.
- *
- */
- public com.google.storage.v2.HmacKeyMetadata getHmacKey(
- com.google.storage.v2.GetHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getGetHmacKeyMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Lists HMAC keys under a given project with the additional filters provided.
- *
- */
- public com.google.storage.v2.ListHmacKeysResponse listHmacKeys(
- com.google.storage.v2.ListHmacKeysRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getListHmacKeysMethod(), getCallOptions(), request);
- }
-
- /**
- *
- *
- *
- * Updates a given HMAC key state between ACTIVE and INACTIVE.
- *
- */
- public com.google.storage.v2.HmacKeyMetadata updateHmacKey(
- com.google.storage.v2.UpdateHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.blockingUnaryCall(
- getChannel(), getUpdateHmacKeyMethod(), getCallOptions(), request);
- }
- }
-
- /**
- *
- *
- *
- * ## API Overview and Naming Syntax
- * The Cloud Storage gRPC API allows applications to read and write data through
- * the abstractions of buckets and objects. For a description of these
- * abstractions please see https://cloud.google.com/storage/docs.
- * Resources are named as follows:
- * - Projects are referred to as they are defined by the Resource Manager API,
- * using strings like `projects/123456` or `projects/my-string-id`.
- * - Buckets are named using string names of the form:
- * `projects/{project}/buckets/{bucket}`
- * For globally unique buckets, `_` may be substituted for the project.
- * - Objects are uniquely identified by their name along with the name of the
- * bucket they belong to, as separate strings in this API. For example:
- * ReadObjectRequest {
- * bucket: 'projects/_/buckets/my-bucket'
- * object: 'my-object'
- * }
- * Note that object names can contain `/` characters, which are treated as
- * any other character (no special directory semantics).
- *
- */
- public static final class StorageFutureStub
- extends io.grpc.stub.AbstractFutureStub {
- private StorageFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- super(channel, callOptions);
- }
-
- @java.lang.Override
- protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
- return new StorageFutureStub(channel, callOptions);
- }
-
- /**
- *
- *
- *
- * Permanently deletes an empty bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- deleteBucket(com.google.storage.v2.DeleteBucketRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Returns metadata for the specified bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getBucket(com.google.storage.v2.GetBucketRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetBucketMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Creates a new bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- createBucket(com.google.storage.v2.CreateBucketRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of buckets for a given project.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.ListBucketsResponse>
- listBuckets(com.google.storage.v2.ListBucketsRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getListBucketsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Locks retention policy on a bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Gets the IAM policy for a specified bucket or object.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Updates an IAM policy for the specified bucket or object.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Tests a set of permissions on the given bucket or object to see which, if
- * any, are held by the caller.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.iam.v1.TestIamPermissionsResponse>
- testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- updateBucket(com.google.storage.v2.UpdateBucketRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Permanently deletes a notification subscription.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- deleteNotification(com.google.storage.v2.DeleteNotificationRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getDeleteNotificationMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * View a notification config.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getNotification(com.google.storage.v2.GetNotificationRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Creates a notification subscription for a given bucket.
- * These notifications, when triggered, publish messages to the specified
- * Pub/Sub topics.
- * See https://cloud.google.com/storage/docs/pubsub-notifications.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- createNotification(com.google.storage.v2.CreateNotificationRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getCreateNotificationMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of notification subscriptions for a given bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.ListNotificationsResponse>
- listNotifications(com.google.storage.v2.ListNotificationsRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Concatenates a list of existing objects into a new object in the same
- * bucket.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- composeObject(com.google.storage.v2.ComposeObjectRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getComposeObjectMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Deletes an object and its metadata. Deletions are permanent if versioning
- * is not enabled for the bucket, or if the `generation` parameter is used.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- deleteObject(com.google.storage.v2.DeleteObjectRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Cancels an in-progress resumable upload.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.CancelResumableWriteResponse>
- cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Retrieves an object's metadata.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getObject(com.google.storage.v2.GetObjectRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetObjectMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Updates an object's metadata.
- * Equivalent to JSON API's storage.objects.patch.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- updateObject(com.google.storage.v2.UpdateObjectRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Retrieves a list of objects matching the criteria.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.ListObjectsResponse>
- listObjects(com.google.storage.v2.ListObjectsRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getListObjectsMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Rewrites a source object to a destination object. Optionally overrides
- * metadata.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- rewriteObject(com.google.storage.v2.RewriteObjectRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Starts a resumable write. How long the write operation remains valid, and
- * what happens when the write operation becomes invalid, are
- * service-dependent.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.StartResumableWriteResponse>
- startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Determines the `persisted_size` for an object that is being written, which
- * can then be used as the `write_offset` for the next `Write()` call.
- * If the object does not exist (i.e., the object has been deleted, or the
- * first `Write()` has not yet reached the service), this method returns the
- * error `NOT_FOUND`.
- * The client **may** call `QueryWriteStatus()` at any time to determine how
- * much data has been processed for this object. This is useful if the
- * client is buffering data and needs to know which data can be safely
- * evicted. For any sequence of `QueryWriteStatus()` calls for a given
- * object name, the sequence of returned `persisted_size` values will be
- * non-decreasing.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.QueryWriteStatusResponse>
- queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Retrieves the name of a project's Google Cloud Storage service account.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Creates a new HMAC key for the given service account.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.CreateHmacKeyResponse>
- createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Deletes a given HMAC key. Key must be in an INACTIVE state.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Gets an existing HMAC key metadata for the given id.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- getHmacKey(com.google.storage.v2.GetHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Lists HMAC keys under a given project with the additional filters provided.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture<
- com.google.storage.v2.ListHmacKeysResponse>
- listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request);
- }
-
- /**
- *
- *
- *
- * Updates a given HMAC key state between ACTIVE and INACTIVE.
- *
- */
- public com.google.common.util.concurrent.ListenableFuture
- updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request) {
- return io.grpc.stub.ClientCalls.futureUnaryCall(
- getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), request);
- }
- }
-
- private static final int METHODID_DELETE_BUCKET = 0;
- private static final int METHODID_GET_BUCKET = 1;
- private static final int METHODID_CREATE_BUCKET = 2;
- private static final int METHODID_LIST_BUCKETS = 3;
- private static final int METHODID_LOCK_BUCKET_RETENTION_POLICY = 4;
- private static final int METHODID_GET_IAM_POLICY = 5;
- private static final int METHODID_SET_IAM_POLICY = 6;
- private static final int METHODID_TEST_IAM_PERMISSIONS = 7;
- private static final int METHODID_UPDATE_BUCKET = 8;
- private static final int METHODID_DELETE_NOTIFICATION = 9;
- private static final int METHODID_GET_NOTIFICATION = 10;
- private static final int METHODID_CREATE_NOTIFICATION = 11;
- private static final int METHODID_LIST_NOTIFICATIONS = 12;
- private static final int METHODID_COMPOSE_OBJECT = 13;
- private static final int METHODID_DELETE_OBJECT = 14;
- private static final int METHODID_CANCEL_RESUMABLE_WRITE = 15;
- private static final int METHODID_GET_OBJECT = 16;
- private static final int METHODID_READ_OBJECT = 17;
- private static final int METHODID_UPDATE_OBJECT = 18;
- private static final int METHODID_LIST_OBJECTS = 19;
- private static final int METHODID_REWRITE_OBJECT = 20;
- private static final int METHODID_START_RESUMABLE_WRITE = 21;
- private static final int METHODID_QUERY_WRITE_STATUS = 22;
- private static final int METHODID_GET_SERVICE_ACCOUNT = 23;
- private static final int METHODID_CREATE_HMAC_KEY = 24;
- private static final int METHODID_DELETE_HMAC_KEY = 25;
- private static final int METHODID_GET_HMAC_KEY = 26;
- private static final int METHODID_LIST_HMAC_KEYS = 27;
- private static final int METHODID_UPDATE_HMAC_KEY = 28;
- private static final int METHODID_WRITE_OBJECT = 29;
-
- 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 StorageImplBase serviceImpl;
- private final int methodId;
-
- MethodHandlers(StorageImplBase 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_DELETE_BUCKET:
- serviceImpl.deleteBucket(
- (com.google.storage.v2.DeleteBucketRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_BUCKET:
- serviceImpl.getBucket(
- (com.google.storage.v2.GetBucketRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_CREATE_BUCKET:
- serviceImpl.createBucket(
- (com.google.storage.v2.CreateBucketRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_LIST_BUCKETS:
- serviceImpl.listBuckets(
- (com.google.storage.v2.ListBucketsRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_LOCK_BUCKET_RETENTION_POLICY:
- serviceImpl.lockBucketRetentionPolicy(
- (com.google.storage.v2.LockBucketRetentionPolicyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_IAM_POLICY:
- serviceImpl.getIamPolicy(
- (com.google.iam.v1.GetIamPolicyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_SET_IAM_POLICY:
- serviceImpl.setIamPolicy(
- (com.google.iam.v1.SetIamPolicyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_TEST_IAM_PERMISSIONS:
- serviceImpl.testIamPermissions(
- (com.google.iam.v1.TestIamPermissionsRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_UPDATE_BUCKET:
- serviceImpl.updateBucket(
- (com.google.storage.v2.UpdateBucketRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_DELETE_NOTIFICATION:
- serviceImpl.deleteNotification(
- (com.google.storage.v2.DeleteNotificationRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_NOTIFICATION:
- serviceImpl.getNotification(
- (com.google.storage.v2.GetNotificationRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_CREATE_NOTIFICATION:
- serviceImpl.createNotification(
- (com.google.storage.v2.CreateNotificationRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_LIST_NOTIFICATIONS:
- serviceImpl.listNotifications(
- (com.google.storage.v2.ListNotificationsRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_COMPOSE_OBJECT:
- serviceImpl.composeObject(
- (com.google.storage.v2.ComposeObjectRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_DELETE_OBJECT:
- serviceImpl.deleteObject(
- (com.google.storage.v2.DeleteObjectRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_CANCEL_RESUMABLE_WRITE:
- serviceImpl.cancelResumableWrite(
- (com.google.storage.v2.CancelResumableWriteRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_GET_OBJECT:
- serviceImpl.getObject(
- (com.google.storage.v2.GetObjectRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_READ_OBJECT:
- serviceImpl.readObject(
- (com.google.storage.v2.ReadObjectRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_UPDATE_OBJECT:
- serviceImpl.updateObject(
- (com.google.storage.v2.UpdateObjectRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_LIST_OBJECTS:
- serviceImpl.listObjects(
- (com.google.storage.v2.ListObjectsRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_REWRITE_OBJECT:
- serviceImpl.rewriteObject(
- (com.google.storage.v2.RewriteObjectRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_START_RESUMABLE_WRITE:
- serviceImpl.startResumableWrite(
- (com.google.storage.v2.StartResumableWriteRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_QUERY_WRITE_STATUS:
- serviceImpl.queryWriteStatus(
- (com.google.storage.v2.QueryWriteStatusRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_GET_SERVICE_ACCOUNT:
- serviceImpl.getServiceAccount(
- (com.google.storage.v2.GetServiceAccountRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_CREATE_HMAC_KEY:
- serviceImpl.createHmacKey(
- (com.google.storage.v2.CreateHmacKeyRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_DELETE_HMAC_KEY:
- serviceImpl.deleteHmacKey(
- (com.google.storage.v2.DeleteHmacKeyRequest) request,
- (io.grpc.stub.StreamObserver) responseObserver);
- break;
- case METHODID_GET_HMAC_KEY:
- serviceImpl.getHmacKey(
- (com.google.storage.v2.GetHmacKeyRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_LIST_HMAC_KEYS:
- serviceImpl.listHmacKeys(
- (com.google.storage.v2.ListHmacKeysRequest) request,
- (io.grpc.stub.StreamObserver)
- responseObserver);
- break;
- case METHODID_UPDATE_HMAC_KEY:
- serviceImpl.updateHmacKey(
- (com.google.storage.v2.UpdateHmacKeyRequest) 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) {
- case METHODID_WRITE_OBJECT:
- return (io.grpc.stub.StreamObserver)
- serviceImpl.writeObject(
- (io.grpc.stub.StreamObserver)
- responseObserver);
- default:
- throw new AssertionError();
- }
- }
- }
-
- private abstract static class StorageBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
- io.grpc.protobuf.ProtoServiceDescriptorSupplier {
- StorageBaseDescriptorSupplier() {}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
- return com.google.storage.v2.StorageProto.getDescriptor();
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
- return getFileDescriptor().findServiceByName("Storage");
- }
- }
-
- private static final class StorageFileDescriptorSupplier extends StorageBaseDescriptorSupplier {
- StorageFileDescriptorSupplier() {}
- }
-
- private static final class StorageMethodDescriptorSupplier extends StorageBaseDescriptorSupplier
- implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
- private final String methodName;
-
- StorageMethodDescriptorSupplier(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 (StorageGrpc.class) {
- result = serviceDescriptor;
- if (result == null) {
- serviceDescriptor =
- result =
- io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
- .setSchemaDescriptor(new StorageFileDescriptorSupplier())
- .addMethod(getDeleteBucketMethod())
- .addMethod(getGetBucketMethod())
- .addMethod(getCreateBucketMethod())
- .addMethod(getListBucketsMethod())
- .addMethod(getLockBucketRetentionPolicyMethod())
- .addMethod(getGetIamPolicyMethod())
- .addMethod(getSetIamPolicyMethod())
- .addMethod(getTestIamPermissionsMethod())
- .addMethod(getUpdateBucketMethod())
- .addMethod(getDeleteNotificationMethod())
- .addMethod(getGetNotificationMethod())
- .addMethod(getCreateNotificationMethod())
- .addMethod(getListNotificationsMethod())
- .addMethod(getComposeObjectMethod())
- .addMethod(getDeleteObjectMethod())
- .addMethod(getCancelResumableWriteMethod())
- .addMethod(getGetObjectMethod())
- .addMethod(getReadObjectMethod())
- .addMethod(getUpdateObjectMethod())
- .addMethod(getWriteObjectMethod())
- .addMethod(getListObjectsMethod())
- .addMethod(getRewriteObjectMethod())
- .addMethod(getStartResumableWriteMethod())
- .addMethod(getQueryWriteStatusMethod())
- .addMethod(getGetServiceAccountMethod())
- .addMethod(getCreateHmacKeyMethod())
- .addMethod(getDeleteHmacKeyMethod())
- .addMethod(getGetHmacKeyMethod())
- .addMethod(getListHmacKeysMethod())
- .addMethod(getUpdateHmacKeyMethod())
- .build();
- }
- }
- }
- return result;
- }
-}
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java
similarity index 99%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java
index a44ad1a9d2..636c1ce827 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java
+++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java
@@ -128,19 +128,6 @@
* StorageClient storageClient = StorageClient.create(storageSettings);
* }
*
- * To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
- * the wire:
- *
- *
{@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
- * StorageSettings storageSettings = StorageSettings.newHttpJsonBuilder().build();
- * StorageClient storageClient = StorageClient.create(storageSettings);
- * }
- *
* Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
@Generated("by gapic-generator-java")
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
similarity index 96%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
index 23fc6ac91b..e2f36a5753 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
+++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageSettings.java
@@ -26,13 +26,13 @@
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
-import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.iam.v1.GetIamPolicyRequest;
@@ -266,18 +266,11 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
return StorageStubSettings.defaultCredentialsProviderBuilder();
}
- /** Returns a builder for the default gRPC ChannelProvider for this service. */
+ /** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return StorageStubSettings.defaultGrpcTransportProviderBuilder();
}
- /** Returns a builder for the default REST ChannelProvider for this service. */
- @BetaApi
- public static InstantiatingHttpJsonChannelProvider.Builder
- defaultHttpJsonTransportProviderBuilder() {
- return StorageStubSettings.defaultHttpJsonTransportProviderBuilder();
- }
-
public static TransportChannelProvider defaultTransportChannelProvider() {
return StorageStubSettings.defaultTransportChannelProvider();
}
@@ -287,17 +280,11 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil
return StorageStubSettings.defaultApiClientHeaderProviderBuilder();
}
- /** Returns a new gRPC builder for this class. */
+ /** Returns a new builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
- /** Returns a new REST builder for this class. */
- @BetaApi
- public static Builder newHttpJsonBuilder() {
- return Builder.createHttpJsonDefault();
- }
-
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
@@ -335,11 +322,6 @@ private static Builder createDefault() {
return new Builder(StorageStubSettings.newBuilder());
}
- @BetaApi
- private static Builder createHttpJsonDefault() {
- return new Builder(StorageStubSettings.newHttpJsonBuilder());
- }
-
public StorageStubSettings.Builder getStubSettingsBuilder() {
return ((StorageStubSettings.Builder) getStubSettings());
}
diff --git a/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/gapic_metadata.json
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/package-info.java
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageCallableFactory.java
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java
similarity index 99%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java
index cd33ebcaf1..a26b3c5218 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java
+++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java
@@ -84,6 +84,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
+import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStub.java
diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
similarity index 96%
rename from gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
index 2a0c7cb538..0e89bd6b23 100644
--- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
+++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/StorageStubSettings.java
@@ -30,9 +30,6 @@
import com.google.api.gax.grpc.GaxGrpcProperties;
import com.google.api.gax.grpc.GrpcTransportChannel;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
-import com.google.api.gax.httpjson.GaxHttpJsonProperties;
-import com.google.api.gax.httpjson.HttpJsonTransportChannel;
-import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.retrying.RetrySettings;
import com.google.api.gax.rpc.ApiCallContext;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
@@ -584,11 +581,6 @@ public StorageStub createStub() throws IOException {
.equals(GrpcTransportChannel.getGrpcTransportName())) {
return GrpcStorageStub.create(this);
}
- if (getTransportChannelProvider()
- .getTransportName()
- .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) {
- return HttpJsonStorageStub.create(this);
- }
throw new UnsupportedOperationException(
String.format(
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
@@ -621,54 +613,29 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
.setUseJwtAccessWithScope(true);
}
- /** Returns a builder for the default gRPC ChannelProvider for this service. */
+ /** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return InstantiatingGrpcChannelProvider.newBuilder()
.setMaxInboundMessageSize(Integer.MAX_VALUE);
}
- /** Returns a builder for the default REST ChannelProvider for this service. */
- @BetaApi
- public static InstantiatingHttpJsonChannelProvider.Builder
- defaultHttpJsonTransportProviderBuilder() {
- return InstantiatingHttpJsonChannelProvider.newBuilder();
- }
-
public static TransportChannelProvider defaultTransportChannelProvider() {
return defaultGrpcTransportProviderBuilder().build();
}
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
- public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() {
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return ApiClientHeaderProvider.newBuilder()
.setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(StorageStubSettings.class))
.setTransportToken(
GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion());
}
- @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
- public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() {
- return ApiClientHeaderProvider.newBuilder()
- .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(StorageStubSettings.class))
- .setTransportToken(
- GaxHttpJsonProperties.getHttpJsonTokenName(),
- GaxHttpJsonProperties.getHttpJsonVersion());
- }
-
- public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
- return StorageStubSettings.defaultGrpcApiClientHeaderProviderBuilder();
- }
-
- /** Returns a new gRPC builder for this class. */
+ /** Returns a new builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
- /** Returns a new REST builder for this class. */
- public static Builder newHttpJsonBuilder() {
- return Builder.createHttpJsonDefault();
- }
-
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
@@ -953,19 +920,6 @@ private static Builder createDefault() {
return initDefaults(builder);
}
- private static Builder createHttpJsonDefault() {
- Builder builder = new Builder(((ClientContext) null));
-
- builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
- builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
- builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
- builder.setEndpoint(getDefaultEndpoint());
- builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
- builder.setSwitchToMtlsEndpointAllowed(true);
-
- return initDefaults(builder);
- }
-
private static Builder initDefaults(Builder builder) {
builder
.deleteBucketSettings()
diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json
new file mode 100644
index 0000000000..9442f71159
--- /dev/null
+++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json
@@ -0,0 +1,108 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.storage.v2",
+ "libraryPackage": "com.google.storage.v2",
+ "services": {
+ "Storage": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "StorageClient",
+ "rpcs": {
+ "CancelResumableWrite": {
+ "methods": ["cancelResumableWrite", "cancelResumableWrite", "cancelResumableWriteCallable"]
+ },
+ "ComposeObject": {
+ "methods": ["composeObject", "composeObjectCallable"]
+ },
+ "CreateBucket": {
+ "methods": ["createBucket", "createBucket", "createBucket", "createBucketCallable"]
+ },
+ "CreateHmacKey": {
+ "methods": ["createHmacKey", "createHmacKey", "createHmacKey", "createHmacKeyCallable"]
+ },
+ "CreateNotification": {
+ "methods": ["createNotification", "createNotification", "createNotification", "createNotificationCallable"]
+ },
+ "DeleteBucket": {
+ "methods": ["deleteBucket", "deleteBucket", "deleteBucket", "deleteBucketCallable"]
+ },
+ "DeleteHmacKey": {
+ "methods": ["deleteHmacKey", "deleteHmacKey", "deleteHmacKey", "deleteHmacKeyCallable"]
+ },
+ "DeleteNotification": {
+ "methods": ["deleteNotification", "deleteNotification", "deleteNotification", "deleteNotificationCallable"]
+ },
+ "DeleteObject": {
+ "methods": ["deleteObject", "deleteObject", "deleteObject", "deleteObjectCallable"]
+ },
+ "GetBucket": {
+ "methods": ["getBucket", "getBucket", "getBucket", "getBucketCallable"]
+ },
+ "GetHmacKey": {
+ "methods": ["getHmacKey", "getHmacKey", "getHmacKey", "getHmacKeyCallable"]
+ },
+ "GetIamPolicy": {
+ "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
+ },
+ "GetNotification": {
+ "methods": ["getNotification", "getNotification", "getNotification", "getNotificationCallable"]
+ },
+ "GetObject": {
+ "methods": ["getObject", "getObject", "getObject", "getObjectCallable"]
+ },
+ "GetServiceAccount": {
+ "methods": ["getServiceAccount", "getServiceAccount", "getServiceAccount", "getServiceAccountCallable"]
+ },
+ "ListBuckets": {
+ "methods": ["listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"]
+ },
+ "ListHmacKeys": {
+ "methods": ["listHmacKeys", "listHmacKeys", "listHmacKeys", "listHmacKeysPagedCallable", "listHmacKeysCallable"]
+ },
+ "ListNotifications": {
+ "methods": ["listNotifications", "listNotifications", "listNotifications", "listNotificationsPagedCallable", "listNotificationsCallable"]
+ },
+ "ListObjects": {
+ "methods": ["listObjects", "listObjects", "listObjects", "listObjectsPagedCallable", "listObjectsCallable"]
+ },
+ "LockBucketRetentionPolicy": {
+ "methods": ["lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicyCallable"]
+ },
+ "QueryWriteStatus": {
+ "methods": ["queryWriteStatus", "queryWriteStatus", "queryWriteStatusCallable"]
+ },
+ "ReadObject": {
+ "methods": ["readObjectCallable"]
+ },
+ "RewriteObject": {
+ "methods": ["rewriteObject", "rewriteObjectCallable"]
+ },
+ "SetIamPolicy": {
+ "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
+ },
+ "StartResumableWrite": {
+ "methods": ["startResumableWrite", "startResumableWriteCallable"]
+ },
+ "TestIamPermissions": {
+ "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
+ },
+ "UpdateBucket": {
+ "methods": ["updateBucket", "updateBucket", "updateBucketCallable"]
+ },
+ "UpdateHmacKey": {
+ "methods": ["updateHmacKey", "updateHmacKey", "updateHmacKeyCallable"]
+ },
+ "UpdateObject": {
+ "methods": ["updateObject", "updateObject", "updateObjectCallable"]
+ },
+ "WriteObject": {
+ "methods": ["writeObjectCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java
diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java
diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java
similarity index 100%
rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java
rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java
diff --git a/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java
new file mode 100644
index 0000000000..520c2a2d10
--- /dev/null
+++ b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java
@@ -0,0 +1,3024 @@
+package com.google.storage.v2;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ * ## API Overview and Naming Syntax
+ * The Cloud Storage gRPC API allows applications to read and write data through
+ * the abstractions of buckets and objects. For a description of these
+ * abstractions please see https://cloud.google.com/storage/docs.
+ * Resources are named as follows:
+ * - Projects are referred to as they are defined by the Resource Manager API,
+ * using strings like `projects/123456` or `projects/my-string-id`.
+ * - Buckets are named using string names of the form:
+ * `projects/{project}/buckets/{bucket}`
+ * For globally unique buckets, `_` may be substituted for the project.
+ * - Objects are uniquely identified by their name along with the name of the
+ * bucket they belong to, as separate strings in this API. For example:
+ * ReadObjectRequest {
+ * bucket: 'projects/_/buckets/my-bucket'
+ * object: 'my-object'
+ * }
+ * Note that object names can contain `/` characters, which are treated as
+ * any other character (no special directory semantics).
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/storage/v2/storage.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class StorageGrpc {
+
+ private StorageGrpc() {}
+
+ public static final String SERVICE_NAME = "google.storage.v2.Storage";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteBucket",
+ requestType = com.google.storage.v2.DeleteBucketRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getDeleteBucketMethod() {
+ io.grpc.MethodDescriptor getDeleteBucketMethod;
+ if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
+ StorageGrpc.getDeleteBucketMethod = getDeleteBucketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
+ .build();
+ }
+ }
+ }
+ return getDeleteBucketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetBucketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetBucket",
+ requestType = com.google.storage.v2.GetBucketRequest.class,
+ responseType = com.google.storage.v2.Bucket.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetBucketMethod() {
+ io.grpc.MethodDescriptor getGetBucketMethod;
+ if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
+ StorageGrpc.getGetBucketMethod = getGetBucketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Bucket.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
+ .build();
+ }
+ }
+ }
+ return getGetBucketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCreateBucketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateBucket",
+ requestType = com.google.storage.v2.CreateBucketRequest.class,
+ responseType = com.google.storage.v2.Bucket.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateBucketMethod() {
+ io.grpc.MethodDescriptor getCreateBucketMethod;
+ if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
+ StorageGrpc.getCreateBucketMethod = getCreateBucketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Bucket.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
+ .build();
+ }
+ }
+ }
+ return getCreateBucketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getListBucketsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListBuckets",
+ requestType = com.google.storage.v2.ListBucketsRequest.class,
+ responseType = com.google.storage.v2.ListBucketsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getListBucketsMethod() {
+ io.grpc.MethodDescriptor getListBucketsMethod;
+ if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
+ StorageGrpc.getListBucketsMethod = getListBucketsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
+ .build();
+ }
+ }
+ }
+ return getListBucketsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "LockBucketRetentionPolicy",
+ requestType = com.google.storage.v2.LockBucketRetentionPolicyRequest.class,
+ responseType = com.google.storage.v2.Bucket.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod() {
+ io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
+ if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
+ StorageGrpc.getLockBucketRetentionPolicyMethod = getLockBucketRetentionPolicyMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Bucket.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
+ .build();
+ }
+ }
+ }
+ return getLockBucketRetentionPolicyMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
+ requestType = com.google.iam.v1.GetIamPolicyRequest.class,
+ responseType = com.google.iam.v1.Policy.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
+ io.grpc.MethodDescriptor getGetIamPolicyMethod;
+ if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
+ StorageGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.Policy.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
+ .build();
+ }
+ }
+ }
+ return getGetIamPolicyMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
+ requestType = com.google.iam.v1.SetIamPolicyRequest.class,
+ responseType = com.google.iam.v1.Policy.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
+ io.grpc.MethodDescriptor getSetIamPolicyMethod;
+ if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
+ StorageGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.Policy.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
+ .build();
+ }
+ }
+ }
+ return getSetIamPolicyMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
+ requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
+ responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
+ io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+ if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
+ StorageGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("TestIamPermissions"))
+ .build();
+ }
+ }
+ }
+ return getTestIamPermissionsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getUpdateBucketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UpdateBucket",
+ requestType = com.google.storage.v2.UpdateBucketRequest.class,
+ responseType = com.google.storage.v2.Bucket.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getUpdateBucketMethod() {
+ io.grpc.MethodDescriptor getUpdateBucketMethod;
+ if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
+ StorageGrpc.getUpdateBucketMethod = getUpdateBucketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Bucket.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
+ .build();
+ }
+ }
+ }
+ return getUpdateBucketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getDeleteNotificationMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteNotification",
+ requestType = com.google.storage.v2.DeleteNotificationRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getDeleteNotificationMethod() {
+ io.grpc.MethodDescriptor getDeleteNotificationMethod;
+ if ((getDeleteNotificationMethod = StorageGrpc.getDeleteNotificationMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getDeleteNotificationMethod = StorageGrpc.getDeleteNotificationMethod) == null) {
+ StorageGrpc.getDeleteNotificationMethod = getDeleteNotificationMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotification"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.DeleteNotificationRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteNotification"))
+ .build();
+ }
+ }
+ }
+ return getDeleteNotificationMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetNotificationMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetNotification",
+ requestType = com.google.storage.v2.GetNotificationRequest.class,
+ responseType = com.google.storage.v2.Notification.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetNotificationMethod() {
+ io.grpc.MethodDescriptor getGetNotificationMethod;
+ if ((getGetNotificationMethod = StorageGrpc.getGetNotificationMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getGetNotificationMethod = StorageGrpc.getGetNotificationMethod) == null) {
+ StorageGrpc.getGetNotificationMethod = getGetNotificationMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.GetNotificationRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Notification.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetNotification"))
+ .build();
+ }
+ }
+ }
+ return getGetNotificationMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCreateNotificationMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateNotification",
+ requestType = com.google.storage.v2.CreateNotificationRequest.class,
+ responseType = com.google.storage.v2.Notification.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateNotificationMethod() {
+ io.grpc.MethodDescriptor getCreateNotificationMethod;
+ if ((getCreateNotificationMethod = StorageGrpc.getCreateNotificationMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getCreateNotificationMethod = StorageGrpc.getCreateNotificationMethod) == null) {
+ StorageGrpc.getCreateNotificationMethod = getCreateNotificationMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotification"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.CreateNotificationRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Notification.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateNotification"))
+ .build();
+ }
+ }
+ }
+ return getCreateNotificationMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getListNotificationsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListNotifications",
+ requestType = com.google.storage.v2.ListNotificationsRequest.class,
+ responseType = com.google.storage.v2.ListNotificationsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getListNotificationsMethod() {
+ io.grpc.MethodDescriptor getListNotificationsMethod;
+ if ((getListNotificationsMethod = StorageGrpc.getListNotificationsMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getListNotificationsMethod = StorageGrpc.getListNotificationsMethod) == null) {
+ StorageGrpc.getListNotificationsMethod = getListNotificationsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.ListNotificationsRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.ListNotificationsResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListNotifications"))
+ .build();
+ }
+ }
+ }
+ return getListNotificationsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getComposeObjectMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ComposeObject",
+ requestType = com.google.storage.v2.ComposeObjectRequest.class,
+ responseType = com.google.storage.v2.Object.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getComposeObjectMethod() {
+ io.grpc.MethodDescriptor getComposeObjectMethod;
+ if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
+ synchronized (StorageGrpc.class) {
+ if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
+ StorageGrpc.getComposeObjectMethod = getComposeObjectMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.storage.v2.Object.getDefaultInstance()))
+ .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
+ .build();
+ }
+ }
+ }
+ return getComposeObjectMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getDeleteObjectMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteObject",
+ requestType = com.google.storage.v2.DeleteObjectRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getDeleteObjectMethod() {
+ io.grpc.MethodDescriptor