// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.31.1
// source: github.com/buildbarn/bb-remote-execution/pkg/proto/remoteworker/remoteworker.proto

package remoteworker

import (
	v2 "github.com/bazelbuild/remote-apis/build/bazel/remote/execution/v2"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type SynchronizeRequest struct {
	state              protoimpl.MessageState `protogen:"open.v1"`
	WorkerId           map[string]string      `protobuf:"bytes,1,rep,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	InstanceNamePrefix string                 `protobuf:"bytes,2,opt,name=instance_name_prefix,json=instanceNamePrefix,proto3" json:"instance_name_prefix,omitempty"`
	Platform           *v2.Platform           `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	SizeClass          uint32                 `protobuf:"varint,5,opt,name=size_class,json=sizeClass,proto3" json:"size_class,omitempty"`
	CurrentState       *CurrentState          `protobuf:"bytes,4,opt,name=current_state,json=currentState,proto3" json:"current_state,omitempty"`
	PreferBeingIdle    bool                   `protobuf:"varint,6,opt,name=prefer_being_idle,json=preferBeingIdle,proto3" json:"prefer_being_idle,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *SynchronizeRequest) Reset() {
	*x = SynchronizeRequest{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SynchronizeRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SynchronizeRequest) ProtoMessage() {}

func (x *SynchronizeRequest) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SynchronizeRequest.ProtoReflect.Descriptor instead.
func (*SynchronizeRequest) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{0}
}

func (x *SynchronizeRequest) GetWorkerId() map[string]string {
	if x != nil {
		return x.WorkerId
	}
	return nil
}

func (x *SynchronizeRequest) GetInstanceNamePrefix() string {
	if x != nil {
		return x.InstanceNamePrefix
	}
	return ""
}

func (x *SynchronizeRequest) GetPlatform() *v2.Platform {
	if x != nil {
		return x.Platform
	}
	return nil
}

func (x *SynchronizeRequest) GetSizeClass() uint32 {
	if x != nil {
		return x.SizeClass
	}
	return 0
}

func (x *SynchronizeRequest) GetCurrentState() *CurrentState {
	if x != nil {
		return x.CurrentState
	}
	return nil
}

func (x *SynchronizeRequest) GetPreferBeingIdle() bool {
	if x != nil {
		return x.PreferBeingIdle
	}
	return false
}

type CurrentState struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to WorkerState:
	//
	//	*CurrentState_Idle
	//	*CurrentState_Executing_
	WorkerState   isCurrentState_WorkerState `protobuf_oneof:"worker_state"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CurrentState) Reset() {
	*x = CurrentState{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CurrentState) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CurrentState) ProtoMessage() {}

func (x *CurrentState) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CurrentState.ProtoReflect.Descriptor instead.
func (*CurrentState) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{1}
}

func (x *CurrentState) GetWorkerState() isCurrentState_WorkerState {
	if x != nil {
		return x.WorkerState
	}
	return nil
}

func (x *CurrentState) GetIdle() *emptypb.Empty {
	if x != nil {
		if x, ok := x.WorkerState.(*CurrentState_Idle); ok {
			return x.Idle
		}
	}
	return nil
}

func (x *CurrentState) GetExecuting() *CurrentState_Executing {
	if x != nil {
		if x, ok := x.WorkerState.(*CurrentState_Executing_); ok {
			return x.Executing
		}
	}
	return nil
}

type isCurrentState_WorkerState interface {
	isCurrentState_WorkerState()
}

type CurrentState_Idle struct {
	Idle *emptypb.Empty `protobuf:"bytes,1,opt,name=idle,proto3,oneof"`
}

type CurrentState_Executing_ struct {
	Executing *CurrentState_Executing `protobuf:"bytes,2,opt,name=executing,proto3,oneof"`
}

func (*CurrentState_Idle) isCurrentState_WorkerState() {}

func (*CurrentState_Executing_) isCurrentState_WorkerState() {}

