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

package cdn

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 PurgeCacheRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource to perform purge operation on.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Set of paths:
	// Paths of the files to remove from the cache.
	//
	// You may use asterisk (`*`) as a wildcard character that substitutes any number of characters.
	//
	// If an empty array of paths is specified (`"paths": []`), the cache is purged entirely.
	Paths         []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PurgeCacheRequest) ProtoMessage() {}

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

func (x *PurgeCacheRequest) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

func (x *PurgeCacheRequest) GetPaths() []string {
	if x != nil {
		return x.Paths
	}
	return nil
}

type PurgeCacheMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource.
	ResourceId    string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PurgeCacheMetadata) ProtoMessage() {}

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

func (x *PurgeCacheMetadata) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

type PrefetchCacheRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource to perform prefetch operation on.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Set of paths to prefetch.
	Paths         []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrefetchCacheRequest) ProtoMessage() {}

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

func (x *PrefetchCacheRequest) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

func (x *PrefetchCacheRequest) GetPaths() []string {
	if x != nil {
		return x.Paths
	}
	return nil
}

type PrefetchCacheMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource.
	ResourceId    string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrefetchCacheMetadata) ProtoMessage() {}

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

func (x *PrefetchCacheMetadata) GetResourceId() string {
	if x != nil {
		return x.ResourceId
	}
	return ""
}

var File_yandex_cloud_cdn_v1_cache_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_cdn_v1_cache_service_proto_rawDesc = "" +
	"\n" +
	"'yandex/cloud/cdn/v1/cache_service.proto\x12\x13yandex.cloud.cdn.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\"X\n" +
	"\x11PurgeCacheRequest\x12-\n" +
	"\vresource_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\n" +
	"resourceId\x12\x14\n" +
	"\x05paths\x18\x02 \x03(\tR\x05paths\"C\n" +
	"\x12PurgeCacheMetadata\x12-\n" +
	"\vresource_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\n" +
	"resourceId\"[\n" +
	"\x14PrefetchCacheRequest\x12-\n" +
	"\vresource_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\n" +
	"resourceId\x12\x14\n" +
	"\x05paths\x18\x02 \x03(\tR\x05paths\"F\n" +
	"\x15PrefetchCacheMetadata\x12-\n" +
	"\vresource_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\n" +
	"resourceId2\xfe\x02\n" +
	"\fCacheService\x12\xaf\x01\n" +
	"\x05Purge\x12&.yandex.cloud.cdn.v1.PurgeCacheRequest\x1a!.yandex.cloud.operation.Operation\"[\xb2\xd2*+\n" +
	"\x12PurgeCacheMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02&:\x01*\"!/cdn/v1/cache/{resource_id}:purge\x12\xbb\x01\n" +
	"\bPrefetch\x12).yandex.cloud.cdn.v1.PrefetchCacheRequest\x1a!.yandex.cloud.operation.Operation\"a\xb2\xd2*.\n" +
	"\x15PrefetchCacheMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02):\x01*\"$/cdn/v1/cache/{resource_id}:prefetchBV\n" +
	"\x17yandex.cloud.api.cdn.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cdn/v1;cdnb\x06proto3"

var (
	file_yandex_cloud_cdn_v1_cache_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_cdn_v1_cache_service_proto_rawDescData []byte
)

func file_yandex_cloud_cdn_v1_cache_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cdn_v1_cache_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cdn_v1_cache_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cdn_v1_cache_service_proto_rawDesc), len(file_yandex_cloud_cdn_v1_cache_service_proto_rawDesc)))
	})
	return file_yandex_cloud_cdn_v1_cache_service_proto_rawDescData
}

var file_yandex_cloud_cdn_v1_cache_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_cdn_v1_cache_service_proto_goTypes = []any{
	(*PurgeCacheRequest)(nil),     // 0: yandex.cloud.cdn.v1.PurgeCacheRequest
	(*PurgeCacheMetadata)(nil),    // 1: yandex.cloud.cdn.v1.PurgeCacheMetadata
	(*PrefetchCacheRequest)(nil),  // 2: yandex.cloud.cdn.v1.PrefetchCacheRequest
	(*PrefetchCacheMetadata)(nil), // 3: yandex.cloud.cdn.v1.PrefetchCacheMetadata
	(*operation.Operation)(nil),   // 4: yandex.cloud.operation.Operation
}
var file_yandex_cloud_cdn_v1_cache_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.cdn.v1.CacheService.Purge:input_type -> yandex.cloud.cdn.v1.PurgeCacheRequest
	2, // 1: yandex.cloud.cdn.v1.CacheService.Prefetch:input_type -> yandex.cloud.cdn.v1.PrefetchCacheRequest
	4, // 2: yandex.cloud.cdn.v1.CacheService.Purge:output_type -> yandex.cloud.operation.Operation
	4, // 3: yandex.cloud.cdn.v1.CacheService.Prefetch:output_type -> yandex.cloud.operation.Operation
	2, // [2:4] is the sub-list for method output_type
	0, // [0:2] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_cdn_v1_cache_service_proto_init() }
func file_yandex_cloud_cdn_v1_cache_service_proto_init() {
	if File_yandex_cloud_cdn_v1_cache_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_cdn_v1_cache_service_proto_rawDesc), len(file_yandex_cloud_cdn_v1_cache_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_cdn_v1_cache_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cdn_v1_cache_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_cdn_v1_cache_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cdn_v1_cache_service_proto = out.File
	file_yandex_cloud_cdn_v1_cache_service_proto_goTypes = nil
	file_yandex_cloud_cdn_v1_cache_service_proto_depIdxs = nil
}
