github.com/blend/go-sdk@v1.20220411.3/protoutil/testdata/Message.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.12.3 5 // source: Message.proto 6 7 package testdata 8 9 import ( 10 reflect "reflect" 11 sync "sync" 12 13 proto "github.com/golang/protobuf/proto" 14 duration "github.com/golang/protobuf/ptypes/duration" 15 timestamp "github.com/golang/protobuf/ptypes/timestamp" 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // This is a compile-time assertion that a sufficiently up-to-date version 28 // of the legacy proto package is being used. 29 const _ = proto.ProtoPackageIsVersion4 30 31 type Message struct { 32 state protoimpl.MessageState 33 sizeCache protoimpl.SizeCache 34 unknownFields protoimpl.UnknownFields 35 36 Uid string `protobuf:"bytes,10,opt,name=uid,proto3" json:"uid,omitempty"` 37 TimestampUtc *timestamp.Timestamp `protobuf:"bytes,11,opt,name=timestamp_utc,json=timestampUtc,proto3" json:"timestamp_utc,omitempty"` 38 Elapsed *duration.Duration `protobuf:"bytes,12,opt,name=elapsed,proto3" json:"elapsed,omitempty"` 39 StatusCode int32 `protobuf:"varint,13,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` 40 ContentLength int64 `protobuf:"varint,14,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` 41 Value float64 `protobuf:"fixed64,15,opt,name=value,proto3" json:"value,omitempty"` 42 Error string `protobuf:"bytes,16,opt,name=error,proto3" json:"error,omitempty"` 43 } 44 45 func (x *Message) Reset() { 46 *x = Message{} 47 if protoimpl.UnsafeEnabled { 48 mi := &file_Message_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 } 53 54 func (x *Message) String() string { 55 return protoimpl.X.MessageStringOf(x) 56 } 57 58 func (*Message) ProtoMessage() {} 59 60 func (x *Message) ProtoReflect() protoreflect.Message { 61 mi := &file_Message_proto_msgTypes[0] 62 if protoimpl.UnsafeEnabled && x != nil { 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 if ms.LoadMessageInfo() == nil { 65 ms.StoreMessageInfo(mi) 66 } 67 return ms 68 } 69 return mi.MessageOf(x) 70 } 71 72 // Deprecated: Use Message.ProtoReflect.Descriptor instead. 73 func (*Message) Descriptor() ([]byte, []int) { 74 return file_Message_proto_rawDescGZIP(), []int{0} 75 } 76 77 func (x *Message) GetUid() string { 78 if x != nil { 79 return x.Uid 80 } 81 return "" 82 } 83 84 func (x *Message) GetTimestampUtc() *timestamp.Timestamp { 85 if x != nil { 86 return x.TimestampUtc 87 } 88 return nil 89 } 90 91 func (x *Message) GetElapsed() *duration.Duration { 92 if x != nil { 93 return x.Elapsed 94 } 95 return nil 96 } 97 98 func (x *Message) GetStatusCode() int32 { 99 if x != nil { 100 return x.StatusCode 101 } 102 return 0 103 } 104 105 func (x *Message) GetContentLength() int64 { 106 if x != nil { 107 return x.ContentLength 108 } 109 return 0 110 } 111 112 func (x *Message) GetValue() float64 { 113 if x != nil { 114 return x.Value 115 } 116 return 0 117 } 118 119 func (x *Message) GetError() string { 120 if x != nil { 121 return x.Error 122 } 123 return "" 124 } 125 126 var File_Message_proto protoreflect.FileDescriptor 127 128 var file_Message_proto_rawDesc = []byte{ 129 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 130 0x08, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 131 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 132 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 133 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 134 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x07, 0x4d, 135 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x0a, 0x20, 136 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x0d, 0x74, 0x69, 0x6d, 0x65, 137 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x75, 0x74, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 138 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 139 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x74, 0x69, 0x6d, 140 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x55, 0x74, 0x63, 0x12, 0x33, 0x0a, 0x07, 0x65, 0x6c, 0x61, 141 0x70, 0x73, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 142 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 143 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x12, 0x1f, 144 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 145 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 146 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 147 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 148 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 149 0x0f, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 150 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 151 0x6f, 0x72, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x3b, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 152 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 153 } 154 155 var ( 156 file_Message_proto_rawDescOnce sync.Once 157 file_Message_proto_rawDescData = file_Message_proto_rawDesc 158 ) 159 160 func file_Message_proto_rawDescGZIP() []byte { 161 file_Message_proto_rawDescOnce.Do(func() { 162 file_Message_proto_rawDescData = protoimpl.X.CompressGZIP(file_Message_proto_rawDescData) 163 }) 164 return file_Message_proto_rawDescData 165 } 166 167 var file_Message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 168 var file_Message_proto_goTypes = []interface{}{ 169 (*Message)(nil), // 0: testdata.Message 170 (*timestamp.Timestamp)(nil), // 1: google.protobuf.Timestamp 171 (*duration.Duration)(nil), // 2: google.protobuf.Duration 172 } 173 var file_Message_proto_depIdxs = []int32{ 174 1, // 0: testdata.Message.timestamp_utc:type_name -> google.protobuf.Timestamp 175 2, // 1: testdata.Message.elapsed:type_name -> google.protobuf.Duration 176 2, // [2:2] is the sub-list for method output_type 177 2, // [2:2] is the sub-list for method input_type 178 2, // [2:2] is the sub-list for extension type_name 179 2, // [2:2] is the sub-list for extension extendee 180 0, // [0:2] is the sub-list for field type_name 181 } 182 183 func init() { file_Message_proto_init() } 184 func file_Message_proto_init() { 185 if File_Message_proto != nil { 186 return 187 } 188 if !protoimpl.UnsafeEnabled { 189 file_Message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 190 switch v := v.(*Message); i { 191 case 0: 192 return &v.state 193 case 1: 194 return &v.sizeCache 195 case 2: 196 return &v.unknownFields 197 default: 198 return nil 199 } 200 } 201 } 202 type x struct{} 203 out := protoimpl.TypeBuilder{ 204 File: protoimpl.DescBuilder{ 205 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 206 RawDescriptor: file_Message_proto_rawDesc, 207 NumEnums: 0, 208 NumMessages: 1, 209 NumExtensions: 0, 210 NumServices: 0, 211 }, 212 GoTypes: file_Message_proto_goTypes, 213 DependencyIndexes: file_Message_proto_depIdxs, 214 MessageInfos: file_Message_proto_msgTypes, 215 }.Build() 216 File_Message_proto = out.File 217 file_Message_proto_rawDesc = nil 218 file_Message_proto_goTypes = nil 219 file_Message_proto_depIdxs = nil 220 }