Debian Codegraph @

envoy/extensions/config/validators/minimum_clusters/v3/minimum_clusters.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/extensions/config/validators/minimum_clusters/v3/minimum_clusters.proto
6
7 package minimum_clustersv3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22 )
23
24 // Validates a CDS config, and ensures that the number of clusters is above the
25 // set threshold.
26 type MinimumClustersValidator struct {
27 state protoimpl.MessageState
28 sizeCache protoimpl.SizeCache
29 unknownFields protoimpl.UnknownFields
30
31 // The minimal clusters threshold. Any CDS config update leading to less than
32 // this number will be rejected.
33 // Default value is 0.
34 MinClustersNum uint32 `protobuf:"varint,1,opt,name=min_clusters_num,json=minClustersNum,proto3" json:"min_clusters_num,omitempty"`
35 }
36
37 func (x *MinimumClustersValidator) Reset() {
38 *x = MinimumClustersValidator{}
39 if protoimpl.UnsafeEnabled {
40 mi := &file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_msgTypes[0]
41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
42 ms.StoreMessageInfo(mi)
43 }
44 }
45
46 func (x *MinimumClustersValidator) String() string {
47 return protoimpl.X.MessageStringOf(x)
48 }
49
50 func (*MinimumClustersValidator) ProtoMessage() {}
51
52 func (x *MinimumClustersValidator) ProtoReflect() protoreflect.Message {
53 mi := &file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_msgTypes[0]
54 if protoimpl.UnsafeEnabled && x != nil {
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 if ms.LoadMessageInfo() == nil {
57 ms.StoreMessageInfo(mi)
58 }
59 return ms
60 }
61 return mi.MessageOf(x)
62 }
63
64 // Deprecated: Use MinimumClustersValidator.ProtoReflect.Descriptor instead.
65 func (*MinimumClustersValidator) Descriptor() ([]byte, []int) {
66 return file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescGZIP(), []int{0}
67 }
68
69 func (x *MinimumClustersValidator) GetMinClustersNum() uint32 {
70 if x != nil {
71 return x.MinClustersNum
72 }
73 return 0
74 }
75
76 var File_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto protoreflect.FileDescriptor
77
78 var file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDesc = []byte{
79 0x0a, 0x4d, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
80 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61,
81 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x63, 0x6c, 0x75,
82 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x76, 0x33, 0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d,
83 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
84 0x36, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
85 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
86 0x6f, 0x72, 0x73, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x63, 0x6c, 0x75, 0x73,
87 0x74, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x33, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
88 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
89 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x18, 0x4d, 0x69, 0x6e, 0x69, 0x6d, 0x75,
90 0x6d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74,
91 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65,
92 0x72, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x6d, 0x69,
93 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x4e, 0x75, 0x6d, 0x42, 0xd8, 0x01, 0xba,
94 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x44, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
95 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74,
96 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76,
97 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75,
98 0x6d, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x33, 0x42, 0x14, 0x4d,
99 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x50, 0x72,
100 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x70, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
101 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d,
102 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e,
103 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x63,
104 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73,
105 0x2f, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
106 0x73, 0x2f, 0x76, 0x33, 0x3b, 0x6d, 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x63, 0x6c, 0x75,
107 0x73, 0x74, 0x65, 0x72, 0x73, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
108 }
109
110 var (
111 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescOnce sync.Once
112 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescData = file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDesc
113 )
114
115 func file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescGZIP() []byte {
116 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescOnce.Do(func() {
117 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescData)
118 })
119 return file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDescData
120 }
121
122 var file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
123 var file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_goTypes = []interface{}{
124 (*MinimumClustersValidator)(nil), // 0: envoy.extensions.config.validators.minimum_clusters.v3.MinimumClustersValidator
125 }
126 var file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_depIdxs = []int32{
127 0, // [0:0] is the sub-list for method output_type
128 0, // [0:0] is the sub-list for method input_type
129 0, // [0:0] is the sub-list for extension type_name
130 0, // [0:0] is the sub-list for extension extendee
131 0, // [0:0] is the sub-list for field type_name
132 }
133
134 func init() {
135 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_init()
136 }
137 func file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_init() {
138 if File_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto != nil {
139 return
140 }
141 if !protoimpl.UnsafeEnabled {
142 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
143 switch v := v.(*MinimumClustersValidator); i {
144 case 0:
145 return &v.state
146 case 1:
147 return &v.sizeCache
148 case 2:
149 return &v.unknownFields
150 default:
151 return nil
152 }
153 }
154 }
155 type x struct{}
156 out := protoimpl.TypeBuilder{
157 File: protoimpl.DescBuilder{
158 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
159 RawDescriptor: file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDesc,
160 NumEnums: 0,
161 NumMessages: 1,
162 NumExtensions: 0,
163 NumServices: 0,
164 },
165 GoTypes: file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_goTypes,
166 DependencyIndexes: file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_depIdxs,
167 MessageInfos: file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_msgTypes,
168 }.Build()
169 File_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto = out.File
170 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_rawDesc = nil
171 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_goTypes = nil
172 file_envoy_extensions_config_validators_minimum_clusters_v3_minimum_clusters_proto_depIdxs = nil
173 }