github.com/jhump/protocompile@v0.0.0-20221021153901-4f6f732835e8/internal/testprotos/desc_test_wellknowntypes.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.0 4 // protoc v3.14.0 5 // source: desc_test_wellknowntypes.proto 6 7 package testprotos 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 anypb "google.golang.org/protobuf/types/known/anypb" 13 durationpb "google.golang.org/protobuf/types/known/durationpb" 14 structpb "google.golang.org/protobuf/types/known/structpb" 15 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 16 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" 17 reflect "reflect" 18 sync "sync" 19 ) 20 21 const ( 22 // Verify that this generated code is sufficiently up-to-date. 23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 24 // Verify that runtime/protoimpl is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 26 ) 27 28 type TestWellKnownTypes struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 34 Elapsed *durationpb.Duration `protobuf:"bytes,2,opt,name=elapsed,proto3" json:"elapsed,omitempty"` 35 Dbl *wrapperspb.DoubleValue `protobuf:"bytes,3,opt,name=dbl,proto3" json:"dbl,omitempty"` 36 Flt *wrapperspb.FloatValue `protobuf:"bytes,4,opt,name=flt,proto3" json:"flt,omitempty"` 37 Bl *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=bl,proto3" json:"bl,omitempty"` 38 I32 *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=i32,proto3" json:"i32,omitempty"` 39 I64 *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=i64,proto3" json:"i64,omitempty"` 40 U32 *wrapperspb.UInt32Value `protobuf:"bytes,8,opt,name=u32,proto3" json:"u32,omitempty"` 41 U64 *wrapperspb.UInt64Value `protobuf:"bytes,9,opt,name=u64,proto3" json:"u64,omitempty"` 42 Str *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=str,proto3" json:"str,omitempty"` 43 Byt *wrapperspb.BytesValue `protobuf:"bytes,11,opt,name=byt,proto3" json:"byt,omitempty"` 44 Json []*structpb.Value `protobuf:"bytes,12,rep,name=json,proto3" json:"json,omitempty"` 45 Extras []*anypb.Any `protobuf:"bytes,13,rep,name=extras,proto3" json:"extras,omitempty"` 46 } 47 48 func (x *TestWellKnownTypes) Reset() { 49 *x = TestWellKnownTypes{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_desc_test_wellknowntypes_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 } 56 57 func (x *TestWellKnownTypes) String() string { 58 return protoimpl.X.MessageStringOf(x) 59 } 60 61 func (*TestWellKnownTypes) ProtoMessage() {} 62 63 func (x *TestWellKnownTypes) ProtoReflect() protoreflect.Message { 64 mi := &file_desc_test_wellknowntypes_proto_msgTypes[0] 65 if protoimpl.UnsafeEnabled && x != nil { 66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 67 if ms.LoadMessageInfo() == nil { 68 ms.StoreMessageInfo(mi) 69 } 70 return ms 71 } 72 return mi.MessageOf(x) 73 } 74 75 // Deprecated: Use TestWellKnownTypes.ProtoReflect.Descriptor instead. 76 func (*TestWellKnownTypes) Descriptor() ([]byte, []int) { 77 return file_desc_test_wellknowntypes_proto_rawDescGZIP(), []int{0} 78 } 79 80 func (x *TestWellKnownTypes) GetStartTime() *timestamppb.Timestamp { 81 if x != nil { 82 return x.StartTime 83 } 84 return nil 85 } 86 87 func (x *TestWellKnownTypes) GetElapsed() *durationpb.Duration { 88 if x != nil { 89 return x.Elapsed 90 } 91 return nil 92 } 93 94 func (x *TestWellKnownTypes) GetDbl() *wrapperspb.DoubleValue { 95 if x != nil { 96 return x.Dbl 97 } 98 return nil 99 } 100 101 func (x *TestWellKnownTypes) GetFlt() *wrapperspb.FloatValue { 102 if x != nil { 103 return x.Flt 104 } 105 return nil 106 } 107 108 func (x *TestWellKnownTypes) GetBl() *wrapperspb.BoolValue { 109 if x != nil { 110 return x.Bl 111 } 112 return nil 113 } 114 115 func (x *TestWellKnownTypes) GetI32() *wrapperspb.Int32Value { 116 if x != nil { 117 return x.I32 118 } 119 return nil 120 } 121 122 func (x *TestWellKnownTypes) GetI64() *wrapperspb.Int64Value { 123 if x != nil { 124 return x.I64 125 } 126 return nil 127 } 128 129 func (x *TestWellKnownTypes) GetU32() *wrapperspb.UInt32Value { 130 if x != nil { 131 return x.U32 132 } 133 return nil 134 } 135 136 func (x *TestWellKnownTypes) GetU64() *wrapperspb.UInt64Value { 137 if x != nil { 138 return x.U64 139 } 140 return nil 141 } 142 143 func (x *TestWellKnownTypes) GetStr() *wrapperspb.StringValue { 144 if x != nil { 145 return x.Str 146 } 147 return nil 148 } 149 150 func (x *TestWellKnownTypes) GetByt() *wrapperspb.BytesValue { 151 if x != nil { 152 return x.Byt 153 } 154 return nil 155 } 156 157 func (x *TestWellKnownTypes) GetJson() []*structpb.Value { 158 if x != nil { 159 return x.Json 160 } 161 return nil 162 } 163 164 func (x *TestWellKnownTypes) GetExtras() []*anypb.Any { 165 if x != nil { 166 return x.Extras 167 } 168 return nil 169 } 170 171 var File_desc_test_wellknowntypes_proto protoreflect.FileDescriptor 172 173 var file_desc_test_wellknowntypes_proto_rawDesc = []byte{ 174 0x0a, 0x1e, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x77, 0x65, 0x6c, 0x6c, 175 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 176 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x1a, 0x19, 0x67, 0x6f, 177 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 178 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 179 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 180 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 181 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 182 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 183 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 184 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 185 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 186 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x05, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x57, 187 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x39, 0x0a, 188 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 189 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 190 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 191 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x65, 0x6c, 0x61, 0x70, 192 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 193 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 194 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x12, 0x2e, 0x0a, 195 0x03, 0x64, 0x62, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 196 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 197 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x64, 0x62, 0x6c, 0x12, 0x2d, 0x0a, 198 0x03, 0x66, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 199 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 200 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x66, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x02, 201 0x62, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 202 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 203 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x62, 0x6c, 0x12, 0x2d, 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18, 204 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 205 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 206 0x75, 0x65, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x2d, 0x0a, 0x03, 0x69, 0x36, 0x34, 0x18, 0x07, 207 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 208 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 209 0x65, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x08, 0x20, 210 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 211 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 212 0x65, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18, 0x09, 0x20, 213 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 214 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 215 0x65, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x2e, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x0a, 0x20, 216 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 217 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 218 0x65, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x2d, 0x0a, 0x03, 0x62, 0x79, 0x74, 0x18, 0x0b, 0x20, 219 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 220 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 221 0x52, 0x03, 0x62, 0x79, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 222 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 223 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x6a, 0x73, 0x6f, 224 0x6e, 0x12, 0x2c, 0x0a, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 225 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 226 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x06, 0x65, 0x78, 0x74, 0x72, 0x61, 0x73, 0x42, 227 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6a, 0x68, 228 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 229 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 230 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 231 } 232 233 var ( 234 file_desc_test_wellknowntypes_proto_rawDescOnce sync.Once 235 file_desc_test_wellknowntypes_proto_rawDescData = file_desc_test_wellknowntypes_proto_rawDesc 236 ) 237 238 func file_desc_test_wellknowntypes_proto_rawDescGZIP() []byte { 239 file_desc_test_wellknowntypes_proto_rawDescOnce.Do(func() { 240 file_desc_test_wellknowntypes_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_wellknowntypes_proto_rawDescData) 241 }) 242 return file_desc_test_wellknowntypes_proto_rawDescData 243 } 244 245 var file_desc_test_wellknowntypes_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 246 var file_desc_test_wellknowntypes_proto_goTypes = []interface{}{ 247 (*TestWellKnownTypes)(nil), // 0: testprotos.TestWellKnownTypes 248 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp 249 (*durationpb.Duration)(nil), // 2: google.protobuf.Duration 250 (*wrapperspb.DoubleValue)(nil), // 3: google.protobuf.DoubleValue 251 (*wrapperspb.FloatValue)(nil), // 4: google.protobuf.FloatValue 252 (*wrapperspb.BoolValue)(nil), // 5: google.protobuf.BoolValue 253 (*wrapperspb.Int32Value)(nil), // 6: google.protobuf.Int32Value 254 (*wrapperspb.Int64Value)(nil), // 7: google.protobuf.Int64Value 255 (*wrapperspb.UInt32Value)(nil), // 8: google.protobuf.UInt32Value 256 (*wrapperspb.UInt64Value)(nil), // 9: google.protobuf.UInt64Value 257 (*wrapperspb.StringValue)(nil), // 10: google.protobuf.StringValue 258 (*wrapperspb.BytesValue)(nil), // 11: google.protobuf.BytesValue 259 (*structpb.Value)(nil), // 12: google.protobuf.Value 260 (*anypb.Any)(nil), // 13: google.protobuf.Any 261 } 262 var file_desc_test_wellknowntypes_proto_depIdxs = []int32{ 263 1, // 0: testprotos.TestWellKnownTypes.start_time:type_name -> google.protobuf.Timestamp 264 2, // 1: testprotos.TestWellKnownTypes.elapsed:type_name -> google.protobuf.Duration 265 3, // 2: testprotos.TestWellKnownTypes.dbl:type_name -> google.protobuf.DoubleValue 266 4, // 3: testprotos.TestWellKnownTypes.flt:type_name -> google.protobuf.FloatValue 267 5, // 4: testprotos.TestWellKnownTypes.bl:type_name -> google.protobuf.BoolValue 268 6, // 5: testprotos.TestWellKnownTypes.i32:type_name -> google.protobuf.Int32Value 269 7, // 6: testprotos.TestWellKnownTypes.i64:type_name -> google.protobuf.Int64Value 270 8, // 7: testprotos.TestWellKnownTypes.u32:type_name -> google.protobuf.UInt32Value 271 9, // 8: testprotos.TestWellKnownTypes.u64:type_name -> google.protobuf.UInt64Value 272 10, // 9: testprotos.TestWellKnownTypes.str:type_name -> google.protobuf.StringValue 273 11, // 10: testprotos.TestWellKnownTypes.byt:type_name -> google.protobuf.BytesValue 274 12, // 11: testprotos.TestWellKnownTypes.json:type_name -> google.protobuf.Value 275 13, // 12: testprotos.TestWellKnownTypes.extras:type_name -> google.protobuf.Any 276 13, // [13:13] is the sub-list for method output_type 277 13, // [13:13] is the sub-list for method input_type 278 13, // [13:13] is the sub-list for extension type_name 279 13, // [13:13] is the sub-list for extension extendee 280 0, // [0:13] is the sub-list for field type_name 281 } 282 283 func init() { file_desc_test_wellknowntypes_proto_init() } 284 func file_desc_test_wellknowntypes_proto_init() { 285 if File_desc_test_wellknowntypes_proto != nil { 286 return 287 } 288 if !protoimpl.UnsafeEnabled { 289 file_desc_test_wellknowntypes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 290 switch v := v.(*TestWellKnownTypes); i { 291 case 0: 292 return &v.state 293 case 1: 294 return &v.sizeCache 295 case 2: 296 return &v.unknownFields 297 default: 298 return nil 299 } 300 } 301 } 302 type x struct{} 303 out := protoimpl.TypeBuilder{ 304 File: protoimpl.DescBuilder{ 305 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 306 RawDescriptor: file_desc_test_wellknowntypes_proto_rawDesc, 307 NumEnums: 0, 308 NumMessages: 1, 309 NumExtensions: 0, 310 NumServices: 0, 311 }, 312 GoTypes: file_desc_test_wellknowntypes_proto_goTypes, 313 DependencyIndexes: file_desc_test_wellknowntypes_proto_depIdxs, 314 MessageInfos: file_desc_test_wellknowntypes_proto_msgTypes, 315 }.Build() 316 File_desc_test_wellknowntypes_proto = out.File 317 file_desc_test_wellknowntypes_proto_rawDesc = nil 318 file_desc_test_wellknowntypes_proto_goTypes = nil 319 file_desc_test_wellknowntypes_proto_depIdxs = nil 320 }