1
// Copyright Istio Authors. All Rights Reserved.
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
7
// http://www.apache.org/licenses/LICENSE-2.0
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
15
// Code generated by protoc-gen-go. DO NOT EDIT.
17
// protoc-gen-go v1.33.0
19
// source: dns/proto/nds.proto
21
package istio_networking_nds_v1
24
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31
// Verify that this generated code is sufficiently up-to-date.
32
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33
// Verify that runtime/protoimpl is sufficiently up-to-date.
34
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37
// Table of hostnames and their IPs to br used for DNS resolution at the agent
38
// Sent by istiod to istio agents via xds
39
type NameTable struct {
40
state protoimpl.MessageState
41
sizeCache protoimpl.SizeCache
42
unknownFields protoimpl.UnknownFields
44
// Map of hostname to resolution attributes.
45
Table map[string]*NameTable_NameInfo `protobuf:"bytes,1,rep,name=table,proto3" json:"table,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
48
func (x *NameTable) Reset() {
50
if protoimpl.UnsafeEnabled {
51
mi := &file_dns_proto_nds_proto_msgTypes[0]
52
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53
ms.StoreMessageInfo(mi)
57
func (x *NameTable) String() string {
58
return protoimpl.X.MessageStringOf(x)
61
func (*NameTable) ProtoMessage() {}
63
func (x *NameTable) ProtoReflect() protoreflect.Message {
64
mi := &file_dns_proto_nds_proto_msgTypes[0]
65
if protoimpl.UnsafeEnabled && x != nil {
66
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67
if ms.LoadMessageInfo() == nil {
68
ms.StoreMessageInfo(mi)
72
return mi.MessageOf(x)
75
// Deprecated: Use NameTable.ProtoReflect.Descriptor instead.
76
func (*NameTable) Descriptor() ([]byte, []int) {
77
return file_dns_proto_nds_proto_rawDescGZIP(), []int{0}
80
func (x *NameTable) GetTable() map[string]*NameTable_NameInfo {
87
type NameTable_NameInfo struct {
88
state protoimpl.MessageState
89
sizeCache protoimpl.SizeCache
90
unknownFields protoimpl.UnknownFields
92
// List of IPs for the host.
93
Ips []string `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips,omitempty"`
94
// The name of the service registry containing the service (e.g. 'Kubernetes').
95
Registry string `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
96
// The k8s service name. Only applies when registry=`Kubernetes`
97
Shortname string `protobuf:"bytes,3,opt,name=shortname,proto3" json:"shortname,omitempty"`
98
// The k8s namespace for the service. Only applies when registry=`Kubernetes`
99
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
100
// Deprecated. Was added for experimentation only.
102
// Deprecated: Marked as deprecated in dns/proto/nds.proto.
103
AltHosts []string `protobuf:"bytes,5,rep,name=alt_hosts,json=altHosts,proto3" json:"alt_hosts,omitempty"`
106
func (x *NameTable_NameInfo) Reset() {
107
*x = NameTable_NameInfo{}
108
if protoimpl.UnsafeEnabled {
109
mi := &file_dns_proto_nds_proto_msgTypes[1]
110
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111
ms.StoreMessageInfo(mi)
115
func (x *NameTable_NameInfo) String() string {
116
return protoimpl.X.MessageStringOf(x)
119
func (*NameTable_NameInfo) ProtoMessage() {}
121
func (x *NameTable_NameInfo) ProtoReflect() protoreflect.Message {
122
mi := &file_dns_proto_nds_proto_msgTypes[1]
123
if protoimpl.UnsafeEnabled && x != nil {
124
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125
if ms.LoadMessageInfo() == nil {
126
ms.StoreMessageInfo(mi)
130
return mi.MessageOf(x)
133
// Deprecated: Use NameTable_NameInfo.ProtoReflect.Descriptor instead.
134
func (*NameTable_NameInfo) Descriptor() ([]byte, []int) {
135
return file_dns_proto_nds_proto_rawDescGZIP(), []int{0, 0}
138
func (x *NameTable_NameInfo) GetIps() []string {
145
func (x *NameTable_NameInfo) GetRegistry() string {
152
func (x *NameTable_NameInfo) GetShortname() string {
159
func (x *NameTable_NameInfo) GetNamespace() string {
166
// Deprecated: Marked as deprecated in dns/proto/nds.proto.
167
func (x *NameTable_NameInfo) GetAltHosts() []string {
174
var File_dns_proto_nds_proto protoreflect.FileDescriptor
176
var file_dns_proto_nds_proto_rawDesc = []byte{
177
0x0a, 0x13, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6e, 0x64, 0x73, 0x2e,
178
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x6e, 0x65, 0x74,
179
0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xcf,
180
0x02, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x43, 0x0a, 0x05,
181
0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x69, 0x73,
182
0x74, 0x69, 0x6f, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e,
183
0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e,
184
0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c,
185
0x65, 0x1a, 0x95, 0x01, 0x0a, 0x08, 0x4e, 0x61, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10,
186
0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x70, 0x73,
187
0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01,
188
0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09,
189
0x73, 0x68, 0x6f, 0x72, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
190
0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61,
191
0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e,
192
0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x09, 0x61, 0x6c, 0x74, 0x5f,
193
0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52,
194
0x08, 0x61, 0x6c, 0x74, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x1a, 0x65, 0x0a, 0x0a, 0x54, 0x61, 0x62,
195
0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
196
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c,
197
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x69, 0x73, 0x74, 0x69, 0x6f,
198
0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x64, 0x73, 0x2e,
199
0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x4e, 0x61, 0x6d,
200
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
201
0x42, 0x36, 0x5a, 0x34, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x69, 0x73, 0x74,
202
0x69, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
203
0x2f, 0x69, 0x73, 0x74, 0x69, 0x6f, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
204
0x67, 0x5f, 0x6e, 0x64, 0x73, 0x5f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
208
file_dns_proto_nds_proto_rawDescOnce sync.Once
209
file_dns_proto_nds_proto_rawDescData = file_dns_proto_nds_proto_rawDesc
212
func file_dns_proto_nds_proto_rawDescGZIP() []byte {
213
file_dns_proto_nds_proto_rawDescOnce.Do(func() {
214
file_dns_proto_nds_proto_rawDescData = protoimpl.X.CompressGZIP(file_dns_proto_nds_proto_rawDescData)
216
return file_dns_proto_nds_proto_rawDescData
219
var file_dns_proto_nds_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
220
var file_dns_proto_nds_proto_goTypes = []interface{}{
221
(*NameTable)(nil), // 0: istio.networking.nds.v1.NameTable
222
(*NameTable_NameInfo)(nil), // 1: istio.networking.nds.v1.NameTable.NameInfo
223
nil, // 2: istio.networking.nds.v1.NameTable.TableEntry
225
var file_dns_proto_nds_proto_depIdxs = []int32{
226
2, // 0: istio.networking.nds.v1.NameTable.table:type_name -> istio.networking.nds.v1.NameTable.TableEntry
227
1, // 1: istio.networking.nds.v1.NameTable.TableEntry.value:type_name -> istio.networking.nds.v1.NameTable.NameInfo
228
2, // [2:2] is the sub-list for method output_type
229
2, // [2:2] is the sub-list for method input_type
230
2, // [2:2] is the sub-list for extension type_name
231
2, // [2:2] is the sub-list for extension extendee
232
0, // [0:2] is the sub-list for field type_name
235
func init() { file_dns_proto_nds_proto_init() }
236
func file_dns_proto_nds_proto_init() {
237
if File_dns_proto_nds_proto != nil {
240
if !protoimpl.UnsafeEnabled {
241
file_dns_proto_nds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
242
switch v := v.(*NameTable); i {
248
return &v.unknownFields
253
file_dns_proto_nds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
254
switch v := v.(*NameTable_NameInfo); i {
260
return &v.unknownFields
267
out := protoimpl.TypeBuilder{
268
File: protoimpl.DescBuilder{
269
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
270
RawDescriptor: file_dns_proto_nds_proto_rawDesc,
276
GoTypes: file_dns_proto_nds_proto_goTypes,
277
DependencyIndexes: file_dns_proto_nds_proto_depIdxs,
278
MessageInfos: file_dns_proto_nds_proto_msgTypes,
280
File_dns_proto_nds_proto = out.File
281
file_dns_proto_nds_proto_rawDesc = nil
282
file_dns_proto_nds_proto_goTypes = nil
283
file_dns_proto_nds_proto_depIdxs = nil