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

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

/*
 * Generated by protokt version 0.6.0. Do not modify.
 * Source: google/longrunning/operations.proto
 */

package com.google.longrunning

import com.toasttab.protokt.Empty
import com.toasttab.protokt.grpc.KtMarshaller
import io.grpc.MethodDescriptor
import io.grpc.MethodDescriptor.MethodType
import io.grpc.MethodDescriptor.generateFullMethodName
import io.grpc.ServiceDescriptor

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

    val serviceDescriptor: ServiceDescriptor by lazy {
        ServiceDescriptor.newBuilder(SERVICE_NAME)
            .addMethod(listOperationsMethod)
            .addMethod(getOperationMethod)
            .addMethod(deleteOperationMethod)
            .addMethod(cancelOperationMethod)
            .addMethod(waitOperationMethod)
            .build()
    }

    val listOperationsMethod: MethodDescriptor by lazy {
        MethodDescriptor.newBuilder()
            .setType(MethodType.UNARY)
            .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations"))
            .setRequestMarshaller(KtMarshaller(ListOperationsRequest))
            .setResponseMarshaller(KtMarshaller(ListOperationsResponse))
            .build()
    }

    val getOperationMethod: MethodDescriptor by lazy {
        MethodDescriptor.newBuilder()
            .setType(MethodType.UNARY)
            .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation"))
            .setRequestMarshaller(KtMarshaller(GetOperationRequest))
            .setResponseMarshaller(KtMarshaller(Operation))
            .build()
    }

    val deleteOperationMethod: MethodDescriptor by lazy {
        MethodDescriptor.newBuilder()
            .setType(MethodType.UNARY)
            .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOperation"))
            .setRequestMarshaller(KtMarshaller(DeleteOperationRequest))
            .setResponseMarshaller(KtMarshaller(Empty))
            .build()
    }

    val cancelOperationMethod: MethodDescriptor by lazy {
        MethodDescriptor.newBuilder()
            .setType(MethodType.UNARY)
            .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation"))
            .setRequestMarshaller(KtMarshaller(CancelOperationRequest))
            .setResponseMarshaller(KtMarshaller(Empty))
            .build()
    }

    val waitOperationMethod: MethodDescriptor by lazy {
        MethodDescriptor.newBuilder()
            .setType(MethodType.UNARY)
            .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WaitOperation"))
            .setRequestMarshaller(KtMarshaller(WaitOperationRequest))
            .setResponseMarshaller(KtMarshaller(Operation))
            .build()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy