com.google.storagetransfer.v1.proto.StorageTransferServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-storage-transfer-v1 Show documentation
Show all versions of grpc-google-cloud-storage-transfer-v1 Show documentation
GRPC library for google-cloud-storage-transfer
The newest version!
/*
* Copyright 2024 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.storagetransfer.v1.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/storagetransfer/v1/transfer.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class StorageTransferServiceGrpc {
private StorageTransferServiceGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.storagetransfer.v1.StorageTransferService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest,
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
getGetGoogleServiceAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetGoogleServiceAccount",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest,
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
getGetGoogleServiceAccountMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest,
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
getGetGoogleServiceAccountMethod;
if ((getGetGoogleServiceAccountMethod =
StorageTransferServiceGrpc.getGetGoogleServiceAccountMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getGetGoogleServiceAccountMethod =
StorageTransferServiceGrpc.getGetGoogleServiceAccountMethod)
== null) {
StorageTransferServiceGrpc.getGetGoogleServiceAccountMethod =
getGetGoogleServiceAccountMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GetGoogleServiceAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.GetGoogleServiceAccountRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier(
"GetGoogleServiceAccount"))
.build();
}
}
}
return getGetGoogleServiceAccountMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getCreateTransferJobMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateTransferJob",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.TransferJob.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getCreateTransferJobMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getCreateTransferJobMethod;
if ((getCreateTransferJobMethod = StorageTransferServiceGrpc.getCreateTransferJobMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getCreateTransferJobMethod = StorageTransferServiceGrpc.getCreateTransferJobMethod)
== null) {
StorageTransferServiceGrpc.getCreateTransferJobMethod =
getCreateTransferJobMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTransferJob"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.CreateTransferJobRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("CreateTransferJob"))
.build();
}
}
}
return getCreateTransferJobMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getUpdateTransferJobMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateTransferJob",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.TransferJob.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getUpdateTransferJobMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getUpdateTransferJobMethod;
if ((getUpdateTransferJobMethod = StorageTransferServiceGrpc.getUpdateTransferJobMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getUpdateTransferJobMethod = StorageTransferServiceGrpc.getUpdateTransferJobMethod)
== null) {
StorageTransferServiceGrpc.getUpdateTransferJobMethod =
getUpdateTransferJobMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTransferJob"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.UpdateTransferJobRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("UpdateTransferJob"))
.build();
}
}
}
return getUpdateTransferJobMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getGetTransferJobMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransferJob",
requestType = com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.TransferJob.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getGetTransferJobMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getGetTransferJobMethod;
if ((getGetTransferJobMethod = StorageTransferServiceGrpc.getGetTransferJobMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getGetTransferJobMethod = StorageTransferServiceGrpc.getGetTransferJobMethod)
== null) {
StorageTransferServiceGrpc.getGetTransferJobMethod =
getGetTransferJobMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransferJob"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.GetTransferJobRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("GetTransferJob"))
.build();
}
}
}
return getGetTransferJobMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
getListTransferJobsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListTransferJobs",
requestType = com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest.class,
responseType =
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
getListTransferJobsMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
getListTransferJobsMethod;
if ((getListTransferJobsMethod = StorageTransferServiceGrpc.getListTransferJobsMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getListTransferJobsMethod = StorageTransferServiceGrpc.getListTransferJobsMethod)
== null) {
StorageTransferServiceGrpc.getListTransferJobsMethod =
getListTransferJobsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTransferJobs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.ListTransferJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.ListTransferJobsResponse.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("ListTransferJobs"))
.build();
}
}
}
return getListTransferJobsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest,
com.google.protobuf.Empty>
getPauseTransferOperationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PauseTransferOperation",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest,
com.google.protobuf.Empty>
getPauseTransferOperationMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest,
com.google.protobuf.Empty>
getPauseTransferOperationMethod;
if ((getPauseTransferOperationMethod =
StorageTransferServiceGrpc.getPauseTransferOperationMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getPauseTransferOperationMethod =
StorageTransferServiceGrpc.getPauseTransferOperationMethod)
== null) {
StorageTransferServiceGrpc.getPauseTransferOperationMethod =
getPauseTransferOperationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "PauseTransferOperation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.PauseTransferOperationRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier(
"PauseTransferOperation"))
.build();
}
}
}
return getPauseTransferOperationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest,
com.google.protobuf.Empty>
getResumeTransferOperationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResumeTransferOperation",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest,
com.google.protobuf.Empty>
getResumeTransferOperationMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest,
com.google.protobuf.Empty>
getResumeTransferOperationMethod;
if ((getResumeTransferOperationMethod =
StorageTransferServiceGrpc.getResumeTransferOperationMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getResumeTransferOperationMethod =
StorageTransferServiceGrpc.getResumeTransferOperationMethod)
== null) {
StorageTransferServiceGrpc.getResumeTransferOperationMethod =
getResumeTransferOperationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ResumeTransferOperation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.ResumeTransferOperationRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier(
"ResumeTransferOperation"))
.build();
}
}
}
return getResumeTransferOperationMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest,
com.google.longrunning.Operation>
getRunTransferJobMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RunTransferJob",
requestType = com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest,
com.google.longrunning.Operation>
getRunTransferJobMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest,
com.google.longrunning.Operation>
getRunTransferJobMethod;
if ((getRunTransferJobMethod = StorageTransferServiceGrpc.getRunTransferJobMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getRunTransferJobMethod = StorageTransferServiceGrpc.getRunTransferJobMethod)
== null) {
StorageTransferServiceGrpc.getRunTransferJobMethod =
getRunTransferJobMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTransferJob"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.RunTransferJobRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("RunTransferJob"))
.build();
}
}
}
return getRunTransferJobMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest,
com.google.protobuf.Empty>
getDeleteTransferJobMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteTransferJob",
requestType =
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest,
com.google.protobuf.Empty>
getDeleteTransferJobMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest,
com.google.protobuf.Empty>
getDeleteTransferJobMethod;
if ((getDeleteTransferJobMethod = StorageTransferServiceGrpc.getDeleteTransferJobMethod)
== null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getDeleteTransferJobMethod = StorageTransferServiceGrpc.getDeleteTransferJobMethod)
== null) {
StorageTransferServiceGrpc.getDeleteTransferJobMethod =
getDeleteTransferJobMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTransferJob"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.DeleteTransferJobRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("DeleteTransferJob"))
.build();
}
}
}
return getDeleteTransferJobMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getCreateAgentPoolMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateAgentPool",
requestType = com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.AgentPool.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getCreateAgentPoolMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getCreateAgentPoolMethod;
if ((getCreateAgentPoolMethod = StorageTransferServiceGrpc.getCreateAgentPoolMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getCreateAgentPoolMethod = StorageTransferServiceGrpc.getCreateAgentPoolMethod)
== null) {
StorageTransferServiceGrpc.getCreateAgentPoolMethod =
getCreateAgentPoolMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAgentPool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.CreateAgentPoolRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("CreateAgentPool"))
.build();
}
}
}
return getCreateAgentPoolMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getUpdateAgentPoolMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateAgentPool",
requestType = com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.AgentPool.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getUpdateAgentPoolMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getUpdateAgentPoolMethod;
if ((getUpdateAgentPoolMethod = StorageTransferServiceGrpc.getUpdateAgentPoolMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getUpdateAgentPoolMethod = StorageTransferServiceGrpc.getUpdateAgentPoolMethod)
== null) {
StorageTransferServiceGrpc.getUpdateAgentPoolMethod =
getUpdateAgentPoolMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAgentPool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.UpdateAgentPoolRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("UpdateAgentPool"))
.build();
}
}
}
return getUpdateAgentPoolMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getGetAgentPoolMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAgentPool",
requestType = com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferTypes.AgentPool.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getGetAgentPoolMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getGetAgentPoolMethod;
if ((getGetAgentPoolMethod = StorageTransferServiceGrpc.getGetAgentPoolMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getGetAgentPoolMethod = StorageTransferServiceGrpc.getGetAgentPoolMethod) == null) {
StorageTransferServiceGrpc.getGetAgentPoolMethod =
getGetAgentPoolMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgentPool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool
.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("GetAgentPool"))
.build();
}
}
}
return getGetAgentPoolMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
getListAgentPoolsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListAgentPools",
requestType = com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest.class,
responseType = com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
getListAgentPoolsMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
getListAgentPoolsMethod;
if ((getListAgentPoolsMethod = StorageTransferServiceGrpc.getListAgentPoolsMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getListAgentPoolsMethod = StorageTransferServiceGrpc.getListAgentPoolsMethod)
== null) {
StorageTransferServiceGrpc.getListAgentPoolsMethod =
getListAgentPoolsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAgentPools"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.ListAgentPoolsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.ListAgentPoolsResponse.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("ListAgentPools"))
.build();
}
}
}
return getListAgentPoolsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest,
com.google.protobuf.Empty>
getDeleteAgentPoolMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteAgentPool",
requestType = com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest,
com.google.protobuf.Empty>
getDeleteAgentPoolMethod() {
io.grpc.MethodDescriptor<
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest,
com.google.protobuf.Empty>
getDeleteAgentPoolMethod;
if ((getDeleteAgentPoolMethod = StorageTransferServiceGrpc.getDeleteAgentPoolMethod) == null) {
synchronized (StorageTransferServiceGrpc.class) {
if ((getDeleteAgentPoolMethod = StorageTransferServiceGrpc.getDeleteAgentPoolMethod)
== null) {
StorageTransferServiceGrpc.getDeleteAgentPoolMethod =
getDeleteAgentPoolMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgentPool"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.storagetransfer.v1.proto.TransferProto
.DeleteAgentPoolRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new StorageTransferServiceMethodDescriptorSupplier("DeleteAgentPool"))
.build();
}
}
}
return getDeleteAgentPoolMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static StorageTransferServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StorageTransferServiceStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceStub(channel, callOptions);
}
};
return StorageTransferServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static StorageTransferServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StorageTransferServiceBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceBlockingStub(channel, callOptions);
}
};
return StorageTransferServiceBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static StorageTransferServiceFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StorageTransferServiceFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceFutureStub(channel, callOptions);
}
};
return StorageTransferServiceFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
public interface AsyncService {
/**
*
*
*
* Returns the Google service account that is used by Storage Transfer
* Service to access buckets in the project where transfers
* run or in other projects. Each Google service account is associated
* with one Google Cloud project. Users
* should add this service account to the Google Cloud Storage bucket
* ACLs to grant access to Storage Transfer Service. This service
* account is created and owned by Storage Transfer Service and can
* only be used by Storage Transfer Service.
*
*/
default void getGoogleServiceAccount(
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetGoogleServiceAccountMethod(), responseObserver);
}
/**
*
*
*
* Creates a transfer job that runs periodically.
*
*/
default void createTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateTransferJobMethod(), responseObserver);
}
/**
*
*
*
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
*
*/
default void updateTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateTransferJobMethod(), responseObserver);
}
/**
*
*
*
* Gets a transfer job.
*
*/
default void getTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetTransferJobMethod(), responseObserver);
}
/**
*
*
*
* Lists transfer jobs.
*
*/
default void listTransferJobs(
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListTransferJobsMethod(), responseObserver);
}
/**
*
*
*
* Pauses a transfer operation.
*
*/
default void pauseTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getPauseTransferOperationMethod(), responseObserver);
}
/**
*
*
*
* Resumes a transfer operation that is paused.
*
*/
default void resumeTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getResumeTransferOperationMethod(), responseObserver);
}
/**
*
*
*
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
*
*/
default void runTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getRunTransferJobMethod(), responseObserver);
}
/**
*
*
*
* Deletes a transfer job. Deleting a transfer job sets its status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
*
*/
default void deleteTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteTransferJobMethod(), responseObserver);
}
/**
*
*
*
* Creates an agent pool resource.
*
*/
default void createAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getCreateAgentPoolMethod(), responseObserver);
}
/**
*
*
*
* Updates an existing agent pool resource.
*
*/
default void updateAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateAgentPoolMethod(), responseObserver);
}
/**
*
*
*
* Gets an agent pool.
*
*/
default void getAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetAgentPoolMethod(), responseObserver);
}
/**
*
*
*
* Lists agent pools.
*
*/
default void listAgentPools(
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListAgentPoolsMethod(), responseObserver);
}
/**
*
*
*
* Deletes an agent pool.
*
*/
default void deleteAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteAgentPoolMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service StorageTransferService.
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
public abstract static class StorageTransferServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return StorageTransferServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service StorageTransferService.
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
public static final class StorageTransferServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private StorageTransferServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StorageTransferServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceStub(channel, callOptions);
}
/**
*
*
*
* Returns the Google service account that is used by Storage Transfer
* Service to access buckets in the project where transfers
* run or in other projects. Each Google service account is associated
* with one Google Cloud project. Users
* should add this service account to the Google Cloud Storage bucket
* ACLs to grant access to Storage Transfer Service. This service
* account is created and owned by Storage Transfer Service and can
* only be used by Storage Transfer Service.
*
*/
public void getGoogleServiceAccount(
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetGoogleServiceAccountMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates a transfer job that runs periodically.
*
*/
public void createTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateTransferJobMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
*
*/
public void updateTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateTransferJobMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets a transfer job.
*
*/
public void getTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTransferJobMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists transfer jobs.
*
*/
public void listTransferJobs(
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListTransferJobsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Pauses a transfer operation.
*
*/
public void pauseTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPauseTransferOperationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Resumes a transfer operation that is paused.
*
*/
public void resumeTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResumeTransferOperationMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
*
*/
public void runTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRunTransferJobMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes a transfer job. Deleting a transfer job sets its status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
*
*/
public void deleteTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteTransferJobMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Creates an agent pool resource.
*
*/
public void createAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateAgentPoolMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Updates an existing agent pool resource.
*
*/
public void updateAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateAgentPoolMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets an agent pool.
*
*/
public void getAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAgentPoolMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Lists agent pools.
*
*/
public void listAgentPools(
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request,
io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListAgentPoolsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes an agent pool.
*
*/
public void deleteAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteAgentPoolMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service StorageTransferService.
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
public static final class StorageTransferServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private StorageTransferServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StorageTransferServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceBlockingStub(channel, callOptions);
}
/**
*
*
*
* Returns the Google service account that is used by Storage Transfer
* Service to access buckets in the project where transfers
* run or in other projects. Each Google service account is associated
* with one Google Cloud project. Users
* should add this service account to the Google Cloud Storage bucket
* ACLs to grant access to Storage Transfer Service. This service
* account is created and owned by Storage Transfer Service and can
* only be used by Storage Transfer Service.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount
getGoogleServiceAccount(
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest
request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetGoogleServiceAccountMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates a transfer job that runs periodically.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob createTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateTransferJobMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob updateTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTransferJobMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets a transfer job.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.TransferJob getTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTransferJobMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists transfer jobs.
*
*/
public com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse
listTransferJobs(
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListTransferJobsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Pauses a transfer operation.
*
*/
public com.google.protobuf.Empty pauseTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPauseTransferOperationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Resumes a transfer operation that is paused.
*
*/
public com.google.protobuf.Empty resumeTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResumeTransferOperationMethod(), getCallOptions(), request);
}
/**
*
*
*
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
*
*/
public com.google.longrunning.Operation runTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRunTransferJobMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes a transfer job. Deleting a transfer job sets its status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
*
*/
public com.google.protobuf.Empty deleteTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteTransferJobMethod(), getCallOptions(), request);
}
/**
*
*
*
* Creates an agent pool resource.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool createAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateAgentPoolMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates an existing agent pool resource.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool updateAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAgentPoolMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets an agent pool.
*
*/
public com.google.storagetransfer.v1.proto.TransferTypes.AgentPool getAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetAgentPoolMethod(), getCallOptions(), request);
}
/**
*
*
*
* Lists agent pools.
*
*/
public com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse listAgentPools(
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListAgentPoolsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes an agent pool.
*
*/
public com.google.protobuf.Empty deleteAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteAgentPoolMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service
* StorageTransferService.
*
*
* Storage Transfer Service and its protos.
* Transfers data between between Google Cloud Storage buckets or from a data
* source external to Google to a Cloud Storage bucket.
*
*/
public static final class StorageTransferServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private StorageTransferServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StorageTransferServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StorageTransferServiceFutureStub(channel, callOptions);
}
/**
*
*
*
* Returns the Google service account that is used by Storage Transfer
* Service to access buckets in the project where transfers
* run or in other projects. Each Google service account is associated
* with one Google Cloud project. Users
* should add this service account to the Google Cloud Storage bucket
* ACLs to grant access to Storage Transfer Service. This service
* account is created and owned by Storage Transfer Service and can
* only be used by Storage Transfer Service.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>
getGoogleServiceAccount(
com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest
request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetGoogleServiceAccountMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates a transfer job that runs periodically.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
createTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateTransferJobMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates a transfer job. Updating a job's transfer spec does not affect
* transfer operations that are running already.
* **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status]
* field can be modified using this RPC (for example, to set a job's status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED],
* [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or
* [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
updateTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateTransferJobMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets a transfer job.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>
getTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTransferJobMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists transfer jobs.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>
listTransferJobs(
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListTransferJobsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Pauses a transfer operation.
*
*/
public com.google.common.util.concurrent.ListenableFuture
pauseTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest
request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPauseTransferOperationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Resumes a transfer operation that is paused.
*
*/
public com.google.common.util.concurrent.ListenableFuture
resumeTransferOperation(
com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest
request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResumeTransferOperationMethod(), getCallOptions()), request);
}
/**
*
*
*
* Starts a new operation for the specified transfer job.
* A `TransferJob` has a maximum of one active `TransferOperation`. If this
* method is called while a `TransferOperation` is active, an error is
* returned.
*
*/
public com.google.common.util.concurrent.ListenableFuture
runTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRunTransferJobMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes a transfer job. Deleting a transfer job sets its status to
* [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteTransferJob(
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteTransferJobMethod(), getCallOptions()), request);
}
/**
*
*
*
* Creates an agent pool resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
createAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateAgentPoolMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates an existing agent pool resource.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
updateAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAgentPoolMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets an agent pool.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>
getAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetAgentPoolMethod(), getCallOptions()), request);
}
/**
*
*
*
* Lists agent pools.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>
listAgentPools(
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListAgentPoolsMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes an agent pool.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteAgentPool(
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteAgentPoolMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_GOOGLE_SERVICE_ACCOUNT = 0;
private static final int METHODID_CREATE_TRANSFER_JOB = 1;
private static final int METHODID_UPDATE_TRANSFER_JOB = 2;
private static final int METHODID_GET_TRANSFER_JOB = 3;
private static final int METHODID_LIST_TRANSFER_JOBS = 4;
private static final int METHODID_PAUSE_TRANSFER_OPERATION = 5;
private static final int METHODID_RESUME_TRANSFER_OPERATION = 6;
private static final int METHODID_RUN_TRANSFER_JOB = 7;
private static final int METHODID_DELETE_TRANSFER_JOB = 8;
private static final int METHODID_CREATE_AGENT_POOL = 9;
private static final int METHODID_UPDATE_AGENT_POOL = 10;
private static final int METHODID_GET_AGENT_POOL = 11;
private static final int METHODID_LIST_AGENT_POOLS = 12;
private static final int METHODID_DELETE_AGENT_POOL = 13;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_GET_GOOGLE_SERVICE_ACCOUNT:
serviceImpl.getGoogleServiceAccount(
(com.google.storagetransfer.v1.proto.TransferProto.GetGoogleServiceAccountRequest)
request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>)
responseObserver);
break;
case METHODID_CREATE_TRANSFER_JOB:
serviceImpl.createTransferJob(
(com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
responseObserver);
break;
case METHODID_UPDATE_TRANSFER_JOB:
serviceImpl.updateTransferJob(
(com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
responseObserver);
break;
case METHODID_GET_TRANSFER_JOB:
serviceImpl.getTransferJob(
(com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>)
responseObserver);
break;
case METHODID_LIST_TRANSFER_JOBS:
serviceImpl.listTransferJobs(
(com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>)
responseObserver);
break;
case METHODID_PAUSE_TRANSFER_OPERATION:
serviceImpl.pauseTransferOperation(
(com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest)
request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESUME_TRANSFER_OPERATION:
serviceImpl.resumeTransferOperation(
(com.google.storagetransfer.v1.proto.TransferProto.ResumeTransferOperationRequest)
request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RUN_TRANSFER_JOB:
serviceImpl.runTransferJob(
(com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_TRANSFER_JOB:
serviceImpl.deleteTransferJob(
(com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_AGENT_POOL:
serviceImpl.createAgentPool(
(com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
responseObserver);
break;
case METHODID_UPDATE_AGENT_POOL:
serviceImpl.updateAgentPool(
(com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
responseObserver);
break;
case METHODID_GET_AGENT_POOL:
serviceImpl.getAgentPool(
(com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>)
responseObserver);
break;
case METHODID_LIST_AGENT_POOLS:
serviceImpl.listAgentPools(
(com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>)
responseObserver);
break;
case METHODID_DELETE_AGENT_POOL:
serviceImpl.deleteAgentPool(
(com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetGoogleServiceAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto
.GetGoogleServiceAccountRequest,
com.google.storagetransfer.v1.proto.TransferTypes.GoogleServiceAccount>(
service, METHODID_GET_GOOGLE_SERVICE_ACCOUNT)))
.addMethod(
getCreateTransferJobMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.CreateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>(
service, METHODID_CREATE_TRANSFER_JOB)))
.addMethod(
getUpdateTransferJobMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.UpdateTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>(
service, METHODID_UPDATE_TRANSFER_JOB)))
.addMethod(
getGetTransferJobMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.GetTransferJobRequest,
com.google.storagetransfer.v1.proto.TransferTypes.TransferJob>(
service, METHODID_GET_TRANSFER_JOB)))
.addMethod(
getListTransferJobsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListTransferJobsResponse>(
service, METHODID_LIST_TRANSFER_JOBS)))
.addMethod(
getPauseTransferOperationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.PauseTransferOperationRequest,
com.google.protobuf.Empty>(service, METHODID_PAUSE_TRANSFER_OPERATION)))
.addMethod(
getResumeTransferOperationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto
.ResumeTransferOperationRequest,
com.google.protobuf.Empty>(service, METHODID_RESUME_TRANSFER_OPERATION)))
.addMethod(
getRunTransferJobMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.RunTransferJobRequest,
com.google.longrunning.Operation>(service, METHODID_RUN_TRANSFER_JOB)))
.addMethod(
getDeleteTransferJobMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.DeleteTransferJobRequest,
com.google.protobuf.Empty>(service, METHODID_DELETE_TRANSFER_JOB)))
.addMethod(
getCreateAgentPoolMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.CreateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>(
service, METHODID_CREATE_AGENT_POOL)))
.addMethod(
getUpdateAgentPoolMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.UpdateAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>(
service, METHODID_UPDATE_AGENT_POOL)))
.addMethod(
getGetAgentPoolMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.GetAgentPoolRequest,
com.google.storagetransfer.v1.proto.TransferTypes.AgentPool>(
service, METHODID_GET_AGENT_POOL)))
.addMethod(
getListAgentPoolsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsRequest,
com.google.storagetransfer.v1.proto.TransferProto.ListAgentPoolsResponse>(
service, METHODID_LIST_AGENT_POOLS)))
.addMethod(
getDeleteAgentPoolMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.storagetransfer.v1.proto.TransferProto.DeleteAgentPoolRequest,
com.google.protobuf.Empty>(service, METHODID_DELETE_AGENT_POOL)))
.build();
}
private abstract static class StorageTransferServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
StorageTransferServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.storagetransfer.v1.proto.TransferProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("StorageTransferService");
}
}
private static final class StorageTransferServiceFileDescriptorSupplier
extends StorageTransferServiceBaseDescriptorSupplier {
StorageTransferServiceFileDescriptorSupplier() {}
}
private static final class StorageTransferServiceMethodDescriptorSupplier
extends StorageTransferServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
StorageTransferServiceMethodDescriptorSupplier(java.lang.String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (StorageTransferServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new StorageTransferServiceFileDescriptorSupplier())
.addMethod(getGetGoogleServiceAccountMethod())
.addMethod(getCreateTransferJobMethod())
.addMethod(getUpdateTransferJobMethod())
.addMethod(getGetTransferJobMethod())
.addMethod(getListTransferJobsMethod())
.addMethod(getPauseTransferOperationMethod())
.addMethod(getResumeTransferOperationMethod())
.addMethod(getRunTransferJobMethod())
.addMethod(getDeleteTransferJobMethod())
.addMethod(getCreateAgentPoolMethod())
.addMethod(getUpdateAgentPoolMethod())
.addMethod(getGetAgentPoolMethod())
.addMethod(getListAgentPoolsMethod())
.addMethod(getDeleteAgentPoolMethod())
.build();
}
}
}
return result;
}
}