/* * Copyright 2019 The Grafeas Authors. All rights reserved. * * 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 io.grafeas.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** * * *
 * [Grafeas](https://grafeas.io) API.
 * Retrieves analysis results of Cloud components such as Docker container
 * images.
 * Analysis results are stored as a series of occurrences. An `Occurrence`
 * contains information about a specific analysis instance on a resource. An
 * occurrence refers to a `Note`. A note contains details describing the
 * analysis and is generally stored in a separate project, called a `Provider`.
 * Multiple occurrences can refer to the same note.
 * For example, an SSL vulnerability could affect multiple images. In this case,
 * there would be one note for the vulnerability and an occurrence for each
 * image with the vulnerability referring to that note.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: grafeas/v1/grafeas.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GrafeasGrpc { private GrafeasGrpc() {} public static final String SERVICE_NAME = "grafeas.v1.Grafeas"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.GetOccurrenceRequest, io.grafeas.v1.Occurrence> getGetOccurrenceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOccurrence", requestType = io.grafeas.v1.GetOccurrenceRequest.class, responseType = io.grafeas.v1.Occurrence.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.GetOccurrenceRequest, io.grafeas.v1.Occurrence> getGetOccurrenceMethod() { io.grpc.MethodDescriptor getGetOccurrenceMethod; if ((getGetOccurrenceMethod = GrafeasGrpc.getGetOccurrenceMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getGetOccurrenceMethod = GrafeasGrpc.getGetOccurrenceMethod) == null) { GrafeasGrpc.getGetOccurrenceMethod = getGetOccurrenceMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOccurrence")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.GetOccurrenceRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Occurrence.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("GetOccurrence")) .build(); } } } return getGetOccurrenceMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.ListOccurrencesRequest, io.grafeas.v1.ListOccurrencesResponse> getListOccurrencesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListOccurrences", requestType = io.grafeas.v1.ListOccurrencesRequest.class, responseType = io.grafeas.v1.ListOccurrencesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.ListOccurrencesRequest, io.grafeas.v1.ListOccurrencesResponse> getListOccurrencesMethod() { io.grpc.MethodDescriptor< io.grafeas.v1.ListOccurrencesRequest, io.grafeas.v1.ListOccurrencesResponse> getListOccurrencesMethod; if ((getListOccurrencesMethod = GrafeasGrpc.getListOccurrencesMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getListOccurrencesMethod = GrafeasGrpc.getListOccurrencesMethod) == null) { GrafeasGrpc.getListOccurrencesMethod = getListOccurrencesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOccurrences")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListOccurrencesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListOccurrencesResponse.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("ListOccurrences")) .build(); } } } return getListOccurrencesMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.DeleteOccurrenceRequest, com.google.protobuf.Empty> getDeleteOccurrenceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteOccurrence", requestType = io.grafeas.v1.DeleteOccurrenceRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.DeleteOccurrenceRequest, com.google.protobuf.Empty> getDeleteOccurrenceMethod() { io.grpc.MethodDescriptor getDeleteOccurrenceMethod; if ((getDeleteOccurrenceMethod = GrafeasGrpc.getDeleteOccurrenceMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getDeleteOccurrenceMethod = GrafeasGrpc.getDeleteOccurrenceMethod) == null) { GrafeasGrpc.getDeleteOccurrenceMethod = getDeleteOccurrenceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOccurrence")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.DeleteOccurrenceRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("DeleteOccurrence")) .build(); } } } return getDeleteOccurrenceMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.CreateOccurrenceRequest, io.grafeas.v1.Occurrence> getCreateOccurrenceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateOccurrence", requestType = io.grafeas.v1.CreateOccurrenceRequest.class, responseType = io.grafeas.v1.Occurrence.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.CreateOccurrenceRequest, io.grafeas.v1.Occurrence> getCreateOccurrenceMethod() { io.grpc.MethodDescriptor getCreateOccurrenceMethod; if ((getCreateOccurrenceMethod = GrafeasGrpc.getCreateOccurrenceMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getCreateOccurrenceMethod = GrafeasGrpc.getCreateOccurrenceMethod) == null) { GrafeasGrpc.getCreateOccurrenceMethod = getCreateOccurrenceMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOccurrence")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.CreateOccurrenceRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Occurrence.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("CreateOccurrence")) .build(); } } } return getCreateOccurrenceMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateOccurrencesRequest, io.grafeas.v1.BatchCreateOccurrencesResponse> getBatchCreateOccurrencesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCreateOccurrences", requestType = io.grafeas.v1.BatchCreateOccurrencesRequest.class, responseType = io.grafeas.v1.BatchCreateOccurrencesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateOccurrencesRequest, io.grafeas.v1.BatchCreateOccurrencesResponse> getBatchCreateOccurrencesMethod() { io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateOccurrencesRequest, io.grafeas.v1.BatchCreateOccurrencesResponse> getBatchCreateOccurrencesMethod; if ((getBatchCreateOccurrencesMethod = GrafeasGrpc.getBatchCreateOccurrencesMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getBatchCreateOccurrencesMethod = GrafeasGrpc.getBatchCreateOccurrencesMethod) == null) { GrafeasGrpc.getBatchCreateOccurrencesMethod = getBatchCreateOccurrencesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "BatchCreateOccurrences")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.BatchCreateOccurrencesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.BatchCreateOccurrencesResponse.getDefaultInstance())) .setSchemaDescriptor( new GrafeasMethodDescriptorSupplier("BatchCreateOccurrences")) .build(); } } } return getBatchCreateOccurrencesMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.UpdateOccurrenceRequest, io.grafeas.v1.Occurrence> getUpdateOccurrenceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateOccurrence", requestType = io.grafeas.v1.UpdateOccurrenceRequest.class, responseType = io.grafeas.v1.Occurrence.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.UpdateOccurrenceRequest, io.grafeas.v1.Occurrence> getUpdateOccurrenceMethod() { io.grpc.MethodDescriptor getUpdateOccurrenceMethod; if ((getUpdateOccurrenceMethod = GrafeasGrpc.getUpdateOccurrenceMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getUpdateOccurrenceMethod = GrafeasGrpc.getUpdateOccurrenceMethod) == null) { GrafeasGrpc.getUpdateOccurrenceMethod = getUpdateOccurrenceMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOccurrence")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.UpdateOccurrenceRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Occurrence.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("UpdateOccurrence")) .build(); } } } return getUpdateOccurrenceMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.GetOccurrenceNoteRequest, io.grafeas.v1.Note> getGetOccurrenceNoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOccurrenceNote", requestType = io.grafeas.v1.GetOccurrenceNoteRequest.class, responseType = io.grafeas.v1.Note.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetOccurrenceNoteMethod() { io.grpc.MethodDescriptor getGetOccurrenceNoteMethod; if ((getGetOccurrenceNoteMethod = GrafeasGrpc.getGetOccurrenceNoteMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getGetOccurrenceNoteMethod = GrafeasGrpc.getGetOccurrenceNoteMethod) == null) { GrafeasGrpc.getGetOccurrenceNoteMethod = getGetOccurrenceNoteMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOccurrenceNote")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.GetOccurrenceNoteRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Note.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("GetOccurrenceNote")) .build(); } } } return getGetOccurrenceNoteMethod; } private static volatile io.grpc.MethodDescriptor getGetNoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetNote", requestType = io.grafeas.v1.GetNoteRequest.class, responseType = io.grafeas.v1.Note.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetNoteMethod() { io.grpc.MethodDescriptor getGetNoteMethod; if ((getGetNoteMethod = GrafeasGrpc.getGetNoteMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getGetNoteMethod = GrafeasGrpc.getGetNoteMethod) == null) { GrafeasGrpc.getGetNoteMethod = getGetNoteMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNote")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.GetNoteRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Note.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("GetNote")) .build(); } } } return getGetNoteMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.ListNotesRequest, io.grafeas.v1.ListNotesResponse> getListNotesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListNotes", requestType = io.grafeas.v1.ListNotesRequest.class, responseType = io.grafeas.v1.ListNotesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.ListNotesRequest, io.grafeas.v1.ListNotesResponse> getListNotesMethod() { io.grpc.MethodDescriptor getListNotesMethod; if ((getListNotesMethod = GrafeasGrpc.getListNotesMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getListNotesMethod = GrafeasGrpc.getListNotesMethod) == null) { GrafeasGrpc.getListNotesMethod = getListNotesMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListNotesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListNotesResponse.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("ListNotes")) .build(); } } } return getListNotesMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.DeleteNoteRequest, com.google.protobuf.Empty> getDeleteNoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteNote", requestType = io.grafeas.v1.DeleteNoteRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDeleteNoteMethod() { io.grpc.MethodDescriptor getDeleteNoteMethod; if ((getDeleteNoteMethod = GrafeasGrpc.getDeleteNoteMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getDeleteNoteMethod = GrafeasGrpc.getDeleteNoteMethod) == null) { GrafeasGrpc.getDeleteNoteMethod = getDeleteNoteMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNote")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.DeleteNoteRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("DeleteNote")) .build(); } } } return getDeleteNoteMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.CreateNoteRequest, io.grafeas.v1.Note> getCreateNoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateNote", requestType = io.grafeas.v1.CreateNoteRequest.class, responseType = io.grafeas.v1.Note.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateNoteMethod() { io.grpc.MethodDescriptor getCreateNoteMethod; if ((getCreateNoteMethod = GrafeasGrpc.getCreateNoteMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getCreateNoteMethod = GrafeasGrpc.getCreateNoteMethod) == null) { GrafeasGrpc.getCreateNoteMethod = getCreateNoteMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNote")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.CreateNoteRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Note.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("CreateNote")) .build(); } } } return getCreateNoteMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateNotesRequest, io.grafeas.v1.BatchCreateNotesResponse> getBatchCreateNotesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "BatchCreateNotes", requestType = io.grafeas.v1.BatchCreateNotesRequest.class, responseType = io.grafeas.v1.BatchCreateNotesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateNotesRequest, io.grafeas.v1.BatchCreateNotesResponse> getBatchCreateNotesMethod() { io.grpc.MethodDescriptor< io.grafeas.v1.BatchCreateNotesRequest, io.grafeas.v1.BatchCreateNotesResponse> getBatchCreateNotesMethod; if ((getBatchCreateNotesMethod = GrafeasGrpc.getBatchCreateNotesMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getBatchCreateNotesMethod = GrafeasGrpc.getBatchCreateNotesMethod) == null) { GrafeasGrpc.getBatchCreateNotesMethod = getBatchCreateNotesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateNotes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.BatchCreateNotesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.BatchCreateNotesResponse.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("BatchCreateNotes")) .build(); } } } return getBatchCreateNotesMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.UpdateNoteRequest, io.grafeas.v1.Note> getUpdateNoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateNote", requestType = io.grafeas.v1.UpdateNoteRequest.class, responseType = io.grafeas.v1.Note.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpdateNoteMethod() { io.grpc.MethodDescriptor getUpdateNoteMethod; if ((getUpdateNoteMethod = GrafeasGrpc.getUpdateNoteMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getUpdateNoteMethod = GrafeasGrpc.getUpdateNoteMethod) == null) { GrafeasGrpc.getUpdateNoteMethod = getUpdateNoteMethod = io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNote")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.UpdateNoteRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.Note.getDefaultInstance())) .setSchemaDescriptor(new GrafeasMethodDescriptorSupplier("UpdateNote")) .build(); } } } return getUpdateNoteMethod; } private static volatile io.grpc.MethodDescriptor< io.grafeas.v1.ListNoteOccurrencesRequest, io.grafeas.v1.ListNoteOccurrencesResponse> getListNoteOccurrencesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListNoteOccurrences", requestType = io.grafeas.v1.ListNoteOccurrencesRequest.class, responseType = io.grafeas.v1.ListNoteOccurrencesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< io.grafeas.v1.ListNoteOccurrencesRequest, io.grafeas.v1.ListNoteOccurrencesResponse> getListNoteOccurrencesMethod() { io.grpc.MethodDescriptor< io.grafeas.v1.ListNoteOccurrencesRequest, io.grafeas.v1.ListNoteOccurrencesResponse> getListNoteOccurrencesMethod; if ((getListNoteOccurrencesMethod = GrafeasGrpc.getListNoteOccurrencesMethod) == null) { synchronized (GrafeasGrpc.class) { if ((getListNoteOccurrencesMethod = GrafeasGrpc.getListNoteOccurrencesMethod) == null) { GrafeasGrpc.getListNoteOccurrencesMethod = getListNoteOccurrencesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ListNoteOccurrences")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListNoteOccurrencesRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( io.grafeas.v1.ListNoteOccurrencesResponse.getDefaultInstance())) .setSchemaDescriptor( new GrafeasMethodDescriptorSupplier("ListNoteOccurrences")) .build(); } } } return getListNoteOccurrencesMethod; } /** Creates a new async stub that supports all call types for the service */ public static GrafeasStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GrafeasStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasStub(channel, callOptions); } }; return GrafeasStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static GrafeasBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GrafeasBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasBlockingStub(channel, callOptions); } }; return GrafeasBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static GrafeasFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GrafeasFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasFutureStub(channel, callOptions); } }; return GrafeasFutureStub.newStub(factory, channel); } /** * * *
   * [Grafeas](https://grafeas.io) API.
   * Retrieves analysis results of Cloud components such as Docker container
   * images.
   * Analysis results are stored as a series of occurrences. An `Occurrence`
   * contains information about a specific analysis instance on a resource. An
   * occurrence refers to a `Note`. A note contains details describing the
   * analysis and is generally stored in a separate project, called a `Provider`.
   * Multiple occurrences can refer to the same note.
   * For example, an SSL vulnerability could affect multiple images. In this case,
   * there would be one note for the vulnerability and an occurrence for each
   * image with the vulnerability referring to that note.
   * 
*/ public interface AsyncService { /** * * *
     * Gets the specified occurrence.
     * 
*/ default void getOccurrence( io.grafeas.v1.GetOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetOccurrenceMethod(), responseObserver); } /** * * *
     * Lists occurrences for the specified project.
     * 
*/ default void listOccurrences( io.grafeas.v1.ListOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListOccurrencesMethod(), responseObserver); } /** * * *
     * Deletes the specified occurrence. For example, use this method to delete an
     * occurrence when the occurrence is no longer applicable for the given
     * resource.
     * 
*/ default void deleteOccurrence( io.grafeas.v1.DeleteOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteOccurrenceMethod(), responseObserver); } /** * * *
     * Creates a new occurrence.
     * 
*/ default void createOccurrence( io.grafeas.v1.CreateOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateOccurrenceMethod(), responseObserver); } /** * * *
     * Creates new occurrences in batch.
     * 
*/ default void batchCreateOccurrences( io.grafeas.v1.BatchCreateOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getBatchCreateOccurrencesMethod(), responseObserver); } /** * * *
     * Updates the specified occurrence.
     * 
*/ default void updateOccurrence( io.grafeas.v1.UpdateOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateOccurrenceMethod(), responseObserver); } /** * * *
     * Gets the note attached to the specified occurrence. Consumer projects can
     * use this method to get a note that belongs to a provider project.
     * 
*/ default void getOccurrenceNote( io.grafeas.v1.GetOccurrenceNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetOccurrenceNoteMethod(), responseObserver); } /** * * *
     * Gets the specified note.
     * 
*/ default void getNote( io.grafeas.v1.GetNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNoteMethod(), responseObserver); } /** * * *
     * Lists notes for the specified project.
     * 
*/ default void listNotes( io.grafeas.v1.ListNotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotesMethod(), responseObserver); } /** * * *
     * Deletes the specified note.
     * 
*/ default void deleteNote( io.grafeas.v1.DeleteNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNoteMethod(), responseObserver); } /** * * *
     * Creates a new note.
     * 
*/ default void createNote( io.grafeas.v1.CreateNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNoteMethod(), responseObserver); } /** * * *
     * Creates new notes in batch.
     * 
*/ default void batchCreateNotes( io.grafeas.v1.BatchCreateNotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getBatchCreateNotesMethod(), responseObserver); } /** * * *
     * Updates the specified note.
     * 
*/ default void updateNote( io.grafeas.v1.UpdateNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateNoteMethod(), responseObserver); } /** * * *
     * Lists occurrences referencing the specified note. Provider projects can use
     * this method to get all occurrences across consumer projects referencing the
     * specified note.
     * 
*/ default void listNoteOccurrences( io.grafeas.v1.ListNoteOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListNoteOccurrencesMethod(), responseObserver); } } /** * Base class for the server implementation of the service Grafeas. * *
   * [Grafeas](https://grafeas.io) API.
   * Retrieves analysis results of Cloud components such as Docker container
   * images.
   * Analysis results are stored as a series of occurrences. An `Occurrence`
   * contains information about a specific analysis instance on a resource. An
   * occurrence refers to a `Note`. A note contains details describing the
   * analysis and is generally stored in a separate project, called a `Provider`.
   * Multiple occurrences can refer to the same note.
   * For example, an SSL vulnerability could affect multiple images. In this case,
   * there would be one note for the vulnerability and an occurrence for each
   * image with the vulnerability referring to that note.
   * 
*/ public abstract static class GrafeasImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return GrafeasGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Grafeas. * *
   * [Grafeas](https://grafeas.io) API.
   * Retrieves analysis results of Cloud components such as Docker container
   * images.
   * Analysis results are stored as a series of occurrences. An `Occurrence`
   * contains information about a specific analysis instance on a resource. An
   * occurrence refers to a `Note`. A note contains details describing the
   * analysis and is generally stored in a separate project, called a `Provider`.
   * Multiple occurrences can refer to the same note.
   * For example, an SSL vulnerability could affect multiple images. In this case,
   * there would be one note for the vulnerability and an occurrence for each
   * image with the vulnerability referring to that note.
   * 
*/ public static final class GrafeasStub extends io.grpc.stub.AbstractAsyncStub { private GrafeasStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GrafeasStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasStub(channel, callOptions); } /** * * *
     * Gets the specified occurrence.
     * 
*/ public void getOccurrence( io.grafeas.v1.GetOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOccurrenceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists occurrences for the specified project.
     * 
*/ public void listOccurrences( io.grafeas.v1.ListOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListOccurrencesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified occurrence. For example, use this method to delete an
     * occurrence when the occurrence is no longer applicable for the given
     * resource.
     * 
*/ public void deleteOccurrence( io.grafeas.v1.DeleteOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteOccurrenceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new occurrence.
     * 
*/ public void createOccurrence( io.grafeas.v1.CreateOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateOccurrenceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates new occurrences in batch.
     * 
*/ public void batchCreateOccurrences( io.grafeas.v1.BatchCreateOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateOccurrencesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified occurrence.
     * 
*/ public void updateOccurrence( io.grafeas.v1.UpdateOccurrenceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateOccurrenceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets the note attached to the specified occurrence. Consumer projects can
     * use this method to get a note that belongs to a provider project.
     * 
*/ public void getOccurrenceNote( io.grafeas.v1.GetOccurrenceNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOccurrenceNoteMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets the specified note.
     * 
*/ public void getNote( io.grafeas.v1.GetNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNoteMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists notes for the specified project.
     * 
*/ public void listNotes( io.grafeas.v1.ListNotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNotesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified note.
     * 
*/ public void deleteNote( io.grafeas.v1.DeleteNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteNoteMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new note.
     * 
*/ public void createNote( io.grafeas.v1.CreateNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateNoteMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates new notes in batch.
     * 
*/ public void batchCreateNotes( io.grafeas.v1.BatchCreateNotesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateNotesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified note.
     * 
*/ public void updateNote( io.grafeas.v1.UpdateNoteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateNoteMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists occurrences referencing the specified note. Provider projects can use
     * this method to get all occurrences across consumer projects referencing the
     * specified note.
     * 
*/ public void listNoteOccurrences( io.grafeas.v1.ListNoteOccurrencesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNoteOccurrencesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Grafeas. * *
   * [Grafeas](https://grafeas.io) API.
   * Retrieves analysis results of Cloud components such as Docker container
   * images.
   * Analysis results are stored as a series of occurrences. An `Occurrence`
   * contains information about a specific analysis instance on a resource. An
   * occurrence refers to a `Note`. A note contains details describing the
   * analysis and is generally stored in a separate project, called a `Provider`.
   * Multiple occurrences can refer to the same note.
   * For example, an SSL vulnerability could affect multiple images. In this case,
   * there would be one note for the vulnerability and an occurrence for each
   * image with the vulnerability referring to that note.
   * 
*/ public static final class GrafeasBlockingStub extends io.grpc.stub.AbstractBlockingStub { private GrafeasBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GrafeasBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasBlockingStub(channel, callOptions); } /** * * *
     * Gets the specified occurrence.
     * 
*/ public io.grafeas.v1.Occurrence getOccurrence(io.grafeas.v1.GetOccurrenceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOccurrenceMethod(), getCallOptions(), request); } /** * * *
     * Lists occurrences for the specified project.
     * 
*/ public io.grafeas.v1.ListOccurrencesResponse listOccurrences( io.grafeas.v1.ListOccurrencesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListOccurrencesMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified occurrence. For example, use this method to delete an
     * occurrence when the occurrence is no longer applicable for the given
     * resource.
     * 
*/ public com.google.protobuf.Empty deleteOccurrence( io.grafeas.v1.DeleteOccurrenceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteOccurrenceMethod(), getCallOptions(), request); } /** * * *
     * Creates a new occurrence.
     * 
*/ public io.grafeas.v1.Occurrence createOccurrence( io.grafeas.v1.CreateOccurrenceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateOccurrenceMethod(), getCallOptions(), request); } /** * * *
     * Creates new occurrences in batch.
     * 
*/ public io.grafeas.v1.BatchCreateOccurrencesResponse batchCreateOccurrences( io.grafeas.v1.BatchCreateOccurrencesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateOccurrencesMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified occurrence.
     * 
*/ public io.grafeas.v1.Occurrence updateOccurrence( io.grafeas.v1.UpdateOccurrenceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateOccurrenceMethod(), getCallOptions(), request); } /** * * *
     * Gets the note attached to the specified occurrence. Consumer projects can
     * use this method to get a note that belongs to a provider project.
     * 
*/ public io.grafeas.v1.Note getOccurrenceNote(io.grafeas.v1.GetOccurrenceNoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOccurrenceNoteMethod(), getCallOptions(), request); } /** * * *
     * Gets the specified note.
     * 
*/ public io.grafeas.v1.Note getNote(io.grafeas.v1.GetNoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNoteMethod(), getCallOptions(), request); } /** * * *
     * Lists notes for the specified project.
     * 
*/ public io.grafeas.v1.ListNotesResponse listNotes(io.grafeas.v1.ListNotesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNotesMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified note.
     * 
*/ public com.google.protobuf.Empty deleteNote(io.grafeas.v1.DeleteNoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNoteMethod(), getCallOptions(), request); } /** * * *
     * Creates a new note.
     * 
*/ public io.grafeas.v1.Note createNote(io.grafeas.v1.CreateNoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNoteMethod(), getCallOptions(), request); } /** * * *
     * Creates new notes in batch.
     * 
*/ public io.grafeas.v1.BatchCreateNotesResponse batchCreateNotes( io.grafeas.v1.BatchCreateNotesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateNotesMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified note.
     * 
*/ public io.grafeas.v1.Note updateNote(io.grafeas.v1.UpdateNoteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateNoteMethod(), getCallOptions(), request); } /** * * *
     * Lists occurrences referencing the specified note. Provider projects can use
     * this method to get all occurrences across consumer projects referencing the
     * specified note.
     * 
*/ public io.grafeas.v1.ListNoteOccurrencesResponse listNoteOccurrences( io.grafeas.v1.ListNoteOccurrencesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNoteOccurrencesMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Grafeas. * *
   * [Grafeas](https://grafeas.io) API.
   * Retrieves analysis results of Cloud components such as Docker container
   * images.
   * Analysis results are stored as a series of occurrences. An `Occurrence`
   * contains information about a specific analysis instance on a resource. An
   * occurrence refers to a `Note`. A note contains details describing the
   * analysis and is generally stored in a separate project, called a `Provider`.
   * Multiple occurrences can refer to the same note.
   * For example, an SSL vulnerability could affect multiple images. In this case,
   * there would be one note for the vulnerability and an occurrence for each
   * image with the vulnerability referring to that note.
   * 
*/ public static final class GrafeasFutureStub extends io.grpc.stub.AbstractFutureStub { private GrafeasFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GrafeasFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GrafeasFutureStub(channel, callOptions); } /** * * *
     * Gets the specified occurrence.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOccurrence(io.grafeas.v1.GetOccurrenceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOccurrenceMethod(), getCallOptions()), request); } /** * * *
     * Lists occurrences for the specified project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listOccurrences(io.grafeas.v1.ListOccurrencesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListOccurrencesMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified occurrence. For example, use this method to delete an
     * occurrence when the occurrence is no longer applicable for the given
     * resource.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteOccurrence(io.grafeas.v1.DeleteOccurrenceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteOccurrenceMethod(), getCallOptions()), request); } /** * * *
     * Creates a new occurrence.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createOccurrence(io.grafeas.v1.CreateOccurrenceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateOccurrenceMethod(), getCallOptions()), request); } /** * * *
     * Creates new occurrences in batch.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< io.grafeas.v1.BatchCreateOccurrencesResponse> batchCreateOccurrences(io.grafeas.v1.BatchCreateOccurrencesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateOccurrencesMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified occurrence.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateOccurrence(io.grafeas.v1.UpdateOccurrenceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateOccurrenceMethod(), getCallOptions()), request); } /** * * *
     * Gets the note attached to the specified occurrence. Consumer projects can
     * use this method to get a note that belongs to a provider project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOccurrenceNote( io.grafeas.v1.GetOccurrenceNoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOccurrenceNoteMethod(), getCallOptions()), request); } /** * * *
     * Gets the specified note.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getNote( io.grafeas.v1.GetNoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNoteMethod(), getCallOptions()), request); } /** * * *
     * Lists notes for the specified project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listNotes(io.grafeas.v1.ListNotesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNotesMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified note.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteNote( io.grafeas.v1.DeleteNoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNoteMethod(), getCallOptions()), request); } /** * * *
     * Creates a new note.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createNote( io.grafeas.v1.CreateNoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNoteMethod(), getCallOptions()), request); } /** * * *
     * Creates new notes in batch.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< io.grafeas.v1.BatchCreateNotesResponse> batchCreateNotes(io.grafeas.v1.BatchCreateNotesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateNotesMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified note.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateNote( io.grafeas.v1.UpdateNoteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateNoteMethod(), getCallOptions()), request); } /** * * *
     * Lists occurrences referencing the specified note. Provider projects can use
     * this method to get all occurrences across consumer projects referencing the
     * specified note.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< io.grafeas.v1.ListNoteOccurrencesResponse> listNoteOccurrences(io.grafeas.v1.ListNoteOccurrencesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNoteOccurrencesMethod(), getCallOptions()), request); } } private static final int METHODID_GET_OCCURRENCE = 0; private static final int METHODID_LIST_OCCURRENCES = 1; private static final int METHODID_DELETE_OCCURRENCE = 2; private static final int METHODID_CREATE_OCCURRENCE = 3; private static final int METHODID_BATCH_CREATE_OCCURRENCES = 4; private static final int METHODID_UPDATE_OCCURRENCE = 5; private static final int METHODID_GET_OCCURRENCE_NOTE = 6; private static final int METHODID_GET_NOTE = 7; private static final int METHODID_LIST_NOTES = 8; private static final int METHODID_DELETE_NOTE = 9; private static final int METHODID_CREATE_NOTE = 10; private static final int METHODID_BATCH_CREATE_NOTES = 11; private static final int METHODID_UPDATE_NOTE = 12; private static final int METHODID_LIST_NOTE_OCCURRENCES = 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_OCCURRENCE: serviceImpl.getOccurrence( (io.grafeas.v1.GetOccurrenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OCCURRENCES: serviceImpl.listOccurrences( (io.grafeas.v1.ListOccurrencesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_OCCURRENCE: serviceImpl.deleteOccurrence( (io.grafeas.v1.DeleteOccurrenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_OCCURRENCE: serviceImpl.createOccurrence( (io.grafeas.v1.CreateOccurrenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_CREATE_OCCURRENCES: serviceImpl.batchCreateOccurrences( (io.grafeas.v1.BatchCreateOccurrencesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_OCCURRENCE: serviceImpl.updateOccurrence( (io.grafeas.v1.UpdateOccurrenceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_OCCURRENCE_NOTE: serviceImpl.getOccurrenceNote( (io.grafeas.v1.GetOccurrenceNoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_NOTE: serviceImpl.getNote( (io.grafeas.v1.GetNoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NOTES: serviceImpl.listNotes( (io.grafeas.v1.ListNotesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_NOTE: serviceImpl.deleteNote( (io.grafeas.v1.DeleteNoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_NOTE: serviceImpl.createNote( (io.grafeas.v1.CreateNoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_CREATE_NOTES: serviceImpl.batchCreateNotes( (io.grafeas.v1.BatchCreateNotesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_NOTE: serviceImpl.updateNote( (io.grafeas.v1.UpdateNoteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NOTE_OCCURRENCES: serviceImpl.listNoteOccurrences( (io.grafeas.v1.ListNoteOccurrencesRequest) 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( getGetOccurrenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_GET_OCCURRENCE))) .addMethod( getListOccurrencesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.grafeas.v1.ListOccurrencesRequest, io.grafeas.v1.ListOccurrencesResponse>( service, METHODID_LIST_OCCURRENCES))) .addMethod( getDeleteOccurrenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.grafeas.v1.DeleteOccurrenceRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_OCCURRENCE))) .addMethod( getCreateOccurrenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_CREATE_OCCURRENCE))) .addMethod( getBatchCreateOccurrencesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.grafeas.v1.BatchCreateOccurrencesRequest, io.grafeas.v1.BatchCreateOccurrencesResponse>( service, METHODID_BATCH_CREATE_OCCURRENCES))) .addMethod( getUpdateOccurrenceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_UPDATE_OCCURRENCE))) .addMethod( getGetOccurrenceNoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_GET_OCCURRENCE_NOTE))) .addMethod( getGetNoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_GET_NOTE))) .addMethod( getListNotesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_LIST_NOTES))) .addMethod( getDeleteNoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_DELETE_NOTE))) .addMethod( getCreateNoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_CREATE_NOTE))) .addMethod( getBatchCreateNotesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.grafeas.v1.BatchCreateNotesRequest, io.grafeas.v1.BatchCreateNotesResponse>( service, METHODID_BATCH_CREATE_NOTES))) .addMethod( getUpdateNoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( service, METHODID_UPDATE_NOTE))) .addMethod( getListNoteOccurrencesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.grafeas.v1.ListNoteOccurrencesRequest, io.grafeas.v1.ListNoteOccurrencesResponse>( service, METHODID_LIST_NOTE_OCCURRENCES))) .build(); } private abstract static class GrafeasBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { GrafeasBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.grafeas.v1.GrafeasOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Grafeas"); } } private static final class GrafeasFileDescriptorSupplier extends GrafeasBaseDescriptorSupplier { GrafeasFileDescriptorSupplier() {} } private static final class GrafeasMethodDescriptorSupplier extends GrafeasBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; GrafeasMethodDescriptorSupplier(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 (GrafeasGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new GrafeasFileDescriptorSupplier()) .addMethod(getGetOccurrenceMethod()) .addMethod(getListOccurrencesMethod()) .addMethod(getDeleteOccurrenceMethod()) .addMethod(getCreateOccurrenceMethod()) .addMethod(getBatchCreateOccurrencesMethod()) .addMethod(getUpdateOccurrenceMethod()) .addMethod(getGetOccurrenceNoteMethod()) .addMethod(getGetNoteMethod()) .addMethod(getListNotesMethod()) .addMethod(getDeleteNoteMethod()) .addMethod(getCreateNoteMethod()) .addMethod(getBatchCreateNotesMethod()) .addMethod(getUpdateNoteMethod()) .addMethod(getListNoteOccurrencesMethod()) .build(); } } } return result; } }