type SynchronizeResponse struct {
	state                 protoimpl.MessageState `protogen:"open.v1"`
	NextSynchronizationAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=next_synchronization_at,json=nextSynchronizationAt,proto3" json:"next_synchronization_at,omitempty"`
	DesiredState          *DesiredState          `protobuf:"bytes,2,opt,name=desired_state,json=desiredState,proto3" json:"desired_state,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

func (x *SynchronizeResponse) Reset() {
	*x = SynchronizeResponse{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *SynchronizeResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SynchronizeResponse) ProtoMessage() {}

func (x *SynchronizeResponse) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SynchronizeResponse.ProtoReflect.Descriptor instead.
func (*SynchronizeResponse) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{2}
}

func (x *SynchronizeResponse) GetNextSynchronizationAt() *timestamppb.Timestamp {
	if x != nil {
		return x.NextSynchronizationAt
	}
	return nil
}

func (x *SynchronizeResponse) GetDesiredState() *DesiredState {
	if x != nil {
		return x.DesiredState
	}
	return nil
}

type DesiredState struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to WorkerState:
	//
	//	*DesiredState_Idle
	//	*DesiredState_Executing_
	WorkerState   isDesiredState_WorkerState `protobuf_oneof:"worker_state"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DesiredState) Reset() {
	*x = DesiredState{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DesiredState) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DesiredState) ProtoMessage() {}

func (x *DesiredState) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DesiredState.ProtoReflect.Descriptor instead.
func (*DesiredState) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{3}
}

func (x *DesiredState) GetWorkerState() isDesiredState_WorkerState {
	if x != nil {
		return x.WorkerState
	}
	return nil
}

func (x *DesiredState) GetIdle() *emptypb.Empty {
	if x != nil {
		if x, ok := x.WorkerState.(*DesiredState_Idle); ok {
			return x.Idle
		}
	}
	return nil
}

func (x *DesiredState) GetExecuting() *DesiredState_Executing {
	if x != nil {
		if x, ok := x.WorkerState.(*DesiredState_Executing_); ok {
			return x.Executing
		}
	}
	return nil
}

type isDesiredState_WorkerState interface {
	isDesiredState_WorkerState()
}

type DesiredState_Idle struct {
	Idle *emptypb.Empty `protobuf:"bytes,1,opt,name=idle,proto3,oneof"`
}

type DesiredState_Executing_ struct {
	Executing *DesiredState_Executing `protobuf:"bytes,2,opt,name=executing,proto3,oneof"`
}

func (*DesiredState_Idle) isDesiredState_WorkerState() {}

func (*DesiredState_Executing_) isDesiredState_WorkerState() {}

