Debian Codegraph @

go/xds/core/v3/resource_name.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.10
4 // protoc v5.29.3
5 // source: xds/core/v3/resource_name.proto
6
7 package v3
8
9 import (
10 _ "github.com/cncf/xds/go/xds/annotations/v3"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 type ResourceName struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
29 Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
30 ResourceType string `protobuf:"bytes,3,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
31 Context *ContextParams `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
34 }
35
36 func (x *ResourceName) Reset() {
37 *x = ResourceName{}
38 mi := &file_xds_core_v3_resource_name_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42
43 func (x *ResourceName) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*ResourceName) ProtoMessage() {}
48
49 func (x *ResourceName) ProtoReflect() protoreflect.Message {
50 mi := &file_xds_core_v3_resource_name_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61 // Deprecated: Use ResourceName.ProtoReflect.Descriptor instead.
62 func (*ResourceName) Descriptor() ([]byte, []int) {
63 return file_xds_core_v3_resource_name_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *ResourceName) GetId() string {
67 if x != nil {
68 return x.Id
69 }
70 return ""
71 }
72
73 func (x *ResourceName) GetAuthority() string {
74 if x != nil {
75 return x.Authority
76 }
77 return ""
78 }
79
80 func (x *ResourceName) GetResourceType() string {
81 if x != nil {
82 return x.ResourceType
83 }
84 return ""
85 }
86
87 func (x *ResourceName) GetContext() *ContextParams {
88 if x != nil {
89 return x.Context
90 }
91 return nil
92 }
93
94 var File_xds_core_v3_resource_name_proto protoreflect.FileDescriptor
95
96 const file_xds_core_v3_resource_name_proto_rawDesc = "" +
97 "\n" +
98 "\x1fxds/core/v3/resource_name.proto\x12\vxds.core.v3\x1a\x1fxds/annotations/v3/status.proto\x1a xds/core/v3/context_params.proto\x1a\x17validate/validate.proto\"\xa0\x01\n" +
99 "\fResourceName\x12\x0e\n" +
100 "\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +
101 "\tauthority\x18\x02 \x01(\tR\tauthority\x12,\n" +
102 "\rresource_type\x18\x03 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\fresourceType\x124\n" +
103 "\acontext\x18\x04 \x01(\v2\x1a.xds.core.v3.ContextParamsR\acontextBY\xd2Ƥ\xe1\x06\x02\b\x01\n" +
104 "\x16com.github.xds.core.v3B\x11ResourceNameProtoP\x01Z\"github.com/cncf/xds/go/xds/core/v3b\x06proto3"
105
106 var (
107 file_xds_core_v3_resource_name_proto_rawDescOnce sync.Once
108 file_xds_core_v3_resource_name_proto_rawDescData []byte
109 )
110
111 func file_xds_core_v3_resource_name_proto_rawDescGZIP() []byte {
112 file_xds_core_v3_resource_name_proto_rawDescOnce.Do(func() {
113 file_xds_core_v3_resource_name_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_name_proto_rawDesc), len(file_xds_core_v3_resource_name_proto_rawDesc)))
114 })
115 return file_xds_core_v3_resource_name_proto_rawDescData
116 }
117
118 var file_xds_core_v3_resource_name_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
119 var file_xds_core_v3_resource_name_proto_goTypes = []any{
120 (*ResourceName)(nil), // 0: xds.core.v3.ResourceName
121 (*ContextParams)(nil), // 1: xds.core.v3.ContextParams
122 }
123 var file_xds_core_v3_resource_name_proto_depIdxs = []int32{
124 1, // 0: xds.core.v3.ResourceName.context:type_name -> xds.core.v3.ContextParams
125 1, // [1:1] is the sub-list for method output_type
126 1, // [1:1] is the sub-list for method input_type
127 1, // [1:1] is the sub-list for extension type_name
128 1, // [1:1] is the sub-list for extension extendee
129 0, // [0:1] is the sub-list for field type_name
130 }
131
132 func init() { file_xds_core_v3_resource_name_proto_init() }
133 func file_xds_core_v3_resource_name_proto_init() {
134 if File_xds_core_v3_resource_name_proto != nil {
135 return
136 }
137 file_xds_core_v3_context_params_proto_init()
138 type x struct{}
139 out := protoimpl.TypeBuilder{
140 File: protoimpl.DescBuilder{
141 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
142 RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_core_v3_resource_name_proto_rawDesc), len(file_xds_core_v3_resource_name_proto_rawDesc)),
143 NumEnums: 0,
144 NumMessages: 1,
145 NumExtensions: 0,
146 NumServices: 0,
147 },
148 GoTypes: file_xds_core_v3_resource_name_proto_goTypes,
149 DependencyIndexes: file_xds_core_v3_resource_name_proto_depIdxs,
150 MessageInfos: file_xds_core_v3_resource_name_proto_msgTypes,
151 }.Build()
152 File_xds_core_v3_resource_name_proto = out.File
153 file_xds_core_v3_resource_name_proto_goTypes = nil
154 file_xds_core_v3_resource_name_proto_depIdxs = nil
155 }