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

com.google.cloud.storageinsights.v1.StorageInsightsGrpc Maven / Gradle / Ivy

There is a newer version: 0.36.0
Show 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.cloud.storageinsights.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service describing handlers for resources
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/storageinsights/v1/storageinsights.proto") @io.grpc.stub.annotations.GrpcGenerated public final class StorageInsightsGrpc { private StorageInsightsGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.storageinsights.v1.StorageInsights"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportConfigsRequest, com.google.cloud.storageinsights.v1.ListReportConfigsResponse> getListReportConfigsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListReportConfigs", requestType = com.google.cloud.storageinsights.v1.ListReportConfigsRequest.class, responseType = com.google.cloud.storageinsights.v1.ListReportConfigsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportConfigsRequest, com.google.cloud.storageinsights.v1.ListReportConfigsResponse> getListReportConfigsMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportConfigsRequest, com.google.cloud.storageinsights.v1.ListReportConfigsResponse> getListReportConfigsMethod; if ((getListReportConfigsMethod = StorageInsightsGrpc.getListReportConfigsMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getListReportConfigsMethod = StorageInsightsGrpc.getListReportConfigsMethod) == null) { StorageInsightsGrpc.getListReportConfigsMethod = getListReportConfigsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReportConfigs")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ListReportConfigsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ListReportConfigsResponse .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("ListReportConfigs")) .build(); } } } return getListReportConfigsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getGetReportConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetReportConfig", requestType = com.google.cloud.storageinsights.v1.GetReportConfigRequest.class, responseType = com.google.cloud.storageinsights.v1.ReportConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getGetReportConfigMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getGetReportConfigMethod; if ((getGetReportConfigMethod = StorageInsightsGrpc.getGetReportConfigMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getGetReportConfigMethod = StorageInsightsGrpc.getGetReportConfigMethod) == null) { StorageInsightsGrpc.getGetReportConfigMethod = getGetReportConfigMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReportConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.GetReportConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ReportConfig .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("GetReportConfig")) .build(); } } } return getGetReportConfigMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.CreateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getCreateReportConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateReportConfig", requestType = com.google.cloud.storageinsights.v1.CreateReportConfigRequest.class, responseType = com.google.cloud.storageinsights.v1.ReportConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.CreateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getCreateReportConfigMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.CreateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getCreateReportConfigMethod; if ((getCreateReportConfigMethod = StorageInsightsGrpc.getCreateReportConfigMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getCreateReportConfigMethod = StorageInsightsGrpc.getCreateReportConfigMethod) == null) { StorageInsightsGrpc.getCreateReportConfigMethod = getCreateReportConfigMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReportConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.CreateReportConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ReportConfig .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("CreateReportConfig")) .build(); } } } return getCreateReportConfigMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.UpdateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getUpdateReportConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateReportConfig", requestType = com.google.cloud.storageinsights.v1.UpdateReportConfigRequest.class, responseType = com.google.cloud.storageinsights.v1.ReportConfig.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.UpdateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getUpdateReportConfigMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.UpdateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig> getUpdateReportConfigMethod; if ((getUpdateReportConfigMethod = StorageInsightsGrpc.getUpdateReportConfigMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getUpdateReportConfigMethod = StorageInsightsGrpc.getUpdateReportConfigMethod) == null) { StorageInsightsGrpc.getUpdateReportConfigMethod = getUpdateReportConfigMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateReportConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.UpdateReportConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ReportConfig .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("UpdateReportConfig")) .build(); } } } return getUpdateReportConfigMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.DeleteReportConfigRequest, com.google.protobuf.Empty> getDeleteReportConfigMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteReportConfig", requestType = com.google.cloud.storageinsights.v1.DeleteReportConfigRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.DeleteReportConfigRequest, com.google.protobuf.Empty> getDeleteReportConfigMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.DeleteReportConfigRequest, com.google.protobuf.Empty> getDeleteReportConfigMethod; if ((getDeleteReportConfigMethod = StorageInsightsGrpc.getDeleteReportConfigMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getDeleteReportConfigMethod = StorageInsightsGrpc.getDeleteReportConfigMethod) == null) { StorageInsightsGrpc.getDeleteReportConfigMethod = getDeleteReportConfigMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteReportConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.DeleteReportConfigRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("DeleteReportConfig")) .build(); } } } return getDeleteReportConfigMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportDetailsRequest, com.google.cloud.storageinsights.v1.ListReportDetailsResponse> getListReportDetailsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListReportDetails", requestType = com.google.cloud.storageinsights.v1.ListReportDetailsRequest.class, responseType = com.google.cloud.storageinsights.v1.ListReportDetailsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportDetailsRequest, com.google.cloud.storageinsights.v1.ListReportDetailsResponse> getListReportDetailsMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.ListReportDetailsRequest, com.google.cloud.storageinsights.v1.ListReportDetailsResponse> getListReportDetailsMethod; if ((getListReportDetailsMethod = StorageInsightsGrpc.getListReportDetailsMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getListReportDetailsMethod = StorageInsightsGrpc.getListReportDetailsMethod) == null) { StorageInsightsGrpc.getListReportDetailsMethod = getListReportDetailsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReportDetails")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ListReportDetailsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ListReportDetailsResponse .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("ListReportDetails")) .build(); } } } return getListReportDetailsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportDetailRequest, com.google.cloud.storageinsights.v1.ReportDetail> getGetReportDetailMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetReportDetail", requestType = com.google.cloud.storageinsights.v1.GetReportDetailRequest.class, responseType = com.google.cloud.storageinsights.v1.ReportDetail.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportDetailRequest, com.google.cloud.storageinsights.v1.ReportDetail> getGetReportDetailMethod() { io.grpc.MethodDescriptor< com.google.cloud.storageinsights.v1.GetReportDetailRequest, com.google.cloud.storageinsights.v1.ReportDetail> getGetReportDetailMethod; if ((getGetReportDetailMethod = StorageInsightsGrpc.getGetReportDetailMethod) == null) { synchronized (StorageInsightsGrpc.class) { if ((getGetReportDetailMethod = StorageInsightsGrpc.getGetReportDetailMethod) == null) { StorageInsightsGrpc.getGetReportDetailMethod = getGetReportDetailMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReportDetail")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.GetReportDetailRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.storageinsights.v1.ReportDetail .getDefaultInstance())) .setSchemaDescriptor( new StorageInsightsMethodDescriptorSupplier("GetReportDetail")) .build(); } } } return getGetReportDetailMethod; } /** Creates a new async stub that supports all call types for the service */ public static StorageInsightsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public StorageInsightsStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsStub(channel, callOptions); } }; return StorageInsightsStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static StorageInsightsBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public StorageInsightsBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsBlockingStub(channel, callOptions); } }; return StorageInsightsBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static StorageInsightsFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public StorageInsightsFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsFutureStub(channel, callOptions); } }; return StorageInsightsFutureStub.newStub(factory, channel); } /** * * *
   * Service describing handlers for resources
   * 
*/ public interface AsyncService { /** * * *
     * Lists ReportConfigs in a given project and location.
     * 
*/ default void listReportConfigs( com.google.cloud.storageinsights.v1.ListReportConfigsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListReportConfigsMethod(), responseObserver); } /** * * *
     * Gets details of a single ReportConfig.
     * 
*/ default void getReportConfig( com.google.cloud.storageinsights.v1.GetReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetReportConfigMethod(), responseObserver); } /** * * *
     * Creates a new ReportConfig in a given project and location.
     * 
*/ default void createReportConfig( com.google.cloud.storageinsights.v1.CreateReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateReportConfigMethod(), responseObserver); } /** * * *
     * Updates the parameters of a single ReportConfig.
     * 
*/ default void updateReportConfig( com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateReportConfigMethod(), responseObserver); } /** * * *
     * Deletes a single ReportConfig.
     * 
*/ default void deleteReportConfig( com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteReportConfigMethod(), responseObserver); } /** * * *
     * Lists ReportDetails in a given project and location.
     * 
*/ default void listReportDetails( com.google.cloud.storageinsights.v1.ListReportDetailsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListReportDetailsMethod(), responseObserver); } /** * * *
     * Gets details of a single ReportDetail.
     * 
*/ default void getReportDetail( com.google.cloud.storageinsights.v1.GetReportDetailRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetReportDetailMethod(), responseObserver); } } /** * Base class for the server implementation of the service StorageInsights. * *
   * Service describing handlers for resources
   * 
*/ public abstract static class StorageInsightsImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return StorageInsightsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service StorageInsights. * *
   * Service describing handlers for resources
   * 
