// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        v6.31.1
// source: github.com/buildbarn/bb-storage/pkg/proto/replicator/replicator.proto

package replicator

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"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 ReplicateBlobsRequest struct {
	state          protoimpl.MessageState  `protogen:"open.v1"`
	InstanceName   string                  `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"`
	BlobDigests    []*v2.Digest            `protobuf:"bytes,2,rep,name=blob_digests,json=blobDigests,proto3" json:"blob_digests,omitempty"`
	DigestFunction v2.DigestFunction_Value `protobuf:"varint,3,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 *ReplicateBlobsRequest) Reset() {
	*x = ReplicateBlobsRequest{}
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ReplicateBlobsRequest) ProtoMessage() {}

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

func (x *ReplicateBlobsRequest) GetInstanceName() string {
	if x != nil {
		return x.InstanceName
	}
	return ""
}

func (x *ReplicateBlobsRequest) GetBlobDigests() []*v2.Digest {
	if x != nil {
		return x.BlobDigests
	}
	return nil
}

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

var File_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto protoreflect.FileDescriptor

const file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDesc = "" +
	"\n" +
	"Egithub.com/buildbarn/bb-storage/pkg/proto/replicator/replicator.proto\x12\x14buildbarn.replicator\x1a6build/bazel/remote/execution/v2/remote_execution.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xe8\x01\n" +
	"\x15ReplicateBlobsRequest\x12#\n" +
	"\rinstance_name\x18\x01 \x01(\tR\finstanceName\x12J\n" +
	"\fblob_digests\x18\x02 \x03(\v2'.build.bazel.remote.execution.v2.DigestR\vblobDigests\x12^\n" +
	"\x0fdigest_function\x18\x03 \x01(\x0e25.build.bazel.remote.execution.v2.DigestFunction.ValueR\x0edigestFunction2c\n" +
	"\n" +
	"Replicator\x12U\n" +
	"\x0eReplicateBlobs\x12+.buildbarn.replicator.ReplicateBlobsRequest\x1a\x16.google.protobuf.EmptyB6Z4github.com/buildbarn/bb-storage/pkg/proto/replicatorb\x06proto3"

var (
	file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescOnce sync.Once
	file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescData []byte
)

func file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescGZIP() []byte {
	file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescOnce.Do(func() {
		file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDesc)))
	})
	return file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDescData
}

var file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_goTypes = []any{
	(*ReplicateBlobsRequest)(nil), // 0: buildbarn.replicator.ReplicateBlobsRequest
	(*v2.Digest)(nil),             // 1: build.bazel.remote.execution.v2.Digest
	(v2.DigestFunction_Value)(0),  // 2: build.bazel.remote.execution.v2.DigestFunction.Value
	(*emptypb.Empty)(nil),         // 3: google.protobuf.Empty
}
var file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_depIdxs = []int32{
	1, // 0: buildbarn.replicator.ReplicateBlobsRequest.blob_digests:type_name -> build.bazel.remote.execution.v2.Digest
	2, // 1: buildbarn.replicator.ReplicateBlobsRequest.digest_function:type_name -> build.bazel.remote.execution.v2.DigestFunction.Value
	0, // 2: buildbarn.replicator.Replicator.ReplicateBlobs:input_type -> buildbarn.replicator.ReplicateBlobsRequest
	3, // 3: buildbarn.replicator.Replicator.ReplicateBlobs:output_type -> google.protobuf.Empty
	3, // [3:4] is the sub-list for method output_type
	2, // [2:3] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_init() }
func file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_init() {
	if File_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_goTypes,
		DependencyIndexes: file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_depIdxs,
		MessageInfos:      file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_msgTypes,
	}.Build()
	File_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto = out.File
	file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_goTypes = nil
	file_github_com_buildbarn_bb_storage_pkg_proto_replicator_replicator_proto_depIdxs = nil
}
