// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/datasphere/v1/project_data_service.proto

package datasphere

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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 FileMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the Project resource associated with the file.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// File path.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// File size in bytes.
	SizeBytes     int64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FileMetadata) ProtoMessage() {}

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

func (x *FileMetadata) GetProjectId() string {
	if x != nil {
		return x.ProjectId
	}
	return ""
}

func (x *FileMetadata) GetPath() string {
	if x != nil {
		return x.Path
	}
	return ""
}

func (x *FileMetadata) GetSizeBytes() int64 {
	if x != nil {
		return x.SizeBytes
	}
	return 0
}

type UploadFileRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Message:
	//
	//	*UploadFileRequest_Metadata
	//	*UploadFileRequest_Chunk
	Message       isUploadFileRequest_Message `protobuf_oneof:"message"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UploadFileRequest) ProtoMessage() {}

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

func (x *UploadFileRequest) GetMessage() isUploadFileRequest_Message {
	if x != nil {
		return x.Message
	}
	return nil
}

func (x *UploadFileRequest) GetMetadata() *FileMetadata {
	if x != nil {
		if x, ok := x.Message.(*UploadFileRequest_Metadata); ok {
			return x.Metadata
		}
	}
	return nil
}

func (x *UploadFileRequest) GetChunk() []byte {
	if x != nil {
		if x, ok := x.Message.(*UploadFileRequest_Chunk); ok {
			return x.Chunk
		}
	}
	return nil
}

type isUploadFileRequest_Message interface {
	isUploadFileRequest_Message()
}

type UploadFileRequest_Metadata struct {
	// Metadata of the file to upload.
	Metadata *FileMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type UploadFileRequest_Chunk struct {
	// Byte chunk of the file to upload.
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

func (*UploadFileRequest_Metadata) isUploadFileRequest_Message() {}

func (*UploadFileRequest_Chunk) isUploadFileRequest_Message() {}

type UploadFileResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Metadata of the uploaded file.
	Metadata      *FileMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UploadFileResponse) ProtoMessage() {}

func (x *UploadFileResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_datasphere_v1_project_data_service_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 UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescGZIP(), []int{2}
}

func (x *UploadFileResponse) GetMetadata() *FileMetadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

type DownloadFileRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the Project resource to download the file from.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Path of the file to download.
	FilePath      string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DownloadFileRequest) ProtoMessage() {}

func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_datasphere_v1_project_data_service_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 DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescGZIP(), []int{3}
}

func (x *DownloadFileRequest) GetProjectId() string {
	if x != nil {
		return x.ProjectId
	}
	return ""
}

func (x *DownloadFileRequest) GetFilePath() string {
	if x != nil {
		return x.FilePath
	}
	return ""
}

type DownloadFileResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Message:
	//
	//	*DownloadFileResponse_Metadata
	//	*DownloadFileResponse_Chunk
	Message       isDownloadFileResponse_Message `protobuf_oneof:"message"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DownloadFileResponse) Reset() {
	*x = DownloadFileResponse{}
	mi := &file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*DownloadFileResponse) ProtoMessage() {}

