2022-01-31 16:23:15 -08:00
// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
2021-11-24 10:10:26 -08:00
package testpb
import (
binary "encoding/binary"
fmt "fmt"
2022-01-31 16:23:15 -08:00
io "io"
reflect "reflect"
sort "sort"
sync "sync"
2021-11-24 10:10:26 -08:00
runtime "github.com/cosmos/cosmos-proto/runtime"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
2022-01-31 16:23:15 -08:00
_ "github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1"
2021-11-24 10:10:26 -08:00
)
2022-01-20 08:22:06 -08:00
var _ protoreflect . List = ( * _ExampleTable_17_list ) ( nil )
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type _ExampleTable_17_list struct {
2021-11-24 10:10:26 -08:00
list * [ ] uint32
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) Len ( ) int {
2021-11-24 10:10:26 -08:00
if x . list == nil {
return 0
}
return len ( * x . list )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) Get ( i int ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint32 ( ( * x . list ) [ i ] )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) Set ( i int , value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
valueUnwrapped := value . Uint ( )
concreteValue := ( uint32 ) ( valueUnwrapped )
( * x . list ) [ i ] = concreteValue
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) Append ( value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
valueUnwrapped := value . Uint ( )
concreteValue := ( uint32 ) ( valueUnwrapped )
* x . list = append ( * x . list , concreteValue )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) AppendMutable ( ) protoreflect . Value {
panic ( fmt . Errorf ( "AppendMutable can not be called on message ExampleTable at list field Repeated as it is not of Message kind" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) Truncate ( n int ) {
2021-11-24 10:10:26 -08:00
* x . list = ( * x . list ) [ : n ]
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) NewElement ( ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
v := uint32 ( 0 )
return protoreflect . ValueOfUint32 ( v )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_17_list ) IsValid ( ) bool {
2021-11-24 10:10:26 -08:00
return x . list != nil
}
2022-01-20 08:22:06 -08:00
var _ protoreflect . Map = ( * _ExampleTable_18_map ) ( nil )
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type _ExampleTable_18_map struct {
2021-11-24 10:10:26 -08:00
m * map [ string ] uint32
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Len ( ) int {
2021-11-24 10:10:26 -08:00
if x . m == nil {
return 0
}
return len ( * x . m )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Range ( f func ( protoreflect . MapKey , protoreflect . Value ) bool ) {
2021-11-24 10:10:26 -08:00
if x . m == nil {
return
}
for k , v := range * x . m {
mapKey := ( protoreflect . MapKey ) ( protoreflect . ValueOfString ( k ) )
mapValue := protoreflect . ValueOfUint32 ( v )
if ! f ( mapKey , mapValue ) {
break
}
}
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Has ( key protoreflect . MapKey ) bool {
2021-11-24 10:10:26 -08:00
if x . m == nil {
return false
}
keyUnwrapped := key . String ( )
concreteValue := keyUnwrapped
_ , ok := ( * x . m ) [ concreteValue ]
return ok
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Clear ( key protoreflect . MapKey ) {
2021-11-24 10:10:26 -08:00
if x . m == nil {
return
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
delete ( * x . m , concreteKey )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Get ( key protoreflect . MapKey ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
if x . m == nil {
return protoreflect . Value { }
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
v , ok := ( * x . m ) [ concreteKey ]
if ! ok {
return protoreflect . Value { }
}
return protoreflect . ValueOfUint32 ( v )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Set ( key protoreflect . MapKey , value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
if ! key . IsValid ( ) || ! value . IsValid ( ) {
panic ( "invalid key or value provided" )
}
keyUnwrapped := key . String ( )
concreteKey := keyUnwrapped
valueUnwrapped := value . Uint ( )
concreteValue := ( uint32 ) ( valueUnwrapped )
( * x . m ) [ concreteKey ] = concreteValue
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) Mutable ( key protoreflect . MapKey ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
panic ( "should not call Mutable on protoreflect.Map whose value is not of type protoreflect.Message" )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) NewValue ( ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
v := uint32 ( 0 )
return protoreflect . ValueOfUint32 ( v )
}
2022-01-20 08:22:06 -08:00
func ( x * _ExampleTable_18_map ) IsValid ( ) bool {
2021-11-24 10:10:26 -08:00
return x . m != nil
}
var (
2022-01-20 08:22:06 -08:00
md_ExampleTable protoreflect . MessageDescriptor
fd_ExampleTable_u32 protoreflect . FieldDescriptor
fd_ExampleTable_u64 protoreflect . FieldDescriptor
fd_ExampleTable_str protoreflect . FieldDescriptor
fd_ExampleTable_bz protoreflect . FieldDescriptor
fd_ExampleTable_ts protoreflect . FieldDescriptor
fd_ExampleTable_dur protoreflect . FieldDescriptor
fd_ExampleTable_i32 protoreflect . FieldDescriptor
fd_ExampleTable_s32 protoreflect . FieldDescriptor
fd_ExampleTable_sf32 protoreflect . FieldDescriptor
fd_ExampleTable_i64 protoreflect . FieldDescriptor
fd_ExampleTable_s64 protoreflect . FieldDescriptor
fd_ExampleTable_sf64 protoreflect . FieldDescriptor
fd_ExampleTable_f32 protoreflect . FieldDescriptor
fd_ExampleTable_f64 protoreflect . FieldDescriptor
fd_ExampleTable_b protoreflect . FieldDescriptor
fd_ExampleTable_e protoreflect . FieldDescriptor
fd_ExampleTable_repeated protoreflect . FieldDescriptor
fd_ExampleTable_map protoreflect . FieldDescriptor
fd_ExampleTable_msg protoreflect . FieldDescriptor
fd_ExampleTable_oneof protoreflect . FieldDescriptor
2021-11-24 10:10:26 -08:00
)
func init ( ) {
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_init ( )
md_ExampleTable = File_testpb_test_schema_proto . Messages ( ) . ByName ( "ExampleTable" )
2022-01-20 08:22:06 -08:00
fd_ExampleTable_u32 = md_ExampleTable . Fields ( ) . ByName ( "u32" )
fd_ExampleTable_u64 = md_ExampleTable . Fields ( ) . ByName ( "u64" )
fd_ExampleTable_str = md_ExampleTable . Fields ( ) . ByName ( "str" )
fd_ExampleTable_bz = md_ExampleTable . Fields ( ) . ByName ( "bz" )
fd_ExampleTable_ts = md_ExampleTable . Fields ( ) . ByName ( "ts" )
fd_ExampleTable_dur = md_ExampleTable . Fields ( ) . ByName ( "dur" )
fd_ExampleTable_i32 = md_ExampleTable . Fields ( ) . ByName ( "i32" )
fd_ExampleTable_s32 = md_ExampleTable . Fields ( ) . ByName ( "s32" )
fd_ExampleTable_sf32 = md_ExampleTable . Fields ( ) . ByName ( "sf32" )
fd_ExampleTable_i64 = md_ExampleTable . Fields ( ) . ByName ( "i64" )
fd_ExampleTable_s64 = md_ExampleTable . Fields ( ) . ByName ( "s64" )
fd_ExampleTable_sf64 = md_ExampleTable . Fields ( ) . ByName ( "sf64" )
fd_ExampleTable_f32 = md_ExampleTable . Fields ( ) . ByName ( "f32" )
fd_ExampleTable_f64 = md_ExampleTable . Fields ( ) . ByName ( "f64" )
fd_ExampleTable_b = md_ExampleTable . Fields ( ) . ByName ( "b" )
fd_ExampleTable_e = md_ExampleTable . Fields ( ) . ByName ( "e" )
fd_ExampleTable_repeated = md_ExampleTable . Fields ( ) . ByName ( "repeated" )
fd_ExampleTable_map = md_ExampleTable . Fields ( ) . ByName ( "map" )
fd_ExampleTable_msg = md_ExampleTable . Fields ( ) . ByName ( "msg" )
fd_ExampleTable_oneof = md_ExampleTable . Fields ( ) . ByName ( "oneof" )
}
var _ protoreflect . Message = ( * fastReflection_ExampleTable ) ( nil )
type fastReflection_ExampleTable ExampleTable
func ( x * ExampleTable ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_ExampleTable ) ( x )
}
func ( x * ExampleTable ) slowProtoReflect ( ) protoreflect . Message {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 0 ]
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2022-01-20 08:22:06 -08:00
var _fastReflection_ExampleTable_messageType fastReflection_ExampleTable_messageType
var _ protoreflect . MessageType = fastReflection_ExampleTable_messageType { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type fastReflection_ExampleTable_messageType struct { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_ExampleTable ) ( nil )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleTable )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleTable
2021-11-24 10:10:26 -08:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleTable
2021-11-24 10:10:26 -08:00
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Type ( ) protoreflect . MessageType {
return _fastReflection_ExampleTable_messageType
2021-11-24 10:10:26 -08:00
}
// New returns a newly allocated and mutable empty message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleTable )
2021-11-24 10:10:26 -08:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Interface ( ) protoreflect . ProtoMessage {
return ( * ExampleTable ) ( x )
2021-11-24 10:10:26 -08:00
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2021-11-24 10:10:26 -08:00
if x . U32 != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . U32 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_u32 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . U64 != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . U64 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_u64 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Str != "" {
value := protoreflect . ValueOfString ( x . Str )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_str , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if len ( x . Bz ) != 0 {
value := protoreflect . ValueOfBytes ( x . Bz )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_bz , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Ts != nil {
value := protoreflect . ValueOfMessage ( x . Ts . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_ts , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Dur != nil {
value := protoreflect . ValueOfMessage ( x . Dur . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_dur , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . I32 != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . I32 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_i32 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . S32 != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . S32 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_s32 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Sf32 != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . Sf32 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_sf32 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . I64 != int64 ( 0 ) {
value := protoreflect . ValueOfInt64 ( x . I64 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_i64 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . S64 != int64 ( 0 ) {
value := protoreflect . ValueOfInt64 ( x . S64 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_s64 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Sf64 != int64 ( 0 ) {
value := protoreflect . ValueOfInt64 ( x . Sf64 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_sf64 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . F32 != uint32 ( 0 ) {
value := protoreflect . ValueOfUint32 ( x . F32 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_f32 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . F64 != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . F64 )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_f64 , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . B != false {
value := protoreflect . ValueOfBool ( x . B )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_b , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . E != 0 {
value := protoreflect . ValueOfEnum ( ( protoreflect . EnumNumber ) ( x . E ) )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_e , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if len ( x . Repeated ) != 0 {
2022-01-20 08:22:06 -08:00
value := protoreflect . ValueOfList ( & _ExampleTable_17_list { list : & x . Repeated } )
if ! f ( fd_ExampleTable_repeated , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if len ( x . Map ) != 0 {
2022-01-20 08:22:06 -08:00
value := protoreflect . ValueOfMap ( & _ExampleTable_18_map { m : & x . Map } )
if ! f ( fd_ExampleTable_map , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Msg != nil {
value := protoreflect . ValueOfMessage ( x . Msg . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_msg , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . Sum != nil {
switch o := x . Sum . ( type ) {
2022-01-20 08:22:06 -08:00
case * ExampleTable_Oneof :
2021-11-24 10:10:26 -08:00
v := o . Oneof
value := protoreflect . ValueOfUint32 ( v )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleTable_oneof , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Has ( fd protoreflect . FieldDescriptor ) bool {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
2021-11-24 10:10:26 -08:00
return x . U32 != uint32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u64" :
2021-11-24 10:10:26 -08:00
return x . U64 != uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.str" :
2021-11-24 10:10:26 -08:00
return x . Str != ""
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.bz" :
2021-11-24 10:10:26 -08:00
return len ( x . Bz ) != 0
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
return x . Ts != nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
return x . Dur != nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i32" :
2021-11-24 10:10:26 -08:00
return x . I32 != int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s32" :
2021-11-24 10:10:26 -08:00
return x . S32 != int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf32" :
2021-11-24 10:10:26 -08:00
return x . Sf32 != int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i64" :
2021-11-24 10:10:26 -08:00
return x . I64 != int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s64" :
2021-11-24 10:10:26 -08:00
return x . S64 != int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf64" :
2021-11-24 10:10:26 -08:00
return x . Sf64 != int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f32" :
2021-11-24 10:10:26 -08:00
return x . F32 != uint32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f64" :
2021-11-24 10:10:26 -08:00
return x . F64 != uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.b" :
2021-11-24 10:10:26 -08:00
return x . B != false
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.e" :
2021-11-24 10:10:26 -08:00
return x . E != 0
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
return len ( x . Repeated ) != 0
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
return len ( x . Map ) != 0
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.msg" :
2021-11-24 10:10:26 -08:00
return x . Msg != nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.oneof" :
2021-11-24 10:10:26 -08:00
if x . Sum == nil {
return false
2022-01-20 08:22:06 -08:00
} else if _ , ok := x . Sum . ( * ExampleTable_Oneof ) ; ok {
2021-11-24 10:10:26 -08:00
return true
} else {
return false
}
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Clear ( fd protoreflect . FieldDescriptor ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
2021-11-24 10:10:26 -08:00
x . U32 = uint32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u64" :
2021-11-24 10:10:26 -08:00
x . U64 = uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.str" :
2021-11-24 10:10:26 -08:00
x . Str = ""
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.bz" :
2021-11-24 10:10:26 -08:00
x . Bz = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
x . Ts = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
x . Dur = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i32" :
2021-11-24 10:10:26 -08:00
x . I32 = int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s32" :
2021-11-24 10:10:26 -08:00
x . S32 = int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf32" :
2021-11-24 10:10:26 -08:00
x . Sf32 = int32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i64" :
2021-11-24 10:10:26 -08:00
x . I64 = int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s64" :
2021-11-24 10:10:26 -08:00
x . S64 = int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf64" :
2021-11-24 10:10:26 -08:00
x . Sf64 = int64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f32" :
2021-11-24 10:10:26 -08:00
x . F32 = uint32 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f64" :
2021-11-24 10:10:26 -08:00
x . F64 = uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.b" :
2021-11-24 10:10:26 -08:00
x . B = false
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.e" :
2021-11-24 10:10:26 -08:00
x . E = 0
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
x . Repeated = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
x . Map = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.msg" :
2021-11-24 10:10:26 -08:00
x . Msg = nil
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.oneof" :
2021-11-24 10:10:26 -08:00
x . Sum = nil
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch descriptor . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
2021-11-24 10:10:26 -08:00
value := x . U32
return protoreflect . ValueOfUint32 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u64" :
2021-11-24 10:10:26 -08:00
value := x . U64
return protoreflect . ValueOfUint64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.str" :
2021-11-24 10:10:26 -08:00
value := x . Str
return protoreflect . ValueOfString ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.bz" :
2021-11-24 10:10:26 -08:00
value := x . Bz
return protoreflect . ValueOfBytes ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
value := x . Ts
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
value := x . Dur
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i32" :
2021-11-24 10:10:26 -08:00
value := x . I32
return protoreflect . ValueOfInt32 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s32" :
2021-11-24 10:10:26 -08:00
value := x . S32
return protoreflect . ValueOfInt32 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf32" :
2021-11-24 10:10:26 -08:00
value := x . Sf32
return protoreflect . ValueOfInt32 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i64" :
2021-11-24 10:10:26 -08:00
value := x . I64
return protoreflect . ValueOfInt64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s64" :
2021-11-24 10:10:26 -08:00
value := x . S64
return protoreflect . ValueOfInt64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf64" :
2021-11-24 10:10:26 -08:00
value := x . Sf64
return protoreflect . ValueOfInt64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f32" :
2021-11-24 10:10:26 -08:00
value := x . F32
return protoreflect . ValueOfUint32 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f64" :
2021-11-24 10:10:26 -08:00
value := x . F64
return protoreflect . ValueOfUint64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.b" :
2021-11-24 10:10:26 -08:00
value := x . B
return protoreflect . ValueOfBool ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.e" :
2021-11-24 10:10:26 -08:00
value := x . E
return protoreflect . ValueOfEnum ( ( protoreflect . EnumNumber ) ( value ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
if len ( x . Repeated ) == 0 {
2022-01-20 08:22:06 -08:00
return protoreflect . ValueOfList ( & _ExampleTable_17_list { } )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
listValue := & _ExampleTable_17_list { list : & x . Repeated }
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfList ( listValue )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
if len ( x . Map ) == 0 {
2022-01-20 08:22:06 -08:00
return protoreflect . ValueOfMap ( & _ExampleTable_18_map { } )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
mapValue := & _ExampleTable_18_map { m : & x . Map }
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfMap ( mapValue )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.msg" :
2021-11-24 10:10:26 -08:00
value := x . Msg
return protoreflect . ValueOfMessage ( value . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.oneof" :
2021-11-24 10:10:26 -08:00
if x . Sum == nil {
return protoreflect . ValueOfUint32 ( uint32 ( 0 ) )
2022-01-20 08:22:06 -08:00
} else if v , ok := x . Sum . ( * ExampleTable_Oneof ) ; ok {
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint32 ( v . Oneof )
} else {
return protoreflect . ValueOfUint32 ( uint32 ( 0 ) )
}
default :
if descriptor . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , descriptor . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
2021-11-24 10:10:26 -08:00
x . U32 = uint32 ( value . Uint ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u64" :
2021-11-24 10:10:26 -08:00
x . U64 = value . Uint ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.str" :
2021-11-24 10:10:26 -08:00
x . Str = value . Interface ( ) . ( string )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.bz" :
2021-11-24 10:10:26 -08:00
x . Bz = value . Bytes ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
x . Ts = value . Message ( ) . Interface ( ) . ( * timestamppb . Timestamp )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
x . Dur = value . Message ( ) . Interface ( ) . ( * durationpb . Duration )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i32" :
2021-11-24 10:10:26 -08:00
x . I32 = int32 ( value . Int ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s32" :
2021-11-24 10:10:26 -08:00
x . S32 = int32 ( value . Int ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf32" :
2021-11-24 10:10:26 -08:00
x . Sf32 = int32 ( value . Int ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i64" :
2021-11-24 10:10:26 -08:00
x . I64 = value . Int ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s64" :
2021-11-24 10:10:26 -08:00
x . S64 = value . Int ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf64" :
2021-11-24 10:10:26 -08:00
x . Sf64 = value . Int ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f32" :
2021-11-24 10:10:26 -08:00
x . F32 = uint32 ( value . Uint ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f64" :
2021-11-24 10:10:26 -08:00
x . F64 = value . Uint ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.b" :
2021-11-24 10:10:26 -08:00
x . B = value . Bool ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.e" :
2021-11-24 10:10:26 -08:00
x . E = ( Enum ) ( value . Enum ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
lv := value . List ( )
2022-01-20 08:22:06 -08:00
clv := lv . ( * _ExampleTable_17_list )
2021-11-24 10:10:26 -08:00
x . Repeated = * clv . list
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
mv := value . Map ( )
2022-01-20 08:22:06 -08:00
cmv := mv . ( * _ExampleTable_18_map )
2021-11-24 10:10:26 -08:00
x . Map = * cmv . m
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.msg" :
x . Msg = value . Message ( ) . Interface ( ) . ( * ExampleTable_ExampleMessage )
case "testpb.ExampleTable.oneof" :
2021-11-24 10:10:26 -08:00
cv := uint32 ( value . Uint ( ) )
2022-01-20 08:22:06 -08:00
x . Sum = & ExampleTable_Oneof { Oneof : cv }
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
if x . Ts == nil {
x . Ts = new ( timestamppb . Timestamp )
}
return protoreflect . ValueOfMessage ( x . Ts . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
if x . Dur == nil {
x . Dur = new ( durationpb . Duration )
}
return protoreflect . ValueOfMessage ( x . Dur . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
if x . Repeated == nil {
x . Repeated = [ ] uint32 { }
}
2022-01-20 08:22:06 -08:00
value := & _ExampleTable_17_list { list : & x . Repeated }
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfList ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
if x . Map == nil {
x . Map = make ( map [ string ] uint32 )
}
2022-01-20 08:22:06 -08:00
value := & _ExampleTable_18_map { m : & x . Map }
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfMap ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.msg" :
2021-11-24 10:10:26 -08:00
if x . Msg == nil {
2022-01-20 08:22:06 -08:00
x . Msg = new ( ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
}
return protoreflect . ValueOfMessage ( x . Msg . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
panic ( fmt . Errorf ( "field u32 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.u64" :
panic ( fmt . Errorf ( "field u64 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.str" :
panic ( fmt . Errorf ( "field str of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.bz" :
panic ( fmt . Errorf ( "field bz of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.i32" :
panic ( fmt . Errorf ( "field i32 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.s32" :
panic ( fmt . Errorf ( "field s32 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.sf32" :
panic ( fmt . Errorf ( "field sf32 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.i64" :
panic ( fmt . Errorf ( "field i64 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.s64" :
panic ( fmt . Errorf ( "field s64 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.sf64" :
panic ( fmt . Errorf ( "field sf64 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.f32" :
panic ( fmt . Errorf ( "field f32 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.f64" :
panic ( fmt . Errorf ( "field f64 of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.b" :
panic ( fmt . Errorf ( "field b of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.e" :
panic ( fmt . Errorf ( "field e of message testpb.ExampleTable is not mutable" ) )
case "testpb.ExampleTable.oneof" :
panic ( fmt . Errorf ( "field oneof of message testpb.ExampleTable is not mutable" ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u32" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint32 ( uint32 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.u64" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint64 ( uint64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.str" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfString ( "" )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.bz" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfBytes ( nil )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ts" :
2021-11-24 10:10:26 -08:00
m := new ( timestamppb . Timestamp )
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.dur" :
2021-11-24 10:10:26 -08:00
m := new ( durationpb . Duration )
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i32" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s32" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf32" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.i64" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt64 ( int64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.s64" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt64 ( int64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sf64" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfInt64 ( int64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f32" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint32 ( uint32 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.f64" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint64 ( uint64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.b" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfBool ( false )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.e" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfEnum ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.repeated" :
2021-11-24 10:10:26 -08:00
list := [ ] uint32 { }
2022-01-20 08:22:06 -08:00
return protoreflect . ValueOfList ( & _ExampleTable_17_list { list : & list } )
case "testpb.ExampleTable.map" :
2021-11-24 10:10:26 -08:00
m := make ( map [ string ] uint32 )
2022-01-20 08:22:06 -08:00
return protoreflect . ValueOfMap ( & _ExampleTable_18_map { m : & m } )
case "testpb.ExampleTable.msg" :
m := new ( ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfMessage ( m . ProtoReflect ( ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.oneof" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint32 ( uint32 ( 0 ) )
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2021-11-24 10:10:26 -08:00
switch d . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.sum" :
2021-11-24 10:10:26 -08:00
if x . Sum == nil {
return nil
}
switch x . Sum . ( type ) {
2022-01-20 08:22:06 -08:00
case * ExampleTable_Oneof :
2021-11-24 10:10:26 -08:00
return x . Descriptor ( ) . Fields ( ) . ByName ( "oneof" )
}
default :
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "%s is not a oneof field in testpb.ExampleTable" , d . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) GetUnknown ( ) protoreflect . RawFields {
2021-11-24 10:10:26 -08:00
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) SetUnknown ( fields protoreflect . RawFields ) {
2021-11-24 10:10:26 -08:00
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) IsValid ( ) bool {
2021-11-24 10:10:26 -08:00
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable ) ProtoMethods ( ) * protoiface . Methods {
2021-11-24 10:10:26 -08:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . U32 != 0 {
n += 1 + runtime . Sov ( uint64 ( x . U32 ) )
}
if x . U64 != 0 {
n += 1 + runtime . Sov ( uint64 ( x . U64 ) )
}
l = len ( x . Str )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
l = len ( x . Bz )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . Ts != nil {
l = options . Size ( x . Ts )
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . Dur != nil {
l = options . Size ( x . Dur )
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . I32 != 0 {
n += 1 + runtime . Sov ( uint64 ( x . I32 ) )
}
if x . S32 != 0 {
n += 1 + runtime . Soz ( uint64 ( x . S32 ) )
}
if x . Sf32 != 0 {
n += 5
}
if x . I64 != 0 {
n += 1 + runtime . Sov ( uint64 ( x . I64 ) )
}
if x . S64 != 0 {
n += 1 + runtime . Soz ( uint64 ( x . S64 ) )
}
if x . Sf64 != 0 {
n += 9
}
if x . F32 != 0 {
n += 5
}
if x . F64 != 0 {
n += 9
}
if x . B {
n += 2
}
if x . E != 0 {
n += 2 + runtime . Sov ( uint64 ( x . E ) )
}
if len ( x . Repeated ) > 0 {
l = 0
for _ , e := range x . Repeated {
l += runtime . Sov ( uint64 ( e ) )
}
n += 2 + runtime . Sov ( uint64 ( l ) ) + l
}
if len ( x . Map ) > 0 {
SiZeMaP := func ( k string , v uint32 ) {
mapEntrySize := 1 + len ( k ) + runtime . Sov ( uint64 ( len ( k ) ) ) + 1 + runtime . Sov ( uint64 ( v ) )
n += mapEntrySize + 2 + runtime . Sov ( uint64 ( mapEntrySize ) )
}
if options . Deterministic {
sortme := make ( [ ] string , 0 , len ( x . Map ) )
for k := range x . Map {
sortme = append ( sortme , k )
}
sort . Strings ( sortme )
for _ , k := range sortme {
v := x . Map [ k ]
SiZeMaP ( k , v )
}
} else {
for k , v := range x . Map {
SiZeMaP ( k , v )
}
}
}
if x . Msg != nil {
l = options . Size ( x . Msg )
n += 2 + l + runtime . Sov ( uint64 ( l ) )
}
switch x := x . Sum . ( type ) {
2022-01-20 08:22:06 -08:00
case * ExampleTable_Oneof :
2021-11-24 10:10:26 -08:00
if x == nil {
break
}
n += 2 + runtime . Sov ( uint64 ( x . Oneof ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ( [ ] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i : ] , x . unknownFields )
}
switch x := x . Sum . ( type ) {
2022-01-20 08:22:06 -08:00
case * ExampleTable_Oneof :
2021-11-24 10:10:26 -08:00
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Oneof ) )
i --
dAtA [ i ] = 0x1
i --
dAtA [ i ] = 0xa0
}
if x . Msg != nil {
encoded , err := options . Marshal ( x . Msg )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , err
}
i -= len ( encoded )
copy ( dAtA [ i : ] , encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded ) ) )
i --
dAtA [ i ] = 0x1
i --
dAtA [ i ] = 0x9a
}
if len ( x . Map ) > 0 {
MaRsHaLmAp := func ( k string , v uint32 ) ( protoiface . MarshalOutput , error ) {
baseI := i
i = runtime . EncodeVarint ( dAtA , i , uint64 ( v ) )
i --
dAtA [ i ] = 0x10
i -= len ( k )
copy ( dAtA [ i : ] , k )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( k ) ) )
i --
dAtA [ i ] = 0xa
i = runtime . EncodeVarint ( dAtA , i , uint64 ( baseI - i ) )
i --
dAtA [ i ] = 0x1
i --
dAtA [ i ] = 0x92
return protoiface . MarshalOutput { } , nil
}
if options . Deterministic {
keysForMap := make ( [ ] string , 0 , len ( x . Map ) )
for k := range x . Map {
keysForMap = append ( keysForMap , string ( k ) )
}
sort . Slice ( keysForMap , func ( i , j int ) bool {
return keysForMap [ i ] < keysForMap [ j ]
} )
for iNdEx := len ( keysForMap ) - 1 ; iNdEx >= 0 ; iNdEx -- {
v := x . Map [ string ( keysForMap [ iNdEx ] ) ]
out , err := MaRsHaLmAp ( keysForMap [ iNdEx ] , v )
if err != nil {
return out , err
}
}
} else {
for k := range x . Map {
v := x . Map [ k ]
out , err := MaRsHaLmAp ( k , v )
if err != nil {
return out , err
}
}
}
}
if len ( x . Repeated ) > 0 {
var pksize2 int
for _ , num := range x . Repeated {
pksize2 += runtime . Sov ( uint64 ( num ) )
}
i -= pksize2
j1 := i
for _ , num := range x . Repeated {
for num >= 1 << 7 {
dAtA [ j1 ] = uint8 ( uint64 ( num ) & 0x7f | 0x80 )
num >>= 7
j1 ++
}
dAtA [ j1 ] = uint8 ( num )
j1 ++
}
i = runtime . EncodeVarint ( dAtA , i , uint64 ( pksize2 ) )
i --
dAtA [ i ] = 0x1
i --
dAtA [ i ] = 0x8a
}
if x . E != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . E ) )
i --
dAtA [ i ] = 0x1
i --
dAtA [ i ] = 0x80
}
if x . B {
i --
if x . B {
dAtA [ i ] = 1
} else {
dAtA [ i ] = 0
}
i --
dAtA [ i ] = 0x78
}
if x . F64 != 0 {
i -= 8
binary . LittleEndian . PutUint64 ( dAtA [ i : ] , uint64 ( x . F64 ) )
i --
dAtA [ i ] = 0x71
}
if x . F32 != 0 {
i -= 4
binary . LittleEndian . PutUint32 ( dAtA [ i : ] , uint32 ( x . F32 ) )
i --
dAtA [ i ] = 0x6d
}
if x . Sf64 != 0 {
i -= 8
binary . LittleEndian . PutUint64 ( dAtA [ i : ] , uint64 ( x . Sf64 ) )
i --
dAtA [ i ] = 0x61
}
if x . S64 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( ( uint64 ( x . S64 ) << 1 ) ^ uint64 ( ( x . S64 >> 63 ) ) ) )
i --
dAtA [ i ] = 0x58
}
if x . I64 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . I64 ) )
i --
dAtA [ i ] = 0x50
}
if x . Sf32 != 0 {
i -= 4
binary . LittleEndian . PutUint32 ( dAtA [ i : ] , uint32 ( x . Sf32 ) )
i --
dAtA [ i ] = 0x4d
}
if x . S32 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( ( uint32 ( x . S32 ) << 1 ) ^ uint32 ( ( x . S32 >> 31 ) ) ) )
i --
dAtA [ i ] = 0x40
}
if x . I32 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . I32 ) )
i --
dAtA [ i ] = 0x38
}
if x . Dur != nil {
encoded , err := options . Marshal ( x . Dur )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , err
}
i -= len ( encoded )
copy ( dAtA [ i : ] , encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded ) ) )
i --
dAtA [ i ] = 0x32
}
if x . Ts != nil {
encoded , err := options . Marshal ( x . Ts )
if err != nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , err
}
i -= len ( encoded )
copy ( dAtA [ i : ] , encoded )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( encoded ) ) )
i --
dAtA [ i ] = 0x2a
}
if len ( x . Bz ) > 0 {
i -= len ( x . Bz )
copy ( dAtA [ i : ] , x . Bz )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Bz ) ) )
i --
dAtA [ i ] = 0x22
}
if len ( x . Str ) > 0 {
i -= len ( x . Str )
copy ( dAtA [ i : ] , x . Str )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Str ) ) )
i --
dAtA [ i ] = 0x1a
}
if x . U64 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . U64 ) )
i --
dAtA [ i ] = 0x10
}
if x . U32 != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . U32 ) )
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
} , nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleTable: wiretype end group for non-group" )
2021-11-24 10:10:26 -08:00
}
if fieldNum <= 0 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleTable: illegal tag %d (wire type %d)" , fieldNum , wire )
2021-11-24 10:10:26 -08:00
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field U32" , wireType )
}
x . U32 = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . U32 |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field U64" , wireType )
}
x . U64 = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . U64 |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 3 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Str" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . Str = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Bz" , wireType )
}
var byteLen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
byteLen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . Bz = append ( x . Bz [ : 0 ] , dAtA [ iNdEx : postIndex ] ... )
if x . Bz == nil {
x . Bz = [ ] byte { }
}
iNdEx = postIndex
case 5 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Ts" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if x . Ts == nil {
x . Ts = & timestamppb . Timestamp { }
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Ts ) ; err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
iNdEx = postIndex
case 6 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Dur" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if x . Dur == nil {
x . Dur = & durationpb . Duration { }
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Dur ) ; err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
iNdEx = postIndex
case 7 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field I32" , wireType )
}
x . I32 = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . I32 |= int32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 8 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field S32" , wireType )
}
var v int32
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
v = int32 ( ( uint32 ( v ) >> 1 ) ^ uint32 ( ( ( v & 1 ) << 31 ) >> 31 ) )
x . S32 = v
case 9 :
if wireType != 5 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Sf32" , wireType )
}
x . Sf32 = 0
if ( iNdEx + 4 ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . Sf32 = int32 ( binary . LittleEndian . Uint32 ( dAtA [ iNdEx : ] ) )
iNdEx += 4
case 10 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field I64" , wireType )
}
x . I64 = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . I64 |= int64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 11 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field S64" , wireType )
}
var v uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
v = ( v >> 1 ) ^ uint64 ( ( int64 ( v & 1 ) << 63 ) >> 63 )
x . S64 = int64 ( v )
case 12 :
if wireType != 1 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Sf64" , wireType )
}
x . Sf64 = 0
if ( iNdEx + 8 ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . Sf64 = int64 ( binary . LittleEndian . Uint64 ( dAtA [ iNdEx : ] ) )
iNdEx += 8
case 13 :
if wireType != 5 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field F32" , wireType )
}
x . F32 = 0
if ( iNdEx + 4 ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . F32 = uint32 ( binary . LittleEndian . Uint32 ( dAtA [ iNdEx : ] ) )
iNdEx += 4
case 14 :
if wireType != 1 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field F64" , wireType )
}
x . F64 = 0
if ( iNdEx + 8 ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . F64 = uint64 ( binary . LittleEndian . Uint64 ( dAtA [ iNdEx : ] ) )
iNdEx += 8
case 15 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field B" , wireType )
}
var v int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . B = bool ( v != 0 )
case 16 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field E" , wireType )
}
x . E = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . E |= Enum ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 17 :
if wireType == 0 {
var v uint32
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . Repeated = append ( x . Repeated , v )
} else if wireType == 2 {
var packedLen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
packedLen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if packedLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + packedLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
var elementCount int
var count int
for _ , integer := range dAtA [ iNdEx : postIndex ] {
if integer < 128 {
count ++
}
}
elementCount = count
if elementCount != 0 && len ( x . Repeated ) == 0 {
x . Repeated = make ( [ ] uint32 , 0 , elementCount )
}
for iNdEx < postIndex {
var v uint32
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
x . Repeated = append ( x . Repeated , v )
}
} else {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Repeated" , wireType )
}
case 18 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Map" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if x . Map == nil {
x . Map = make ( map [ string ] uint32 )
}
var mapkey string
var mapvalue uint32
for iNdEx < postIndex {
entryPreIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
if fieldNum == 1 {
var stringLenmapkey uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLenmapkey |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLenmapkey := int ( stringLenmapkey )
if intStringLenmapkey < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postStringIndexmapkey := iNdEx + intStringLenmapkey
if postStringIndexmapkey < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postStringIndexmapkey > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
mapkey = string ( dAtA [ iNdEx : postStringIndexmapkey ] )
iNdEx = postStringIndexmapkey
} else if fieldNum == 2 {
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
mapvalue |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
} else {
iNdEx = entryPreIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > postIndex {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
iNdEx += skippy
}
}
x . Map [ mapkey ] = mapvalue
iNdEx = postIndex
case 19 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Msg" , wireType )
}
var msglen int
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
msglen |= int ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if x . Msg == nil {
2022-01-20 08:22:06 -08:00
x . Msg = & ExampleTable_ExampleMessage { }
2021-11-24 10:10:26 -08:00
}
if err := options . Unmarshal ( dAtA [ iNdEx : postIndex ] , x . Msg ) ; err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
iNdEx = postIndex
case 20 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Oneof" , wireType )
}
var v uint32
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
v |= uint32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
2022-01-20 08:22:06 -08:00
x . Sum = & ExampleTable_Oneof { v }
2021-11-24 10:10:26 -08:00
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
2022-01-20 08:22:06 -08:00
md_ExampleTable_ExampleMessage protoreflect . MessageDescriptor
fd_ExampleTable_ExampleMessage_foo protoreflect . FieldDescriptor
fd_ExampleTable_ExampleMessage_bar protoreflect . FieldDescriptor
2021-11-24 10:10:26 -08:00
)
func init ( ) {
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_init ( )
md_ExampleTable_ExampleMessage = File_testpb_test_schema_proto . Messages ( ) . ByName ( "ExampleTable" ) . Messages ( ) . ByName ( "ExampleMessage" )
2022-01-20 08:22:06 -08:00
fd_ExampleTable_ExampleMessage_foo = md_ExampleTable_ExampleMessage . Fields ( ) . ByName ( "foo" )
fd_ExampleTable_ExampleMessage_bar = md_ExampleTable_ExampleMessage . Fields ( ) . ByName ( "bar" )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
var _ protoreflect . Message = ( * fastReflection_ExampleTable_ExampleMessage ) ( nil )
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type fastReflection_ExampleTable_ExampleMessage ExampleTable_ExampleMessage
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable_ExampleMessage ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_ExampleTable_ExampleMessage ) ( x )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable_ExampleMessage ) slowProtoReflect ( ) protoreflect . Message {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 4 ]
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2022-01-20 08:22:06 -08:00
var _fastReflection_ExampleTable_ExampleMessage_messageType fastReflection_ExampleTable_ExampleMessage_messageType
var _ protoreflect . MessageType = fastReflection_ExampleTable_ExampleMessage_messageType { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type fastReflection_ExampleTable_ExampleMessage_messageType struct { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_ExampleMessage_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_ExampleTable_ExampleMessage ) ( nil )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_ExampleMessage_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleTable_ExampleMessage_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleTable_ExampleMessage
2021-11-24 10:10:26 -08:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleTable_ExampleMessage
2021-11-24 10:10:26 -08:00
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Type ( ) protoreflect . MessageType {
return _fastReflection_ExampleTable_ExampleMessage_messageType
2021-11-24 10:10:26 -08:00
}
// New returns a newly allocated and mutable empty message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Interface ( ) protoreflect . ProtoMessage {
return ( * ExampleTable_ExampleMessage ) ( x )
2021-11-24 10:10:26 -08:00
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Foo != "" {
value := protoreflect . ValueOfString ( x . Foo )
if ! f ( fd_ExampleTable_ExampleMessage_foo , value ) {
return
}
}
if x . Bar != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . Bar )
if ! f ( fd_ExampleTable_ExampleMessage_bar , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Has ( fd protoreflect . FieldDescriptor ) bool {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
return x . Foo != ""
case "testpb.ExampleTable.ExampleMessage.bar" :
return x . Bar != int32 ( 0 )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Clear ( fd protoreflect . FieldDescriptor ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
x . Foo = ""
case "testpb.ExampleTable.ExampleMessage.bar" :
x . Bar = int32 ( 0 )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch descriptor . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
value := x . Foo
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfString ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.bar" :
value := x . Bar
return protoreflect . ValueOfInt32 ( value )
2021-11-24 10:10:26 -08:00
default :
if descriptor . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , descriptor . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
x . Foo = value . Interface ( ) . ( string )
case "testpb.ExampleTable.ExampleMessage.bar" :
x . Bar = int32 ( value . Int ( ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
panic ( fmt . Errorf ( "field foo of message testpb.ExampleTable.ExampleMessage is not mutable" ) )
case "testpb.ExampleTable.ExampleMessage.bar" :
panic ( fmt . Errorf ( "field bar of message testpb.ExampleTable.ExampleMessage is not mutable" ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.foo" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfString ( "" )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleTable.ExampleMessage.bar" :
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleTable.ExampleMessage" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleTable.ExampleMessage does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2021-11-24 10:10:26 -08:00
switch d . FullName ( ) {
default :
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "%s is not a oneof field in testpb.ExampleTable.ExampleMessage" , d . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) GetUnknown ( ) protoreflect . RawFields {
2021-11-24 10:10:26 -08:00
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) SetUnknown ( fields protoreflect . RawFields ) {
2021-11-24 10:10:26 -08:00
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) IsValid ( ) bool {
2021-11-24 10:10:26 -08:00
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleTable_ExampleMessage ) ProtoMethods ( ) * protoiface . Methods {
2021-11-24 10:10:26 -08:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
2022-01-20 08:22:06 -08:00
l = len ( x . Foo )
2021-11-24 10:10:26 -08:00
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2022-01-20 08:22:06 -08:00
if x . Bar != 0 {
n += 1 + runtime . Sov ( uint64 ( x . Bar ) )
}
2021-11-24 10:10:26 -08:00
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ( [ ] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i : ] , x . unknownFields )
}
2022-01-20 08:22:06 -08:00
if x . Bar != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Bar ) )
i --
dAtA [ i ] = 0x10
}
if len ( x . Foo ) > 0 {
i -= len ( x . Foo )
copy ( dAtA [ i : ] , x . Foo )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Foo ) ) )
2021-11-24 10:10:26 -08:00
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleTable_ExampleMessage )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
} , nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleTable_ExampleMessage: wiretype end group for non-group" )
2021-11-24 10:10:26 -08:00
}
if fieldNum <= 0 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleTable_ExampleMessage: illegal tag %d (wire type %d)" , fieldNum , wire )
2021-11-24 10:10:26 -08:00
}
switch fieldNum {
case 1 :
if wireType != 2 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Foo" , wireType )
2021-11-24 10:10:26 -08:00
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
2022-01-20 08:22:06 -08:00
x . Foo = string ( dAtA [ iNdEx : postIndex ] )
2021-11-24 10:10:26 -08:00
iNdEx = postIndex
2022-01-20 08:22:06 -08:00
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Bar" , wireType )
}
x . Bar = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . Bar |= int32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
2021-11-24 10:10:26 -08:00
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
2022-01-20 08:22:06 -08:00
md_ExampleAutoIncrementTable protoreflect . MessageDescriptor
fd_ExampleAutoIncrementTable_id protoreflect . FieldDescriptor
fd_ExampleAutoIncrementTable_x protoreflect . FieldDescriptor
fd_ExampleAutoIncrementTable_y protoreflect . FieldDescriptor
2021-11-24 10:10:26 -08:00
)
func init ( ) {
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_init ( )
md_ExampleAutoIncrementTable = File_testpb_test_schema_proto . Messages ( ) . ByName ( "ExampleAutoIncrementTable" )
2022-01-20 08:22:06 -08:00
fd_ExampleAutoIncrementTable_id = md_ExampleAutoIncrementTable . Fields ( ) . ByName ( "id" )
fd_ExampleAutoIncrementTable_x = md_ExampleAutoIncrementTable . Fields ( ) . ByName ( "x" )
fd_ExampleAutoIncrementTable_y = md_ExampleAutoIncrementTable . Fields ( ) . ByName ( "y" )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
var _ protoreflect . Message = ( * fastReflection_ExampleAutoIncrementTable ) ( nil )
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type fastReflection_ExampleAutoIncrementTable ExampleAutoIncrementTable
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_ExampleAutoIncrementTable ) ( x )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) slowProtoReflect ( ) protoreflect . Message {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 1 ]
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2022-01-20 08:22:06 -08:00
var _fastReflection_ExampleAutoIncrementTable_messageType fastReflection_ExampleAutoIncrementTable_messageType
var _ protoreflect . MessageType = fastReflection_ExampleAutoIncrementTable_messageType { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type fastReflection_ExampleAutoIncrementTable_messageType struct { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleAutoIncrementTable_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_ExampleAutoIncrementTable ) ( nil )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleAutoIncrementTable_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleAutoIncrementTable )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x fastReflection_ExampleAutoIncrementTable_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleAutoIncrementTable
2021-11-24 10:10:26 -08:00
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleAutoIncrementTable
2021-11-24 10:10:26 -08:00
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Type ( ) protoreflect . MessageType {
return _fastReflection_ExampleAutoIncrementTable_messageType
2021-11-24 10:10:26 -08:00
}
// New returns a newly allocated and mutable empty message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleAutoIncrementTable )
2021-11-24 10:10:26 -08:00
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Interface ( ) protoreflect . ProtoMessage {
return ( * ExampleAutoIncrementTable ) ( x )
2021-11-24 10:10:26 -08:00
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
2021-11-24 10:10:26 -08:00
if x . Id != uint64 ( 0 ) {
value := protoreflect . ValueOfUint64 ( x . Id )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleAutoIncrementTable_id , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
if x . X != "" {
value := protoreflect . ValueOfString ( x . X )
2022-01-20 08:22:06 -08:00
if ! f ( fd_ExampleAutoIncrementTable_x , value ) {
return
}
}
if x . Y != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . Y )
if ! f ( fd_ExampleAutoIncrementTable_y , value ) {
2021-11-24 10:10:26 -08:00
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Has ( fd protoreflect . FieldDescriptor ) bool {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
2021-11-24 10:10:26 -08:00
return x . Id != uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.x" :
2021-11-24 10:10:26 -08:00
return x . X != ""
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.y" :
return x . Y != int32 ( 0 )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Clear ( fd protoreflect . FieldDescriptor ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
2021-11-24 10:10:26 -08:00
x . Id = uint64 ( 0 )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.x" :
2021-11-24 10:10:26 -08:00
x . X = ""
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.y" :
x . Y = int32 ( 0 )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch descriptor . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
2021-11-24 10:10:26 -08:00
value := x . Id
return protoreflect . ValueOfUint64 ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.x" :
2021-11-24 10:10:26 -08:00
value := x . X
return protoreflect . ValueOfString ( value )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.y" :
value := x . Y
return protoreflect . ValueOfInt32 ( value )
2021-11-24 10:10:26 -08:00
default :
if descriptor . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , descriptor . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
2021-11-24 10:10:26 -08:00
x . Id = value . Uint ( )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.x" :
2021-11-24 10:10:26 -08:00
x . X = value . Interface ( ) . ( string )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.y" :
x . Y = int32 ( value . Int ( ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
panic ( fmt . Errorf ( "field id of message testpb.ExampleAutoIncrementTable is not mutable" ) )
case "testpb.ExampleAutoIncrementTable.x" :
panic ( fmt . Errorf ( "field x of message testpb.ExampleAutoIncrementTable is not mutable" ) )
case "testpb.ExampleAutoIncrementTable.y" :
panic ( fmt . Errorf ( "field y of message testpb.ExampleAutoIncrementTable is not mutable" ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
2021-11-24 10:10:26 -08:00
switch fd . FullName ( ) {
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.id" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfUint64 ( uint64 ( 0 ) )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.x" :
2021-11-24 10:10:26 -08:00
return protoreflect . ValueOfString ( "" )
2022-01-20 08:22:06 -08:00
case "testpb.ExampleAutoIncrementTable.y" :
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
2021-11-24 10:10:26 -08:00
default :
if fd . IsExtension ( ) {
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleAutoIncrementTable" ) )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "message testpb.ExampleAutoIncrementTable does not contain field %s" , fd . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
2021-11-24 10:10:26 -08:00
switch d . FullName ( ) {
default :
2022-01-20 08:22:06 -08:00
panic ( fmt . Errorf ( "%s is not a oneof field in testpb.ExampleAutoIncrementTable" , d . FullName ( ) ) )
2021-11-24 10:10:26 -08:00
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) GetUnknown ( ) protoreflect . RawFields {
2021-11-24 10:10:26 -08:00
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) SetUnknown ( fields protoreflect . RawFields ) {
2021-11-24 10:10:26 -08:00
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) IsValid ( ) bool {
2021-11-24 10:10:26 -08:00
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
2022-01-20 08:22:06 -08:00
func ( x * fastReflection_ExampleAutoIncrementTable ) ProtoMethods ( ) * protoiface . Methods {
2021-11-24 10:10:26 -08:00
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleAutoIncrementTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
if x . Id != 0 {
n += 1 + runtime . Sov ( uint64 ( x . Id ) )
}
l = len ( x . X )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
2022-01-20 08:22:06 -08:00
if x . Y != 0 {
n += 1 + runtime . Sov ( uint64 ( x . Y ) )
}
2021-11-24 10:10:26 -08:00
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleAutoIncrementTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ( [ ] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i : ] , x . unknownFields )
}
2022-01-20 08:22:06 -08:00
if x . Y != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Y ) )
i --
dAtA [ i ] = 0x18
}
2021-11-24 10:10:26 -08:00
if len ( x . X ) > 0 {
i -= len ( x . X )
copy ( dAtA [ i : ] , x . X )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . X ) ) )
i --
dAtA [ i ] = 0x12
}
if x . Id != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Id ) )
i --
dAtA [ i ] = 0x8
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
2022-01-20 08:22:06 -08:00
x := input . Message . Interface ( ) . ( * ExampleAutoIncrementTable )
2021-11-24 10:10:26 -08:00
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
} , nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleAutoIncrementTable: wiretype end group for non-group" )
2021-11-24 10:10:26 -08:00
}
if fieldNum <= 0 {
2022-01-20 08:22:06 -08:00
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleAutoIncrementTable: illegal tag %d (wire type %d)" , fieldNum , wire )
2021-11-24 10:10:26 -08:00
}
switch fieldNum {
case 1 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Id" , wireType )
}
x . Id = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . Id |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field X" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . X = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
2022-01-20 08:22:06 -08:00
case 3 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Y" , wireType )
}
x . Y = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . Y |= int32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
var (
md_ExampleSingleton protoreflect . MessageDescriptor
fd_ExampleSingleton_foo protoreflect . FieldDescriptor
fd_ExampleSingleton_bar protoreflect . FieldDescriptor
)
func init ( ) {
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_init ( )
md_ExampleSingleton = File_testpb_test_schema_proto . Messages ( ) . ByName ( "ExampleSingleton" )
2022-01-20 08:22:06 -08:00
fd_ExampleSingleton_foo = md_ExampleSingleton . Fields ( ) . ByName ( "foo" )
fd_ExampleSingleton_bar = md_ExampleSingleton . Fields ( ) . ByName ( "bar" )
}
var _ protoreflect . Message = ( * fastReflection_ExampleSingleton ) ( nil )
type fastReflection_ExampleSingleton ExampleSingleton
func ( x * ExampleSingleton ) ProtoReflect ( ) protoreflect . Message {
return ( * fastReflection_ExampleSingleton ) ( x )
}
func ( x * ExampleSingleton ) slowProtoReflect ( ) protoreflect . Message {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 2 ]
2022-01-20 08:22:06 -08:00
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
var _fastReflection_ExampleSingleton_messageType fastReflection_ExampleSingleton_messageType
var _ protoreflect . MessageType = fastReflection_ExampleSingleton_messageType { }
type fastReflection_ExampleSingleton_messageType struct { }
func ( x fastReflection_ExampleSingleton_messageType ) Zero ( ) protoreflect . Message {
return ( * fastReflection_ExampleSingleton ) ( nil )
}
func ( x fastReflection_ExampleSingleton_messageType ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleSingleton )
}
func ( x fastReflection_ExampleSingleton_messageType ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleSingleton
}
// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func ( x * fastReflection_ExampleSingleton ) Descriptor ( ) protoreflect . MessageDescriptor {
return md_ExampleSingleton
}
// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func ( x * fastReflection_ExampleSingleton ) Type ( ) protoreflect . MessageType {
return _fastReflection_ExampleSingleton_messageType
}
// New returns a newly allocated and mutable empty message.
func ( x * fastReflection_ExampleSingleton ) New ( ) protoreflect . Message {
return new ( fastReflection_ExampleSingleton )
}
// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func ( x * fastReflection_ExampleSingleton ) Interface ( ) protoreflect . ProtoMessage {
return ( * ExampleSingleton ) ( x )
}
// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func ( x * fastReflection_ExampleSingleton ) Range ( f func ( protoreflect . FieldDescriptor , protoreflect . Value ) bool ) {
if x . Foo != "" {
value := protoreflect . ValueOfString ( x . Foo )
if ! f ( fd_ExampleSingleton_foo , value ) {
return
}
}
if x . Bar != int32 ( 0 ) {
value := protoreflect . ValueOfInt32 ( x . Bar )
if ! f ( fd_ExampleSingleton_bar , value ) {
return
}
}
}
// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func ( x * fastReflection_ExampleSingleton ) Has ( fd protoreflect . FieldDescriptor ) bool {
switch fd . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
return x . Foo != ""
case "testpb.ExampleSingleton.bar" :
return x . Bar != int32 ( 0 )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , fd . FullName ( ) ) )
}
}
// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_ExampleSingleton ) Clear ( fd protoreflect . FieldDescriptor ) {
switch fd . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
x . Foo = ""
case "testpb.ExampleSingleton.bar" :
x . Bar = int32 ( 0 )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , fd . FullName ( ) ) )
}
}
// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func ( x * fastReflection_ExampleSingleton ) Get ( descriptor protoreflect . FieldDescriptor ) protoreflect . Value {
switch descriptor . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
value := x . Foo
return protoreflect . ValueOfString ( value )
case "testpb.ExampleSingleton.bar" :
value := x . Bar
return protoreflect . ValueOfInt32 ( value )
default :
if descriptor . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , descriptor . FullName ( ) ) )
}
}
// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_ExampleSingleton ) Set ( fd protoreflect . FieldDescriptor , value protoreflect . Value ) {
switch fd . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
x . Foo = value . Interface ( ) . ( string )
case "testpb.ExampleSingleton.bar" :
x . Bar = int32 ( value . Int ( ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , fd . FullName ( ) ) )
}
}
// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_ExampleSingleton ) Mutable ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
panic ( fmt . Errorf ( "field foo of message testpb.ExampleSingleton is not mutable" ) )
case "testpb.ExampleSingleton.bar" :
panic ( fmt . Errorf ( "field bar of message testpb.ExampleSingleton is not mutable" ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , fd . FullName ( ) ) )
}
}
// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func ( x * fastReflection_ExampleSingleton ) NewField ( fd protoreflect . FieldDescriptor ) protoreflect . Value {
switch fd . FullName ( ) {
case "testpb.ExampleSingleton.foo" :
return protoreflect . ValueOfString ( "" )
case "testpb.ExampleSingleton.bar" :
return protoreflect . ValueOfInt32 ( int32 ( 0 ) )
default :
if fd . IsExtension ( ) {
panic ( fmt . Errorf ( "proto3 declared messages do not support extensions: testpb.ExampleSingleton" ) )
}
panic ( fmt . Errorf ( "message testpb.ExampleSingleton does not contain field %s" , fd . FullName ( ) ) )
}
}
// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func ( x * fastReflection_ExampleSingleton ) WhichOneof ( d protoreflect . OneofDescriptor ) protoreflect . FieldDescriptor {
switch d . FullName ( ) {
default :
panic ( fmt . Errorf ( "%s is not a oneof field in testpb.ExampleSingleton" , d . FullName ( ) ) )
}
panic ( "unreachable" )
}
// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func ( x * fastReflection_ExampleSingleton ) GetUnknown ( ) protoreflect . RawFields {
return x . unknownFields
}
// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func ( x * fastReflection_ExampleSingleton ) SetUnknown ( fields protoreflect . RawFields ) {
x . unknownFields = fields
}
// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func ( x * fastReflection_ExampleSingleton ) IsValid ( ) bool {
return x != nil
}
// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func ( x * fastReflection_ExampleSingleton ) ProtoMethods ( ) * protoiface . Methods {
size := func ( input protoiface . SizeInput ) protoiface . SizeOutput {
x := input . Message . Interface ( ) . ( * ExampleSingleton )
if x == nil {
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : 0 ,
}
}
options := runtime . SizeInputToOptions ( input )
_ = options
var n int
var l int
_ = l
l = len ( x . Foo )
if l > 0 {
n += 1 + l + runtime . Sov ( uint64 ( l ) )
}
if x . Bar != 0 {
n += 1 + runtime . Sov ( uint64 ( x . Bar ) )
}
if x . unknownFields != nil {
n += len ( x . unknownFields )
}
return protoiface . SizeOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Size : n ,
}
}
marshal := func ( input protoiface . MarshalInput ) ( protoiface . MarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * ExampleSingleton )
if x == nil {
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
options := runtime . MarshalInputToOptions ( input )
_ = options
size := options . Size ( x )
dAtA := make ( [ ] byte , size )
i := len ( dAtA )
_ = i
var l int
_ = l
if x . unknownFields != nil {
i -= len ( x . unknownFields )
copy ( dAtA [ i : ] , x . unknownFields )
}
if x . Bar != 0 {
i = runtime . EncodeVarint ( dAtA , i , uint64 ( x . Bar ) )
i --
dAtA [ i ] = 0x10
}
if len ( x . Foo ) > 0 {
i -= len ( x . Foo )
copy ( dAtA [ i : ] , x . Foo )
i = runtime . EncodeVarint ( dAtA , i , uint64 ( len ( x . Foo ) ) )
i --
dAtA [ i ] = 0xa
}
if input . Buf != nil {
input . Buf = append ( input . Buf , dAtA ... )
} else {
input . Buf = dAtA
}
return protoiface . MarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Buf : input . Buf ,
} , nil
}
unmarshal := func ( input protoiface . UnmarshalInput ) ( protoiface . UnmarshalOutput , error ) {
x := input . Message . Interface ( ) . ( * ExampleSingleton )
if x == nil {
return protoiface . UnmarshalOutput {
NoUnkeyedLiterals : input . NoUnkeyedLiterals ,
Flags : input . Flags ,
} , nil
}
options := runtime . UnmarshalInputToOptions ( input )
_ = options
dAtA := input . Buf
l := len ( dAtA )
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
wire |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
fieldNum := int32 ( wire >> 3 )
wireType := int ( wire & 0x7 )
if wireType == 4 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleSingleton: wiretype end group for non-group" )
}
if fieldNum <= 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: ExampleSingleton: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 2 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Foo" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if postIndex > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
x . Foo = string ( dAtA [ iNdEx : postIndex ] )
iNdEx = postIndex
case 2 :
if wireType != 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , fmt . Errorf ( "proto: wrong wireType = %d for field Bar" , wireType )
}
x . Bar = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrIntOverflow
}
if iNdEx >= l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
x . Bar |= int32 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
2021-11-24 10:10:26 -08:00
default :
iNdEx = preIndex
skippy , err := runtime . Skip ( dAtA [ iNdEx : ] )
if err != nil {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , err
}
if ( skippy < 0 ) || ( iNdEx + skippy ) < 0 {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , runtime . ErrInvalidLength
}
if ( iNdEx + skippy ) > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
if ! options . DiscardUnknown {
x . unknownFields = append ( x . unknownFields , dAtA [ iNdEx : iNdEx + skippy ] ... )
}
iNdEx += skippy
}
}
if iNdEx > l {
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , io . ErrUnexpectedEOF
}
return protoiface . UnmarshalOutput { NoUnkeyedLiterals : input . NoUnkeyedLiterals , Flags : input . Flags } , nil
}
return & protoiface . Methods {
NoUnkeyedLiterals : struct { } { } ,
Flags : protoiface . SupportMarshalDeterministic | protoiface . SupportUnmarshalDiscardUnknown ,
Size : size ,
Marshal : marshal ,
Unmarshal : unmarshal ,
Merge : nil ,
CheckInitialized : nil ,
}
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.0
2022-01-06 11:57:55 -08:00
// protoc (unknown)
2022-01-28 10:43:24 -08:00
// source: testpb/test_schema.proto
2021-11-24 10:10:26 -08:00
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( 20 - protoimpl . MinVersion )
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
)
type Enum int32
const (
Enum_ENUM_UNSPECIFIED Enum = 0
Enum_ENUM_ONE Enum = 1
Enum_ENUM_TWO Enum = 2
Enum_ENUM_FIVE Enum = 5
Enum_ENUM_NEG_THREE Enum = - 3
)
// Enum value maps for Enum.
var (
Enum_name = map [ int32 ] string {
0 : "ENUM_UNSPECIFIED" ,
1 : "ENUM_ONE" ,
2 : "ENUM_TWO" ,
5 : "ENUM_FIVE" ,
- 3 : "ENUM_NEG_THREE" ,
}
Enum_value = map [ string ] int32 {
"ENUM_UNSPECIFIED" : 0 ,
"ENUM_ONE" : 1 ,
"ENUM_TWO" : 2 ,
"ENUM_FIVE" : 5 ,
"ENUM_NEG_THREE" : - 3 ,
}
)
func ( x Enum ) Enum ( ) * Enum {
p := new ( Enum )
* p = x
return p
}
func ( x Enum ) String ( ) string {
return protoimpl . X . EnumStringOf ( x . Descriptor ( ) , protoreflect . EnumNumber ( x ) )
}
func ( Enum ) Descriptor ( ) protoreflect . EnumDescriptor {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_enumTypes [ 0 ] . Descriptor ( )
2021-11-24 10:10:26 -08:00
}
func ( Enum ) Type ( ) protoreflect . EnumType {
2022-01-28 10:43:24 -08:00
return & file_testpb_test_schema_proto_enumTypes [ 0 ]
2021-11-24 10:10:26 -08:00
}
func ( x Enum ) Number ( ) protoreflect . EnumNumber {
return protoreflect . EnumNumber ( x )
}
// Deprecated: Use Enum.Descriptor instead.
func ( Enum ) EnumDescriptor ( ) ( [ ] byte , [ ] int ) {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescGZIP ( ) , [ ] int { 0 }
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
type ExampleTable struct {
2021-11-24 10:10:26 -08:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
// Valid key fields:
U32 uint32 ` protobuf:"varint,1,opt,name=u32,proto3" json:"u32,omitempty" `
U64 uint64 ` protobuf:"varint,2,opt,name=u64,proto3" json:"u64,omitempty" `
Str string ` protobuf:"bytes,3,opt,name=str,proto3" json:"str,omitempty" `
Bz [ ] byte ` protobuf:"bytes,4,opt,name=bz,proto3" json:"bz,omitempty" `
Ts * timestamppb . Timestamp ` protobuf:"bytes,5,opt,name=ts,proto3" json:"ts,omitempty" `
Dur * durationpb . Duration ` protobuf:"bytes,6,opt,name=dur,proto3" json:"dur,omitempty" `
I32 int32 ` protobuf:"varint,7,opt,name=i32,proto3" json:"i32,omitempty" `
S32 int32 ` protobuf:"zigzag32,8,opt,name=s32,proto3" json:"s32,omitempty" `
Sf32 int32 ` protobuf:"fixed32,9,opt,name=sf32,proto3" json:"sf32,omitempty" `
I64 int64 ` protobuf:"varint,10,opt,name=i64,proto3" json:"i64,omitempty" `
S64 int64 ` protobuf:"zigzag64,11,opt,name=s64,proto3" json:"s64,omitempty" `
Sf64 int64 ` protobuf:"fixed64,12,opt,name=sf64,proto3" json:"sf64,omitempty" `
F32 uint32 ` protobuf:"fixed32,13,opt,name=f32,proto3" json:"f32,omitempty" `
F64 uint64 ` protobuf:"fixed64,14,opt,name=f64,proto3" json:"f64,omitempty" `
B bool ` protobuf:"varint,15,opt,name=b,proto3" json:"b,omitempty" `
E Enum ` protobuf:"varint,16,opt,name=e,proto3,enum=testpb.Enum" json:"e,omitempty" `
// Invalid key fields:
2022-01-20 08:22:06 -08:00
Repeated [ ] uint32 ` protobuf:"varint,17,rep,packed,name=repeated,proto3" json:"repeated,omitempty" `
Map map [ string ] uint32 ` protobuf:"bytes,18,rep,name=map,proto3" json:"map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" `
Msg * ExampleTable_ExampleMessage ` protobuf:"bytes,19,opt,name=msg,proto3" json:"msg,omitempty" `
2021-11-24 10:10:26 -08:00
// Types that are assignable to Sum:
2022-01-20 08:22:06 -08:00
// *ExampleTable_Oneof
Sum isExampleTable_Sum ` protobuf_oneof:"sum" `
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) Reset ( ) {
* x = ExampleTable { }
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 0 ]
2021-11-24 10:10:26 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) String ( ) string {
2021-11-24 10:10:26 -08:00
return protoimpl . X . MessageStringOf ( x )
}
2022-01-20 08:22:06 -08:00
func ( * ExampleTable ) ProtoMessage ( ) { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
// Deprecated: Use ExampleTable.ProtoReflect.Descriptor instead.
func ( * ExampleTable ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescGZIP ( ) , [ ] int { 0 }
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetU32 ( ) uint32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . U32
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetU64 ( ) uint64 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . U64
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetStr ( ) string {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Str
}
return ""
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetBz ( ) [ ] byte {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Bz
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetTs ( ) * timestamppb . Timestamp {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Ts
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetDur ( ) * durationpb . Duration {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Dur
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetI32 ( ) int32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . I32
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetS32 ( ) int32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . S32
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetSf32 ( ) int32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Sf32
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetI64 ( ) int64 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . I64
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetS64 ( ) int64 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . S64
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetSf64 ( ) int64 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Sf64
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetF32 ( ) uint32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . F32
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetF64 ( ) uint64 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . F64
}
return 0
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetB ( ) bool {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . B
}
return false
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetE ( ) Enum {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . E
}
return Enum_ENUM_UNSPECIFIED
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetRepeated ( ) [ ] uint32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Repeated
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetMap ( ) map [ string ] uint32 {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Map
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetMsg ( ) * ExampleTable_ExampleMessage {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Msg
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetSum ( ) isExampleTable_Sum {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . Sum
}
return nil
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable ) GetOneof ( ) uint32 {
if x , ok := x . GetSum ( ) . ( * ExampleTable_Oneof ) ; ok {
2021-11-24 10:10:26 -08:00
return x . Oneof
}
return 0
}
2022-01-20 08:22:06 -08:00
type isExampleTable_Sum interface {
isExampleTable_Sum ( )
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
type ExampleTable_Oneof struct {
2021-11-24 10:10:26 -08:00
Oneof uint32 ` protobuf:"varint,20,opt,name=oneof,proto3,oneof" `
}
2022-01-20 08:22:06 -08:00
func ( * ExampleTable_Oneof ) isExampleTable_Sum ( ) { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
type ExampleAutoIncrementTable struct {
2021-11-24 10:10:26 -08:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2022-01-20 08:22:06 -08:00
Id uint64 ` protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" `
X string ` protobuf:"bytes,2,opt,name=x,proto3" json:"x,omitempty" `
Y int32 ` protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty" `
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) Reset ( ) {
* x = ExampleAutoIncrementTable { }
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 1 ]
2021-11-24 10:10:26 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) String ( ) string {
2021-11-24 10:10:26 -08:00
return protoimpl . X . MessageStringOf ( x )
}
2022-01-20 08:22:06 -08:00
func ( * ExampleAutoIncrementTable ) ProtoMessage ( ) { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
// Deprecated: Use ExampleAutoIncrementTable.ProtoReflect.Descriptor instead.
func ( * ExampleAutoIncrementTable ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescGZIP ( ) , [ ] int { 1 }
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) GetId ( ) uint64 {
if x != nil {
return x . Id
}
return 0
}
func ( x * ExampleAutoIncrementTable ) GetX ( ) string {
2021-11-24 10:10:26 -08:00
if x != nil {
return x . X
}
return ""
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleAutoIncrementTable ) GetY ( ) int32 {
if x != nil {
return x . Y
}
return 0
}
type ExampleSingleton struct {
2021-11-24 10:10:26 -08:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2022-01-20 08:22:06 -08:00
Foo string ` protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty" `
Bar int32 ` protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty" `
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleSingleton ) Reset ( ) {
* x = ExampleSingleton { }
2021-11-24 10:10:26 -08:00
if protoimpl . UnsafeEnabled {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 2 ]
2021-11-24 10:10:26 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleSingleton ) String ( ) string {
2021-11-24 10:10:26 -08:00
return protoimpl . X . MessageStringOf ( x )
}
2022-01-20 08:22:06 -08:00
func ( * ExampleSingleton ) ProtoMessage ( ) { }
2021-11-24 10:10:26 -08:00
2022-01-20 08:22:06 -08:00
// Deprecated: Use ExampleSingleton.ProtoReflect.Descriptor instead.
func ( * ExampleSingleton ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescGZIP ( ) , [ ] int { 2 }
2021-11-24 10:10:26 -08:00
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleSingleton ) GetFoo ( ) string {
2021-11-24 10:10:26 -08:00
if x != nil {
2022-01-20 08:22:06 -08:00
return x . Foo
}
return ""
}
func ( x * ExampleSingleton ) GetBar ( ) int32 {
if x != nil {
return x . Bar
2021-11-24 10:10:26 -08:00
}
return 0
}
2022-01-20 08:22:06 -08:00
type ExampleTable_ExampleMessage struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Foo string ` protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty" `
Bar int32 ` protobuf:"varint,2,opt,name=bar,proto3" json:"bar,omitempty" `
}
func ( x * ExampleTable_ExampleMessage ) Reset ( ) {
* x = ExampleTable_ExampleMessage { }
if protoimpl . UnsafeEnabled {
2022-01-28 10:43:24 -08:00
mi := & file_testpb_test_schema_proto_msgTypes [ 4 ]
2022-01-20 08:22:06 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * ExampleTable_ExampleMessage ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * ExampleTable_ExampleMessage ) ProtoMessage ( ) { }
// Deprecated: Use ExampleTable_ExampleMessage.ProtoReflect.Descriptor instead.
func ( * ExampleTable_ExampleMessage ) Descriptor ( ) ( [ ] byte , [ ] int ) {
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescGZIP ( ) , [ ] int { 0 , 1 }
2022-01-20 08:22:06 -08:00
}
func ( x * ExampleTable_ExampleMessage ) GetFoo ( ) string {
2021-11-24 10:10:26 -08:00
if x != nil {
2022-01-20 08:22:06 -08:00
return x . Foo
2021-11-24 10:10:26 -08:00
}
return ""
}
2022-01-20 08:22:06 -08:00
func ( x * ExampleTable_ExampleMessage ) GetBar ( ) int32 {
if x != nil {
return x . Bar
}
return 0
}
2022-01-28 10:43:24 -08:00
var File_testpb_test_schema_proto protoreflect . FileDescriptor
var file_testpb_test_schema_proto_rawDesc = [ ] byte {
0x0a , 0x18 , 0x74 , 0x65 , 0x73 , 0x74 , 0x70 , 0x62 , 0x2f , 0x74 , 0x65 , 0x73 , 0x74 , 0x5f , 0x73 , 0x63 ,
0x68 , 0x65 , 0x6d , 0x61 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 , 0x06 , 0x74 , 0x65 , 0x73 , 0x74 ,
0x70 , 0x62 , 0x1a , 0x1f , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f ,
0x62 , 0x75 , 0x66 , 0x2f , 0x74 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d , 0x70 , 0x2e , 0x70 , 0x72 ,
0x6f , 0x74 , 0x6f , 0x1a , 0x1e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2f , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x62 , 0x75 , 0x66 , 0x2f , 0x64 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x2e , 0x70 , 0x72 ,
0x6f , 0x74 , 0x6f , 0x1a , 0x1d , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2f , 0x6f , 0x72 , 0x6d , 0x2f ,
0x76 , 0x31 , 0x61 , 0x6c , 0x70 , 0x68 , 0x61 , 0x31 , 0x2f , 0x6f , 0x72 , 0x6d , 0x2e , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x22 , 0xbd , 0x05 , 0x0a , 0x0c , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x54 , 0x61 ,
0x62 , 0x6c , 0x65 , 0x12 , 0x10 , 0x0a , 0x03 , 0x75 , 0x33 , 0x32 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0d ,
0x52 , 0x03 , 0x75 , 0x33 , 0x32 , 0x12 , 0x10 , 0x0a , 0x03 , 0x75 , 0x36 , 0x34 , 0x18 , 0x02 , 0x20 , 0x01 ,
0x28 , 0x04 , 0x52 , 0x03 , 0x75 , 0x36 , 0x34 , 0x12 , 0x10 , 0x0a , 0x03 , 0x73 , 0x74 , 0x72 , 0x18 , 0x03 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x73 , 0x74 , 0x72 , 0x12 , 0x0e , 0x0a , 0x02 , 0x62 , 0x7a , 0x18 ,
0x04 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x02 , 0x62 , 0x7a , 0x12 , 0x2a , 0x0a , 0x02 , 0x74 , 0x73 , 0x18 ,
0x05 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x1a , 0x2e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 , 0x66 , 0x2e , 0x54 , 0x69 , 0x6d , 0x65 , 0x73 , 0x74 , 0x61 , 0x6d ,
0x70 , 0x52 , 0x02 , 0x74 , 0x73 , 0x12 , 0x2b , 0x0a , 0x03 , 0x64 , 0x75 , 0x72 , 0x18 , 0x06 , 0x20 , 0x01 ,
0x28 , 0x0b , 0x32 , 0x19 , 0x2e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 ,
0x6f , 0x62 , 0x75 , 0x66 , 0x2e , 0x44 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x03 , 0x64 ,
0x75 , 0x72 , 0x12 , 0x10 , 0x0a , 0x03 , 0x69 , 0x33 , 0x32 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 ,
0x03 , 0x69 , 0x33 , 0x32 , 0x12 , 0x10 , 0x0a , 0x03 , 0x73 , 0x33 , 0x32 , 0x18 , 0x08 , 0x20 , 0x01 , 0x28 ,
0x11 , 0x52 , 0x03 , 0x73 , 0x33 , 0x32 , 0x12 , 0x12 , 0x0a , 0x04 , 0x73 , 0x66 , 0x33 , 0x32 , 0x18 , 0x09 ,
0x20 , 0x01 , 0x28 , 0x0f , 0x52 , 0x04 , 0x73 , 0x66 , 0x33 , 0x32 , 0x12 , 0x10 , 0x0a , 0x03 , 0x69 , 0x36 ,
0x34 , 0x18 , 0x0a , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x03 , 0x69 , 0x36 , 0x34 , 0x12 , 0x10 , 0x0a , 0x03 ,
0x73 , 0x36 , 0x34 , 0x18 , 0x0b , 0x20 , 0x01 , 0x28 , 0x12 , 0x52 , 0x03 , 0x73 , 0x36 , 0x34 , 0x12 , 0x12 ,
0x0a , 0x04 , 0x73 , 0x66 , 0x36 , 0x34 , 0x18 , 0x0c , 0x20 , 0x01 , 0x28 , 0x10 , 0x52 , 0x04 , 0x73 , 0x66 ,
0x36 , 0x34 , 0x12 , 0x10 , 0x0a , 0x03 , 0x66 , 0x33 , 0x32 , 0x18 , 0x0d , 0x20 , 0x01 , 0x28 , 0x07 , 0x52 ,
0x03 , 0x66 , 0x33 , 0x32 , 0x12 , 0x10 , 0x0a , 0x03 , 0x66 , 0x36 , 0x34 , 0x18 , 0x0e , 0x20 , 0x01 , 0x28 ,
0x06 , 0x52 , 0x03 , 0x66 , 0x36 , 0x34 , 0x12 , 0x0c , 0x0a , 0x01 , 0x62 , 0x18 , 0x0f , 0x20 , 0x01 , 0x28 ,
0x08 , 0x52 , 0x01 , 0x62 , 0x12 , 0x1a , 0x0a , 0x01 , 0x65 , 0x18 , 0x10 , 0x20 , 0x01 , 0x28 , 0x0e , 0x32 ,
0x0c , 0x2e , 0x74 , 0x65 , 0x73 , 0x74 , 0x70 , 0x62 , 0x2e , 0x45 , 0x6e , 0x75 , 0x6d , 0x52 , 0x01 , 0x65 ,
0x12 , 0x1a , 0x0a , 0x08 , 0x72 , 0x65 , 0x70 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 , 0x18 , 0x11 , 0x20 , 0x03 ,
0x28 , 0x0d , 0x52 , 0x08 , 0x72 , 0x65 , 0x70 , 0x65 , 0x61 , 0x74 , 0x65 , 0x64 , 0x12 , 0x2f , 0x0a , 0x03 ,
0x6d , 0x61 , 0x70 , 0x18 , 0x12 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x1d , 0x2e , 0x74 , 0x65 , 0x73 , 0x74 ,
2022-01-20 08:22:06 -08:00
0x70 , 0x62 , 0x2e , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x54 , 0x61 , 0x62 , 0x6c , 0x65 , 0x2e ,
2022-01-28 10:43:24 -08:00
0x4d , 0x61 , 0x70 , 0x45 , 0x6e , 0x74 , 0x72 , 0x79 , 0x52 , 0x03 , 0x6d , 0x61 , 0x70 , 0x12 , 0x35 , 0x0a ,
0x03 , 0x6d , 0x73 , 0x67 , 0x18 , 0x13 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x23 , 0x2e , 0x74 , 0x65 , 0x73 ,
0x74 , 0x70 , 0x62 , 0x2e , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x54 , 0x61 , 0x62 , 0x6c , 0x65 ,
0x2e , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x65 , 0x52 ,
0x03 , 0x6d , 0x73 , 0x67 , 0x12 , 0x16 , 0x0a , 0x05 , 0x6f , 0x6e , 0x65 , 0x6f , 0x66 , 0x18 , 0x14 , 0x20 ,
0x01 , 0x28 , 0x0d , 0x48 , 0x00 , 0x52 , 0x05 , 0x6f , 0x6e , 0x65 , 0x6f , 0x66 , 0x1a , 0x36 , 0x0a , 0x08 ,
0x4d , 0x61 , 0x70 , 0x45 , 0x6e , 0x74 , 0x72 , 0x79 , 0x12 , 0x10 , 0x0a , 0x03 , 0x6b , 0x65 , 0x79 , 0x18 ,
0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x6b , 0x65 , 0x79 , 0x12 , 0x14 , 0x0a , 0x05 , 0x76 , 0x61 ,
0x6c , 0x75 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x05 , 0x76 , 0x61 , 0x6c , 0x75 , 0x65 ,
0x3a , 0x02 , 0x38 , 0x01 , 0x1a , 0x34 , 0x0a , 0x0e , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x4d ,
0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x65 , 0x12 , 0x10 , 0x0a , 0x03 , 0x66 , 0x6f , 0x6f , 0x18 , 0x01 , 0x20 ,
0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x66 , 0x6f , 0x6f , 0x12 , 0x10 , 0x0a , 0x03 , 0x62 , 0x61 , 0x72 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x03 , 0x62 , 0x61 , 0x72 , 0x3a , 0x3f , 0xf2 , 0x9e , 0xd3 , 0x8e ,
0x03 , 0x39 , 0x0a , 0x0d , 0x0a , 0x0b , 0x75 , 0x33 , 0x32 , 0x2c , 0x69 , 0x36 , 0x34 , 0x2c , 0x73 , 0x74 ,
0x72 , 0x12 , 0x0d , 0x0a , 0x07 , 0x75 , 0x36 , 0x34 , 0x2c , 0x73 , 0x74 , 0x72 , 0x10 , 0x01 , 0x18 , 0x01 ,
0x12 , 0x0b , 0x0a , 0x07 , 0x73 , 0x74 , 0x72 , 0x2c , 0x75 , 0x33 , 0x32 , 0x10 , 0x02 , 0x12 , 0x0a , 0x0a ,
0x06 , 0x62 , 0x7a , 0x2c , 0x73 , 0x74 , 0x72 , 0x10 , 0x03 , 0x18 , 0x01 , 0x42 , 0x05 , 0x0a , 0x03 , 0x73 ,
0x75 , 0x6d , 0x22 , 0x62 , 0x0a , 0x19 , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c , 0x65 , 0x41 , 0x75 , 0x74 ,
0x6f , 0x49 , 0x6e , 0x63 , 0x72 , 0x65 , 0x6d , 0x65 , 0x6e , 0x74 , 0x54 , 0x61 , 0x62 , 0x6c , 0x65 , 0x12 ,
0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x02 , 0x69 , 0x64 , 0x12 ,
0x0c , 0x0a , 0x01 , 0x78 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x01 , 0x78 , 0x12 , 0x0c , 0x0a ,
0x01 , 0x79 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x01 , 0x79 , 0x3a , 0x19 , 0xf2 , 0x9e , 0xd3 ,
0x8e , 0x03 , 0x13 , 0x0a , 0x06 , 0x0a , 0x02 , 0x69 , 0x64 , 0x10 , 0x01 , 0x12 , 0x07 , 0x0a , 0x01 , 0x78 ,
0x10 , 0x01 , 0x18 , 0x01 , 0x18 , 0x03 , 0x22 , 0x40 , 0x0a , 0x10 , 0x45 , 0x78 , 0x61 , 0x6d , 0x70 , 0x6c ,
0x65 , 0x53 , 0x69 , 0x6e , 0x67 , 0x6c , 0x65 , 0x74 , 0x6f , 0x6e , 0x12 , 0x10 , 0x0a , 0x03 , 0x66 , 0x6f ,
0x6f , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x03 , 0x66 , 0x6f , 0x6f , 0x12 , 0x10 , 0x0a , 0x03 ,
0x62 , 0x61 , 0x72 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x03 , 0x62 , 0x61 , 0x72 , 0x3a , 0x08 ,
0xfa , 0x9e , 0xd3 , 0x8e , 0x03 , 0x02 , 0x08 , 0x02 , 0x2a , 0x64 , 0x0a , 0x04 , 0x45 , 0x6e , 0x75 , 0x6d ,
0x12 , 0x14 , 0x0a , 0x10 , 0x45 , 0x4e , 0x55 , 0x4d , 0x5f , 0x55 , 0x4e , 0x53 , 0x50 , 0x45 , 0x43 , 0x49 ,
0x46 , 0x49 , 0x45 , 0x44 , 0x10 , 0x00 , 0x12 , 0x0c , 0x0a , 0x08 , 0x45 , 0x4e , 0x55 , 0x4d , 0x5f , 0x4f ,
0x4e , 0x45 , 0x10 , 0x01 , 0x12 , 0x0c , 0x0a , 0x08 , 0x45 , 0x4e , 0x55 , 0x4d , 0x5f , 0x54 , 0x57 , 0x4f ,
0x10 , 0x02 , 0x12 , 0x0d , 0x0a , 0x09 , 0x45 , 0x4e , 0x55 , 0x4d , 0x5f , 0x46 , 0x49 , 0x56 , 0x45 , 0x10 ,
0x05 , 0x12 , 0x1b , 0x0a , 0x0e , 0x45 , 0x4e , 0x55 , 0x4d , 0x5f , 0x4e , 0x45 , 0x47 , 0x5f , 0x54 , 0x48 ,
0x52 , 0x45 , 0x45 , 0x10 , 0xfd , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0xff , 0x01 , 0x42 , 0x87 ,
0x01 , 0x0a , 0x0a , 0x63 , 0x6f , 0x6d , 0x2e , 0x74 , 0x65 , 0x73 , 0x74 , 0x70 , 0x62 , 0x42 , 0x0f , 0x54 ,
0x65 , 0x73 , 0x74 , 0x53 , 0x63 , 0x68 , 0x65 , 0x6d , 0x61 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 , 0x01 ,
0x5a , 0x30 , 0x67 , 0x69 , 0x74 , 0x68 , 0x75 , 0x62 , 0x2e , 0x63 , 0x6f , 0x6d , 0x2f , 0x63 , 0x6f , 0x73 ,
0x6d , 0x6f , 0x73 , 0x2f , 0x63 , 0x6f , 0x73 , 0x6d , 0x6f , 0x73 , 0x2d , 0x73 , 0x64 , 0x6b , 0x2f , 0x6f ,
0x72 , 0x6d , 0x2f , 0x69 , 0x6e , 0x74 , 0x65 , 0x72 , 0x6e , 0x61 , 0x6c , 0x2f , 0x74 , 0x65 , 0x73 , 0x74 ,
0x70 , 0x62 , 0xa2 , 0x02 , 0x03 , 0x54 , 0x58 , 0x58 , 0xaa , 0x02 , 0x06 , 0x54 , 0x65 , 0x73 , 0x74 , 0x70 ,
0x62 , 0xca , 0x02 , 0x06 , 0x54 , 0x65 , 0x73 , 0x74 , 0x70 , 0x62 , 0xe2 , 0x02 , 0x12 , 0x54 , 0x65 , 0x73 ,
0x74 , 0x70 , 0x62 , 0x5c , 0x47 , 0x50 , 0x42 , 0x4d , 0x65 , 0x74 , 0x61 , 0x64 , 0x61 , 0x74 , 0x61 , 0xea ,
0x02 , 0x06 , 0x54 , 0x65 , 0x73 , 0x74 , 0x70 , 0x62 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
2021-11-24 10:10:26 -08:00
}
var (
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_rawDescOnce sync . Once
file_testpb_test_schema_proto_rawDescData = file_testpb_test_schema_proto_rawDesc
2021-11-24 10:10:26 -08:00
)
2022-01-28 10:43:24 -08:00
func file_testpb_test_schema_proto_rawDescGZIP ( ) [ ] byte {
file_testpb_test_schema_proto_rawDescOnce . Do ( func ( ) {
file_testpb_test_schema_proto_rawDescData = protoimpl . X . CompressGZIP ( file_testpb_test_schema_proto_rawDescData )
2021-11-24 10:10:26 -08:00
} )
2022-01-28 10:43:24 -08:00
return file_testpb_test_schema_proto_rawDescData
2021-11-24 10:10:26 -08:00
}
2022-01-28 10:43:24 -08:00
var file_testpb_test_schema_proto_enumTypes = make ( [ ] protoimpl . EnumInfo , 1 )
var file_testpb_test_schema_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 5 )
var file_testpb_test_schema_proto_goTypes = [ ] interface { } {
2022-01-20 08:22:06 -08:00
( Enum ) ( 0 ) , // 0: testpb.Enum
( * ExampleTable ) ( nil ) , // 1: testpb.ExampleTable
( * ExampleAutoIncrementTable ) ( nil ) , // 2: testpb.ExampleAutoIncrementTable
( * ExampleSingleton ) ( nil ) , // 3: testpb.ExampleSingleton
nil , // 4: testpb.ExampleTable.MapEntry
( * ExampleTable_ExampleMessage ) ( nil ) , // 5: testpb.ExampleTable.ExampleMessage
( * timestamppb . Timestamp ) ( nil ) , // 6: google.protobuf.Timestamp
( * durationpb . Duration ) ( nil ) , // 7: google.protobuf.Duration
2021-11-24 10:10:26 -08:00
}
2022-01-28 10:43:24 -08:00
var file_testpb_test_schema_proto_depIdxs = [ ] int32 {
2022-01-20 08:22:06 -08:00
6 , // 0: testpb.ExampleTable.ts:type_name -> google.protobuf.Timestamp
7 , // 1: testpb.ExampleTable.dur:type_name -> google.protobuf.Duration
0 , // 2: testpb.ExampleTable.e:type_name -> testpb.Enum
4 , // 3: testpb.ExampleTable.map:type_name -> testpb.ExampleTable.MapEntry
5 , // 4: testpb.ExampleTable.msg:type_name -> testpb.ExampleTable.ExampleMessage
2021-11-24 10:10:26 -08:00
5 , // [5:5] is the sub-list for method output_type
5 , // [5:5] is the sub-list for method input_type
5 , // [5:5] is the sub-list for extension type_name
5 , // [5:5] is the sub-list for extension extendee
0 , // [0:5] is the sub-list for field type_name
}
2022-01-28 10:43:24 -08:00
func init ( ) { file_testpb_test_schema_proto_init ( ) }
func file_testpb_test_schema_proto_init ( ) {
if File_testpb_test_schema_proto != nil {
2021-11-24 10:10:26 -08:00
return
}
if ! protoimpl . UnsafeEnabled {
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
2022-01-20 08:22:06 -08:00
switch v := v . ( * ExampleTable ) ; i {
2021-11-24 10:10:26 -08:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
2022-01-20 08:22:06 -08:00
switch v := v . ( * ExampleAutoIncrementTable ) ; i {
2021-11-24 10:10:26 -08:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
2022-01-20 08:22:06 -08:00
switch v := v . ( * ExampleSingleton ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
2022-01-20 08:22:06 -08:00
switch v := v . ( * ExampleTable_ExampleMessage ) ; i {
2021-11-24 10:10:26 -08:00
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
2022-01-28 10:43:24 -08:00
file_testpb_test_schema_proto_msgTypes [ 0 ] . OneofWrappers = [ ] interface { } {
2022-01-20 08:22:06 -08:00
( * ExampleTable_Oneof ) ( nil ) ,
2021-11-24 10:10:26 -08:00
}
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
2022-01-28 10:43:24 -08:00
RawDescriptor : file_testpb_test_schema_proto_rawDesc ,
2021-11-24 10:10:26 -08:00
NumEnums : 1 ,
2022-01-20 08:22:06 -08:00
NumMessages : 5 ,
2021-11-24 10:10:26 -08:00
NumExtensions : 0 ,
NumServices : 0 ,
} ,
2022-01-28 10:43:24 -08:00
GoTypes : file_testpb_test_schema_proto_goTypes ,
DependencyIndexes : file_testpb_test_schema_proto_depIdxs ,
EnumInfos : file_testpb_test_schema_proto_enumTypes ,
MessageInfos : file_testpb_test_schema_proto_msgTypes ,
2021-11-24 10:10:26 -08:00
} . Build ( )
2022-01-28 10:43:24 -08:00
File_testpb_test_schema_proto = out . File
file_testpb_test_schema_proto_rawDesc = nil
file_testpb_test_schema_proto_goTypes = nil
file_testpb_test_schema_proto_depIdxs = nil
2021-11-24 10:10:26 -08:00
}