1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: envoy/type/hash_policy.proto
3
4package envoy_type
5
6import (
7	fmt "fmt"
8	_ "github.com/envoyproxy/protoc-gen-validate/validate"
9	proto "github.com/golang/protobuf/proto"
10	math "math"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24type HashPolicy struct {
25	// Types that are valid to be assigned to PolicySpecifier:
26	//	*HashPolicy_SourceIp_
27	PolicySpecifier      isHashPolicy_PolicySpecifier `protobuf_oneof:"policy_specifier"`
28	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
29	XXX_unrecognized     []byte                       `json:"-"`
30	XXX_sizecache        int32                        `json:"-"`
31}
32
33func (m *HashPolicy) Reset()         { *m = HashPolicy{} }
34func (m *HashPolicy) String() string { return proto.CompactTextString(m) }
35func (*HashPolicy) ProtoMessage()    {}
36func (*HashPolicy) Descriptor() ([]byte, []int) {
37	return fileDescriptor_b409d49e989a073d, []int{0}
38}
39
40func (m *HashPolicy) XXX_Unmarshal(b []byte) error {
41	return xxx_messageInfo_HashPolicy.Unmarshal(m, b)
42}
43func (m *HashPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
44	return xxx_messageInfo_HashPolicy.Marshal(b, m, deterministic)
45}
46func (m *HashPolicy) XXX_Merge(src proto.Message) {
47	xxx_messageInfo_HashPolicy.Merge(m, src)
48}
49func (m *HashPolicy) XXX_Size() int {
50	return xxx_messageInfo_HashPolicy.Size(m)
51}
52func (m *HashPolicy) XXX_DiscardUnknown() {
53	xxx_messageInfo_HashPolicy.DiscardUnknown(m)
54}
55
56var xxx_messageInfo_HashPolicy proto.InternalMessageInfo
57
58type isHashPolicy_PolicySpecifier interface {
59	isHashPolicy_PolicySpecifier()
60}
61
62type HashPolicy_SourceIp_ struct {
63	SourceIp *HashPolicy_SourceIp `protobuf:"bytes,1,opt,name=source_ip,json=sourceIp,proto3,oneof"`
64}
65
66func (*HashPolicy_SourceIp_) isHashPolicy_PolicySpecifier() {}
67
68func (m *HashPolicy) GetPolicySpecifier() isHashPolicy_PolicySpecifier {
69	if m != nil {
70		return m.PolicySpecifier
71	}
72	return nil
73}
74
75func (m *HashPolicy) GetSourceIp() *HashPolicy_SourceIp {
76	if x, ok := m.GetPolicySpecifier().(*HashPolicy_SourceIp_); ok {
77		return x.SourceIp
78	}
79	return nil
80}
81
82// XXX_OneofWrappers is for the internal use of the proto package.
83func (*HashPolicy) XXX_OneofWrappers() []interface{} {
84	return []interface{}{
85		(*HashPolicy_SourceIp_)(nil),
86	}
87}
88
89type HashPolicy_SourceIp struct {
90	XXX_NoUnkeyedLiteral struct{} `json:"-"`
91	XXX_unrecognized     []byte   `json:"-"`
92	XXX_sizecache        int32    `json:"-"`
93}
94
95func (m *HashPolicy_SourceIp) Reset()         { *m = HashPolicy_SourceIp{} }
96func (m *HashPolicy_SourceIp) String() string { return proto.CompactTextString(m) }
97func (*HashPolicy_SourceIp) ProtoMessage()    {}
98func (*HashPolicy_SourceIp) Descriptor() ([]byte, []int) {
99	return fileDescriptor_b409d49e989a073d, []int{0, 0}
100}
101
102func (m *HashPolicy_SourceIp) XXX_Unmarshal(b []byte) error {
103	return xxx_messageInfo_HashPolicy_SourceIp.Unmarshal(m, b)
104}
105func (m *HashPolicy_SourceIp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
106	return xxx_messageInfo_HashPolicy_SourceIp.Marshal(b, m, deterministic)
107}
108func (m *HashPolicy_SourceIp) XXX_Merge(src proto.Message) {
109	xxx_messageInfo_HashPolicy_SourceIp.Merge(m, src)
110}
111func (m *HashPolicy_SourceIp) XXX_Size() int {
112	return xxx_messageInfo_HashPolicy_SourceIp.Size(m)
113}
114func (m *HashPolicy_SourceIp) XXX_DiscardUnknown() {
115	xxx_messageInfo_HashPolicy_SourceIp.DiscardUnknown(m)
116}
117
118var xxx_messageInfo_HashPolicy_SourceIp proto.InternalMessageInfo
119
120func init() {
121	proto.RegisterType((*HashPolicy)(nil), "envoy.type.HashPolicy")
122	proto.RegisterType((*HashPolicy_SourceIp)(nil), "envoy.type.HashPolicy.SourceIp")
123}
124
125func init() { proto.RegisterFile("envoy/type/hash_policy.proto", fileDescriptor_b409d49e989a073d) }
126
127var fileDescriptor_b409d49e989a073d = []byte{
128	// 184 bytes of a gzipped FileDescriptorProto
129	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcd, 0x2b, 0xcb,
130	0xaf, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0xd5, 0xcf, 0x48, 0x2c, 0xce, 0x88, 0x2f, 0xc8, 0xcf, 0xc9,
131	0x4c, 0xae, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x02, 0xcb, 0xea, 0x81, 0x64, 0xa5,
132	0xc4, 0xcb, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0x52, 0xf5, 0x61, 0x0c, 0x88, 0x22, 0xa5, 0x42,
133	0x2e, 0x2e, 0x8f, 0xc4, 0xe2, 0x8c, 0x00, 0xb0, 0x46, 0x21, 0x3b, 0x2e, 0xce, 0xe2, 0xfc, 0xd2,
134	0xa2, 0xe4, 0xd4, 0xf8, 0xcc, 0x02, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x79, 0x3d, 0x84,
135	0x31, 0x7a, 0x08, 0xa5, 0x7a, 0xc1, 0x60, 0x75, 0x9e, 0x05, 0x1e, 0x0c, 0x41, 0x1c, 0xc5, 0x50,
136	0xb6, 0x14, 0x17, 0x17, 0x07, 0x4c, 0xdc, 0x49, 0x9c, 0x4b, 0x00, 0xe2, 0x9c, 0xf8, 0xe2, 0x82,
137	0xd4, 0xe4, 0xcc, 0xb4, 0xcc, 0xd4, 0x22, 0x21, 0xe6, 0x1f, 0x4e, 0x8c, 0x4e, 0xba, 0x5c, 0x12,
138	0x99, 0xf9, 0x10, 0x53, 0x0b, 0x8a, 0xf2, 0x2b, 0x2a, 0x91, 0x2c, 0x70, 0xe2, 0x47, 0xd8, 0x10,
139	0x00, 0x72, 0x5f, 0x00, 0x63, 0x12, 0x1b, 0xd8, 0xa1, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff,
140	0xdf, 0xc6, 0xa6, 0x78, 0xed, 0x00, 0x00, 0x00,
141}
142