github.com/kaydxh/golang@v0.0.131/pkg/discovery/etcd/etcd.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v4.24.2 5 // source: pkg/discovery/etcd/etcd.proto 6 7 package etcd 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 durationpb "google.golang.org/protobuf/types/known/durationpb" 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 type Etcd struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 30 Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` 31 Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` 32 Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` 33 MaxCallSendMsgSize int32 `protobuf:"varint,5,opt,name=max_call_send_msg_size,json=maxCallSendMsgSize,proto3" json:"max_call_send_msg_size,omitempty"` //If 0, it defaults to 2.0 MiB (2 * 1024 * 1024) 34 // MaxCallRecvMsgSize is the client-side response receive limit. 35 // If 0, it defaults to "math.MaxInt32", because range response can 36 // easily exceed request send limits. 37 // Make sure that "MaxCallRecvMsgSize" >= server-side default 38 // send/recv limit. 39 // ("--max-request-bytes" flag to etcd or 40 // "embed.Config.MaxRequestBytes"). 41 MaxCallRecvMsgSize int32 `protobuf:"varint,6,opt,name=max_call_recv_msg_size,json=maxCallRecvMsgSize,proto3" json:"max_call_recv_msg_size,omitempty"` 42 // AutoSyncInterval is the interval to update endpoints with its latest members. 43 // 0 disables auto-sync. By default auto-sync is disabled. 44 AutoSyncInterval *durationpb.Duration `protobuf:"bytes,7,opt,name=auto_sync_interval,json=autoSyncInterval,proto3" json:"auto_sync_interval,omitempty"` 45 DialTimeout *durationpb.Duration `protobuf:"bytes,8,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"` 46 MaxWaitDuration *durationpb.Duration `protobuf:"bytes,12,opt,name=max_wait_duration,json=maxWaitDuration,proto3" json:"max_wait_duration,omitempty"` 47 FailAfterDuration *durationpb.Duration `protobuf:"bytes,13,opt,name=fail_after_duration,json=failAfterDuration,proto3" json:"fail_after_duration,omitempty"` 48 WatchPaths []string `protobuf:"bytes,14,rep,name=watch_paths,json=watchPaths,proto3" json:"watch_paths,omitempty"` 49 } 50 51 func (x *Etcd) Reset() { 52 *x = Etcd{} 53 if protoimpl.UnsafeEnabled { 54 mi := &file_pkg_discovery_etcd_etcd_proto_msgTypes[0] 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 ms.StoreMessageInfo(mi) 57 } 58 } 59 60 func (x *Etcd) String() string { 61 return protoimpl.X.MessageStringOf(x) 62 } 63 64 func (*Etcd) ProtoMessage() {} 65 66 func (x *Etcd) ProtoReflect() protoreflect.Message { 67 mi := &file_pkg_discovery_etcd_etcd_proto_msgTypes[0] 68 if protoimpl.UnsafeEnabled && x != nil { 69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 70 if ms.LoadMessageInfo() == nil { 71 ms.StoreMessageInfo(mi) 72 } 73 return ms 74 } 75 return mi.MessageOf(x) 76 } 77 78 // Deprecated: Use Etcd.ProtoReflect.Descriptor instead. 79 func (*Etcd) Descriptor() ([]byte, []int) { 80 return file_pkg_discovery_etcd_etcd_proto_rawDescGZIP(), []int{0} 81 } 82 83 func (x *Etcd) GetEnabled() bool { 84 if x != nil { 85 return x.Enabled 86 } 87 return false 88 } 89 90 func (x *Etcd) GetAddresses() []string { 91 if x != nil { 92 return x.Addresses 93 } 94 return nil 95 } 96 97 func (x *Etcd) GetUsername() string { 98 if x != nil { 99 return x.Username 100 } 101 return "" 102 } 103 104 func (x *Etcd) GetPassword() string { 105 if x != nil { 106 return x.Password 107 } 108 return "" 109 } 110 111 func (x *Etcd) GetMaxCallSendMsgSize() int32 { 112 if x != nil { 113 return x.MaxCallSendMsgSize 114 } 115 return 0 116 } 117 118 func (x *Etcd) GetMaxCallRecvMsgSize() int32 { 119 if x != nil { 120 return x.MaxCallRecvMsgSize 121 } 122 return 0 123 } 124 125 func (x *Etcd) GetAutoSyncInterval() *durationpb.Duration { 126 if x != nil { 127 return x.AutoSyncInterval 128 } 129 return nil 130 } 131 132 func (x *Etcd) GetDialTimeout() *durationpb.Duration { 133 if x != nil { 134 return x.DialTimeout 135 } 136 return nil 137 } 138 139 func (x *Etcd) GetMaxWaitDuration() *durationpb.Duration { 140 if x != nil { 141 return x.MaxWaitDuration 142 } 143 return nil 144 } 145 146 func (x *Etcd) GetFailAfterDuration() *durationpb.Duration { 147 if x != nil { 148 return x.FailAfterDuration 149 } 150 return nil 151 } 152 153 func (x *Etcd) GetWatchPaths() []string { 154 if x != nil { 155 return x.WatchPaths 156 } 157 return nil 158 } 159 160 var File_pkg_discovery_etcd_etcd_proto protoreflect.FileDescriptor 161 162 var file_pkg_discovery_etcd_etcd_proto_rawDesc = []byte{ 163 0x0a, 0x1d, 0x70, 0x6b, 0x67, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 164 0x65, 0x74, 0x63, 0x64, 0x2f, 0x65, 0x74, 0x63, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 165 0x15, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 166 0x79, 0x2e, 0x65, 0x74, 0x63, 0x64, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 167 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 168 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x04, 0x0a, 0x04, 0x45, 0x74, 0x63, 0x64, 0x12, 169 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 170 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 171 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 172 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 173 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 174 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 175 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 176 0x32, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 0x73, 0x65, 0x6e, 0x64, 177 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 178 0x12, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x6c, 0x6c, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x53, 179 0x69, 0x7a, 0x65, 0x12, 0x32, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x5f, 180 0x72, 0x65, 0x63, 0x76, 0x5f, 0x6d, 0x73, 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 181 0x01, 0x28, 0x05, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x43, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x63, 0x76, 182 0x4d, 0x73, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x6f, 0x5f, 183 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, 184 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 185 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 186 0x61, 0x75, 0x74, 0x6f, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 187 0x12, 0x3c, 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 188 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 189 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 190 0x6e, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x45, 191 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x77, 0x61, 0x69, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 192 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 193 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 194 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x57, 0x61, 0x69, 0x74, 0x44, 0x75, 0x72, 195 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x13, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x61, 0x66, 196 0x74, 0x65, 0x72, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 197 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 198 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x66, 199 0x61, 0x69, 0x6c, 0x41, 0x66, 0x74, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 200 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 201 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x61, 0x74, 0x63, 0x68, 0x50, 0x61, 0x74, 0x68, 202 0x73, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 203 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x64, 0x69, 204 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x65, 0x74, 0x63, 0x64, 0x3b, 0x65, 0x74, 0x63, 205 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 206 } 207 208 var ( 209 file_pkg_discovery_etcd_etcd_proto_rawDescOnce sync.Once 210 file_pkg_discovery_etcd_etcd_proto_rawDescData = file_pkg_discovery_etcd_etcd_proto_rawDesc 211 ) 212 213 func file_pkg_discovery_etcd_etcd_proto_rawDescGZIP() []byte { 214 file_pkg_discovery_etcd_etcd_proto_rawDescOnce.Do(func() { 215 file_pkg_discovery_etcd_etcd_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_discovery_etcd_etcd_proto_rawDescData) 216 }) 217 return file_pkg_discovery_etcd_etcd_proto_rawDescData 218 } 219 220 var file_pkg_discovery_etcd_etcd_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 221 var file_pkg_discovery_etcd_etcd_proto_goTypes = []interface{}{ 222 (*Etcd)(nil), // 0: go.pkg.discovery.etcd.Etcd 223 (*durationpb.Duration)(nil), // 1: google.protobuf.Duration 224 } 225 var file_pkg_discovery_etcd_etcd_proto_depIdxs = []int32{ 226 1, // 0: go.pkg.discovery.etcd.Etcd.auto_sync_interval:type_name -> google.protobuf.Duration 227 1, // 1: go.pkg.discovery.etcd.Etcd.dial_timeout:type_name -> google.protobuf.Duration 228 1, // 2: go.pkg.discovery.etcd.Etcd.max_wait_duration:type_name -> google.protobuf.Duration 229 1, // 3: go.pkg.discovery.etcd.Etcd.fail_after_duration:type_name -> google.protobuf.Duration 230 4, // [4:4] is the sub-list for method output_type 231 4, // [4:4] is the sub-list for method input_type 232 4, // [4:4] is the sub-list for extension type_name 233 4, // [4:4] is the sub-list for extension extendee 234 0, // [0:4] is the sub-list for field type_name 235 } 236 237 func init() { file_pkg_discovery_etcd_etcd_proto_init() } 238 func file_pkg_discovery_etcd_etcd_proto_init() { 239 if File_pkg_discovery_etcd_etcd_proto != nil { 240 return 241 } 242 if !protoimpl.UnsafeEnabled { 243 file_pkg_discovery_etcd_etcd_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 244 switch v := v.(*Etcd); i { 245 case 0: 246 return &v.state 247 case 1: 248 return &v.sizeCache 249 case 2: 250 return &v.unknownFields 251 default: 252 return nil 253 } 254 } 255 } 256 type x struct{} 257 out := protoimpl.TypeBuilder{ 258 File: protoimpl.DescBuilder{ 259 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 260 RawDescriptor: file_pkg_discovery_etcd_etcd_proto_rawDesc, 261 NumEnums: 0, 262 NumMessages: 1, 263 NumExtensions: 0, 264 NumServices: 0, 265 }, 266 GoTypes: file_pkg_discovery_etcd_etcd_proto_goTypes, 267 DependencyIndexes: file_pkg_discovery_etcd_etcd_proto_depIdxs, 268 MessageInfos: file_pkg_discovery_etcd_etcd_proto_msgTypes, 269 }.Build() 270 File_pkg_discovery_etcd_etcd_proto = out.File 271 file_pkg_discovery_etcd_etcd_proto_rawDesc = nil 272 file_pkg_discovery_etcd_etcd_proto_goTypes = nil 273 file_pkg_discovery_etcd_etcd_proto_depIdxs = nil 274 }