type CurrentState_Executing struct {
	state        protoimpl.MessageState `protogen:"open.v1"`
	ActionDigest *v2.Digest             `protobuf:"bytes,1,opt,name=action_digest,json=actionDigest,proto3" json:"action_digest,omitempty"`
	// Types that are valid to be assigned to ExecutionState:
	//
	//	*CurrentState_Executing_Started
	//	*CurrentState_Executing_FetchingInputs
	//	*CurrentState_Executing_Running
	//	*CurrentState_Executing_UploadingOutputs
	//	*CurrentState_Executing_Completed
	ExecutionState isCurrentState_Executing_ExecutionState `protobuf_oneof:"execution_state"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *CurrentState_Executing) Reset() {
	*x = CurrentState_Executing{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CurrentState_Executing) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CurrentState_Executing) ProtoMessage() {}

func (x *CurrentState_Executing) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CurrentState_Executing.ProtoReflect.Descriptor instead.
func (*CurrentState_Executing) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{1, 0}
}

func (x *CurrentState_Executing) GetActionDigest() *v2.Digest {
	if x != nil {
		return x.ActionDigest
	}
	return nil
}

func (x *CurrentState_Executing) GetExecutionState() isCurrentState_Executing_ExecutionState {
	if x != nil {
		return x.ExecutionState
	}
	return nil
}

func (x *CurrentState_Executing) GetStarted() *emptypb.Empty {
	if x != nil {
		if x, ok := x.ExecutionState.(*CurrentState_Executing_Started); ok {
			return x.Started
		}
	}
	return nil
}

func (x *CurrentState_Executing) GetFetchingInputs() *emptypb.Empty {
	if x != nil {
		if x, ok := x.ExecutionState.(*CurrentState_Executing_FetchingInputs); ok {
			return x.FetchingInputs
		}
	}
	return nil
}

func (x *CurrentState_Executing) GetRunning() *emptypb.Empty {
	if x != nil {
		if x, ok := x.ExecutionState.(*CurrentState_Executing_Running); ok {
			return x.Running
		}
	}
	return nil
}

func (x *CurrentState_Executing) GetUploadingOutputs() *emptypb.Empty {
	if x != nil {
		if x, ok := x.ExecutionState.(*CurrentState_Executing_UploadingOutputs); ok {
			return x.UploadingOutputs
		}
	}
	return nil
}

func (x *CurrentState_Executing) GetCompleted() *v2.ExecuteResponse {
	if x != nil {
		if x, ok := x.ExecutionState.(*CurrentState_Executing_Completed); ok {
			return x.Completed
		}
	}
	return nil
}

type isCurrentState_Executing_ExecutionState interface {
	isCurrentState_Executing_ExecutionState()
}

type CurrentState_Executing_Started struct {
	Started *emptypb.Empty `protobuf:"bytes,2,opt,name=started,proto3,oneof"`
}

type CurrentState_Executing_FetchingInputs struct {
	FetchingInputs *emptypb.Empty `protobuf:"bytes,3,opt,name=fetching_inputs,json=fetchingInputs,proto3,oneof"`
}

type CurrentState_Executing_Running struct {
	Running *emptypb.Empty `protobuf:"bytes,4,opt,name=running,proto3,oneof"`
}

type CurrentState_Executing_UploadingOutputs struct {
	UploadingOutputs *emptypb.Empty `protobuf:"bytes,5,opt,name=uploading_outputs,json=uploadingOutputs,proto3,oneof"`
}

type CurrentState_Executing_Completed struct {
	Completed *v2.ExecuteResponse `protobuf:"bytes,6,opt,name=completed,proto3,oneof"`
}

func (*CurrentState_Executing_Started) isCurrentState_Executing_ExecutionState() {}

func (*CurrentState_Executing_FetchingInputs) isCurrentState_Executing_ExecutionState() {}

func (*CurrentState_Executing_Running) isCurrentState_Executing_ExecutionState() {}

func (*CurrentState_Executing_UploadingOutputs) isCurrentState_Executing_ExecutionState() {}

func (*CurrentState_Executing_Completed) isCurrentState_Executing_ExecutionState() {}

type DesiredState_Executing struct {
	state              protoimpl.MessageState  `protogen:"open.v1"`
	ActionDigest       *v2.Digest              `protobuf:"bytes,1,opt,name=action_digest,json=actionDigest,proto3" json:"action_digest,omitempty"`
	Action             *v2.Action              `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	QueuedTimestamp    *timestamppb.Timestamp  `protobuf:"bytes,4,opt,name=queued_timestamp,json=queuedTimestamp,proto3" json:"queued_timestamp,omitempty"`
	AuxiliaryMetadata  []*anypb.Any            `protobuf:"bytes,6,rep,name=auxiliary_metadata,json=auxiliaryMetadata,proto3" json:"auxiliary_metadata,omitempty"`
	InstanceNameSuffix string                  `protobuf:"bytes,7,opt,name=instance_name_suffix,json=instanceNameSuffix,proto3" json:"instance_name_suffix,omitempty"`
	W3CTraceContext    map[string]string       `protobuf:"bytes,8,rep,name=w3c_trace_context,json=w3cTraceContext,proto3" json:"w3c_trace_context,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	DigestFunction     v2.DigestFunction_Value `protobuf:"varint,9,opt,name=digest_function,json=digestFunction,proto3,enum=build.bazel.remote.execution.v2.DigestFunction_Value" json:"digest_function,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *DesiredState_Executing) Reset() {
	*x = DesiredState_Executing{}
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DesiredState_Executing) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DesiredState_Executing) ProtoMessage() {}

