1
2
3
4
5
6
7 package envoy_annotations
8
9 import (
10 proto "github.com/golang/protobuf/proto"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 descriptorpb "google.golang.org/protobuf/types/descriptorpb"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25
26
27 const _ = proto.ProtoPackageIsVersion4
28
29 type ResourceAnnotation struct {
30 state protoimpl.MessageState
31 sizeCache protoimpl.SizeCache
32 unknownFields protoimpl.UnknownFields
33
34
35
36 Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
37 }
38
39 func (x *ResourceAnnotation) Reset() {
40 *x = ResourceAnnotation{}
41 if protoimpl.UnsafeEnabled {
42 mi := &file_envoy_annotations_resource_proto_msgTypes[0]
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 ms.StoreMessageInfo(mi)
45 }
46 }
47
48 func (x *ResourceAnnotation) String() string {
49 return protoimpl.X.MessageStringOf(x)
50 }
51
52 func (*ResourceAnnotation) ProtoMessage() {}
53
54 func (x *ResourceAnnotation) ProtoReflect() protoreflect.Message {
55 mi := &file_envoy_annotations_resource_proto_msgTypes[0]
56 if protoimpl.UnsafeEnabled && x != nil {
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 if ms.LoadMessageInfo() == nil {
59 ms.StoreMessageInfo(mi)
60 }
61 return ms
62 }
63 return mi.MessageOf(x)
64 }
65
66
67 func (*ResourceAnnotation) Descriptor() ([]byte, []int) {
68 return file_envoy_annotations_resource_proto_rawDescGZIP(), []int{0}
69 }
70
71 func (x *ResourceAnnotation) GetType() string {
72 if x != nil {
73 return x.Type
74 }
75 return ""
76 }
77
78 var file_envoy_annotations_resource_proto_extTypes = []protoimpl.ExtensionInfo{
79 {
80 ExtendedType: (*descriptorpb.ServiceOptions)(nil),
81 ExtensionType: (*ResourceAnnotation)(nil),
82 Field: 265073217,
83 Name: "envoy.annotations.resource",
84 Tag: "bytes,265073217,opt,name=resource",
85 Filename: "envoy/annotations/resource.proto",
86 },
87 }
88
89
90 var (
91
92 E_Resource = &file_envoy_annotations_resource_proto_extTypes[0]
93 )
94
95 var File_envoy_annotations_resource_proto protoreflect.FileDescriptor
96
97 var file_envoy_annotations_resource_proto_rawDesc = []byte{
98 0x0a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
99 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
100 0x74, 0x6f, 0x12, 0x11, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
101 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
102 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
103 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, 0x12, 0x52, 0x65, 0x73, 0x6f, 0x75,
104 0x72, 0x63, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a,
105 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
106 0x65, 0x3a, 0x65, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x2e,
107 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
108 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xc1,
109 0xe4, 0xb2, 0x7e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
110 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f,
111 0x75, 0x72, 0x63, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08,
112 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
113 }
114
115 var (
116 file_envoy_annotations_resource_proto_rawDescOnce sync.Once
117 file_envoy_annotations_resource_proto_rawDescData = file_envoy_annotations_resource_proto_rawDesc
118 )
119
120 func file_envoy_annotations_resource_proto_rawDescGZIP() []byte {
121 file_envoy_annotations_resource_proto_rawDescOnce.Do(func() {
122 file_envoy_annotations_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_annotations_resource_proto_rawDescData)
123 })
124 return file_envoy_annotations_resource_proto_rawDescData
125 }
126
127 var file_envoy_annotations_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
128 var file_envoy_annotations_resource_proto_goTypes = []interface{}{
129 (*ResourceAnnotation)(nil),
130 (*descriptorpb.ServiceOptions)(nil),
131 }
132 var file_envoy_annotations_resource_proto_depIdxs = []int32{
133 1,
134 0,
135 2,
136 2,
137 1,
138 0,
139 0,
140 }
141
142 func init() { file_envoy_annotations_resource_proto_init() }
143 func file_envoy_annotations_resource_proto_init() {
144 if File_envoy_annotations_resource_proto != nil {
145 return
146 }
147 if !protoimpl.UnsafeEnabled {
148 file_envoy_annotations_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
149 switch v := v.(*ResourceAnnotation); i {
150 case 0:
151 return &v.state
152 case 1:
153 return &v.sizeCache
154 case 2:
155 return &v.unknownFields
156 default:
157 return nil
158 }
159 }
160 }
161 type x struct{}
162 out := protoimpl.TypeBuilder{
163 File: protoimpl.DescBuilder{
164 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
165 RawDescriptor: file_envoy_annotations_resource_proto_rawDesc,
166 NumEnums: 0,
167 NumMessages: 1,
168 NumExtensions: 1,
169 NumServices: 0,
170 },
171 GoTypes: file_envoy_annotations_resource_proto_goTypes,
172 DependencyIndexes: file_envoy_annotations_resource_proto_depIdxs,
173 MessageInfos: file_envoy_annotations_resource_proto_msgTypes,
174 ExtensionInfos: file_envoy_annotations_resource_proto_extTypes,
175 }.Build()
176 File_envoy_annotations_resource_proto = out.File
177 file_envoy_annotations_resource_proto_rawDesc = nil
178 file_envoy_annotations_resource_proto_goTypes = nil
179 file_envoy_annotations_resource_proto_depIdxs = nil
180 }
181
View as plain text