*/ public static final class StorageInsightsStub extends io.grpc.stub.AbstractAsyncStub { private StorageInsightsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StorageInsightsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsStub(channel, callOptions); } /** * * *
     * Lists ReportConfigs in a given project and location.
     * 
*/ public void listReportConfigs( com.google.cloud.storageinsights.v1.ListReportConfigsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListReportConfigsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets details of a single ReportConfig.
     * 
*/ public void getReportConfig( com.google.cloud.storageinsights.v1.GetReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetReportConfigMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new ReportConfig in a given project and location.
     * 
*/ public void createReportConfig( com.google.cloud.storageinsights.v1.CreateReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateReportConfigMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the parameters of a single ReportConfig.
     * 
*/ public void updateReportConfig( com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateReportConfigMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a single ReportConfig.
     * 
*/ public void deleteReportConfig( com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteReportConfigMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists ReportDetails in a given project and location.
     * 
*/ public void listReportDetails( com.google.cloud.storageinsights.v1.ListReportDetailsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListReportDetailsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets details of a single ReportDetail.
     * 
*/ public void getReportDetail( com.google.cloud.storageinsights.v1.GetReportDetailRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetReportDetailMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service StorageInsights. * *
   * Service describing handlers for resources
   * 
*/ public static final class StorageInsightsBlockingStub extends io.grpc.stub.AbstractBlockingStub { private StorageInsightsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StorageInsightsBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsBlockingStub(channel, callOptions); } /** * * *
     * Lists ReportConfigs in a given project and location.
     * 
*/ public com.google.cloud.storageinsights.v1.ListReportConfigsResponse listReportConfigs( com.google.cloud.storageinsights.v1.ListReportConfigsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReportConfigsMethod(), getCallOptions(), request); } /** * * *
     * Gets details of a single ReportConfig.
     * 
*/ public com.google.cloud.storageinsights.v1.ReportConfig getReportConfig( com.google.cloud.storageinsights.v1.GetReportConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReportConfigMethod(), getCallOptions(), request); } /** * * *
     * Creates a new ReportConfig in a given project and location.
     * 
*/ public com.google.cloud.storageinsights.v1.ReportConfig createReportConfig( com.google.cloud.storageinsights.v1.CreateReportConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReportConfigMethod(), getCallOptions(), request); } /** * * *
     * Updates the parameters of a single ReportConfig.
     * 
*/ public com.google.cloud.storageinsights.v1.ReportConfig updateReportConfig( com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateReportConfigMethod(), getCallOptions(), request); } /** * * *
     * Deletes a single ReportConfig.
     * 
*/ public com.google.protobuf.Empty deleteReportConfig( com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteReportConfigMethod(), getCallOptions(), request); } /** * * *
     * Lists ReportDetails in a given project and location.
     * 
*/ public com.google.cloud.storageinsights.v1.ListReportDetailsResponse listReportDetails( com.google.cloud.storageinsights.v1.ListReportDetailsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListReportDetailsMethod(), getCallOptions(), request); } /** * * *
     * Gets details of a single ReportDetail.
     * 
*/ public com.google.cloud.storageinsights.v1.ReportDetail getReportDetail( com.google.cloud.storageinsights.v1.GetReportDetailRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReportDetailMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageInsights. * *
   * Service describing handlers for resources
   * 
*/ public static final class StorageInsightsFutureStub extends io.grpc.stub.AbstractFutureStub { private StorageInsightsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected StorageInsightsFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageInsightsFutureStub(channel, callOptions); } /** * * *
     * Lists ReportConfigs in a given project and location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ListReportConfigsResponse> listReportConfigs(com.google.cloud.storageinsights.v1.ListReportConfigsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReportConfigsMethod(), getCallOptions()), request); } /** * * *
     * Gets details of a single ReportConfig.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ReportConfig> getReportConfig(com.google.cloud.storageinsights.v1.GetReportConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReportConfigMethod(), getCallOptions()), request); } /** * * *
     * Creates a new ReportConfig in a given project and location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ReportConfig> createReportConfig(com.google.cloud.storageinsights.v1.CreateReportConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReportConfigMethod(), getCallOptions()), request); } /** * * *
     * Updates the parameters of a single ReportConfig.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ReportConfig> updateReportConfig(com.google.cloud.storageinsights.v1.UpdateReportConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateReportConfigMethod(), getCallOptions()), request); } /** * * *
     * Deletes a single ReportConfig.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteReportConfig(com.google.cloud.storageinsights.v1.DeleteReportConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteReportConfigMethod(), getCallOptions()), request); } /** * * *
     * Lists ReportDetails in a given project and location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ListReportDetailsResponse> listReportDetails(com.google.cloud.storageinsights.v1.ListReportDetailsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListReportDetailsMethod(), getCallOptions()), request); } /** * * *
     * Gets details of a single ReportDetail.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.storageinsights.v1.ReportDetail> getReportDetail(com.google.cloud.storageinsights.v1.GetReportDetailRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReportDetailMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_REPORT_CONFIGS = 0; private static final int METHODID_GET_REPORT_CONFIG = 1; private static final int METHODID_CREATE_REPORT_CONFIG = 2; private static final int METHODID_UPDATE_REPORT_CONFIG = 3; private static final int METHODID_DELETE_REPORT_CONFIG = 4; private static final int METHODID_LIST_REPORT_DETAILS = 5; private static final int METHODID_GET_REPORT_DETAIL = 6; 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_LIST_REPORT_CONFIGS: serviceImpl.listReportConfigs( (com.google.cloud.storageinsights.v1.ListReportConfigsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.storageinsights.v1.ListReportConfigsResponse>) responseObserver); break; case METHODID_GET_REPORT_CONFIG: serviceImpl.getReportConfig( (com.google.cloud.storageinsights.v1.GetReportConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_REPORT_CONFIG: serviceImpl.createReportConfig( (com.google.cloud.storageinsights.v1.CreateReportConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_REPORT_CONFIG: serviceImpl.updateReportConfig( (com.google.cloud.storageinsights.v1.UpdateReportConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_REPORT_CONFIG: serviceImpl.deleteReportConfig( (com.google.cloud.storageinsights.v1.DeleteReportConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_REPORT_DETAILS: serviceImpl.listReportDetails( (com.google.cloud.storageinsights.v1.ListReportDetailsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.storageinsights.v1.ListReportDetailsResponse>) responseObserver); break; case METHODID_GET_REPORT_DETAIL: serviceImpl.getReportDetail( (com.google.cloud.storageinsights.v1.GetReportDetailRequest) 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( getListReportConfigsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.ListReportConfigsRequest, com.google.cloud.storageinsights.v1.ListReportConfigsResponse>( service, METHODID_LIST_REPORT_CONFIGS))) .addMethod( getGetReportConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.GetReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig>( service, METHODID_GET_REPORT_CONFIG))) .addMethod( getCreateReportConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.CreateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig>( service, METHODID_CREATE_REPORT_CONFIG))) .addMethod( getUpdateReportConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.UpdateReportConfigRequest, com.google.cloud.storageinsights.v1.ReportConfig>( service, METHODID_UPDATE_REPORT_CONFIG))) .addMethod( getDeleteReportConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.DeleteReportConfigRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPORT_CONFIG))) .addMethod( getListReportDetailsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.ListReportDetailsRequest, com.google.cloud.storageinsights.v1.ListReportDetailsResponse>( service, METHODID_LIST_REPORT_DETAILS))) .addMethod( getGetReportDetailMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.storageinsights.v1.GetReportDetailRequest, com.google.cloud.storageinsights.v1.ReportDetail>( service, METHODID_GET_REPORT_DETAIL))) .build(); } private abstract static class StorageInsightsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { StorageInsightsBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.storageinsights.v1.V1Proto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("StorageInsights"); } } private static final class StorageInsightsFileDescriptorSupplier extends StorageInsightsBaseDescriptorSupplier { StorageInsightsFileDescriptorSupplier() {} } private static final class StorageInsightsMethodDescriptorSupplier extends StorageInsightsBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; StorageInsightsMethodDescriptorSupplier(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 (StorageInsightsGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new StorageInsightsFileDescriptorSupplier()) .addMethod(getListReportConfigsMethod()) .addMethod(getGetReportConfigMethod()) .addMethod(getCreateReportConfigMethod()) .addMethod(getUpdateReportConfigMethod()) .addMethod(getDeleteReportConfigMethod()) .addMethod(getListReportDetailsMethod()) .addMethod(getGetReportDetailMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy