# Generated by the protocol buffer compiler.  DO NOT EDIT!
# Source: google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto for package 'google.cloud.osconfig.agentendpoint.v1'
# Original file comments:
# Copyright 2020 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
#
#     http://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.
#

require 'grpc'
require 'google/cloud/osconfig/agentendpoint/v1/agentendpoint_pb'

module Google
  module Cloud
    module Osconfig
      module Agentendpoint
        module V1
          module AgentEndpointService
            # OS Config agent endpoint API.
            class Service

              include ::GRPC::GenericService

              self.marshal_class_method = :encode
              self.unmarshal_class_method = :decode
              self.service_name = 'google.cloud.osconfig.agentendpoint.v1.AgentEndpointService'

              # Stream established by client to receive Task notifications.
              rpc :ReceiveTaskNotification, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReceiveTaskNotificationRequest, stream(::Google::Cloud::Osconfig::Agentendpoint::V1::ReceiveTaskNotificationResponse)
              # Signals the start of a task execution and returns the task info.
              rpc :StartNextTask, ::Google::Cloud::Osconfig::Agentendpoint::V1::StartNextTaskRequest, ::Google::Cloud::Osconfig::Agentendpoint::V1::StartNextTaskResponse
              # Signals an intermediary progress checkpoint in task execution.
              rpc :ReportTaskProgress, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportTaskProgressRequest, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportTaskProgressResponse
              # Signals that the task execution is complete and optionally returns the next
              # task.
              rpc :ReportTaskComplete, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportTaskCompleteRequest, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportTaskCompleteResponse
              # Registers the agent running on the VM.
              rpc :RegisterAgent, ::Google::Cloud::Osconfig::Agentendpoint::V1::RegisterAgentRequest, ::Google::Cloud::Osconfig::Agentendpoint::V1::RegisterAgentResponse
              # Reports the VMs current inventory.
              rpc :ReportInventory, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportInventoryRequest, ::Google::Cloud::Osconfig::Agentendpoint::V1::ReportInventoryResponse
            end

            Stub = Service.rpc_stub_class
          end
        end
      end
    end
  end
end
