// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: runtime/v1/commands.proto

package runtimev1

import (
	v1 "github.com/pingcap-inc/nexuscrm-contract/wire-go/gen/common/v1"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 AcceptCommandRequest struct {
	state                protoimpl.MessageState `protogen:"open.v1"`
	CommandId            string                 `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	IdempotencyKey       string                 `protobuf:"bytes,2,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	CommandKind          string                 `protobuf:"bytes,3,opt,name=command_kind,json=commandKind,proto3" json:"command_kind,omitempty"`
	PartitionKey         string                 `protobuf:"bytes,4,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"`
	Payload              []byte                 `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
	MinCatalogRevision   *uint64                `protobuf:"varint,6,opt,name=min_catalog_revision,json=minCatalogRevision,proto3,oneof" json:"min_catalog_revision,omitempty"`
	PayloadFormatVersion uint32                 `protobuf:"varint,7,opt,name=payload_format_version,json=payloadFormatVersion,proto3" json:"payload_format_version,omitempty"`
	PayloadDigest        string                 `protobuf:"bytes,8,opt,name=payload_digest,json=payloadDigest,proto3" json:"payload_digest,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*AcceptCommandRequest) ProtoMessage() {}

func (x *AcceptCommandRequest) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_commands_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 AcceptCommandRequest.ProtoReflect.Descriptor instead.
func (*AcceptCommandRequest) Descriptor() ([]byte, []int) {
	return file_runtime_v1_commands_proto_rawDescGZIP(), []int{0}
}

func (x *AcceptCommandRequest) GetCommandId() string {
	if x != nil {
		return x.CommandId
	}
	return ""
}

func (x *AcceptCommandRequest) GetIdempotencyKey() string {
	if x != nil {
		return x.IdempotencyKey
	}
	return ""
}

func (x *AcceptCommandRequest) GetCommandKind() string {
	if x != nil {
		return x.CommandKind
	}
	return ""
}

func (x *AcceptCommandRequest) GetPartitionKey() string {
	if x != nil {
		return x.PartitionKey
	}
	return ""
}

func (x *AcceptCommandRequest) GetPayload() []byte {
	if x != nil {
		return x.Payload
	}
	return nil
}

func (x *AcceptCommandRequest) GetMinCatalogRevision() uint64 {
	if x != nil && x.MinCatalogRevision != nil {
		return *x.MinCatalogRevision
	}
	return 0
}

func (x *AcceptCommandRequest) GetPayloadFormatVersion() uint32 {
	if x != nil {
		return x.PayloadFormatVersion
	}
	return 0
}

func (x *AcceptCommandRequest) GetPayloadDigest() string {
	if x != nil {
		return x.PayloadDigest
	}
	return ""
}

type AcceptCommandResponse struct {
	state         protoimpl.MessageState  `protogen:"open.v1"`
	CommandId     string                  `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	Duplicate     bool                    `protobuf:"varint,3,opt,name=duplicate,proto3" json:"duplicate,omitempty"`
	Receipts      *v1.ConsistencyReceipts `protobuf:"bytes,4,opt,name=receipts,proto3" json:"receipts,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AcceptCommandResponse) ProtoMessage() {}

func (x *AcceptCommandResponse) ProtoReflect() protoreflect.Message {
	mi := &file_runtime_v1_commands_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 AcceptCommandResponse.ProtoReflect.Descriptor instead.
func (*AcceptCommandResponse) Descriptor() ([]byte, []int) {
	return file_runtime_v1_commands_proto_rawDescGZIP(), []int{1}
}

func (x *AcceptCommandResponse) GetCommandId() string {
	if x != nil {
		return x.CommandId
	}
	return ""
}

func (x *AcceptCommandResponse) GetDuplicate() bool {
	if x != nil {
		return x.Duplicate
	}
	return false
}

func (x *AcceptCommandResponse) GetReceipts() *v1.ConsistencyReceipts {
	if x != nil {
		return x.Receipts
	}
	return nil
}

var File_runtime_v1_commands_proto protoreflect.FileDescriptor

const file_runtime_v1_commands_proto_rawDesc = "" +
	"\n" +
	"\x19runtime/v1/commands.proto\x12\x13nexuscrm.runtime.v1\x1a\x16common/v1/common.proto\"\xed\x02\n" +
	"\x14AcceptCommandRequest\x12\x1d\n" +
	"\n" +
	"command_id\x18\x01 \x01(\tR\tcommandId\x12'\n" +
	"\x0fidempotency_key\x18\x02 \x01(\tR\x0eidempotencyKey\x12!\n" +
	"\fcommand_kind\x18\x03 \x01(\tR\vcommandKind\x12#\n" +
	"\rpartition_key\x18\x04 \x01(\tR\fpartitionKey\x12\x18\n" +
	"\apayload\x18\x05 \x01(\fR\apayload\x125\n" +
	"\x14min_catalog_revision\x18\x06 \x01(\x04H\x00R\x12minCatalogRevision\x88\x01\x01\x124\n" +
	"\x16payload_format_version\x18\a \x01(\rR\x14payloadFormatVersion\x12%\n" +
	"\x0epayload_digest\x18\b \x01(\tR\rpayloadDigestB\x17\n" +
	"\x15_min_catalog_revision\"\x9f\x01\n" +
	"\x15AcceptCommandResponse\x12\x1d\n" +
	"\n" +
	"command_id\x18\x01 \x01(\tR\tcommandId\x12\x1c\n" +
	"\tduplicate\x18\x03 \x01(\bR\tduplicate\x12C\n" +
	"\breceipts\x18\x04 \x01(\v2'.nexuscrm.common.v1.ConsistencyReceiptsR\breceiptsJ\x04\b\x02\x10\x032\x82\x01\n" +
	"\x18CommandAcceptanceService\x12f\n" +
	"\rAcceptCommand\x12).nexuscrm.runtime.v1.AcceptCommandRequest\x1a*.nexuscrm.runtime.v1.AcceptCommandResponseBKZIgithub.com/pingcap-inc/nexuscrm-contract/wire-go/gen/runtime/v1;runtimev1b\x06proto3"

var (
	file_runtime_v1_commands_proto_rawDescOnce sync.Once
	file_runtime_v1_commands_proto_rawDescData []byte
)

func file_runtime_v1_commands_proto_rawDescGZIP() []byte {
	file_runtime_v1_commands_proto_rawDescOnce.Do(func() {
		file_runtime_v1_commands_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_runtime_v1_commands_proto_rawDesc), len(file_runtime_v1_commands_proto_rawDesc)))
	})
	return file_runtime_v1_commands_proto_rawDescData
}

var file_runtime_v1_commands_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_runtime_v1_commands_proto_goTypes = []any{
	(*AcceptCommandRequest)(nil),   // 0: nexuscrm.runtime.v1.AcceptCommandRequest
	(*AcceptCommandResponse)(nil),  // 1: nexuscrm.runtime.v1.AcceptCommandResponse
	(*v1.ConsistencyReceipts)(nil), // 2: nexuscrm.common.v1.ConsistencyReceipts
}
var file_runtime_v1_commands_proto_depIdxs = []int32{
	2, // 0: nexuscrm.runtime.v1.AcceptCommandResponse.receipts:type_name -> nexuscrm.common.v1.ConsistencyReceipts
	0, // 1: nexuscrm.runtime.v1.CommandAcceptanceService.AcceptCommand:input_type -> nexuscrm.runtime.v1.AcceptCommandRequest
	1, // 2: nexuscrm.runtime.v1.CommandAcceptanceService.AcceptCommand:output_type -> nexuscrm.runtime.v1.AcceptCommandResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_runtime_v1_commands_proto_init() }
func file_runtime_v1_commands_proto_init() {
	if File_runtime_v1_commands_proto != nil {
		return
	}
	file_runtime_v1_commands_proto_msgTypes[0].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_runtime_v1_commands_proto_rawDesc), len(file_runtime_v1_commands_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_runtime_v1_commands_proto_goTypes,
		DependencyIndexes: file_runtime_v1_commands_proto_depIdxs,
		MessageInfos:      file_runtime_v1_commands_proto_msgTypes,
	}.Build()
	File_runtime_v1_commands_proto = out.File
	file_runtime_v1_commands_proto_goTypes = nil
	file_runtime_v1_commands_proto_depIdxs = nil
}
