1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: envoy/api/v2/endpoint/endpoint.proto 3 4package endpoint 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import wrappers "github.com/golang/protobuf/ptypes/wrappers" 10import address "google.golang.org/grpc/balancer/xds/internal/proto/envoy/api/v2/core/address" 11import base "google.golang.org/grpc/balancer/xds/internal/proto/envoy/api/v2/core/base" 12import health_check "google.golang.org/grpc/balancer/xds/internal/proto/envoy/api/v2/core/health_check" 13import _ "google.golang.org/grpc/balancer/xds/internal/proto/validate" 14 15// Reference imports to suppress errors if they are not otherwise used. 16var _ = proto.Marshal 17var _ = fmt.Errorf 18var _ = math.Inf 19 20// This is a compile-time assertion to ensure that this generated file 21// is compatible with the proto package it is being compiled against. 22// A compilation error at this line likely means your copy of the 23// proto package needs to be updated. 24const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 25 26type Endpoint struct { 27 Address *address.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 28 HealthCheckConfig *Endpoint_HealthCheckConfig `protobuf:"bytes,2,opt,name=health_check_config,json=healthCheckConfig,proto3" json:"health_check_config,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32} 33 34func (m *Endpoint) Reset() { *m = Endpoint{} } 35func (m *Endpoint) String() string { return proto.CompactTextString(m) } 36func (*Endpoint) ProtoMessage() {} 37func (*Endpoint) Descriptor() ([]byte, []int) { 38 return fileDescriptor_endpoint_2d1a533d75f3064c, []int{0} 39} 40func (m *Endpoint) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_Endpoint.Unmarshal(m, b) 42} 43func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) 45} 46func (dst *Endpoint) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_Endpoint.Merge(dst, src) 48} 49func (m *Endpoint) XXX_Size() int { 50 return xxx_messageInfo_Endpoint.Size(m) 51} 52func (m *Endpoint) XXX_DiscardUnknown() { 53 xxx_messageInfo_Endpoint.DiscardUnknown(m) 54} 55 56var xxx_messageInfo_Endpoint proto.InternalMessageInfo 57 58func (m *Endpoint) GetAddress() *address.Address { 59 if m != nil { 60 return m.Address 61 } 62 return nil 63} 64 65func (m *Endpoint) GetHealthCheckConfig() *Endpoint_HealthCheckConfig { 66 if m != nil { 67 return m.HealthCheckConfig 68 } 69 return nil 70} 71 72type Endpoint_HealthCheckConfig struct { 73 PortValue uint32 `protobuf:"varint,1,opt,name=port_value,json=portValue,proto3" json:"port_value,omitempty"` 74 XXX_NoUnkeyedLiteral struct{} `json:"-"` 75 XXX_unrecognized []byte `json:"-"` 76 XXX_sizecache int32 `json:"-"` 77} 78 79func (m *Endpoint_HealthCheckConfig) Reset() { *m = Endpoint_HealthCheckConfig{} } 80func (m *Endpoint_HealthCheckConfig) String() string { return proto.CompactTextString(m) } 81func (*Endpoint_HealthCheckConfig) ProtoMessage() {} 82func (*Endpoint_HealthCheckConfig) Descriptor() ([]byte, []int) { 83 return fileDescriptor_endpoint_2d1a533d75f3064c, []int{0, 0} 84} 85func (m *Endpoint_HealthCheckConfig) XXX_Unmarshal(b []byte) error { 86 return xxx_messageInfo_Endpoint_HealthCheckConfig.Unmarshal(m, b) 87} 88func (m *Endpoint_HealthCheckConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 89 return xxx_messageInfo_Endpoint_HealthCheckConfig.Marshal(b, m, deterministic) 90} 91func (dst *Endpoint_HealthCheckConfig) XXX_Merge(src proto.Message) { 92 xxx_messageInfo_Endpoint_HealthCheckConfig.Merge(dst, src) 93} 94func (m *Endpoint_HealthCheckConfig) XXX_Size() int { 95 return xxx_messageInfo_Endpoint_HealthCheckConfig.Size(m) 96} 97func (m *Endpoint_HealthCheckConfig) XXX_DiscardUnknown() { 98 xxx_messageInfo_Endpoint_HealthCheckConfig.DiscardUnknown(m) 99} 100 101var xxx_messageInfo_Endpoint_HealthCheckConfig proto.InternalMessageInfo 102 103func (m *Endpoint_HealthCheckConfig) GetPortValue() uint32 { 104 if m != nil { 105 return m.PortValue 106 } 107 return 0 108} 109 110type LbEndpoint struct { 111 // Types that are valid to be assigned to HostIdentifier: 112 // *LbEndpoint_Endpoint 113 // *LbEndpoint_EndpointName 114 HostIdentifier isLbEndpoint_HostIdentifier `protobuf_oneof:"host_identifier"` 115 HealthStatus health_check.HealthStatus `protobuf:"varint,2,opt,name=health_status,json=healthStatus,proto3,enum=envoy.api.v2.core.HealthStatus" json:"health_status,omitempty"` 116 Metadata *base.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 117 LoadBalancingWeight *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=load_balancing_weight,json=loadBalancingWeight,proto3" json:"load_balancing_weight,omitempty"` 118 XXX_NoUnkeyedLiteral struct{} `json:"-"` 119 XXX_unrecognized []byte `json:"-"` 120 XXX_sizecache int32 `json:"-"` 121} 122 123func (m *LbEndpoint) Reset() { *m = LbEndpoint{} } 124func (m *LbEndpoint) String() string { return proto.CompactTextString(m) } 125func (*LbEndpoint) ProtoMessage() {} 126func (*LbEndpoint) Descriptor() ([]byte, []int) { 127 return fileDescriptor_endpoint_2d1a533d75f3064c, []int{1} 128} 129func (m *LbEndpoint) XXX_Unmarshal(b []byte) error { 130 return xxx_messageInfo_LbEndpoint.Unmarshal(m, b) 131} 132func (m *LbEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 133 return xxx_messageInfo_LbEndpoint.Marshal(b, m, deterministic) 134} 135func (dst *LbEndpoint) XXX_Merge(src proto.Message) { 136 xxx_messageInfo_LbEndpoint.Merge(dst, src) 137} 138func (m *LbEndpoint) XXX_Size() int { 139 return xxx_messageInfo_LbEndpoint.Size(m) 140} 141func (m *LbEndpoint) XXX_DiscardUnknown() { 142 xxx_messageInfo_LbEndpoint.DiscardUnknown(m) 143} 144 145var xxx_messageInfo_LbEndpoint proto.InternalMessageInfo 146 147type isLbEndpoint_HostIdentifier interface { 148 isLbEndpoint_HostIdentifier() 149} 150 151type LbEndpoint_Endpoint struct { 152 Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3,oneof"` 153} 154 155type LbEndpoint_EndpointName struct { 156 EndpointName string `protobuf:"bytes,5,opt,name=endpoint_name,json=endpointName,proto3,oneof"` 157} 158 159func (*LbEndpoint_Endpoint) isLbEndpoint_HostIdentifier() {} 160 161func (*LbEndpoint_EndpointName) isLbEndpoint_HostIdentifier() {} 162 163func (m *LbEndpoint) GetHostIdentifier() isLbEndpoint_HostIdentifier { 164 if m != nil { 165 return m.HostIdentifier 166 } 167 return nil 168} 169 170func (m *LbEndpoint) GetEndpoint() *Endpoint { 171 if x, ok := m.GetHostIdentifier().(*LbEndpoint_Endpoint); ok { 172 return x.Endpoint 173 } 174 return nil 175} 176 177func (m *LbEndpoint) GetEndpointName() string { 178 if x, ok := m.GetHostIdentifier().(*LbEndpoint_EndpointName); ok { 179 return x.EndpointName 180 } 181 return "" 182} 183 184func (m *LbEndpoint) GetHealthStatus() health_check.HealthStatus { 185 if m != nil { 186 return m.HealthStatus 187 } 188 return health_check.HealthStatus_UNKNOWN 189} 190 191func (m *LbEndpoint) GetMetadata() *base.Metadata { 192 if m != nil { 193 return m.Metadata 194 } 195 return nil 196} 197 198func (m *LbEndpoint) GetLoadBalancingWeight() *wrappers.UInt32Value { 199 if m != nil { 200 return m.LoadBalancingWeight 201 } 202 return nil 203} 204 205// XXX_OneofFuncs is for the internal use of the proto package. 206func (*LbEndpoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { 207 return _LbEndpoint_OneofMarshaler, _LbEndpoint_OneofUnmarshaler, _LbEndpoint_OneofSizer, []interface{}{ 208 (*LbEndpoint_Endpoint)(nil), 209 (*LbEndpoint_EndpointName)(nil), 210 } 211} 212 213func _LbEndpoint_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { 214 m := msg.(*LbEndpoint) 215 // host_identifier 216 switch x := m.HostIdentifier.(type) { 217 case *LbEndpoint_Endpoint: 218 b.EncodeVarint(1<<3 | proto.WireBytes) 219 if err := b.EncodeMessage(x.Endpoint); err != nil { 220 return err 221 } 222 case *LbEndpoint_EndpointName: 223 b.EncodeVarint(5<<3 | proto.WireBytes) 224 b.EncodeStringBytes(x.EndpointName) 225 case nil: 226 default: 227 return fmt.Errorf("LbEndpoint.HostIdentifier has unexpected type %T", x) 228 } 229 return nil 230} 231 232func _LbEndpoint_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { 233 m := msg.(*LbEndpoint) 234 switch tag { 235 case 1: // host_identifier.endpoint 236 if wire != proto.WireBytes { 237 return true, proto.ErrInternalBadWireType 238 } 239 msg := new(Endpoint) 240 err := b.DecodeMessage(msg) 241 m.HostIdentifier = &LbEndpoint_Endpoint{msg} 242 return true, err 243 case 5: // host_identifier.endpoint_name 244 if wire != proto.WireBytes { 245 return true, proto.ErrInternalBadWireType 246 } 247 x, err := b.DecodeStringBytes() 248 m.HostIdentifier = &LbEndpoint_EndpointName{x} 249 return true, err 250 default: 251 return false, nil 252 } 253} 254 255func _LbEndpoint_OneofSizer(msg proto.Message) (n int) { 256 m := msg.(*LbEndpoint) 257 // host_identifier 258 switch x := m.HostIdentifier.(type) { 259 case *LbEndpoint_Endpoint: 260 s := proto.Size(x.Endpoint) 261 n += 1 // tag and wire 262 n += proto.SizeVarint(uint64(s)) 263 n += s 264 case *LbEndpoint_EndpointName: 265 n += 1 // tag and wire 266 n += proto.SizeVarint(uint64(len(x.EndpointName))) 267 n += len(x.EndpointName) 268 case nil: 269 default: 270 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) 271 } 272 return n 273} 274 275type LocalityLbEndpoints struct { 276 Locality *base.Locality `protobuf:"bytes,1,opt,name=locality,proto3" json:"locality,omitempty"` 277 LbEndpoints []*LbEndpoint `protobuf:"bytes,2,rep,name=lb_endpoints,json=lbEndpoints,proto3" json:"lb_endpoints,omitempty"` 278 LoadBalancingWeight *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=load_balancing_weight,json=loadBalancingWeight,proto3" json:"load_balancing_weight,omitempty"` 279 Priority uint32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` 280 XXX_NoUnkeyedLiteral struct{} `json:"-"` 281 XXX_unrecognized []byte `json:"-"` 282 XXX_sizecache int32 `json:"-"` 283} 284 285func (m *LocalityLbEndpoints) Reset() { *m = LocalityLbEndpoints{} } 286func (m *LocalityLbEndpoints) String() string { return proto.CompactTextString(m) } 287func (*LocalityLbEndpoints) ProtoMessage() {} 288func (*LocalityLbEndpoints) Descriptor() ([]byte, []int) { 289 return fileDescriptor_endpoint_2d1a533d75f3064c, []int{2} 290} 291func (m *LocalityLbEndpoints) XXX_Unmarshal(b []byte) error { 292 return xxx_messageInfo_LocalityLbEndpoints.Unmarshal(m, b) 293} 294func (m *LocalityLbEndpoints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 295 return xxx_messageInfo_LocalityLbEndpoints.Marshal(b, m, deterministic) 296} 297func (dst *LocalityLbEndpoints) XXX_Merge(src proto.Message) { 298 xxx_messageInfo_LocalityLbEndpoints.Merge(dst, src) 299} 300func (m *LocalityLbEndpoints) XXX_Size() int { 301 return xxx_messageInfo_LocalityLbEndpoints.Size(m) 302} 303func (m *LocalityLbEndpoints) XXX_DiscardUnknown() { 304 xxx_messageInfo_LocalityLbEndpoints.DiscardUnknown(m) 305} 306 307var xxx_messageInfo_LocalityLbEndpoints proto.InternalMessageInfo 308 309func (m *LocalityLbEndpoints) GetLocality() *base.Locality { 310 if m != nil { 311 return m.Locality 312 } 313 return nil 314} 315 316func (m *LocalityLbEndpoints) GetLbEndpoints() []*LbEndpoint { 317 if m != nil { 318 return m.LbEndpoints 319 } 320 return nil 321} 322 323func (m *LocalityLbEndpoints) GetLoadBalancingWeight() *wrappers.UInt32Value { 324 if m != nil { 325 return m.LoadBalancingWeight 326 } 327 return nil 328} 329 330func (m *LocalityLbEndpoints) GetPriority() uint32 { 331 if m != nil { 332 return m.Priority 333 } 334 return 0 335} 336 337func init() { 338 proto.RegisterType((*Endpoint)(nil), "envoy.api.v2.endpoint.Endpoint") 339 proto.RegisterType((*Endpoint_HealthCheckConfig)(nil), "envoy.api.v2.endpoint.Endpoint.HealthCheckConfig") 340 proto.RegisterType((*LbEndpoint)(nil), "envoy.api.v2.endpoint.LbEndpoint") 341 proto.RegisterType((*LocalityLbEndpoints)(nil), "envoy.api.v2.endpoint.LocalityLbEndpoints") 342} 343 344func init() { 345 proto.RegisterFile("envoy/api/v2/endpoint/endpoint.proto", fileDescriptor_endpoint_2d1a533d75f3064c) 346} 347 348var fileDescriptor_endpoint_2d1a533d75f3064c = []byte{ 349 // 556 bytes of a gzipped FileDescriptorProto 350 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0xc1, 0x6e, 0xd3, 0x4c, 351 0x18, 0xac, 0xe3, 0xa6, 0x4d, 0x37, 0xc9, 0xff, 0x2b, 0x8e, 0x2a, 0xac, 0x50, 0xd1, 0x12, 0x0a, 352 0x8a, 0x72, 0x58, 0x8b, 0x14, 0x89, 0x13, 0x02, 0xdc, 0x22, 0x05, 0xa9, 0xa0, 0x6a, 0x11, 0x20, 353 0x71, 0xc0, 0xfa, 0x6c, 0x6f, 0xe2, 0x15, 0x8e, 0xd7, 0xb2, 0x37, 0x2e, 0xb9, 0xf5, 0x41, 0x78, 354 0x12, 0x4e, 0x3c, 0x4c, 0x2f, 0x3c, 0x45, 0x91, 0xd7, 0x5e, 0x37, 0x6d, 0x52, 0x71, 0xe1, 0xb6, 355 0xde, 0x99, 0xf9, 0xbe, 0x99, 0xf1, 0xa2, 0x43, 0x1a, 0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6, 0x79, 0x75, 367 0xa5, 0x93, 0x9d, 0x1c, 0xfe, 0x94, 0xa3, 0xfd, 0xcb, 0x1a, 0x42, 0xa7, 0x6e, 0x15, 0xf4, 0x05, 368 0x6a, 0x28, 0x27, 0x65, 0xd2, 0xfd, 0xbf, 0xf8, 0x1c, 0x6f, 0x90, 0x4a, 0x62, 0x3c, 0x46, 0x6d, 369 0x75, 0x76, 0x22, 0x98, 0x51, 0xb3, 0x7e, 0xa0, 0x0d, 0x76, 0xc6, 0x1b, 0xa4, 0xa5, 0xae, 0xdf, 370 0xc3, 0x8c, 0x1a, 0x27, 0xa8, 0x5d, 0x16, 0x93, 0x0a, 0x10, 0xf3, 0x54, 0x56, 0xf2, 0xdf, 0xed, 371 0x55, 0xb2, 0xd4, 0x22, 0xdd, 0x07, 0x49, 0x23, 0xad, 0x60, 0xe9, 0xcb, 0x78, 0x8e, 0x1a, 0x33, 372 0x2a, 0xc0, 0x07, 0x01, 0xa6, 0x2e, 0xbd, 0xde, 0x5f, 0x33, 0xe0, 0x5d, 0x49, 0x21, 0x15, 0xd9, 373 0xf8, 0x8a, 0x76, 0x43, 0x0e, 0xbe, 0xe3, 0x42, 0x08, 0x91, 0xc7, 0xa2, 0xa9, 0x73, 0x4e, 0xd9, 374 0x34, 0x10, 0xe6, 0xa6, 0x9c, 0xb2, 0x87, 0x8b, 0x37, 0x83, 0xd5, 0x9b, 0xc1, 0x1f, 0xdf, 0x46, 375 0xe2, 0x68, 0x24, 0x0b, 0xb3, 0x5b, 0x79, 0x91, 0xdb, 0xc3, 0xba, 0x79, 0xa1, 0x0d, 0x34, 0xd2, 376 0xcd, 0x07, 0xd9, 0x6a, 0xce, 0x67, 0x39, 0xc6, 0xee, 0xa0, 0xff, 0x03, 0x9e, 0x0a, 0x87, 0xf9, 377 0x34, 0x12, 0x6c, 0xc2, 0x68, 0xd2, 0xff, 0x51, 0x43, 0xdd, 0x53, 0xee, 0x41, 0xc8, 0xc4, 0xe2, 378 0xba, 0x6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