func (x *DesiredState_Executing) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use DesiredState_Executing.ProtoReflect.Descriptor instead.
func (*DesiredState_Executing) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP(), []int{3, 0}
}

func (x *DesiredState_Executing) GetActionDigest() *v2.Digest {
	if x != nil {
		return x.ActionDigest
	}
	return nil
}

func (x *DesiredState_Executing) GetAction() *v2.Action {
	if x != nil {
		return x.Action
	}
	return nil
}

func (x *DesiredState_Executing) GetQueuedTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.QueuedTimestamp
	}
	return nil
}

func (x *DesiredState_Executing) GetAuxiliaryMetadata() []*anypb.Any {
	if x != nil {
		return x.AuxiliaryMetadata
	}
	return nil
}

func (x *DesiredState_Executing) GetInstanceNameSuffix() string {
	if x != nil {
		return x.InstanceNameSuffix
	}
	return ""
}

func (x *DesiredState_Executing) GetW3CTraceContext() map[string]string {
	if x != nil {
		return x.W3CTraceContext
	}
	return nil
}

func (x *DesiredState_Executing) GetDigestFunction() v2.DigestFunction_Value {
	if x != nil {
		return x.DigestFunction
	}
	return v2.DigestFunction_Value(0)
}

var File_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto protoreflect.FileDescriptor

const file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDesc = "" +
	"\n" +
	"Rgithub.com/buildbarn/bb-remote-execution/pkg/proto/remoteworker/remoteworker.proto\x12\x16buildbarn.remoteworker\x1a6build/bazel/remote/execution/v2/remote_execution.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\x03\n" +
	"\x12SynchronizeRequest\x12U\n" +
	"\tworker_id\x18\x01 \x03(\v28.buildbarn.remoteworker.SynchronizeRequest.WorkerIdEntryR\bworkerId\x120\n" +
	"\x14instance_name_prefix\x18\x02 \x01(\tR\x12instanceNamePrefix\x12E\n" +
	"\bplatform\x18\x03 \x01(\v2).build.bazel.remote.execution.v2.PlatformR\bplatform\x12\x1d\n" +
	"\n" +
	"size_class\x18\x05 \x01(\rR\tsizeClass\x12I\n" +
	"\rcurrent_state\x18\x04 \x01(\v2$.buildbarn.remoteworker.CurrentStateR\fcurrentState\x12*\n" +
	"\x11prefer_being_idle\x18\x06 \x01(\bR\x0fpreferBeingIdle\x1a;\n" +
	"\rWorkerIdEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xd5\x04\n" +
	"\fCurrentState\x12,\n" +
	"\x04idle\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04idle\x12N\n" +
	"\texecuting\x18\x02 \x01(\v2..buildbarn.remoteworker.CurrentState.ExecutingH\x00R\texecuting\x1a\xb6\x03\n" +
	"\tExecuting\x12L\n" +
	"\raction_digest\x18\x01 \x01(\v2'.build.bazel.remote.execution.v2.DigestR\factionDigest\x122\n" +
	"\astarted\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\astarted\x12A\n" +
	"\x0ffetching_inputs\x18\x03 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x0efetchingInputs\x122\n" +
	"\arunning\x18\x04 \x01(\v2\x16.google.protobuf.EmptyH\x00R\arunning\x12E\n" +
	"\x11uploading_outputs\x18\x05 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x10uploadingOutputs\x12P\n" +
	"\tcompleted\x18\x06 \x01(\v20.build.bazel.remote.execution.v2.ExecuteResponseH\x00R\tcompletedB\x11\n" +
	"\x0fexecution_stateJ\x04\b\a\x10\bB\x0e\n" +
	"\fworker_state\"\xb4\x01\n" +
	"\x13SynchronizeResponse\x12R\n" +
	"\x17next_synchronization_at\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x15nextSynchronizationAt\x12I\n" +
	"\rdesired_state\x18\x02 \x01(\v2$.buildbarn.remoteworker.DesiredStateR\fdesiredState\"\x98\x06\n" +
	"\fDesiredState\x12,\n" +
	"\x04idle\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x04idle\x12N\n" +
	"\texecuting\x18\x02 \x01(\v2..buildbarn.remoteworker.DesiredState.ExecutingH\x00R\texecuting\x1a\xf9\x04\n" +
	"\tExecuting\x12L\n" +
	"\raction_digest\x18\x01 \x01(\v2'.build.bazel.remote.execution.v2.DigestR\factionDigest\x12?\n" +
	"\x06action\x18\x02 \x01(\v2'.build.bazel.remote.execution.v2.ActionR\x06action\x12E\n" +
	"\x10queued_timestamp\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x0fqueuedTimestamp\x12C\n" +
	"\x12auxiliary_metadata\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\x11auxiliaryMetadata\x120\n" +
	"\x14instance_name_suffix\x18\a \x01(\tR\x12instanceNameSuffix\x12o\n" +
	"\x11w3c_trace_context\x18\b \x03(\v2C.buildbarn.remoteworker.DesiredState.Executing.W3cTraceContextEntryR\x0fw3cTraceContext\x12^\n" +
	"\x0fdigest_function\x18\t \x01(\x0e25.build.bazel.remote.execution.v2.DigestFunction.ValueR\x0edigestFunction\x1aB\n" +
	"\x14W3cTraceContextEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01J\x04\b\x03\x10\x04J\x04\b\x05\x10\x06B\x0e\n" +
	"\fworker_state2x\n" +
	"\x0eOperationQueue\x12f\n" +
	"\vSynchronize\x12*.buildbarn.remoteworker.SynchronizeRequest\x1a+.buildbarn.remoteworker.SynchronizeResponseBAZ?github.com/buildbarn/bb-remote-execution/pkg/proto/remoteworkerb\x06proto3"

