7 Star 17 Fork 27

go-course/go9

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
rpc.pb.go 12.61 KB
Copy Edit Raw Blame History
Mr.Yu authored 2023-03-25 11:27 +08:00 . 补充search
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.21.12
// source: apps/resource/pb/rpc.proto
package resource
import (
request "github.com/infraboard/mcube/http/request"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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 SearchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 分页参数
// @gotags: json:"page"
Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"`
// 资源所属域
// @gotags: json:"domain"
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain"`
// 资源所属空间
// @gotags: json:"namespace"
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace"`
// 资源所属环境
// @gotags: json:"env"
Env string `protobuf:"bytes,4,opt,name=env,proto3" json:"env"`
// 厂商
// @gotags: json:"vendor"
Vendor *VENDOR `protobuf:"varint,6,opt,name=vendor,proto3,enum=go9.devcloud.cmdb.resource.VENDOR,oneof" json:"vendor"`
// 资源所属账号
// @gotags: json:"owner"
Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner"`
// 资源类型
// @gotags: json:"type"
Type *TYPE `protobuf:"varint,8,opt,name=type,proto3,enum=go9.devcloud.cmdb.resource.TYPE,oneof" json:"type"`
// 服务商中的状态
// @gotags: json:"status"
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status"`
// 根据服务Tag过滤
// @gotags: json:"tag"
Tag map[string]string `protobuf:"bytes,12,rep,name=tag,proto3" json:"tag" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// 是否返回资源的标签
// @gotags: json:"with_tags"
WithTags bool `protobuf:"varint,11,opt,name=with_tags,json=withTags,proto3" json:"with_tags"`
// 关键字参数
// @gotags: json:"keywords"
Keywords string `protobuf:"bytes,14,opt,name=keywords,proto3" json:"keywords"`
}
func (x *SearchRequest) Reset() {
*x = SearchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_resource_pb_rpc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SearchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchRequest) ProtoMessage() {}
func (x *SearchRequest) ProtoReflect() protoreflect.Message {
mi := &file_apps_resource_pb_rpc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) Descriptor() ([]byte, []int) {
return file_apps_resource_pb_rpc_proto_rawDescGZIP(), []int{0}
}
func (x *SearchRequest) GetPage() *request.PageRequest {
if x != nil {
return x.Page
}
return nil
}
func (x *SearchRequest) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *SearchRequest) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *SearchRequest) GetEnv() string {
if x != nil {
return x.Env
}
return ""
}
func (x *SearchRequest) GetVendor() VENDOR {
if x != nil && x.Vendor != nil {
return *x.Vendor
}
return VENDOR_ALIYUN
}
func (x *SearchRequest) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *SearchRequest) GetType() TYPE {
if x != nil && x.Type != nil {
return *x.Type
}
return TYPE_HOST
}
func (x *SearchRequest) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *SearchRequest) GetTag() map[string]string {
if x != nil {
return x.Tag
}
return nil
}
func (x *SearchRequest) GetWithTags() bool {
if x != nil {
return x.WithTags
}
return false
}
func (x *SearchRequest) GetKeywords() string {
if x != nil {
return x.Keywords
}
return ""
}
var File_apps_resource_pb_rpc_proto protoreflect.FileDescriptor
var file_apps_resource_pb_rpc_proto_rawDesc = []byte{
0x0a, 0x1a, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f,
0x70, 0x62, 0x2f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f,
0x39, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6d, 0x64, 0x62, 0x2e,
0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x1c, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x73,
0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d,
0x63, 0x75, 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x67,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x04, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72,
0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x61, 0x67,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62,
0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x61, 0x67, 0x65, 0x2e,
0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 0x67,
0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d,
0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61,
0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x65, 0x6e,
0x64, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x39, 0x2e,
0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x72, 0x65,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x48, 0x00, 0x52,
0x06, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77,
0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72,
0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20,
0x2e, 0x67, 0x6f, 0x39, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6d,
0x64, 0x62, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x54, 0x59, 0x50, 0x45,
0x48, 0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x44, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x32, 0x2e, 0x67, 0x6f, 0x39, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
0x63, 0x6d, 0x64, 0x62, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x53, 0x65,
0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x69, 0x74,
0x68, 0x5f, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x77, 0x69,
0x74, 0x68, 0x54, 0x61, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72,
0x64, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72,
0x64, 0x73, 0x1a, 0x36, 0x0a, 0x08, 0x54, 0x61, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x76,
0x65, 0x6e, 0x64, 0x6f, 0x72, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x32, 0x63,
0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x5c, 0x0a, 0x06, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12,
0x29, 0x2e, 0x67, 0x6f, 0x39, 0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
0x6d, 0x64, 0x62, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x61,
0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6f, 0x39,
0x2e, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
0x53, 0x65, 0x74, 0x42, 0x3e, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x39, 0x2f, 0x70,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x63, 0x6c, 0x6f, 0x75, 0x64,
0x2f, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_resource_pb_rpc_proto_rawDescOnce sync.Once
file_apps_resource_pb_rpc_proto_rawDescData = file_apps_resource_pb_rpc_proto_rawDesc
)
func file_apps_resource_pb_rpc_proto_rawDescGZIP() []byte {
file_apps_resource_pb_rpc_proto_rawDescOnce.Do(func() {
file_apps_resource_pb_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_resource_pb_rpc_proto_rawDescData)
})
return file_apps_resource_pb_rpc_proto_rawDescData
}
var file_apps_resource_pb_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_apps_resource_pb_rpc_proto_goTypes = []interface{}{
(*SearchRequest)(nil), // 0: go9.devcloud.cmdb.resource.SearchRequest
nil, // 1: go9.devcloud.cmdb.resource.SearchRequest.TagEntry
(*request.PageRequest)(nil), // 2: infraboard.mcube.page.PageRequest
(VENDOR)(0), // 3: go9.devcloud.cmdb.resource.VENDOR
(TYPE)(0), // 4: go9.devcloud.cmdb.resource.TYPE
(*ResourceSet)(nil), // 5: go9.devcloud.cmdb.resource.ResourceSet
}
var file_apps_resource_pb_rpc_proto_depIdxs = []int32{
2, // 0: go9.devcloud.cmdb.resource.SearchRequest.page:type_name -> infraboard.mcube.page.PageRequest
3, // 1: go9.devcloud.cmdb.resource.SearchRequest.vendor:type_name -> go9.devcloud.cmdb.resource.VENDOR
4, // 2: go9.devcloud.cmdb.resource.SearchRequest.type:type_name -> go9.devcloud.cmdb.resource.TYPE
1, // 3: go9.devcloud.cmdb.resource.SearchRequest.tag:type_name -> go9.devcloud.cmdb.resource.SearchRequest.TagEntry
0, // 4: go9.devcloud.cmdb.resource.RPC.Search:input_type -> go9.devcloud.cmdb.resource.SearchRequest
5, // 5: go9.devcloud.cmdb.resource.RPC.Search:output_type -> go9.devcloud.cmdb.resource.ResourceSet
5, // [5:6] is the sub-list for method output_type
4, // [4:5] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_apps_resource_pb_rpc_proto_init() }
func file_apps_resource_pb_rpc_proto_init() {
if File_apps_resource_pb_rpc_proto != nil {
return
}
file_apps_resource_pb_types_proto_init()
file_apps_resource_pb_resource_proto_init()
if !protoimpl.UnsafeEnabled {
file_apps_resource_pb_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SearchRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_apps_resource_pb_rpc_proto_msgTypes[0].OneofWrappers = []interface{}{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_apps_resource_pb_rpc_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_apps_resource_pb_rpc_proto_goTypes,
DependencyIndexes: file_apps_resource_pb_rpc_proto_depIdxs,
MessageInfos: file_apps_resource_pb_rpc_proto_msgTypes,
}.Build()
File_apps_resource_pb_rpc_proto = out.File
file_apps_resource_pb_rpc_proto_rawDesc = nil
file_apps_resource_pb_rpc_proto_goTypes = nil
file_apps_resource_pb_rpc_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go-course/go9.git
git@gitee.com:go-course/go9.git
go-course
go9
go9
2c311f48cd84

Search