| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package v3 |
| 8 |
|
| 9 |
import ( |
| 10 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 |
reflect "reflect" |
| 13 |
sync "sync" |
| 14 |
unsafe "unsafe" |
| 15 |
) |
| 16 |
|
| 17 |
const ( |
| 18 |
|
| 19 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 22 |
) |
| 23 |
|
| 24 |
type Int64Range struct { |
| 25 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 26 |
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` |
| 27 |
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` |
| 28 |
unknownFields protoimpl.UnknownFields |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
} |
| 31 |
|
| 32 |
func (x *Int64Range) Reset() { |
| 33 |
*x = Int64Range{} |
| 34 |
mi := &file_xds_type_v3_range_proto_msgTypes[0] |
| 35 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 36 |
ms.StoreMessageInfo(mi) |
| 37 |
} |
| 38 |
|
| 39 |
func (x *Int64Range) String() string { |
| 40 |
return protoimpl.X.MessageStringOf(x) |
| 41 |
} |
| 42 |
|
| 43 |
func (*Int64Range) ProtoMessage() {} |
| 44 |
|
| 45 |
func (x *Int64Range) ProtoReflect() protoreflect.Message { |
| 46 |
mi := &file_xds_type_v3_range_proto_msgTypes[0] |
| 47 |
if x != nil { |
| 48 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 49 |
if ms.LoadMessageInfo() == nil { |
| 50 |
ms.StoreMessageInfo(mi) |
| 51 |
} |
| 52 |
return ms |
| 53 |
} |
| 54 |
return mi.MessageOf(x) |
| 55 |
} |
| 56 |
|
| 57 |
|
| 58 |
func (*Int64Range) Descriptor() ([]byte, []int) { |
| 59 |
return file_xds_type_v3_range_proto_rawDescGZIP(), []int{0} |
| 60 |
} |
| 61 |
|
| 62 |
func (x *Int64Range) GetStart() int64 { |
| 63 |
if x != nil { |
| 64 |
return x.Start |
| 65 |
} |
| 66 |
return 0 |
| 67 |
} |
| 68 |
|
| 69 |
func (x *Int64Range) GetEnd() int64 { |
| 70 |
if x != nil { |
| 71 |
return x.End |
| 72 |
} |
| 73 |
return 0 |
| 74 |
} |
| 75 |
|
| 76 |
type Int32Range struct { |
| 77 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 78 |
Start int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` |
| 79 |
End int32 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` |
| 80 |
unknownFields protoimpl.UnknownFields |
| 81 |
sizeCache protoimpl.SizeCache |
| 82 |
} |
| 83 |
|
| 84 |
func (x *Int32Range) Reset() { |
| 85 |
*x = Int32Range{} |
| 86 |
mi := &file_xds_type_v3_range_proto_msgTypes[1] |
| 87 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 88 |
ms.StoreMessageInfo(mi) |
| 89 |
} |
| 90 |
|
| 91 |
func (x *Int32Range) String() string { |
| 92 |
return protoimpl.X.MessageStringOf(x) |
| 93 |
} |
| 94 |
|
| 95 |
func (*Int32Range) ProtoMessage() {} |
| 96 |
|
| 97 |
func (x *Int32Range) ProtoReflect() protoreflect.Message { |
| 98 |
mi := &file_xds_type_v3_range_proto_msgTypes[1] |
| 99 |
if x != nil { |
| 100 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 101 |
if ms.LoadMessageInfo() == nil { |
| 102 |
ms.StoreMessageInfo(mi) |
| 103 |
} |
| 104 |
return ms |
| 105 |
} |
| 106 |
return mi.MessageOf(x) |
| 107 |
} |
| 108 |
|
| 109 |
|
| 110 |
func (*Int32Range) Descriptor() ([]byte, []int) { |
| 111 |
return file_xds_type_v3_range_proto_rawDescGZIP(), []int{1} |
| 112 |
} |
| 113 |
|
| 114 |
func (x *Int32Range) GetStart() int32 { |
| 115 |
if x != nil { |
| 116 |
return x.Start |
| 117 |
} |
| 118 |
return 0 |
| 119 |
} |
| 120 |
|
| 121 |
func (x *Int32Range) GetEnd() int32 { |
| 122 |
if x != nil { |
| 123 |
return x.End |
| 124 |
} |
| 125 |
return 0 |
| 126 |
} |
| 127 |
|
| 128 |
type DoubleRange struct { |
| 129 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 130 |
Start float64 `protobuf:"fixed64,1,opt,name=start,proto3" json:"start,omitempty"` |
| 131 |
End float64 `protobuf:"fixed64,2,opt,name=end,proto3" json:"end,omitempty"` |
| 132 |
unknownFields protoimpl.UnknownFields |
| 133 |
sizeCache protoimpl.SizeCache |
| 134 |
} |
| 135 |
|
| 136 |
func (x *DoubleRange) Reset() { |
| 137 |
*x = DoubleRange{} |
| 138 |
mi := &file_xds_type_v3_range_proto_msgTypes[2] |
| 139 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 140 |
ms.StoreMessageInfo(mi) |
| 141 |
} |
| 142 |
|
| 143 |
func (x *DoubleRange) String() string { |
| 144 |
return protoimpl.X.MessageStringOf(x) |
| 145 |
} |
| 146 |
|
| 147 |
func (*DoubleRange) ProtoMessage() {} |
| 148 |
|
| 149 |
func (x *DoubleRange) ProtoReflect() protoreflect.Message { |
| 150 |
mi := &file_xds_type_v3_range_proto_msgTypes[2] |
| 151 |
if x != nil { |
| 152 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 153 |
if ms.LoadMessageInfo() == nil { |
| 154 |
ms.StoreMessageInfo(mi) |
| 155 |
} |
| 156 |
return ms |
| 157 |
} |
| 158 |
return mi.MessageOf(x) |
| 159 |
} |
| 160 |
|
| 161 |
|
| 162 |
func (*DoubleRange) Descriptor() ([]byte, []int) { |
| 163 |
return file_xds_type_v3_range_proto_rawDescGZIP(), []int{2} |
| 164 |
} |
| 165 |
|
| 166 |
func (x *DoubleRange) GetStart() float64 { |
| 167 |
if x != nil { |
| 168 |
return x.Start |
| 169 |
} |
| 170 |
return 0 |
| 171 |
} |
| 172 |
|
| 173 |
func (x *DoubleRange) GetEnd() float64 { |
| 174 |
if x != nil { |
| 175 |
return x.End |
| 176 |
} |
| 177 |
return 0 |
| 178 |
} |
| 179 |
|
| 180 |
var File_xds_type_v3_range_proto protoreflect.FileDescriptor |
| 181 |
|
| 182 |
const file_xds_type_v3_range_proto_rawDesc = "" + |
| 183 |
"\n" + |
| 184 |
"\x17xds/type/v3/range.proto\x12\vxds.type.v3\"4\n" + |
| 185 |
"\n" + |
| 186 |
"Int64Range\x12\x14\n" + |
| 187 |
"\x05start\x18\x01 \x01(\x03R\x05start\x12\x10\n" + |
| 188 |
"\x03end\x18\x02 \x01(\x03R\x03end\"4\n" + |
| 189 |
"\n" + |
| 190 |
"Int32Range\x12\x14\n" + |
| 191 |
"\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n" + |
| 192 |
"\x03end\x18\x02 \x01(\x05R\x03end\"5\n" + |
| 193 |
"\vDoubleRange\x12\x14\n" + |
| 194 |
"\x05start\x18\x01 \x01(\x01R\x05start\x12\x10\n" + |
| 195 |
"\x03end\x18\x02 \x01(\x01R\x03endBJ\n" + |
| 196 |
"\x16com.github.xds.type.v3B\n" + |
| 197 |
"RangeProtoP\x01Z\"github.com/cncf/xds/go/xds/type/v3b\x06proto3" |
| 198 |
|
| 199 |
var ( |
| 200 |
file_xds_type_v3_range_proto_rawDescOnce sync.Once |
| 201 |
file_xds_type_v3_range_proto_rawDescData []byte |
| 202 |
) |
| 203 |
|
| 204 |
func file_xds_type_v3_range_proto_rawDescGZIP() []byte { |
| 205 |
file_xds_type_v3_range_proto_rawDescOnce.Do(func() { |
| 206 |
file_xds_type_v3_range_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xds_type_v3_range_proto_rawDesc), len(file_xds_type_v3_range_proto_rawDesc))) |
| 207 |
}) |
| 208 |
return file_xds_type_v3_range_proto_rawDescData |
| 209 |
} |
| 210 |
|
| 211 |
var file_xds_type_v3_range_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 212 |
var file_xds_type_v3_range_proto_goTypes = []any{ |
| 213 |
(*Int64Range)(nil), |
| 214 |
(*Int32Range)(nil), |
| 215 |
(*DoubleRange)(nil), |
| 216 |
} |
| 217 |
var file_xds_type_v3_range_proto_depIdxs = []int32{ |
| 218 |
0, |
| 219 |
0, |
| 220 |
0, |
| 221 |
0, |
| 222 |
0, |
| 223 |
} |
| 224 |
|
| 225 |
func init() { file_xds_type_v3_range_proto_init() } |
| 226 |
func file_xds_type_v3_range_proto_init() { |
| 227 |
if File_xds_type_v3_range_proto != nil { |
| 228 |
return |
| 229 |
} |
| 230 |
type x struct{} |
| 231 |
out := protoimpl.TypeBuilder{ |
| 232 |
File: protoimpl.DescBuilder{ |
| 233 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 234 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_xds_type_v3_range_proto_rawDesc), len(file_xds_type_v3_range_proto_rawDesc)), |
| 235 |
NumEnums: 0, |
| 236 |
NumMessages: 3, |
| 237 |
NumExtensions: 0, |
| 238 |
NumServices: 0, |
| 239 |
}, |
| 240 |
GoTypes: file_xds_type_v3_range_proto_goTypes, |
| 241 |
DependencyIndexes: file_xds_type_v3_range_proto_depIdxs, |
| 242 |
MessageInfos: file_xds_type_v3_range_proto_msgTypes, |
| 243 |
}.Build() |
| 244 |
File_xds_type_v3_range_proto = out.File |
| 245 |
file_xds_type_v3_range_proto_goTypes = nil |
| 246 |
file_xds_type_v3_range_proto_depIdxs = nil |
| 247 |
} |