var (
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescOnce sync.Once
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescData []byte
)

func file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescGZIP() []byte {
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescOnce.Do(func() {
		file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDesc), len(file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDesc)))
	})
	return file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDescData
}

var file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_goTypes = []any{
	(*SynchronizeRequest)(nil),     // 0: buildbarn.remoteworker.SynchronizeRequest
	(*CurrentState)(nil),           // 1: buildbarn.remoteworker.CurrentState
	(*SynchronizeResponse)(nil),    // 2: buildbarn.remoteworker.SynchronizeResponse
	(*DesiredState)(nil),           // 3: buildbarn.remoteworker.DesiredState
	nil,                            // 4: buildbarn.remoteworker.SynchronizeRequest.WorkerIdEntry
	(*CurrentState_Executing)(nil), // 5: buildbarn.remoteworker.CurrentState.Executing
	(*DesiredState_Executing)(nil), // 6: buildbarn.remoteworker.DesiredState.Executing
	nil,                            // 7: buildbarn.remoteworker.DesiredState.Executing.W3cTraceContextEntry
	(*v2.Platform)(nil),            // 8: build.bazel.remote.execution.v2.Platform
	(*emptypb.Empty)(nil),          // 9: google.protobuf.Empty
	(*timestamppb.Timestamp)(nil),  // 10: google.protobuf.Timestamp
	(*v2.Digest)(nil),              // 11: build.bazel.remote.execution.v2.Digest
	(*v2.ExecuteResponse)(nil),     // 12: build.bazel.remote.execution.v2.ExecuteResponse
	(*v2.Action)(nil),              // 13: build.bazel.remote.execution.v2.Action
	(*anypb.Any)(nil),              // 14: google.protobuf.Any
	(v2.DigestFunction_Value)(0),   // 15: build.bazel.remote.execution.v2.DigestFunction.Value
}
var file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_depIdxs = []int32{
	4,  // 0: buildbarn.remoteworker.SynchronizeRequest.worker_id:type_name -> buildbarn.remoteworker.SynchronizeRequest.WorkerIdEntry
	8,  // 1: buildbarn.remoteworker.SynchronizeRequest.platform:type_name -> build.bazel.remote.execution.v2.Platform
	1,  // 2: buildbarn.remoteworker.SynchronizeRequest.current_state:type_name -> buildbarn.remoteworker.CurrentState
	9,  // 3: buildbarn.remoteworker.CurrentState.idle:type_name -> google.protobuf.Empty
	5,  // 4: buildbarn.remoteworker.CurrentState.executing:type_name -> buildbarn.remoteworker.CurrentState.Executing
	10, // 5: buildbarn.remoteworker.SynchronizeResponse.next_synchronization_at:type_name -> google.protobuf.Timestamp
	3,  // 6: buildbarn.remoteworker.SynchronizeResponse.desired_state:type_name -> buildbarn.remoteworker.DesiredState
	9,  // 7: buildbarn.remoteworker.DesiredState.idle:type_name -> google.protobuf.Empty
	6,  // 8: buildbarn.remoteworker.DesiredState.executing:type_name -> buildbarn.remoteworker.DesiredState.Executing
	11, // 9: buildbarn.remoteworker.CurrentState.Executing.action_digest:type_name -> build.bazel.remote.execution.v2.Digest
	9,  // 10: buildbarn.remoteworker.CurrentState.Executing.started:type_name -> google.protobuf.Empty
	9,  // 11: buildbarn.remoteworker.CurrentState.Executing.fetching_inputs:type_name -> google.protobuf.Empty
	9,  // 12: buildbarn.remoteworker.CurrentState.Executing.running:type_name -> google.protobuf.Empty
	9,  // 13: buildbarn.remoteworker.CurrentState.Executing.uploading_outputs:type_name -> google.protobuf.Empty
	12, // 14: buildbarn.remoteworker.CurrentState.Executing.completed:type_name -> build.bazel.remote.execution.v2.ExecuteResponse
	11, // 15: buildbarn.remoteworker.DesiredState.Executing.action_digest:type_name -> build.bazel.remote.execution.v2.Digest
	13, // 16: buildbarn.remoteworker.DesiredState.Executing.action:type_name -> build.bazel.remote.execution.v2.Action
	10, // 17: buildbarn.remoteworker.DesiredState.Executing.queued_timestamp:type_name -> google.protobuf.Timestamp
	14, // 18: buildbarn.remoteworker.DesiredState.Executing.auxiliary_metadata:type_name -> google.protobuf.Any
	7,  // 19: buildbarn.remoteworker.DesiredState.Executing.w3c_trace_context:type_name -> buildbarn.remoteworker.DesiredState.Executing.W3cTraceContextEntry
	15, // 20: buildbarn.remoteworker.DesiredState.Executing.digest_function:type_name -> build.bazel.remote.execution.v2.DigestFunction.Value
	0,  // 21: buildbarn.remoteworker.OperationQueue.Synchronize:input_type -> buildbarn.remoteworker.SynchronizeRequest
	2,  // 22: buildbarn.remoteworker.OperationQueue.Synchronize:output_type -> buildbarn.remoteworker.SynchronizeResponse
	22, // [22:23] is the sub-list for method output_type
	21, // [21:22] is the sub-list for method input_type
	21, // [21:21] is the sub-list for extension type_name
	21, // [21:21] is the sub-list for extension extendee
	0,  // [0:21] is the sub-list for field type_name
}

func init() {
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_init()
}
func file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_init() {
	if File_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto != nil {
		return
	}
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[1].OneofWrappers = []any{
		(*CurrentState_Idle)(nil),
		(*CurrentState_Executing_)(nil),
	}
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[3].OneofWrappers = []any{
		(*DesiredState_Idle)(nil),
		(*DesiredState_Executing_)(nil),
	}
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes[5].OneofWrappers = []any{
		(*CurrentState_Executing_Started)(nil),
		(*CurrentState_Executing_FetchingInputs)(nil),
		(*CurrentState_Executing_Running)(nil),
		(*CurrentState_Executing_UploadingOutputs)(nil),
		(*CurrentState_Executing_Completed)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDesc), len(file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_goTypes,
		DependencyIndexes: file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_depIdxs,
		MessageInfos:      file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_msgTypes,
	}.Build()
	File_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto = out.File
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_goTypes = nil
	file_github_com_buildbarn_bb_remote_execution_pkg_proto_remoteworker_remoteworker_proto_depIdxs = nil
}
