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

protokt.com.google.longrunning.operations.kt Maven / Gradle / Ivy

// Generated by protokt version 0.12.1. Do not modify.
// Source: google/longrunning/operations.proto
package com.google.longrunning

import com.toasttab.protokt.Empty
import io.grpc.MethodDescriptor
import io.grpc.ServiceDescriptor
import kotlin.String
import kotlin.jvm.JvmStatic

object OperationsGrpc {
    public const val SERVICE_NAME: String = "google.longrunning.Operations"

    private val _serviceDescriptor: ServiceDescriptor by lazy {
                ServiceDescriptor.newBuilder(SERVICE_NAME)
                  .addMethod(_listOperationsMethod)
                  .addMethod(_getOperationMethod)
                  .addMethod(_deleteOperationMethod)
                  .addMethod(_cancelOperationMethod)
                  .addMethod(_waitOperationMethod)
                    .setSchemaDescriptor(com.toasttab.protokt.grpc.SchemaDescriptor(className = "com.google.longrunning.Operations", fileDescriptorClassName = "com.google.longrunning.OperationsProto"))
                    .build()
            }

    private val _listOperationsMethod:
            MethodDescriptor by lazy {
                MethodDescriptor.newBuilder()
                    .setType(MethodDescriptor.MethodType.UNARY)
                    .setFullMethodName(MethodDescriptor.generateFullMethodName(SERVICE_NAME, "ListOperations"))
                    .setRequestMarshaller(com.toasttab.protokt.grpc.KtMarshaller(ListOperationsRequest))
                    .setResponseMarshaller(com.toasttab.protokt.grpc.KtMarshaller(ListOperationsResponse))
                    .build()
            }

    private val _getOperationMethod: MethodDescriptor by lazy {
                MethodDescriptor.newBuilder()
                    .setType(MethodDescriptor.MethodType.UNARY)
                    .setFullMethodName(MethodDescriptor.generateFullMethodName(SERVICE_NAME, "GetOperation"))
                    .setRequestMarshaller(com.toasttab.protokt.grpc.KtMarshaller(GetOperationRequest))
                    .setResponseMarshaller(com.toasttab.protokt.grpc.KtMarshaller(Operation))
                    .build()
            }

    private val _deleteOperationMethod: MethodDescriptor by lazy {
                MethodDescriptor.newBuilder()
                    .setType(MethodDescriptor.MethodType.UNARY)
                    .setFullMethodName(MethodDescriptor.generateFullMethodName(SERVICE_NAME, "DeleteOperation"))
                    .setRequestMarshaller(com.toasttab.protokt.grpc.KtMarshaller(DeleteOperationRequest))
                    .setResponseMarshaller(com.toasttab.protokt.grpc.KtMarshaller(com.toasttab.protokt.Empty))
                    .build()
            }

    private val _cancelOperationMethod: MethodDescriptor by lazy {
                MethodDescriptor.newBuilder()
                    .setType(MethodDescriptor.MethodType.UNARY)
                    .setFullMethodName(MethodDescriptor.generateFullMethodName(SERVICE_NAME, "CancelOperation"))
                    .setRequestMarshaller(com.toasttab.protokt.grpc.KtMarshaller(CancelOperationRequest))
                    .setResponseMarshaller(com.toasttab.protokt.grpc.KtMarshaller(com.toasttab.protokt.Empty))
                    .build()
            }

    private val _waitOperationMethod: MethodDescriptor by lazy {
                MethodDescriptor.newBuilder()
                    .setType(MethodDescriptor.MethodType.UNARY)
                    .setFullMethodName(MethodDescriptor.generateFullMethodName(SERVICE_NAME, "WaitOperation"))
                    .setRequestMarshaller(com.toasttab.protokt.grpc.KtMarshaller(WaitOperationRequest))
                    .setResponseMarshaller(com.toasttab.protokt.grpc.KtMarshaller(Operation))
                    .build()
            }

    @JvmStatic
    fun getServiceDescriptor() = _serviceDescriptor

    @JvmStatic
    fun getListOperationsMethod() = _listOperationsMethod

    @JvmStatic
    fun getGetOperationMethod() = _getOperationMethod

    @JvmStatic
    fun getDeleteOperationMethod() = _deleteOperationMethod

    @JvmStatic
    fun getCancelOperationMethod() = _cancelOperationMethod

    @JvmStatic
    fun getWaitOperationMethod() = _waitOperationMethod
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy