// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/storage/v1/presign_service.proto

package storage

import (
	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)
)

// PresignObjectRequest represents a single object presign request
type PresignObjectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Expiration time in seconds
	Expires int64 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"`
	// Object name/key
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// HTTP method (GET, PUT, HEAD)
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// Additional HTTP headers
	Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Object version ID (optional)
	VersionId string `protobuf:"bytes,5,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	// Whether to force download as attachment
	AsAttachment  bool `protobuf:"varint,6,opt,name=as_attachment,json=asAttachment,proto3" json:"as_attachment,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PresignObjectRequest) ProtoMessage() {}

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

func (x *PresignObjectRequest) GetExpires() int64 {
	if x != nil {
		return x.Expires
	}
	return 0
}

func (x *PresignObjectRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *PresignObjectRequest) GetMethod() string {
	if x != nil {
		return x.Method
	}
	return ""
}

func (x *PresignObjectRequest) GetHeaders() map[string]string {
	if x != nil {
		return x.Headers
	}
	return nil
}

func (x *PresignObjectRequest) GetVersionId() string {
	if x != nil {
		return x.VersionId
	}
	return ""
}

func (x *PresignObjectRequest) GetAsAttachment() bool {
	if x != nil {
		return x.AsAttachment
	}
	return false
}

// PresignURLsRequest represents the request for presigning URLs
type PresignURLsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Bucket name
	BucketName string `protobuf:"bytes,1,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"`
	// Custom presign host (optional)
	PresignHost string `protobuf:"bytes,2,opt,name=presign_host,json=presignHost,proto3" json:"presign_host,omitempty"`
	// List of objects to presign
	Objects       []*PresignObjectRequest `protobuf:"bytes,3,rep,name=objects,proto3" json:"objects,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PresignURLsRequest) ProtoMessage() {}

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

func (x *PresignURLsRequest) GetBucketName() string {
	if x != nil {
		return x.BucketName
	}
	return ""
}

func (x *PresignURLsRequest) GetPresignHost() string {
	if x != nil {
		return x.PresignHost
	}
	return ""
}

func (x *PresignURLsRequest) GetObjects() []*PresignObjectRequest {
	if x != nil {
		return x.Objects
	}
	return nil
}

// PresignURLsResponse represents the response with presigned URLs
type PresignURLsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of presigned URLs corresponding to the requested objects
	Urls          []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PresignURLsResponse) ProtoMessage() {}

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

func (x *PresignURLsResponse) GetUrls() []string {
	if x != nil {
		return x.Urls
	}
	return nil
}

var File_yandex_cloud_storage_v1_presign_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_storage_v1_presign_service_proto_rawDesc = "" +
	"\n" +
	"-yandex/cloud/storage/v1/presign_service.proto\x12\x17yandex.cloud.storage.v1\"\xb2\x02\n" +
	"\x14PresignObjectRequest\x12\x18\n" +
	"\aexpires\x18\x01 \x01(\x03R\aexpires\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" +
	"\x06method\x18\x03 \x01(\tR\x06method\x12T\n" +
	"\aheaders\x18\x04 \x03(\v2:.yandex.cloud.storage.v1.PresignObjectRequest.HeadersEntryR\aheaders\x12\x1d\n" +
	"\n" +
	"version_id\x18\x05 \x01(\tR\tversionId\x12#\n" +
	"\ras_attachment\x18\x06 \x01(\bR\fasAttachment\x1a:\n" +
	"\fHeadersEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa1\x01\n" +
	"\x12PresignURLsRequest\x12\x1f\n" +
	"\vbucket_name\x18\x01 \x01(\tR\n" +
	"bucketName\x12!\n" +
	"\fpresign_host\x18\x02 \x01(\tR\vpresignHost\x12G\n" +
	"\aobjects\x18\x03 \x03(\v2-.yandex.cloud.storage.v1.PresignObjectRequestR\aobjects\")\n" +
	"\x13PresignURLsResponse\x12\x12\n" +
	"\x04urls\x18\x01 \x03(\tR\x04urls2u\n" +
	"\x0ePresignService\x12c\n" +
	"\x06Create\x12+.yandex.cloud.storage.v1.PresignURLsRequest\x1a,.yandex.cloud.storage.v1.PresignURLsResponseBb\n" +
	"\x1byandex.cloud.api.storage.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/storage/v1;storageb\x06proto3"

var (
	file_yandex_cloud_storage_v1_presign_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_storage_v1_presign_service_proto_rawDescData []byte
)

func file_yandex_cloud_storage_v1_presign_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_storage_v1_presign_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_storage_v1_presign_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_storage_v1_presign_service_proto_rawDesc), len(file_yandex_cloud_storage_v1_presign_service_proto_rawDesc)))
	})
	return file_yandex_cloud_storage_v1_presign_service_proto_rawDescData
}

var file_yandex_cloud_storage_v1_presign_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_storage_v1_presign_service_proto_goTypes = []any{
	(*PresignObjectRequest)(nil), // 0: yandex.cloud.storage.v1.PresignObjectRequest
	(*PresignURLsRequest)(nil),   // 1: yandex.cloud.storage.v1.PresignURLsRequest
	(*PresignURLsResponse)(nil),  // 2: yandex.cloud.storage.v1.PresignURLsResponse
	nil,                          // 3: yandex.cloud.storage.v1.PresignObjectRequest.HeadersEntry
}
var file_yandex_cloud_storage_v1_presign_service_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.storage.v1.PresignObjectRequest.headers:type_name -> yandex.cloud.storage.v1.PresignObjectRequest.HeadersEntry
	0, // 1: yandex.cloud.storage.v1.PresignURLsRequest.objects:type_name -> yandex.cloud.storage.v1.PresignObjectRequest
	1, // 2: yandex.cloud.storage.v1.PresignService.Create:input_type -> yandex.cloud.storage.v1.PresignURLsRequest
	2, // 3: yandex.cloud.storage.v1.PresignService.Create:output_type -> yandex.cloud.storage.v1.PresignURLsResponse
	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_yandex_cloud_storage_v1_presign_service_proto_init() }
func file_yandex_cloud_storage_v1_presign_service_proto_init() {
	if File_yandex_cloud_storage_v1_presign_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_storage_v1_presign_service_proto_rawDesc), len(file_yandex_cloud_storage_v1_presign_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_storage_v1_presign_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_storage_v1_presign_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_storage_v1_presign_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_storage_v1_presign_service_proto = out.File
	file_yandex_cloud_storage_v1_presign_service_proto_goTypes = nil
	file_yandex_cloud_storage_v1_presign_service_proto_depIdxs = nil
}