func (x *DownloadFileResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes[4]
	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 DownloadFileResponse.ProtoReflect.Descriptor instead.
func (*DownloadFileResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescGZIP(), []int{4}
}

func (x *DownloadFileResponse) GetMessage() isDownloadFileResponse_Message {
	if x != nil {
		return x.Message
	}
	return nil
}

func (x *DownloadFileResponse) GetMetadata() *FileMetadata {
	if x != nil {
		if x, ok := x.Message.(*DownloadFileResponse_Metadata); ok {
			return x.Metadata
		}
	}
	return nil
}

func (x *DownloadFileResponse) GetChunk() []byte {
	if x != nil {
		if x, ok := x.Message.(*DownloadFileResponse_Chunk); ok {
			return x.Chunk
		}
	}
	return nil
}

type isDownloadFileResponse_Message interface {
	isDownloadFileResponse_Message()
}

type DownloadFileResponse_Metadata struct {
	// Metadata of the downloaded file.
	Metadata *FileMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

type DownloadFileResponse_Chunk struct {
	// Byte chunk of the downloaded file.
	Chunk []byte `protobuf:"bytes,2,opt,name=chunk,proto3,oneof"`
}

func (*DownloadFileResponse_Metadata) isDownloadFileResponse_Message() {}

func (*DownloadFileResponse_Chunk) isDownloadFileResponse_Message() {}

var File_yandex_cloud_datasphere_v1_project_data_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDesc = "" +
	"\n" +
	"5yandex/cloud/datasphere/v1/project_data_service.proto\x12\x1ayandex.cloud.datasphere.v1\x1a\x1dyandex/cloud/validation.proto\"o\n" +
	"\fFileMetadata\x12,\n" +
	"\n" +
	"project_id\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=200R\tprojectId\x12\x12\n" +
	"\x04path\x18\x02 \x01(\tR\x04path\x12\x1d\n" +
	"\n" +
	"size_bytes\x18\x03 \x01(\x03R\tsizeBytes\"~\n" +
	"\x11UploadFileRequest\x12F\n" +
	"\bmetadata\x18\x01 \x01(\v2(.yandex.cloud.datasphere.v1.FileMetadataH\x00R\bmetadata\x12\x16\n" +
	"\x05chunk\x18\x02 \x01(\fH\x00R\x05chunkB\t\n" +
	"\amessage\"Z\n" +
	"\x12UploadFileResponse\x12D\n" +
	"\bmetadata\x18\x01 \x01(\v2(.yandex.cloud.datasphere.v1.FileMetadataR\bmetadata\"f\n" +
	"\x13DownloadFileRequest\x12,\n" +
	"\n" +
	"project_id\x18\x01 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x05<=200R\tprojectId\x12!\n" +
	"\tfile_path\x18\x02 \x01(\tB\x04\xe8\xc71\x01R\bfilePath\"\x81\x01\n" +
	"\x14DownloadFileResponse\x12F\n" +
	"\bmetadata\x18\x01 \x01(\v2(.yandex.cloud.datasphere.v1.FileMetadataH\x00R\bmetadata\x12\x16\n" +
	"\x05chunk\x18\x02 \x01(\fH\x00R\x05chunkB\t\n" +
	"\amessage2\xf8\x01\n" +
	"\x12ProjectDataService\x12m\n" +
	"\n" +
	"UploadFile\x12-.yandex.cloud.datasphere.v1.UploadFileRequest\x1a..yandex.cloud.datasphere.v1.UploadFileResponse(\x01\x12s\n" +
	"\fDownloadFile\x12/.yandex.cloud.datasphere.v1.DownloadFileRequest\x1a0.yandex.cloud.datasphere.v1.DownloadFileResponse0\x01Bk\n" +
	"\x1eyandex.cloud.api.datasphere.v1ZIgithub.com/yandex-cloud/go-genproto/yandex/cloud/datasphere/v1;datasphereb\x06proto3"

var (
	file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescData []byte
)

func file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDesc), len(file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDesc)))
	})
	return file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDescData
}

var file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_datasphere_v1_project_data_service_proto_goTypes = []any{
	(*FileMetadata)(nil),         // 0: yandex.cloud.datasphere.v1.FileMetadata
	(*UploadFileRequest)(nil),    // 1: yandex.cloud.datasphere.v1.UploadFileRequest
	(*UploadFileResponse)(nil),   // 2: yandex.cloud.datasphere.v1.UploadFileResponse
	(*DownloadFileRequest)(nil),  // 3: yandex.cloud.datasphere.v1.DownloadFileRequest
	(*DownloadFileResponse)(nil), // 4: yandex.cloud.datasphere.v1.DownloadFileResponse
}
var file_yandex_cloud_datasphere_v1_project_data_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.datasphere.v1.UploadFileRequest.metadata:type_name -> yandex.cloud.datasphere.v1.FileMetadata
	0, // 1: yandex.cloud.datasphere.v1.UploadFileResponse.metadata:type_name -> yandex.cloud.datasphere.v1.FileMetadata
	0, // 2: yandex.cloud.datasphere.v1.DownloadFileResponse.metadata:type_name -> yandex.cloud.datasphere.v1.FileMetadata
	1, // 3: yandex.cloud.datasphere.v1.ProjectDataService.UploadFile:input_type -> yandex.cloud.datasphere.v1.UploadFileRequest
	3, // 4: yandex.cloud.datasphere.v1.ProjectDataService.DownloadFile:input_type -> yandex.cloud.datasphere.v1.DownloadFileRequest
	2, // 5: yandex.cloud.datasphere.v1.ProjectDataService.UploadFile:output_type -> yandex.cloud.datasphere.v1.UploadFileResponse
	4, // 6: yandex.cloud.datasphere.v1.ProjectDataService.DownloadFile:output_type -> yandex.cloud.datasphere.v1.DownloadFileResponse
	5, // [5:7] is the sub-list for method output_type
	3, // [3:5] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_yandex_cloud_datasphere_v1_project_data_service_proto_init() }
func file_yandex_cloud_datasphere_v1_project_data_service_proto_init() {
	if File_yandex_cloud_datasphere_v1_project_data_service_proto != nil {
		return
	}
	file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes[1].OneofWrappers = []any{
		(*UploadFileRequest_Metadata)(nil),
		(*UploadFileRequest_Chunk)(nil),
	}
	file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes[4].OneofWrappers = []any{
		(*DownloadFileResponse_Metadata)(nil),
		(*DownloadFileResponse_Chunk)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDesc), len(file_yandex_cloud_datasphere_v1_project_data_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_datasphere_v1_project_data_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_datasphere_v1_project_data_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_datasphere_v1_project_data_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_datasphere_v1_project_data_service_proto = out.File
	file_yandex_cloud_datasphere_v1_project_data_service_proto_goTypes = nil
	file_yandex_cloud_datasphere_v1_project_data_service_proto_depIdxs = nil
}
