498 lines
15 KiB
Go
498 lines
15 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.1
|
|
// source: cache.proto
|
|
|
|
package waymaker_cache
|
|
|
|
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)
|
|
)
|
|
|
|
type AttachPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
PolicyId string `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
|
|
// Policy-specific knobs (e.g. `max_entries`, `default_ttl_ms`)
|
|
// — interpretation is server-side.
|
|
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttachPolicyRequest) Reset() {
|
|
*x = AttachPolicyRequest{}
|
|
mi := &file_cache_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttachPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttachPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *AttachPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_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 AttachPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*AttachPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AttachPolicyRequest) GetBucket() string {
|
|
if x != nil {
|
|
return x.Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AttachPolicyRequest) GetPolicyId() string {
|
|
if x != nil {
|
|
return x.PolicyId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AttachPolicyRequest) GetParams() map[string]string {
|
|
if x != nil {
|
|
return x.Params
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AttachPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode string `protobuf:"bytes,2,opt,name=result_code,json=resultCode,proto3" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AttachPolicyResponse) Reset() {
|
|
*x = AttachPolicyResponse{}
|
|
mi := &file_cache_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AttachPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AttachPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *AttachPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_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 AttachPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*AttachPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AttachPolicyResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *AttachPolicyResponse) GetResultCode() string {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AttachPolicyResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DetachPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DetachPolicyRequest) Reset() {
|
|
*x = DetachPolicyRequest{}
|
|
mi := &file_cache_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DetachPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DetachPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *DetachPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_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 DetachPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*DetachPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DetachPolicyRequest) GetBucket() string {
|
|
if x != nil {
|
|
return x.Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DetachPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode string `protobuf:"bytes,2,opt,name=result_code,json=resultCode,proto3" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DetachPolicyResponse) Reset() {
|
|
*x = DetachPolicyResponse{}
|
|
mi := &file_cache_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DetachPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DetachPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *DetachPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_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 DetachPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*DetachPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DetachPolicyResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *DetachPolicyResponse) GetResultCode() string {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DetachPolicyResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatsRequest) Reset() {
|
|
*x = StatsRequest{}
|
|
mi := &file_cache_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
|
|
func (x *StatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_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 StatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *StatsRequest) GetBucket() string {
|
|
if x != nil {
|
|
return x.Bucket
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
ResultCode string `protobuf:"bytes,2,opt,name=result_code,json=resultCode,proto3" json:"result_code,omitempty"`
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
HitCount uint64 `protobuf:"varint,4,opt,name=hit_count,json=hitCount,proto3" json:"hit_count,omitempty"`
|
|
MissCount uint64 `protobuf:"varint,5,opt,name=miss_count,json=missCount,proto3" json:"miss_count,omitempty"`
|
|
EvictionCount uint64 `protobuf:"varint,6,opt,name=eviction_count,json=evictionCount,proto3" json:"eviction_count,omitempty"`
|
|
SizeBytes uint64 `protobuf:"varint,7,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
|
|
EntryCount uint64 `protobuf:"varint,8,opt,name=entry_count,json=entryCount,proto3" json:"entry_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StatsResponse) Reset() {
|
|
*x = StatsResponse{}
|
|
mi := &file_cache_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StatsResponse) ProtoMessage() {}
|
|
|
|
func (x *StatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cache_proto_msgTypes[5]
|
|
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 StatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*StatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_cache_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *StatsResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *StatsResponse) GetResultCode() string {
|
|
if x != nil {
|
|
return x.ResultCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StatsResponse) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StatsResponse) GetHitCount() uint64 {
|
|
if x != nil {
|
|
return x.HitCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatsResponse) GetMissCount() uint64 {
|
|
if x != nil {
|
|
return x.MissCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatsResponse) GetEvictionCount() uint64 {
|
|
if x != nil {
|
|
return x.EvictionCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatsResponse) GetSizeBytes() uint64 {
|
|
if x != nil {
|
|
return x.SizeBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StatsResponse) GetEntryCount() uint64 {
|
|
if x != nil {
|
|
return x.EntryCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_cache_proto protoreflect.FileDescriptor
|
|
|
|
const file_cache_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\vcache.proto\x12\x0ewaymaker.cache\"\xce\x01\n" +
|
|
"\x13AttachPolicyRequest\x12\x16\n" +
|
|
"\x06bucket\x18\x01 \x01(\tR\x06bucket\x12\x1b\n" +
|
|
"\tpolicy_id\x18\x02 \x01(\tR\bpolicyId\x12G\n" +
|
|
"\x06params\x18\x03 \x03(\v2/.waymaker.cache.AttachPolicyRequest.ParamsEntryR\x06params\x1a9\n" +
|
|
"\vParamsEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"k\n" +
|
|
"\x14AttachPolicyResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x1f\n" +
|
|
"\vresult_code\x18\x02 \x01(\tR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"-\n" +
|
|
"\x13DetachPolicyRequest\x12\x16\n" +
|
|
"\x06bucket\x18\x01 \x01(\tR\x06bucket\"k\n" +
|
|
"\x14DetachPolicyResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x1f\n" +
|
|
"\vresult_code\x18\x02 \x01(\tR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"&\n" +
|
|
"\fStatsRequest\x12\x16\n" +
|
|
"\x06bucket\x18\x01 \x01(\tR\x06bucket\"\x87\x02\n" +
|
|
"\rStatsResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x1f\n" +
|
|
"\vresult_code\x18\x02 \x01(\tR\n" +
|
|
"resultCode\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\x12\x1b\n" +
|
|
"\thit_count\x18\x04 \x01(\x04R\bhitCount\x12\x1d\n" +
|
|
"\n" +
|
|
"miss_count\x18\x05 \x01(\x04R\tmissCount\x12%\n" +
|
|
"\x0eeviction_count\x18\x06 \x01(\x04R\revictionCount\x12\x1d\n" +
|
|
"\n" +
|
|
"size_bytes\x18\a \x01(\x04R\tsizeBytes\x12\x1f\n" +
|
|
"\ventry_count\x18\b \x01(\x04R\n" +
|
|
"entryCount2\x92\x02\n" +
|
|
"\x14WaymakerCacheService\x12Y\n" +
|
|
"\fAttachPolicy\x12#.waymaker.cache.AttachPolicyRequest\x1a$.waymaker.cache.AttachPolicyResponse\x12Y\n" +
|
|
"\fDetachPolicy\x12#.waymaker.cache.DetachPolicyRequest\x1a$.waymaker.cache.DetachPolicyResponse\x12D\n" +
|
|
"\x05Stats\x12\x1c.waymaker.cache.StatsRequest\x1a\x1d.waymaker.cache.StatsResponseB\x16Z\x14/apis/waymaker_cacheb\x06proto3"
|
|
|
|
var (
|
|
file_cache_proto_rawDescOnce sync.Once
|
|
file_cache_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_cache_proto_rawDescGZIP() []byte {
|
|
file_cache_proto_rawDescOnce.Do(func() {
|
|
file_cache_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cache_proto_rawDesc), len(file_cache_proto_rawDesc)))
|
|
})
|
|
return file_cache_proto_rawDescData
|
|
}
|
|
|
|
var file_cache_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_cache_proto_goTypes = []any{
|
|
(*AttachPolicyRequest)(nil), // 0: waymaker.cache.AttachPolicyRequest
|
|
(*AttachPolicyResponse)(nil), // 1: waymaker.cache.AttachPolicyResponse
|
|
(*DetachPolicyRequest)(nil), // 2: waymaker.cache.DetachPolicyRequest
|
|
(*DetachPolicyResponse)(nil), // 3: waymaker.cache.DetachPolicyResponse
|
|
(*StatsRequest)(nil), // 4: waymaker.cache.StatsRequest
|
|
(*StatsResponse)(nil), // 5: waymaker.cache.StatsResponse
|
|
nil, // 6: waymaker.cache.AttachPolicyRequest.ParamsEntry
|
|
}
|
|
var file_cache_proto_depIdxs = []int32{
|
|
6, // 0: waymaker.cache.AttachPolicyRequest.params:type_name -> waymaker.cache.AttachPolicyRequest.ParamsEntry
|
|
0, // 1: waymaker.cache.WaymakerCacheService.AttachPolicy:input_type -> waymaker.cache.AttachPolicyRequest
|
|
2, // 2: waymaker.cache.WaymakerCacheService.DetachPolicy:input_type -> waymaker.cache.DetachPolicyRequest
|
|
4, // 3: waymaker.cache.WaymakerCacheService.Stats:input_type -> waymaker.cache.StatsRequest
|
|
1, // 4: waymaker.cache.WaymakerCacheService.AttachPolicy:output_type -> waymaker.cache.AttachPolicyResponse
|
|
3, // 5: waymaker.cache.WaymakerCacheService.DetachPolicy:output_type -> waymaker.cache.DetachPolicyResponse
|
|
5, // 6: waymaker.cache.WaymakerCacheService.Stats:output_type -> waymaker.cache.StatsResponse
|
|
4, // [4:7] is the sub-list for method output_type
|
|
1, // [1:4] 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_cache_proto_init() }
|
|
func file_cache_proto_init() {
|
|
if File_cache_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cache_proto_rawDesc), len(file_cache_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_cache_proto_goTypes,
|
|
DependencyIndexes: file_cache_proto_depIdxs,
|
|
MessageInfos: file_cache_proto_msgTypes,
|
|
}.Build()
|
|
File_cache_proto = out.File
|
|
file_cache_proto_goTypes = nil
|
|
file_cache_proto_depIdxs = nil
|
|
}
|