Debian Codegraph @

envoy/config/retry/omit_host_metadata/v2/omit_host_metadata_config.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/config/retry/omit_host_metadata/v2/omit_host_metadata_config.proto
6
7 package omit_host_metadatav2
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 // A retry host predicate that can be used to reject a host based on
26 // predefined metadata match criteria.
27 // [#extension: envoy.retry_host_predicates.omit_host_metadata]
28 type OmitHostMetadataConfig struct {
29 state protoimpl.MessageState
30 sizeCache protoimpl.SizeCache
31 unknownFields protoimpl.UnknownFields
32
33 // Retry host predicate metadata match criteria. The hosts in
34 // the upstream cluster with matching metadata will be omitted while
35 // attempting a retry of a failed request. The metadata should be specified
36 // under the *envoy.lb* key.
37 MetadataMatch *core.Metadata `protobuf:"bytes,1,opt,name=metadata_match,json=metadataMatch,proto3" json:"metadata_match,omitempty"`
38 }
39
40 func (x *OmitHostMetadataConfig) Reset() {
41 *x = OmitHostMetadataConfig{}
42 if protoimpl.UnsafeEnabled {
43 mi := &file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_msgTypes[0]
44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
45 ms.StoreMessageInfo(mi)
46 }
47 }
48
49 func (x *OmitHostMetadataConfig) String() string {
50 return protoimpl.X.MessageStringOf(x)
51 }
52
53 func (*OmitHostMetadataConfig) ProtoMessage() {}
54
55 func (x *OmitHostMetadataConfig) ProtoReflect() protoreflect.Message {
56 mi := &file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_msgTypes[0]
57 if protoimpl.UnsafeEnabled && x != nil {
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 if ms.LoadMessageInfo() == nil {
60 ms.StoreMessageInfo(mi)
61 }
62 return ms
63 }
64 return mi.MessageOf(x)
65 }
66
67 // Deprecated: Use OmitHostMetadataConfig.ProtoReflect.Descriptor instead.
68 func (*OmitHostMetadataConfig) Descriptor() ([]byte, []int) {
69 return file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescGZIP(), []int{0}
70 }
71
72 func (x *OmitHostMetadataConfig) GetMetadataMatch() *core.Metadata {
73 if x != nil {
74 return x.MetadataMatch
75 }
76 return nil
77 }
78
79 var File_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto protoreflect.FileDescriptor
80
81 var file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDesc = []byte{
82 0x0a, 0x48, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x72,
83 0x65, 0x74, 0x72, 0x79, 0x2f, 0x6f, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d,
84 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x6f, 0x6d, 0x69, 0x74, 0x5f,
85 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f,
86 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x65, 0x6e, 0x76, 0x6f,
87 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x6f,
88 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
89 0x61, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f,
90 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f,
91 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
92 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f,
93 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
94 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
95 0x6f, 0x22, 0x5c, 0x0a, 0x16, 0x4f, 0x6d, 0x69, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74,
96 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x0e, 0x6d,
97 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x01, 0x20,
98 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e,
99 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
100 0x52, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x42,
101 0xfe, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x33, 0x12, 0x31, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
102 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79,
103 0x2e, 0x68, 0x6f, 0x73, 0x74, 0x2e, 0x6f, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f,
104 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06,
105 0x02, 0x10, 0x01, 0x0a, 0x36, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
106 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
107 0x72, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x6f, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f,
108 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x42, 0x1b, 0x4f, 0x6d, 0x69,
109 0x74, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e,
110 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x64, 0x67, 0x69, 0x74, 0x68,
111 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78,
112 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61,
113 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
114 0x72, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x6f, 0x6d, 0x69, 0x74, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f,
115 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x3b, 0x6f, 0x6d, 0x69, 0x74,
116 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x76, 0x32,
117 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
118 }
119
120 var (
121 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescOnce sync.Once
122 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescData = file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDesc
123 )
124
125 func file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescGZIP() []byte {
126 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescOnce.Do(func() {
127 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescData)
128 })
129 return file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDescData
130 }
131
132 var file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
133 var file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_goTypes = []interface{}{
134 (*OmitHostMetadataConfig)(nil), // 0: envoy.config.retry.omit_host_metadata.v2.OmitHostMetadataConfig
135 (*core.Metadata)(nil), // 1: envoy.api.v2.core.Metadata
136 }
137 var file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_depIdxs = []int32{
138 1, // 0: envoy.config.retry.omit_host_metadata.v2.OmitHostMetadataConfig.metadata_match:type_name -> envoy.api.v2.core.Metadata
139 1, // [1:1] is the sub-list for method output_type
140 1, // [1:1] is the sub-list for method input_type
141 1, // [1:1] is the sub-list for extension type_name
142 1, // [1:1] is the sub-list for extension extendee
143 0, // [0:1] is the sub-list for field type_name
144 }
145
146 func init() { file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_init() }
147 func file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_init() {
148 if File_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto != nil {
149 return
150 }
151 if !protoimpl.UnsafeEnabled {
152 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
153 switch v := v.(*OmitHostMetadataConfig); i {
154 case 0:
155 return &v.state
156 case 1:
157 return &v.sizeCache
158 case 2:
159 return &v.unknownFields
160 default:
161 return nil
162 }
163 }
164 }
165 type x struct{}
166 out := protoimpl.TypeBuilder{
167 File: protoimpl.DescBuilder{
168 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
169 RawDescriptor: file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDesc,
170 NumEnums: 0,
171 NumMessages: 1,
172 NumExtensions: 0,
173 NumServices: 0,
174 },
175 GoTypes: file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_goTypes,
176 DependencyIndexes: file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_depIdxs,
177 MessageInfos: file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_msgTypes,
178 }.Build()
179 File_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto = out.File
180 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_rawDesc = nil
181 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_goTypes = nil
182 file_envoy_config_retry_omit_host_metadata_v2_omit_host_metadata_config_proto_depIdxs = nil
183 }