github.com/blend/go-sdk@v1.20220411.3/grpcutil/calculator/v1/calculator.pb.go (about) 1 /* 2 3 Copyright (c) 2021 - Present. Blend Labs, Inc. All rights reserved 4 Blend Confidential - Restricted 5 6 */ 7 8 // Code generated by protoc-gen-go. DO NOT EDIT. 9 // versions: 10 // protoc-gen-go v1.25.0-devel 11 // protoc v3.12.3 12 // source: calculator.proto 13 14 package v1 15 16 import ( 17 reflect "reflect" 18 sync "sync" 19 20 proto "github.com/golang/protobuf/proto" 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 // This is a compile-time assertion that a sufficiently up-to-date version 33 // of the legacy proto package is being used. 34 const _ = proto.ProtoPackageIsVersion4 35 36 type Numbers struct { 37 state protoimpl.MessageState 38 sizeCache protoimpl.SizeCache 39 unknownFields protoimpl.UnknownFields 40 41 Values []float64 `protobuf:"fixed64,1,rep,packed,name=Values,proto3" json:"Values,omitempty"` 42 } 43 44 func (x *Numbers) Reset() { 45 *x = Numbers{} 46 if protoimpl.UnsafeEnabled { 47 mi := &file_calculator_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 } 52 53 func (x *Numbers) String() string { 54 return protoimpl.X.MessageStringOf(x) 55 } 56 57 func (*Numbers) ProtoMessage() {} 58 59 func (x *Numbers) ProtoReflect() protoreflect.Message { 60 mi := &file_calculator_proto_msgTypes[0] 61 if protoimpl.UnsafeEnabled && x != nil { 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 if ms.LoadMessageInfo() == nil { 64 ms.StoreMessageInfo(mi) 65 } 66 return ms 67 } 68 return mi.MessageOf(x) 69 } 70 71 // Deprecated: Use Numbers.ProtoReflect.Descriptor instead. 72 func (*Numbers) Descriptor() ([]byte, []int) { 73 return file_calculator_proto_rawDescGZIP(), []int{0} 74 } 75 76 func (x *Numbers) GetValues() []float64 { 77 if x != nil { 78 return x.Values 79 } 80 return nil 81 } 82 83 type Number struct { 84 state protoimpl.MessageState 85 sizeCache protoimpl.SizeCache 86 unknownFields protoimpl.UnknownFields 87 88 Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` 89 } 90 91 func (x *Number) Reset() { 92 *x = Number{} 93 if protoimpl.UnsafeEnabled { 94 mi := &file_calculator_proto_msgTypes[1] 95 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 96 ms.StoreMessageInfo(mi) 97 } 98 } 99 100 func (x *Number) String() string { 101 return protoimpl.X.MessageStringOf(x) 102 } 103 104 func (*Number) ProtoMessage() {} 105 106 func (x *Number) ProtoReflect() protoreflect.Message { 107 mi := &file_calculator_proto_msgTypes[1] 108 if protoimpl.UnsafeEnabled && x != nil { 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 if ms.LoadMessageInfo() == nil { 111 ms.StoreMessageInfo(mi) 112 } 113 return ms 114 } 115 return mi.MessageOf(x) 116 } 117 118 // Deprecated: Use Number.ProtoReflect.Descriptor instead. 119 func (*Number) Descriptor() ([]byte, []int) { 120 return file_calculator_proto_rawDescGZIP(), []int{1} 121 } 122 123 func (x *Number) GetValue() float64 { 124 if x != nil { 125 return x.Value 126 } 127 return 0 128 } 129 130 var File_calculator_proto protoreflect.FileDescriptor 131 132 var file_calculator_proto_rawDesc = []byte{ 133 0x0a, 0x10, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 134 0x74, 0x6f, 0x12, 0x02, 0x76, 0x31, 0x22, 0x21, 0x0a, 0x07, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 135 0x73, 0x12, 0x16, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 136 0x01, 0x52, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x1e, 0x0a, 0x06, 0x4e, 0x75, 0x6d, 137 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 138 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0xd2, 0x02, 0x0a, 0x0a, 0x43, 0x61, 139 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x03, 0x41, 0x64, 0x64, 0x12, 140 0x0b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x0a, 0x2e, 0x76, 141 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x12, 0x27, 0x0a, 0x09, 0x41, 0x64, 142 0x64, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 143 0x62, 0x65, 0x72, 0x1a, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 144 0x00, 0x28, 0x01, 0x12, 0x25, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 145 0x0b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x0a, 0x2e, 0x76, 146 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x12, 0x2c, 0x0a, 0x0e, 0x53, 0x75, 147 0x62, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x0a, 0x2e, 0x76, 148 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x1a, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 149 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x28, 0x01, 0x12, 0x25, 0x0a, 0x08, 0x4d, 0x75, 0x6c, 0x74, 150 0x69, 0x70, 0x6c, 0x79, 0x12, 0x0b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 151 0x73, 0x1a, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x12, 152 0x2c, 0x0a, 0x0e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x72, 0x65, 0x61, 153 0x6d, 0x12, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x1a, 0x0a, 0x2e, 154 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x28, 0x01, 0x12, 0x23, 0x0a, 155 0x06, 0x44, 0x69, 0x76, 0x69, 0x64, 0x65, 0x12, 0x0b, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 156 0x62, 0x65, 0x72, 0x73, 0x1a, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 157 0x22, 0x00, 0x12, 0x2a, 0x0a, 0x0c, 0x44, 0x69, 0x76, 0x69, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 158 0x61, 0x6d, 0x12, 0x0a, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x1a, 0x0a, 159 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x00, 0x28, 0x01, 0x62, 0x06, 160 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 161 } 162 163 var ( 164 file_calculator_proto_rawDescOnce sync.Once 165 file_calculator_proto_rawDescData = file_calculator_proto_rawDesc 166 ) 167 168 func file_calculator_proto_rawDescGZIP() []byte { 169 file_calculator_proto_rawDescOnce.Do(func() { 170 file_calculator_proto_rawDescData = protoimpl.X.CompressGZIP(file_calculator_proto_rawDescData) 171 }) 172 return file_calculator_proto_rawDescData 173 } 174 175 var file_calculator_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 176 var file_calculator_proto_goTypes = []interface{}{ 177 (*Numbers)(nil), // 0: v1.Numbers 178 (*Number)(nil), // 1: v1.Number 179 } 180 var file_calculator_proto_depIdxs = []int32{ 181 0, // 0: v1.Calculator.Add:input_type -> v1.Numbers 182 1, // 1: v1.Calculator.AddStream:input_type -> v1.Number 183 0, // 2: v1.Calculator.Subtract:input_type -> v1.Numbers 184 1, // 3: v1.Calculator.SubtractStream:input_type -> v1.Number 185 0, // 4: v1.Calculator.Multiply:input_type -> v1.Numbers 186 1, // 5: v1.Calculator.MultiplyStream:input_type -> v1.Number 187 0, // 6: v1.Calculator.Divide:input_type -> v1.Numbers 188 1, // 7: v1.Calculator.DivideStream:input_type -> v1.Number 189 1, // 8: v1.Calculator.Add:output_type -> v1.Number 190 1, // 9: v1.Calculator.AddStream:output_type -> v1.Number 191 1, // 10: v1.Calculator.Subtract:output_type -> v1.Number 192 1, // 11: v1.Calculator.SubtractStream:output_type -> v1.Number 193 1, // 12: v1.Calculator.Multiply:output_type -> v1.Number 194 1, // 13: v1.Calculator.MultiplyStream:output_type -> v1.Number 195 1, // 14: v1.Calculator.Divide:output_type -> v1.Number 196 1, // 15: v1.Calculator.DivideStream:output_type -> v1.Number 197 8, // [8:16] is the sub-list for method output_type 198 0, // [0:8] is the sub-list for method input_type 199 0, // [0:0] is the sub-list for extension type_name 200 0, // [0:0] is the sub-list for extension extendee 201 0, // [0:0] is the sub-list for field type_name 202 } 203 204 func init() { file_calculator_proto_init() } 205 func file_calculator_proto_init() { 206 if File_calculator_proto != nil { 207 return 208 } 209 if !protoimpl.UnsafeEnabled { 210 file_calculator_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 211 switch v := v.(*Numbers); i { 212 case 0: 213 return &v.state 214 case 1: 215 return &v.sizeCache 216 case 2: 217 return &v.unknownFields 218 default: 219 return nil 220 } 221 } 222 file_calculator_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 223 switch v := v.(*Number); i { 224 case 0: 225 return &v.state 226 case 1: 227 return &v.sizeCache 228 case 2: 229 return &v.unknownFields 230 default: 231 return nil 232 } 233 } 234 } 235 type x struct{} 236 out := protoimpl.TypeBuilder{ 237 File: protoimpl.DescBuilder{ 238 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 239 RawDescriptor: file_calculator_proto_rawDesc, 240 NumEnums: 0, 241 NumMessages: 2, 242 NumExtensions: 0, 243 NumServices: 1, 244 }, 245 GoTypes: file_calculator_proto_goTypes, 246 DependencyIndexes: file_calculator_proto_depIdxs, 247 MessageInfos: file_calculator_proto_msgTypes, 248 }.Build() 249 File_calculator_proto = out.File 250 file_calculator_proto_rawDesc = nil 251 file_calculator_proto_goTypes = nil 252 file_calculator_proto_depIdxs = nil 253 }