├── .DS_Store ├── LICENSE ├── Protobuf-ObjectiveC ├── .DS_Store ├── Podfile ├── Podfile.lock ├── Pods │ ├── Headers │ │ ├── Private │ │ │ └── Protobuf │ │ │ │ ├── GPBArray.h │ │ │ │ ├── GPBArray_PackagePrivate.h │ │ │ │ ├── GPBBootstrap.h │ │ │ │ ├── GPBCodedInputStream.h │ │ │ │ ├── GPBCodedInputStream_PackagePrivate.h │ │ │ │ ├── GPBCodedOutputStream.h │ │ │ │ ├── GPBDescriptor.h │ │ │ │ ├── GPBDescriptor_PackagePrivate.h │ │ │ │ ├── GPBDictionary.h │ │ │ │ ├── GPBDictionary_PackagePrivate.h │ │ │ │ ├── GPBExtensionInternals.h │ │ │ │ ├── GPBExtensionRegistry.h │ │ │ │ ├── GPBMessage.h │ │ │ │ ├── GPBMessage_PackagePrivate.h │ │ │ │ ├── GPBProtocolBuffers.h │ │ │ │ ├── GPBProtocolBuffers_RuntimeSupport.h │ │ │ │ ├── GPBRootObject.h │ │ │ │ ├── GPBRootObject_PackagePrivate.h │ │ │ │ ├── GPBRuntimeTypes.h │ │ │ │ ├── GPBUnknownField.h │ │ │ │ ├── GPBUnknownFieldSet.h │ │ │ │ ├── GPBUnknownFieldSet_PackagePrivate.h │ │ │ │ ├── GPBUnknownField_PackagePrivate.h │ │ │ │ ├── GPBUtilities.h │ │ │ │ ├── GPBUtilities_PackagePrivate.h │ │ │ │ ├── GPBWellKnownTypes.h │ │ │ │ ├── GPBWireFormat.h │ │ │ │ └── google │ │ │ │ └── protobuf │ │ │ │ ├── Any.pbobjc.h │ │ │ │ ├── Api.pbobjc.h │ │ │ │ ├── Descriptor.pbobjc.h │ │ │ │ ├── Duration.pbobjc.h │ │ │ │ ├── Empty.pbobjc.h │ │ │ │ ├── FieldMask.pbobjc.h │ │ │ │ ├── SourceContext.pbobjc.h │ │ │ │ ├── Struct.pbobjc.h │ │ │ │ ├── Timestamp.pbobjc.h │ │ │ │ ├── Type.pbobjc.h │ │ │ │ └── Wrappers.pbobjc.h │ │ └── Public │ │ │ └── Protobuf │ │ │ ├── GPBArray.h │ │ │ ├── GPBArray_PackagePrivate.h │ │ │ ├── GPBBootstrap.h │ │ │ ├── GPBCodedInputStream.h │ │ │ ├── GPBCodedInputStream_PackagePrivate.h │ │ │ ├── GPBCodedOutputStream.h │ │ │ ├── GPBDescriptor.h │ │ │ ├── GPBDescriptor_PackagePrivate.h │ │ │ ├── GPBDictionary.h │ │ │ ├── GPBDictionary_PackagePrivate.h │ │ │ ├── GPBExtensionInternals.h │ │ │ ├── GPBExtensionRegistry.h │ │ │ ├── GPBMessage.h │ │ │ ├── GPBMessage_PackagePrivate.h │ │ │ ├── GPBProtocolBuffers.h │ │ │ ├── GPBProtocolBuffers_RuntimeSupport.h │ │ │ ├── GPBRootObject.h │ │ │ ├── GPBRootObject_PackagePrivate.h │ │ │ ├── GPBRuntimeTypes.h │ │ │ ├── GPBUnknownField.h │ │ │ ├── GPBUnknownFieldSet.h │ │ │ ├── GPBUnknownFieldSet_PackagePrivate.h │ │ │ ├── GPBUnknownField_PackagePrivate.h │ │ │ ├── GPBUtilities.h │ │ │ ├── GPBUtilities_PackagePrivate.h │ │ │ ├── GPBWellKnownTypes.h │ │ │ ├── GPBWireFormat.h │ │ │ └── google │ │ │ └── protobuf │ │ │ ├── Any.pbobjc.h │ │ │ ├── Api.pbobjc.h │ │ │ ├── Descriptor.pbobjc.h │ │ │ ├── Duration.pbobjc.h │ │ │ ├── Empty.pbobjc.h │ │ │ ├── FieldMask.pbobjc.h │ │ │ ├── SourceContext.pbobjc.h │ │ │ ├── Struct.pbobjc.h │ │ │ ├── Timestamp.pbobjc.h │ │ │ ├── Type.pbobjc.h │ │ │ └── Wrappers.pbobjc.h │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcuserdata │ │ │ └── it.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── Pods-Protobuf-ObjectiveC.xcscheme │ │ │ ├── Pods.xcscheme │ │ │ ├── Protobuf.xcscheme │ │ │ └── xcschememanagement.plist │ ├── Protobuf │ │ ├── LICENSE │ │ ├── README.md │ │ └── objectivec │ │ │ ├── GPBArray.h │ │ │ ├── GPBArray.m │ │ │ ├── GPBArray_PackagePrivate.h │ │ │ ├── GPBBootstrap.h │ │ │ ├── GPBCodedInputStream.h │ │ │ ├── GPBCodedInputStream.m │ │ │ ├── GPBCodedInputStream_PackagePrivate.h │ │ │ ├── GPBCodedOutputStream.h │ │ │ ├── GPBCodedOutputStream.m │ │ │ ├── GPBDescriptor.h │ │ │ ├── GPBDescriptor.m │ │ │ ├── GPBDescriptor_PackagePrivate.h │ │ │ ├── GPBDictionary.h │ │ │ ├── GPBDictionary.m │ │ │ ├── GPBDictionary_PackagePrivate.h │ │ │ ├── GPBExtensionInternals.h │ │ │ ├── GPBExtensionInternals.m │ │ │ ├── GPBExtensionRegistry.h │ │ │ ├── GPBExtensionRegistry.m │ │ │ ├── GPBMessage.h │ │ │ ├── GPBMessage.m │ │ │ ├── GPBMessage_PackagePrivate.h │ │ │ ├── GPBProtocolBuffers.h │ │ │ ├── GPBProtocolBuffers_RuntimeSupport.h │ │ │ ├── GPBRootObject.h │ │ │ ├── GPBRootObject.m │ │ │ ├── GPBRootObject_PackagePrivate.h │ │ │ ├── GPBRuntimeTypes.h │ │ │ ├── GPBUnknownField.h │ │ │ ├── GPBUnknownField.m │ │ │ ├── GPBUnknownFieldSet.h │ │ │ ├── GPBUnknownFieldSet.m │ │ │ ├── GPBUnknownFieldSet_PackagePrivate.h │ │ │ ├── GPBUnknownField_PackagePrivate.h │ │ │ ├── GPBUtilities.h │ │ │ ├── GPBUtilities.m │ │ │ ├── GPBUtilities_PackagePrivate.h │ │ │ ├── GPBWellKnownTypes.h │ │ │ ├── GPBWellKnownTypes.m │ │ │ ├── GPBWireFormat.h │ │ │ ├── GPBWireFormat.m │ │ │ └── google │ │ │ └── protobuf │ │ │ ├── Any.pbobjc.h │ │ │ ├── Any.pbobjc.m │ │ │ ├── Api.pbobjc.h │ │ │ ├── Api.pbobjc.m │ │ │ ├── Descriptor.pbobjc.h │ │ │ ├── Descriptor.pbobjc.m │ │ │ ├── Duration.pbobjc.h │ │ │ ├── Duration.pbobjc.m │ │ │ ├── Empty.pbobjc.h │ │ │ ├── Empty.pbobjc.m │ │ │ ├── FieldMask.pbobjc.h │ │ │ ├── FieldMask.pbobjc.m │ │ │ ├── SourceContext.pbobjc.h │ │ │ ├── SourceContext.pbobjc.m │ │ │ ├── Struct.pbobjc.h │ │ │ ├── Struct.pbobjc.m │ │ │ ├── Timestamp.pbobjc.h │ │ │ ├── Timestamp.pbobjc.m │ │ │ ├── Type.pbobjc.h │ │ │ ├── Type.pbobjc.m │ │ │ ├── Wrappers.pbobjc.h │ │ │ └── Wrappers.pbobjc.m │ └── Target Support Files │ │ ├── Pods-Protobuf-ObjectiveC │ │ ├── Pods-Protobuf-ObjectiveC-acknowledgements.markdown │ │ ├── Pods-Protobuf-ObjectiveC-acknowledgements.plist │ │ ├── Pods-Protobuf-ObjectiveC-dummy.m │ │ ├── Pods-Protobuf-ObjectiveC-resources.sh │ │ ├── Pods-Protobuf-ObjectiveC.debug.xcconfig │ │ └── Pods-Protobuf-ObjectiveC.release.xcconfig │ │ ├── Pods │ │ ├── Pods-acknowledgements.markdown │ │ ├── Pods-acknowledgements.plist │ │ ├── Pods-dummy.m │ │ ├── Pods-resources.sh │ │ ├── Pods.debug.xcconfig │ │ └── Pods.release.xcconfig │ │ └── Protobuf │ │ ├── Protobuf-Private.xcconfig │ │ ├── Protobuf-dummy.m │ │ ├── Protobuf-prefix.pch │ │ └── Protobuf.xcconfig ├── Protobuf-ObjectiveC.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── it.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── it.xcuserdatad │ │ └── xcschemes │ │ ├── Protobuf-ObjectiveC.xcscheme │ │ └── xcschememanagement.plist ├── Protobuf-ObjectiveC.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── it.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── Protobuf-ObjectiveC │ ├── .DS_Store │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ ├── build │ ├── .DS_Store │ └── gen │ │ ├── .DS_Store │ │ ├── ProtoPerson.pbobjc.h │ │ └── ProtoPerson.pbobjc.m │ ├── main.m │ ├── protoc │ └── protocols │ ├── .DS_Store │ └── proto_person.proto └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/.DS_Store -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Vic 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/.DS_Store -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, '7.1' 3 | 4 | pod 'Protobuf', '~> 3.0.0-beta-2' 5 | 6 | target 'Protobuf-ObjectiveC' do 7 | 8 | end 9 | 10 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Protobuf (3.0.0-beta-2) 3 | 4 | DEPENDENCIES: 5 | - Protobuf (~> 3.0.0-beta-2) 6 | 7 | SPEC CHECKSUMS: 8 | Protobuf: f6e2be538e98cf00d9c00b276a32b7995b1f0328 9 | 10 | COCOAPODS: 0.38.0 11 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBArray.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBArray.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBArray_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBArray_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBBootstrap.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBBootstrap.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBCodedInputStream.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedInputStream.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBCodedInputStream_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedInputStream_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBCodedOutputStream.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedOutputStream.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBDescriptor.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDescriptor.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBDescriptor_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDescriptor_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBDictionary.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDictionary.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBDictionary_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDictionary_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBExtensionInternals.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBExtensionInternals.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBExtensionRegistry.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBExtensionRegistry.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBMessage.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBMessage.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBMessage_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBMessage_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBProtocolBuffers.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBProtocolBuffers.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBProtocolBuffers_RuntimeSupport.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBProtocolBuffers_RuntimeSupport.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBRootObject.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRootObject.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBRootObject_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRootObject_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBRuntimeTypes.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRuntimeTypes.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUnknownField.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownField.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUnknownFieldSet.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownFieldSet.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUnknownFieldSet_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownFieldSet_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUnknownField_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownField_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUtilities.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBUtilities_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUtilities_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBWellKnownTypes.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBWellKnownTypes.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/GPBWireFormat.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBWireFormat.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Any.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Any.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Api.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Api.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Descriptor.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Descriptor.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Duration.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Duration.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Empty.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Empty.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/FieldMask.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/SourceContext.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/SourceContext.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Struct.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Struct.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Timestamp.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Timestamp.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Type.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Type.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Private/Protobuf/google/protobuf/Wrappers.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Wrappers.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBArray.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBArray.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBArray_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBArray_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBBootstrap.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBBootstrap.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBCodedInputStream.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedInputStream.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBCodedInputStream_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedInputStream_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBCodedOutputStream.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBCodedOutputStream.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBDescriptor.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDescriptor.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBDescriptor_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDescriptor_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBDictionary.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDictionary.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBDictionary_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBDictionary_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBExtensionInternals.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBExtensionInternals.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBExtensionRegistry.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBExtensionRegistry.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBMessage.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBMessage.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBMessage_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBMessage_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBProtocolBuffers.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBProtocolBuffers.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBProtocolBuffers_RuntimeSupport.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBProtocolBuffers_RuntimeSupport.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBRootObject.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRootObject.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBRootObject_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRootObject_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBRuntimeTypes.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBRuntimeTypes.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUnknownField.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownField.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUnknownFieldSet.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownFieldSet.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUnknownFieldSet_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownFieldSet_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUnknownField_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUnknownField_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUtilities.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUtilities.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBUtilities_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBUtilities_PackagePrivate.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBWellKnownTypes.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBWellKnownTypes.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/GPBWireFormat.h: -------------------------------------------------------------------------------- 1 | ../../../Protobuf/objectivec/GPBWireFormat.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Any.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Any.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Api.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Api.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Descriptor.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Descriptor.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Duration.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Duration.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Empty.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Empty.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/FieldMask.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/SourceContext.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/SourceContext.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Struct.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Struct.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Timestamp.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Timestamp.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Type.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Type.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Headers/Public/Protobuf/google/protobuf/Wrappers.pbobjc.h: -------------------------------------------------------------------------------- 1 | ../../../../../Protobuf/objectivec/google/protobuf/Wrappers.pbobjc.h -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Protobuf (3.0.0-beta-2) 3 | 4 | DEPENDENCIES: 5 | - Protobuf (~> 3.0.0-beta-2) 6 | 7 | SPEC CHECKSUMS: 8 | Protobuf: f6e2be538e98cf00d9c00b276a32b7995b1f0328 9 | 10 | COCOAPODS: 0.38.0 11 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Pods.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/Pods-Protobuf-ObjectiveC.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 47 | 48 | 54 | 55 | 57 | 58 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Pods.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/Pods.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 47 | 48 | 54 | 55 | 57 | 58 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Pods.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/Protobuf.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 47 | 48 | 54 | 55 | 57 | 58 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Pods.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Pods-Protobuf-ObjectiveC.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods.xcscheme 13 | 14 | isShown 15 | 16 | 17 | Protobuf.xcscheme 18 | 19 | isShown 20 | 21 | 22 | 23 | SuppressBuildableAutocreation 24 | 25 | 39201585C934A2022E9BBDEE99E28287 26 | 27 | primary 28 | 29 | 30 | B99274F3B2A4F04C0508BA5CEE47A434 31 | 32 | primary 33 | 34 | 35 | C92DBE13D5B355CDC516C33D6DD81557 36 | 37 | primary 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/LICENSE: -------------------------------------------------------------------------------- 1 | This license applies to all parts of Protocol Buffers except the following: 2 | 3 | - Atomicops support for generic gcc, located in 4 | src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. 5 | This file is copyrighted by Red Hat Inc. 6 | 7 | - Atomicops support for AIX/POWER, located in 8 | src/google/protobuf/stubs/atomicops_internals_power.h. 9 | This file is copyrighted by Bloomberg Finance LP. 10 | 11 | Copyright 2014, Google Inc. All rights reserved. 12 | 13 | Redistribution and use in source and binary forms, with or without 14 | modification, are permitted provided that the following conditions are 15 | met: 16 | 17 | * Redistributions of source code must retain the above copyright 18 | notice, this list of conditions and the following disclaimer. 19 | * Redistributions in binary form must reproduce the above 20 | copyright notice, this list of conditions and the following disclaimer 21 | in the documentation and/or other materials provided with the 22 | distribution. 23 | * Neither the name of Google Inc. nor the names of its 24 | contributors may be used to endorse or promote products derived from 25 | this software without specific prior written permission. 26 | 27 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 28 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 29 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 30 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 31 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 32 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 33 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 34 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 35 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 37 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 38 | 39 | Code generated by the Protocol Buffer compiler is owned by the owner 40 | of the input file used when generating it. This code is not 41 | standalone and requires a support library to be linked with it. This 42 | support library is itself covered by the above license. 43 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBArray_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2015 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import "GPBArray.h" 32 | 33 | @class GPBMessage; 34 | 35 | //%PDDM-DEFINE DECLARE_ARRAY_EXTRAS() 36 | //%ARRAY_INTERFACE_EXTRAS(Int32, int32_t) 37 | //%ARRAY_INTERFACE_EXTRAS(UInt32, uint32_t) 38 | //%ARRAY_INTERFACE_EXTRAS(Int64, int64_t) 39 | //%ARRAY_INTERFACE_EXTRAS(UInt64, uint64_t) 40 | //%ARRAY_INTERFACE_EXTRAS(Float, float) 41 | //%ARRAY_INTERFACE_EXTRAS(Double, double) 42 | //%ARRAY_INTERFACE_EXTRAS(Bool, BOOL) 43 | //%ARRAY_INTERFACE_EXTRAS(Enum, int32_t) 44 | 45 | //%PDDM-DEFINE ARRAY_INTERFACE_EXTRAS(NAME, TYPE) 46 | //%#pragma mark - NAME 47 | //% 48 | //%@interface GPB##NAME##Array () { 49 | //% @package 50 | //% GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 51 | //%} 52 | //%@end 53 | //% 54 | 55 | //%PDDM-EXPAND DECLARE_ARRAY_EXTRAS() 56 | // This block of code is generated, do not edit it directly. 57 | 58 | #pragma mark - Int32 59 | 60 | @interface GPBInt32Array () { 61 | @package 62 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 63 | } 64 | @end 65 | 66 | #pragma mark - UInt32 67 | 68 | @interface GPBUInt32Array () { 69 | @package 70 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 71 | } 72 | @end 73 | 74 | #pragma mark - Int64 75 | 76 | @interface GPBInt64Array () { 77 | @package 78 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 79 | } 80 | @end 81 | 82 | #pragma mark - UInt64 83 | 84 | @interface GPBUInt64Array () { 85 | @package 86 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 87 | } 88 | @end 89 | 90 | #pragma mark - Float 91 | 92 | @interface GPBFloatArray () { 93 | @package 94 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 95 | } 96 | @end 97 | 98 | #pragma mark - Double 99 | 100 | @interface GPBDoubleArray () { 101 | @package 102 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 103 | } 104 | @end 105 | 106 | #pragma mark - Bool 107 | 108 | @interface GPBBoolArray () { 109 | @package 110 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 111 | } 112 | @end 113 | 114 | #pragma mark - Enum 115 | 116 | @interface GPBEnumArray () { 117 | @package 118 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 119 | } 120 | @end 121 | 122 | //%PDDM-EXPAND-END DECLARE_ARRAY_EXTRAS() 123 | 124 | #pragma mark - NSArray Subclass 125 | 126 | @interface GPBAutocreatedArray : NSMutableArray { 127 | @package 128 | GPB_UNSAFE_UNRETAINED GPBMessage *_autocreator; 129 | } 130 | @end 131 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBBootstrap.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | // The Objective C runtime has complete enough info that most protos don’t end 32 | // up using this, so leaving it on is no cost or very little cost. If you 33 | // happen to see it causing bloat, this is the way to disable it. If you do 34 | // need to disable it, try only disabling it for Release builds as having 35 | // full TextFormat can be useful for debugging. 36 | #ifndef GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 37 | #define GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 0 38 | #endif 39 | 40 | // Most uses of protocol buffers don't need field options, by default the 41 | // static data will be compiled out, define this to 1 to include it. The only 42 | // time you need this is if you are doing introspection of the protocol buffers. 43 | #ifndef GPBOBJC_INCLUDE_FIELD_OPTIONS 44 | #define GPBOBJC_INCLUDE_FIELD_OPTIONS 0 45 | #endif 46 | 47 | // Used in the generated code to give sizes to enums. int32_t was chosen based 48 | // on the fact that Protocol Buffers enums are limited to this range. 49 | #if !__has_feature(objc_fixed_enum) 50 | #error All supported Xcode versions should support objc_fixed_enum. 51 | #endif 52 | // If the headers are imported into Objective-C++, we can run into an issue 53 | // where the defintion of NS_ENUM (really CF_ENUM) changes based on the C++ 54 | // standard that is in effect. If it isn't C++11 or higher, the definition 55 | // doesn't allow us to forward declare. We work around this one case by 56 | // providing a local definition. The default case has to use NS_ENUM for the 57 | // magic that is Swift bridging of enums. 58 | #if (__cplusplus && __cplusplus < 201103L) 59 | #define GPB_ENUM(X) enum X : int32_t X; enum X : int32_t 60 | #else 61 | #define GPB_ENUM(X) NS_ENUM(int32_t, X) 62 | #endif 63 | // GPB_ENUM_FWD_DECLARE is used for forward declaring enums, ex: 64 | // GPB_ENUM_FWD_DECLARE(Foo_Enum) 65 | // @property (nonatomic) Foo_Enum value; 66 | #define GPB_ENUM_FWD_DECLARE(X) enum X : int32_t 67 | 68 | // Based upon CF_INLINE. Forces inlining in release. 69 | #if !defined(DEBUG) 70 | #define GPB_INLINE static __inline__ __attribute__((always_inline)) 71 | #else 72 | #define GPB_INLINE static __inline__ 73 | #endif 74 | 75 | // For use in public headers that might need to deal with ARC. 76 | #ifndef GPB_UNSAFE_UNRETAINED 77 | #if __has_feature(objc_arc) 78 | #define GPB_UNSAFE_UNRETAINED __unsafe_unretained 79 | #else 80 | #define GPB_UNSAFE_UNRETAINED 81 | #endif 82 | #endif 83 | 84 | // If property name starts with init we need to annotate it to get past ARC. 85 | // http://stackoverflow.com/questions/18723226/how-do-i-annotate-an-objective-c-property-with-an-objc-method-family/18723227#18723227 86 | #define GPB_METHOD_FAMILY_NONE __attribute__((objc_method_family(none))) 87 | 88 | // The protoc-gen-objc version which works with the current version of the 89 | // generated Objective C sources. In general we don't want to change the 90 | // runtime interfaces (or this version) as it means everything has to be 91 | // regenerated. 92 | #define GOOGLE_PROTOBUF_OBJC_GEN_VERSION 30000 93 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBCodedInputStream.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | @class GPBMessage; 34 | @class GPBExtensionRegistry; 35 | 36 | NS_ASSUME_NONNULL_BEGIN 37 | 38 | // Reads and decodes protocol message fields. 39 | // Subclassing of GPBCodedInputStream is NOT supported. 40 | @interface GPBCodedInputStream : NSObject 41 | 42 | + (instancetype)streamWithData:(NSData *)data; 43 | - (instancetype)initWithData:(NSData *)data; 44 | 45 | // Attempt to read a field tag, returning zero if we have reached EOF. 46 | // Protocol message parsers use this to read tags, since a protocol message 47 | // may legally end wherever a tag occurs, and zero is not a valid tag number. 48 | - (int32_t)readTag; 49 | 50 | - (double)readDouble; 51 | - (float)readFloat; 52 | - (uint64_t)readUInt64; 53 | - (uint32_t)readUInt32; 54 | - (int64_t)readInt64; 55 | - (int32_t)readInt32; 56 | - (uint64_t)readFixed64; 57 | - (uint32_t)readFixed32; 58 | - (int32_t)readEnum; 59 | - (int32_t)readSFixed32; 60 | - (int64_t)readSFixed64; 61 | - (int32_t)readSInt32; 62 | - (int64_t)readSInt64; 63 | - (BOOL)readBool; 64 | - (NSString *)readString; 65 | - (NSData *)readBytes; 66 | 67 | // Read an embedded message field value from the stream. 68 | - (void)readMessage:(GPBMessage *)message 69 | extensionRegistry:(nullable GPBExtensionRegistry *)extensionRegistry; 70 | 71 | // Reads and discards a single field, given its tag value. Returns NO if the 72 | // tag is an endgroup tag, in which case nothing is skipped. Otherwise, 73 | // returns YES. 74 | - (BOOL)skipField:(int32_t)tag; 75 | 76 | // Reads and discards an entire message. This will read either until EOF 77 | // or until an endgroup tag, whichever comes first. 78 | - (void)skipMessage; 79 | 80 | // Verifies that the last call to readTag() returned the given tag value. 81 | // This is used to verify that a nested group ended with the correct end tag. 82 | // Throws NSParseErrorException if value does not match the last tag. 83 | - (void)checkLastTagWas:(int32_t)value; 84 | 85 | @end 86 | 87 | NS_ASSUME_NONNULL_END 88 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBCodedInputStream_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | // This header is private to the ProtobolBuffers library and must NOT be 32 | // included by any sources outside this library. The contents of this file are 33 | // subject to change at any time without notice. 34 | 35 | #import "GPBCodedInputStream.h" 36 | 37 | #import 38 | 39 | @class GPBUnknownFieldSet; 40 | @class GPBFieldDescriptor; 41 | 42 | typedef struct GPBCodedInputStreamState { 43 | const uint8_t *bytes; 44 | size_t bufferSize; 45 | size_t bufferPos; 46 | 47 | // For parsing subsections of an input stream you can put a hard limit on 48 | // how much should be read. Normally the limit is the end of the stream, 49 | // but you can adjust it to anywhere, and if you hit it you will be at the 50 | // end of the stream, until you adjust the limit. 51 | size_t currentLimit; 52 | int32_t lastTag; 53 | NSUInteger recursionDepth; 54 | } GPBCodedInputStreamState; 55 | 56 | @interface GPBCodedInputStream () { 57 | @package 58 | struct GPBCodedInputStreamState state_; 59 | NSData *buffer_; 60 | } 61 | 62 | // Group support is deprecated, so we hide this interface from users, but 63 | // support for older data. 64 | - (void)readGroup:(int32_t)fieldNumber 65 | message:(GPBMessage *)message 66 | extensionRegistry:(GPBExtensionRegistry *)extensionRegistry; 67 | 68 | // Reads a group field value from the stream and merges it into the given 69 | // UnknownFieldSet. 70 | - (void)readUnknownGroup:(int32_t)fieldNumber 71 | message:(GPBUnknownFieldSet *)message; 72 | 73 | // Reads a map entry. 74 | - (void)readMapEntry:(id)mapDictionary 75 | extensionRegistry:(GPBExtensionRegistry *)extensionRegistry 76 | field:(GPBFieldDescriptor *)field 77 | parentMessage:(GPBMessage *)parentMessage; 78 | @end 79 | 80 | CF_EXTERN_C_BEGIN 81 | 82 | int32_t GPBCodedInputStreamReadTag(GPBCodedInputStreamState *state); 83 | 84 | double GPBCodedInputStreamReadDouble(GPBCodedInputStreamState *state); 85 | float GPBCodedInputStreamReadFloat(GPBCodedInputStreamState *state); 86 | uint64_t GPBCodedInputStreamReadUInt64(GPBCodedInputStreamState *state); 87 | uint32_t GPBCodedInputStreamReadUInt32(GPBCodedInputStreamState *state); 88 | int64_t GPBCodedInputStreamReadInt64(GPBCodedInputStreamState *state); 89 | int32_t GPBCodedInputStreamReadInt32(GPBCodedInputStreamState *state); 90 | uint64_t GPBCodedInputStreamReadFixed64(GPBCodedInputStreamState *state); 91 | uint32_t GPBCodedInputStreamReadFixed32(GPBCodedInputStreamState *state); 92 | int32_t GPBCodedInputStreamReadEnum(GPBCodedInputStreamState *state); 93 | int32_t GPBCodedInputStreamReadSFixed32(GPBCodedInputStreamState *state); 94 | int64_t GPBCodedInputStreamReadSFixed64(GPBCodedInputStreamState *state); 95 | int32_t GPBCodedInputStreamReadSInt32(GPBCodedInputStreamState *state); 96 | int64_t GPBCodedInputStreamReadSInt64(GPBCodedInputStreamState *state); 97 | BOOL GPBCodedInputStreamReadBool(GPBCodedInputStreamState *state); 98 | NSString *GPBCodedInputStreamReadRetainedString(GPBCodedInputStreamState *state) 99 | __attribute((ns_returns_retained)); 100 | NSData *GPBCodedInputStreamReadRetainedBytes(GPBCodedInputStreamState *state) 101 | __attribute((ns_returns_retained)); 102 | NSData *GPBCodedInputStreamReadRetainedBytesNoCopy( 103 | GPBCodedInputStreamState *state) __attribute((ns_returns_retained)); 104 | 105 | size_t GPBCodedInputStreamPushLimit(GPBCodedInputStreamState *state, 106 | size_t byteLimit); 107 | void GPBCodedInputStreamPopLimit(GPBCodedInputStreamState *state, 108 | size_t oldLimit); 109 | size_t GPBCodedInputStreamBytesUntilLimit(GPBCodedInputStreamState *state); 110 | BOOL GPBCodedInputStreamIsAtEnd(GPBCodedInputStreamState *state); 111 | void GPBCodedInputStreamCheckLastTagWas(GPBCodedInputStreamState *state, 112 | int32_t value); 113 | 114 | CF_EXTERN_C_END 115 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBDescriptor.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBRuntimeTypes.h" 34 | 35 | @class GPBEnumDescriptor; 36 | @class GPBFieldDescriptor; 37 | @class GPBFieldOptions; 38 | @class GPBFileDescriptor; 39 | @class GPBOneofDescriptor; 40 | 41 | NS_ASSUME_NONNULL_BEGIN 42 | 43 | typedef NS_ENUM(NSInteger, GPBFileSyntax) { 44 | GPBFileSyntaxUnknown = 0, 45 | GPBFileSyntaxProto2 = 2, 46 | GPBFileSyntaxProto3 = 3, 47 | }; 48 | 49 | typedef NS_ENUM(NSInteger, GPBFieldType) { 50 | GPBFieldTypeSingle, // optional/required 51 | GPBFieldTypeRepeated, // repeated 52 | GPBFieldTypeMap, // map 53 | }; 54 | 55 | @interface GPBDescriptor : NSObject 56 | 57 | @property(nonatomic, readonly, copy) NSString *name; 58 | @property(nonatomic, readonly, strong, nullable) NSArray *fields; 59 | @property(nonatomic, readonly, strong, nullable) NSArray *oneofs; 60 | @property(nonatomic, readonly, strong, nullable) NSArray *enums; 61 | @property(nonatomic, readonly, nullable) const GPBExtensionRange *extensionRanges; 62 | @property(nonatomic, readonly) NSUInteger extensionRangesCount; 63 | @property(nonatomic, readonly, assign) GPBFileDescriptor *file; 64 | 65 | @property(nonatomic, readonly, getter=isWireFormat) BOOL wireFormat; 66 | @property(nonatomic, readonly) Class messageClass; 67 | 68 | - (nullable GPBFieldDescriptor *)fieldWithNumber:(uint32_t)fieldNumber; 69 | - (nullable GPBFieldDescriptor *)fieldWithName:(NSString *)name; 70 | - (nullable GPBOneofDescriptor *)oneofWithName:(NSString *)name; 71 | - (nullable GPBEnumDescriptor *)enumWithName:(NSString *)name; 72 | 73 | @end 74 | 75 | @interface GPBFileDescriptor : NSObject 76 | 77 | @property(nonatomic, readonly, copy) NSString *package; 78 | @property(nonatomic, readonly) GPBFileSyntax syntax; 79 | 80 | @end 81 | 82 | @interface GPBOneofDescriptor : NSObject 83 | @property(nonatomic, readonly) NSString *name; 84 | @property(nonatomic, readonly) NSArray *fields; 85 | 86 | - (nullable GPBFieldDescriptor *)fieldWithNumber:(uint32_t)fieldNumber; 87 | - (nullable GPBFieldDescriptor *)fieldWithName:(NSString *)name; 88 | @end 89 | 90 | @interface GPBFieldDescriptor : NSObject 91 | 92 | @property(nonatomic, readonly, copy) NSString *name; 93 | @property(nonatomic, readonly) uint32_t number; 94 | @property(nonatomic, readonly) GPBDataType dataType; 95 | @property(nonatomic, readonly) BOOL hasDefaultValue; 96 | @property(nonatomic, readonly) GPBGenericValue defaultValue; 97 | @property(nonatomic, readonly, getter=isRequired) BOOL required; 98 | @property(nonatomic, readonly, getter=isOptional) BOOL optional; 99 | @property(nonatomic, readonly) GPBFieldType fieldType; 100 | // If it is a map, the value type is in -type. 101 | @property(nonatomic, readonly) GPBDataType mapKeyDataType; 102 | @property(nonatomic, readonly, getter=isPackable) BOOL packable; 103 | 104 | @property(nonatomic, readonly, assign, nullable) GPBOneofDescriptor *containingOneof; 105 | 106 | @property(nonatomic, readonly, nullable) GPBFieldOptions *fieldOptions; 107 | 108 | // Message properties 109 | @property(nonatomic, readonly, assign, nullable) Class msgClass; 110 | 111 | // Enum properties 112 | @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor; 113 | 114 | - (BOOL)isValidEnumValue:(int32_t)value; 115 | 116 | // For now, this will return nil if it doesn't know the name to use for 117 | // TextFormat. 118 | - (nullable NSString *)textFormatName; 119 | 120 | @end 121 | 122 | @interface GPBEnumDescriptor : NSObject 123 | 124 | @property(nonatomic, readonly, copy) NSString *name; 125 | @property(nonatomic, readonly) GPBEnumValidationFunc enumVerifier; 126 | 127 | - (nullable NSString *)enumNameForValue:(int32_t)number; 128 | - (BOOL)getValue:(nullable int32_t *)outValue forEnumName:(NSString *)name; 129 | 130 | - (nullable NSString *)textFormatNameForValue:(int32_t)number; 131 | 132 | @end 133 | 134 | @interface GPBExtensionDescriptor : NSObject 135 | @property(nonatomic, readonly) uint32_t fieldNumber; 136 | @property(nonatomic, readonly) Class containingMessageClass; 137 | @property(nonatomic, readonly) GPBDataType dataType; 138 | @property(nonatomic, readonly, getter=isRepeated) BOOL repeated; 139 | @property(nonatomic, readonly, getter=isPackable) BOOL packable; 140 | @property(nonatomic, readonly, assign) Class msgClass; 141 | @property(nonatomic, readonly) NSString *singletonName; 142 | @property(nonatomic, readonly, strong, nullable) GPBEnumDescriptor *enumDescriptor; 143 | @property(nonatomic, readonly) id defaultValue; 144 | @end 145 | 146 | NS_ASSUME_NONNULL_END 147 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBExtensionInternals.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBDescriptor.h" 34 | 35 | @class GPBCodedInputStream; 36 | @class GPBCodedOutputStream; 37 | @class GPBExtensionRegistry; 38 | 39 | void GPBExtensionMergeFromInputStream(GPBExtensionDescriptor *extension, 40 | BOOL isPackedOnStream, 41 | GPBCodedInputStream *input, 42 | GPBExtensionRegistry *extensionRegistry, 43 | GPBMessage *message); 44 | 45 | size_t GPBComputeExtensionSerializedSizeIncludingTag( 46 | GPBExtensionDescriptor *extension, id value); 47 | 48 | void GPBWriteExtensionValueToOutputStream(GPBExtensionDescriptor *extension, 49 | id value, 50 | GPBCodedOutputStream *output); 51 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBExtensionRegistry.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | @class GPBDescriptor; 34 | @class GPBExtensionDescriptor; 35 | 36 | NS_ASSUME_NONNULL_BEGIN 37 | 38 | // A table of known extensions, searchable by name or field number. When 39 | // parsing a protocol message that might have extensions, you must provide an 40 | // ExtensionRegistry in which you have registered any extensions that you want 41 | // to be able to parse. Otherwise, those extensions will just be treated like 42 | // unknown fields. 43 | // 44 | // The *Root classes provide +extensionRegistry for the extensions defined in a 45 | // given file *and* all files it imports. You can also create a 46 | // GPBExtensionRegistry, and merge those registries to handle parsing extensions 47 | // defined from non overlapping files. 48 | // 49 | // GPBExtensionRegistry *registry = 50 | // [[[MyProtoFileRoot extensionRegistry] copy] autorelease]; 51 | // [registry addExtension:[OtherMessage neededExtension]; // Not in MyProtoFile 52 | // NSError *parseError = nil; 53 | // MyMessage *msg = [MyMessage parseData:data 54 | // extensionRegistry:registry 55 | // error:&parseError]; 56 | // 57 | @interface GPBExtensionRegistry : NSObject 58 | 59 | - (void)addExtension:(GPBExtensionDescriptor *)extension; 60 | - (void)addExtensions:(GPBExtensionRegistry *)registry; 61 | 62 | - (nullable GPBExtensionDescriptor *)extensionForDescriptor:(GPBDescriptor *)descriptor 63 | fieldNumber:(NSInteger)fieldNumber; 64 | 65 | @end 66 | 67 | NS_ASSUME_NONNULL_END 68 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBExtensionRegistry.m: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import "GPBExtensionRegistry.h" 32 | 33 | #import "GPBBootstrap.h" 34 | #import "GPBDescriptor.h" 35 | 36 | @implementation GPBExtensionRegistry { 37 | // TODO(dmaclach): Reimplement with CFDictionaries that don't use 38 | // objects as keys. 39 | NSMutableDictionary *mutableClassMap_; 40 | } 41 | 42 | - (instancetype)init { 43 | if ((self = [super init])) { 44 | mutableClassMap_ = [[NSMutableDictionary alloc] init]; 45 | } 46 | return self; 47 | } 48 | 49 | - (void)dealloc { 50 | [mutableClassMap_ release]; 51 | [super dealloc]; 52 | } 53 | 54 | - (instancetype)copyWithZone:(NSZone *)zone { 55 | GPBExtensionRegistry *result = [[[self class] allocWithZone:zone] init]; 56 | if (result && mutableClassMap_.count) { 57 | [result->mutableClassMap_ addEntriesFromDictionary:mutableClassMap_]; 58 | } 59 | return result; 60 | } 61 | 62 | - (NSMutableDictionary *)extensionMapForContainingMessageClass: 63 | (Class)containingMessageClass { 64 | NSMutableDictionary *extensionMap = 65 | [mutableClassMap_ objectForKey:containingMessageClass]; 66 | if (extensionMap == nil) { 67 | extensionMap = [NSMutableDictionary dictionary]; 68 | [mutableClassMap_ setObject:extensionMap 69 | forKey:(id)containingMessageClass]; 70 | } 71 | return extensionMap; 72 | } 73 | 74 | - (void)addExtension:(GPBExtensionDescriptor *)extension { 75 | if (extension == nil) { 76 | return; 77 | } 78 | 79 | Class containingMessageClass = extension.containingMessageClass; 80 | NSMutableDictionary *extensionMap = 81 | [self extensionMapForContainingMessageClass:containingMessageClass]; 82 | [extensionMap setObject:extension forKey:@(extension.fieldNumber)]; 83 | } 84 | 85 | - (GPBExtensionDescriptor *)extensionForDescriptor:(GPBDescriptor *)descriptor 86 | fieldNumber:(NSInteger)fieldNumber { 87 | Class messageClass = descriptor.messageClass; 88 | NSDictionary *extensionMap = 89 | [mutableClassMap_ objectForKey:messageClass]; 90 | return [extensionMap objectForKey:@(fieldNumber)]; 91 | } 92 | 93 | - (void)addExtensions:(GPBExtensionRegistry *)registry { 94 | if (registry == nil) { 95 | // In the case where there are no extensions just ignore. 96 | return; 97 | } 98 | NSMutableDictionary *otherClassMap = registry->mutableClassMap_; 99 | for (Class containingMessageClass in otherClassMap) { 100 | NSMutableDictionary *extensionMap = 101 | [self extensionMapForContainingMessageClass:containingMessageClass]; 102 | NSMutableDictionary *otherExtensionMap = 103 | [registry extensionMapForContainingMessageClass:containingMessageClass]; 104 | [extensionMap addEntriesFromDictionary:otherExtensionMap]; 105 | } 106 | } 107 | 108 | @end 109 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBMessage_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | // This header is private to the ProtobolBuffers library and must NOT be 32 | // included by any sources outside this library. The contents of this file are 33 | // subject to change at any time without notice. 34 | 35 | #import "GPBMessage.h" 36 | 37 | #import 38 | 39 | #import "GPBBootstrap.h" 40 | 41 | typedef struct GPBMessage_Storage { 42 | uint32_t _has_storage_[0]; 43 | } GPBMessage_Storage; 44 | 45 | typedef struct GPBMessage_Storage *GPBMessage_StoragePtr; 46 | 47 | @interface GPBMessage () { 48 | @package 49 | // NOTE: Because of the +allocWithZone code using NSAllocateObject(), 50 | // this structure should ideally always be kept pointer aligned where the 51 | // real storage starts is also pointer aligned. The compiler/runtime already 52 | // do this, but it may not be documented. 53 | 54 | // A pointer to the actual fields of the subclasses. The actual structure 55 | // pointed to by this pointer will depend on the subclass. 56 | // All of the actual structures will start the same as 57 | // GPBMessage_Storage with _has_storage__ as the first field. 58 | // Kept public because static functions need to access it. 59 | GPBMessage_StoragePtr messageStorage_; 60 | 61 | // A lock to provide mutual exclusion from internal data that can be modified 62 | // by *read* operations such as getters (autocreation of message fields and 63 | // message extensions, not setting of values). Used to guarantee thread safety 64 | // for concurrent reads on the message. 65 | // NOTE: OSSpinLock may seem like a good fit here but Apple engineers have 66 | // pointed out that they are vulnerable to live locking on iOS in cases of 67 | // priority inversion: 68 | // http://mjtsai.com/blog/2015/12/16/osspinlock-is-unsafe/ 69 | // https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151214/000372.html 70 | dispatch_semaphore_t readOnlySemaphore_; 71 | } 72 | 73 | // Gets an extension value without autocreating the result if not found. (i.e. 74 | // returns nil if the extension is not set) 75 | - (id)getExistingExtension:(GPBExtensionDescriptor *)extension; 76 | 77 | // Returns an array of GPBExtensionDescriptor* for all the extensions currently 78 | // in use on the message. They are sorted by field number. 79 | - (NSArray *)sortedExtensionsInUse; 80 | 81 | // Parses a message of this type from the input and merges it with this 82 | // message. 83 | // 84 | // Warning: This does not verify that all required fields are present in 85 | // the input message. 86 | // Note: The caller should call 87 | // -[CodedInputStream checkLastTagWas:] after calling this to 88 | // verify that the last tag seen was the appropriate end-group tag, 89 | // or zero for EOF. 90 | // NOTE: This will throw if there is an error while parsing. 91 | - (void)mergeFromCodedInputStream:(GPBCodedInputStream *)input 92 | extensionRegistry:(GPBExtensionRegistry *)extensionRegistry; 93 | 94 | // Parses the next delimited message of this type from the input and merges it 95 | // with this message. 96 | - (void)mergeDelimitedFromCodedInputStream:(GPBCodedInputStream *)input 97 | extensionRegistry: 98 | (GPBExtensionRegistry *)extensionRegistry; 99 | 100 | - (void)addUnknownMapEntry:(int32_t)fieldNum value:(NSData *)data; 101 | 102 | @end 103 | 104 | CF_EXTERN_C_BEGIN 105 | 106 | // Returns a new instance that was automatically created by |autocreator| for 107 | // its field |field|. 108 | GPBMessage *GPBCreateMessageWithAutocreator(Class msgClass, 109 | GPBMessage *autocreator, 110 | GPBFieldDescriptor *field) 111 | __attribute__((ns_returns_retained)); 112 | 113 | // Returns whether |message| autocreated this message. This is NO if the message 114 | // was not autocreated by |message| or if it has been mutated since 115 | // autocreation. 116 | BOOL GPBWasMessageAutocreatedBy(GPBMessage *message, GPBMessage *parent); 117 | 118 | // Call this when you mutate a message. It will cause the message to become 119 | // visible to its autocreator. 120 | void GPBBecomeVisibleToAutocreator(GPBMessage *self); 121 | 122 | // Call this when an array/dictionary is mutated so the parent message that 123 | // autocreated it can react. 124 | void GPBAutocreatedArrayModified(GPBMessage *self, id array); 125 | void GPBAutocreatedDictionaryModified(GPBMessage *self, id dictionary); 126 | 127 | // Clear the autocreator, if any. Asserts if the autocreator still has an 128 | // autocreated reference to this message. 129 | void GPBClearMessageAutocreator(GPBMessage *self); 130 | 131 | CF_EXTERN_C_END 132 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBProtocolBuffers.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import "GPBBootstrap.h" 32 | 33 | #import "GPBArray.h" 34 | #import "GPBCodedInputStream.h" 35 | #import "GPBCodedOutputStream.h" 36 | #import "GPBDescriptor.h" 37 | #import "GPBDictionary.h" 38 | #import "GPBExtensionRegistry.h" 39 | #import "GPBMessage.h" 40 | #import "GPBRootObject.h" 41 | #import "GPBUnknownField.h" 42 | #import "GPBUnknownFieldSet.h" 43 | #import "GPBUtilities.h" 44 | #import "GPBWellKnownTypes.h" 45 | #import "GPBWireFormat.h" 46 | 47 | // Well-known proto types 48 | #import "google/protobuf/Any.pbobjc.h" 49 | #import "google/protobuf/Api.pbobjc.h" 50 | #import "google/protobuf/Duration.pbobjc.h" 51 | #import "google/protobuf/Empty.pbobjc.h" 52 | #import "google/protobuf/FieldMask.pbobjc.h" 53 | #import "google/protobuf/SourceContext.pbobjc.h" 54 | #import "google/protobuf/Struct.pbobjc.h" 55 | #import "google/protobuf/Timestamp.pbobjc.h" 56 | #import "google/protobuf/Type.pbobjc.h" 57 | #import "google/protobuf/Wrappers.pbobjc.h" 58 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBProtocolBuffers_RuntimeSupport.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | // This header is meant to only be used by the generated source, it should not 32 | // be included in code using protocol buffers. 33 | 34 | #import "GPBProtocolBuffers.h" 35 | 36 | #import "GPBDescriptor_PackagePrivate.h" 37 | #import "GPBExtensionInternals.h" 38 | #import "GPBMessage_PackagePrivate.h" 39 | #import "GPBRootObject_PackagePrivate.h" 40 | #import "GPBUtilities_PackagePrivate.h" 41 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBRootObject.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | @class GPBExtensionRegistry; 34 | 35 | NS_ASSUME_NONNULL_BEGIN 36 | 37 | // All Root Objects derive from GPBRootObject. It supplies a registry 38 | // for derived classes to register their extensions to. 39 | @interface GPBRootObject : NSObject 40 | 41 | // Per class registry. 42 | + (GPBExtensionRegistry *)extensionRegistry; 43 | 44 | @end 45 | 46 | NS_ASSUME_NONNULL_END 47 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBRootObject_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBRootObject.h" 34 | 35 | @class GPBExtensionDescriptor; 36 | 37 | @interface GPBRootObject () 38 | 39 | // Globally register. 40 | + (void)globallyRegisterExtension:(GPBExtensionDescriptor *)field; 41 | 42 | @end 43 | 44 | // Returns YES if the selector was resolved and added to the class, 45 | // NO otherwise. 46 | BOOL GPBResolveExtensionClassMethod(Class self, SEL sel); 47 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBRuntimeTypes.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBBootstrap.h" 34 | 35 | @class GPBEnumDescriptor; 36 | @class GPBMessage; 37 | @class GPBInt32Array; 38 | 39 | // Function used to verify that a given value can be represented by an 40 | // enum type. 41 | typedef BOOL (*GPBEnumValidationFunc)(int32_t); 42 | 43 | // Function used to fetch an EnumDescriptor. 44 | typedef GPBEnumDescriptor *(*GPBEnumDescriptorFunc)(void); 45 | 46 | // Magic values used for when an the at runtime to indicate an enum value 47 | // that wasn't know at compile time. 48 | enum { 49 | kGPBUnrecognizedEnumeratorValue = (int32_t)0xFBADBEEF, 50 | }; 51 | 52 | // A union for storing all possible Protobuf values. 53 | // Note that owner is responsible for memory management of object types. 54 | typedef union { 55 | BOOL valueBool; 56 | int32_t valueInt32; 57 | int64_t valueInt64; 58 | uint32_t valueUInt32; 59 | uint64_t valueUInt64; 60 | float valueFloat; 61 | double valueDouble; 62 | GPB_UNSAFE_UNRETAINED NSData *valueData; 63 | GPB_UNSAFE_UNRETAINED NSString *valueString; 64 | GPB_UNSAFE_UNRETAINED GPBMessage *valueMessage; 65 | int32_t valueEnum; 66 | } GPBGenericValue; 67 | 68 | // Do not change the order of this enum (or add things to it) without thinking 69 | // about it very carefully. There are several things that depend on the order. 70 | typedef enum { 71 | GPBDataTypeBool = 0, 72 | GPBDataTypeFixed32, 73 | GPBDataTypeSFixed32, 74 | GPBDataTypeFloat, 75 | GPBDataTypeFixed64, 76 | GPBDataTypeSFixed64, 77 | GPBDataTypeDouble, 78 | GPBDataTypeInt32, 79 | GPBDataTypeInt64, 80 | GPBDataTypeSInt32, 81 | GPBDataTypeSInt64, 82 | GPBDataTypeUInt32, 83 | GPBDataTypeUInt64, 84 | GPBDataTypeBytes, 85 | GPBDataTypeString, 86 | GPBDataTypeMessage, 87 | GPBDataTypeGroup, 88 | GPBDataTypeEnum, 89 | } GPBDataType; 90 | 91 | enum { 92 | // A count of the number of types in GPBDataType. Separated out from the 93 | // GPBDataType enum to avoid warnings regarding not handling 94 | // GPBDataType_Count in switch statements. 95 | GPBDataType_Count = GPBDataTypeEnum + 1 96 | }; 97 | 98 | // An extension range. 99 | typedef struct GPBExtensionRange { 100 | uint32_t start; // inclusive 101 | uint32_t end; // exclusive 102 | } GPBExtensionRange; 103 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBUnknownField.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | @class GPBCodedOutputStream; 34 | @class GPBUInt32Array; 35 | @class GPBUInt64Array; 36 | @class GPBUnknownFieldSet; 37 | 38 | NS_ASSUME_NONNULL_BEGIN 39 | 40 | @interface GPBUnknownField : NSObject 41 | 42 | @property(nonatomic, readonly, assign) int32_t number; 43 | 44 | // Only one of these will be set. 45 | @property(nonatomic, readonly, strong) GPBUInt64Array *varintList; 46 | @property(nonatomic, readonly, strong) GPBUInt32Array *fixed32List; 47 | @property(nonatomic, readonly, strong) GPBUInt64Array *fixed64List; 48 | @property(nonatomic, readonly, strong) NSArray *lengthDelimitedList; // NSData 49 | @property(nonatomic, readonly, strong) NSArray *groupList; // GPBUnknownFieldSet 50 | 51 | // Only one of these should be used per Field. 52 | - (void)addVarint:(uint64_t)value; 53 | - (void)addFixed32:(uint32_t)value; 54 | - (void)addFixed64:(uint64_t)value; 55 | - (void)addLengthDelimited:(NSData *)value; 56 | - (void)addGroup:(GPBUnknownFieldSet *)value; 57 | 58 | @end 59 | 60 | NS_ASSUME_NONNULL_END 61 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBUnknownFieldSet.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | @class GPBUnknownField; 34 | 35 | NS_ASSUME_NONNULL_BEGIN 36 | 37 | @interface GPBUnknownFieldSet : NSObject 38 | 39 | - (BOOL)hasField:(int32_t)number; 40 | - (nullable GPBUnknownField *)getField:(int32_t)number; 41 | - (NSUInteger)countOfFields; 42 | 43 | - (void)addField:(GPBUnknownField *)field; 44 | 45 | // Returns an NSArray of the GPBFields sorted by the field numbers. 46 | - (NSArray *)sortedFields; 47 | 48 | @end 49 | 50 | NS_ASSUME_NONNULL_END 51 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBUnknownFieldSet_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBUnknownFieldSet.h" 34 | 35 | @class GPBCodedOutputStream; 36 | @class GPBCodedInputStream; 37 | 38 | @interface GPBUnknownFieldSet () 39 | 40 | + (BOOL)isFieldTag:(int32_t)tag; 41 | 42 | - (NSData *)data; 43 | 44 | - (size_t)serializedSize; 45 | - (size_t)serializedSizeAsMessageSet; 46 | 47 | - (void)writeToCodedOutputStream:(GPBCodedOutputStream *)output; 48 | - (void)writeAsMessageSetTo:(GPBCodedOutputStream *)output; 49 | 50 | - (void)mergeUnknownFields:(GPBUnknownFieldSet *)other; 51 | 52 | - (void)mergeFromCodedInputStream:(GPBCodedInputStream *)input; 53 | - (void)mergeFromData:(NSData *)data; 54 | 55 | - (void)mergeVarintField:(int32_t)number value:(int32_t)value; 56 | - (BOOL)mergeFieldFrom:(int32_t)tag input:(GPBCodedInputStream *)input; 57 | - (void)mergeMessageSetMessage:(int32_t)number data:(NSData *)messageData; 58 | 59 | - (void)addUnknownMapEntry:(int32_t)fieldNum value:(NSData *)data; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBUnknownField_PackagePrivate.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "GPBUnknownField.h" 34 | 35 | @class GPBCodedOutputStream; 36 | 37 | @interface GPBUnknownField () 38 | 39 | - (instancetype)initWithNumber:(int32_t)number; 40 | 41 | - (void)writeToOutput:(GPBCodedOutputStream *)output; 42 | - (size_t)serializedSize; 43 | 44 | - (void)writeAsMessageSetExtensionToOutput:(GPBCodedOutputStream *)output; 45 | - (size_t)serializedSizeAsMessageSetExtension; 46 | 47 | - (void)mergeFromField:(GPBUnknownField *)other; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBWellKnownTypes.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2015 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import 32 | 33 | #import "google/protobuf/Duration.pbobjc.h" 34 | #import "google/protobuf/Timestamp.pbobjc.h" 35 | 36 | NS_ASSUME_NONNULL_BEGIN 37 | 38 | // Extension to GPBTimestamp to work with standard Foundation time/date types. 39 | @interface GPBTimestamp (GBPWellKnownTypes) 40 | @property(nonatomic, readwrite, strong) NSDate *date; 41 | @property(nonatomic, readwrite) NSTimeInterval timeIntervalSince1970; 42 | - (instancetype)initWithDate:(NSDate *)date; 43 | - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970; 44 | @end 45 | 46 | // Extension to GPBDuration to work with standard Foundation time type. 47 | @interface GPBDuration (GBPWellKnownTypes) 48 | @property(nonatomic, readwrite) NSTimeInterval timeIntervalSince1970; 49 | - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970; 50 | @end 51 | 52 | NS_ASSUME_NONNULL_END 53 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBWellKnownTypes.m: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2015 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | // Importing sources here to force the linker to include our category methods in 32 | // the static library. If these were compiled separately, the category methods 33 | // below would be stripped by the linker. 34 | 35 | #import "google/protobuf/Timestamp.pbobjc.m" 36 | #import "google/protobuf/Duration.pbobjc.m" 37 | #import "GPBWellKnownTypes.h" 38 | 39 | static NSTimeInterval TimeIntervalSince1970FromSecondsAndNanos(int64_t seconds, 40 | int32_t nanos) { 41 | return seconds + (NSTimeInterval)nanos / 1e9; 42 | } 43 | 44 | static int32_t SecondsAndNanosFromTimeIntervalSince1970(NSTimeInterval time, 45 | int64_t *outSeconds) { 46 | NSTimeInterval seconds; 47 | NSTimeInterval nanos = modf(time, &seconds); 48 | nanos *= 1e9; 49 | *outSeconds = (int64_t)seconds; 50 | return (int32_t)nanos; 51 | } 52 | 53 | @implementation GPBTimestamp (GBPWellKnownTypes) 54 | 55 | - (instancetype)initWithDate:(NSDate *)date { 56 | return [self initWithTimeIntervalSince1970:date.timeIntervalSince1970]; 57 | } 58 | 59 | - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970 { 60 | if ((self = [super init])) { 61 | int64_t seconds; 62 | int32_t nanos = SecondsAndNanosFromTimeIntervalSince1970( 63 | timeIntervalSince1970, &seconds); 64 | self.seconds = seconds; 65 | self.nanos = nanos; 66 | } 67 | return self; 68 | } 69 | 70 | - (NSDate *)date { 71 | return [NSDate dateWithTimeIntervalSince1970:self.timeIntervalSince1970]; 72 | } 73 | 74 | - (void)setDate:(NSDate *)date { 75 | self.timeIntervalSince1970 = date.timeIntervalSince1970; 76 | } 77 | 78 | - (NSTimeInterval)timeIntervalSince1970 { 79 | return TimeIntervalSince1970FromSecondsAndNanos(self.seconds, self.nanos); 80 | } 81 | 82 | - (void)setTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970 { 83 | int64_t seconds; 84 | int32_t nanos = 85 | SecondsAndNanosFromTimeIntervalSince1970(timeIntervalSince1970, &seconds); 86 | self.seconds = seconds; 87 | self.nanos = nanos; 88 | } 89 | 90 | @end 91 | 92 | @implementation GPBDuration (GBPWellKnownTypes) 93 | 94 | - (instancetype)initWithTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970 { 95 | if ((self = [super init])) { 96 | int64_t seconds; 97 | int32_t nanos = SecondsAndNanosFromTimeIntervalSince1970( 98 | timeIntervalSince1970, &seconds); 99 | self.seconds = seconds; 100 | self.nanos = nanos; 101 | } 102 | return self; 103 | } 104 | 105 | - (NSTimeInterval)timeIntervalSince1970 { 106 | return TimeIntervalSince1970FromSecondsAndNanos(self.seconds, self.nanos); 107 | } 108 | 109 | - (void)setTimeIntervalSince1970:(NSTimeInterval)timeIntervalSince1970 { 110 | int64_t seconds; 111 | int32_t nanos = 112 | SecondsAndNanosFromTimeIntervalSince1970(timeIntervalSince1970, &seconds); 113 | self.seconds = seconds; 114 | self.nanos = nanos; 115 | } 116 | 117 | @end 118 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBWireFormat.h: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import "GPBRuntimeTypes.h" 32 | 33 | CF_EXTERN_C_BEGIN 34 | 35 | NS_ASSUME_NONNULL_BEGIN 36 | 37 | typedef enum { 38 | GPBWireFormatVarint = 0, 39 | GPBWireFormatFixed64 = 1, 40 | GPBWireFormatLengthDelimited = 2, 41 | GPBWireFormatStartGroup = 3, 42 | GPBWireFormatEndGroup = 4, 43 | GPBWireFormatFixed32 = 5, 44 | } GPBWireFormat; 45 | 46 | enum { 47 | GPBWireFormatMessageSetItem = 1, 48 | GPBWireFormatMessageSetTypeId = 2, 49 | GPBWireFormatMessageSetMessage = 3 50 | }; 51 | 52 | uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) 53 | __attribute__((const)); 54 | GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) __attribute__((const)); 55 | uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) __attribute__((const)); 56 | 57 | GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) 58 | __attribute__((const)); 59 | 60 | #define GPBWireFormatMessageSetItemTag \ 61 | (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) 62 | #define GPBWireFormatMessageSetItemEndTag \ 63 | (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) 64 | #define GPBWireFormatMessageSetTypeIdTag \ 65 | (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) 66 | #define GPBWireFormatMessageSetMessageTag \ 67 | (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ 68 | GPBWireFormatLengthDelimited)) 69 | 70 | NS_ASSUME_NONNULL_END 71 | 72 | CF_EXTERN_C_END 73 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/GPBWireFormat.m: -------------------------------------------------------------------------------- 1 | // Protocol Buffers - Google's data interchange format 2 | // Copyright 2008 Google Inc. All rights reserved. 3 | // https://developers.google.com/protocol-buffers/ 4 | // 5 | // Redistribution and use in source and binary forms, with or without 6 | // modification, are permitted provided that the following conditions are 7 | // met: 8 | // 9 | // * Redistributions of source code must retain the above copyright 10 | // notice, this list of conditions and the following disclaimer. 11 | // * Redistributions in binary form must reproduce the above 12 | // copyright notice, this list of conditions and the following disclaimer 13 | // in the documentation and/or other materials provided with the 14 | // distribution. 15 | // * Neither the name of Google Inc. nor the names of its 16 | // contributors may be used to endorse or promote products derived from 17 | // this software without specific prior written permission. 18 | // 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | #import "GPBWireFormat.h" 32 | 33 | #import "GPBUtilities_PackagePrivate.h" 34 | 35 | enum { 36 | GPBWireFormatTagTypeBits = 3, 37 | GPBWireFormatTagTypeMask = 7 /* = (1 << GPBWireFormatTagTypeBits) - 1 */, 38 | }; 39 | 40 | uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) { 41 | return (fieldNumber << GPBWireFormatTagTypeBits) | wireType; 42 | } 43 | 44 | GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) { 45 | return (GPBWireFormat)(tag & GPBWireFormatTagTypeMask); 46 | } 47 | 48 | uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) { 49 | return GPBLogicalRightShift32(tag, GPBWireFormatTagTypeBits); 50 | } 51 | 52 | GPBWireFormat GPBWireFormatForType(GPBDataType type, BOOL isPacked) { 53 | if (isPacked) { 54 | return GPBWireFormatLengthDelimited; 55 | } 56 | 57 | static const GPBWireFormat format[GPBDataType_Count] = { 58 | GPBWireFormatVarint, // GPBDataTypeBool 59 | GPBWireFormatFixed32, // GPBDataTypeFixed32 60 | GPBWireFormatFixed32, // GPBDataTypeSFixed32 61 | GPBWireFormatFixed32, // GPBDataTypeFloat 62 | GPBWireFormatFixed64, // GPBDataTypeFixed64 63 | GPBWireFormatFixed64, // GPBDataTypeSFixed64 64 | GPBWireFormatFixed64, // GPBDataTypeDouble 65 | GPBWireFormatVarint, // GPBDataTypeInt32 66 | GPBWireFormatVarint, // GPBDataTypeInt64 67 | GPBWireFormatVarint, // GPBDataTypeSInt32 68 | GPBWireFormatVarint, // GPBDataTypeSInt64 69 | GPBWireFormatVarint, // GPBDataTypeUInt32 70 | GPBWireFormatVarint, // GPBDataTypeUInt64 71 | GPBWireFormatLengthDelimited, // GPBDataTypeBytes 72 | GPBWireFormatLengthDelimited, // GPBDataTypeString 73 | GPBWireFormatLengthDelimited, // GPBDataTypeMessage 74 | GPBWireFormatStartGroup, // GPBDataTypeGroup 75 | GPBWireFormatVarint // GPBDataTypeEnum 76 | }; 77 | return format[type]; 78 | } 79 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Any.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/any.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBAnyRoot 17 | 18 | @interface GPBAnyRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBAny 28 | 29 | typedef GPB_ENUM(GPBAny_FieldNumber) { 30 | GPBAny_FieldNumber_TypeURL = 1, 31 | GPBAny_FieldNumber_Value = 2, 32 | }; 33 | 34 | // `Any` contains an arbitrary serialized message along with a URL 35 | // that describes the type of the serialized message. 36 | // 37 | // 38 | // JSON 39 | // ==== 40 | // The JSON representation of an `Any` value uses the regular 41 | // representation of the deserialized, embedded message, with an 42 | // additional field `@type` which contains the type URL. Example: 43 | // 44 | // package google.profile; 45 | // message Person { 46 | // string first_name = 1; 47 | // string last_name = 2; 48 | // } 49 | // 50 | // { 51 | // "@type": "type.googleapis.com/google.profile.Person", 52 | // "firstName": , 53 | // "lastName": 54 | // } 55 | // 56 | // If the embedded message type is well-known and has a custom JSON 57 | // representation, that representation will be embedded adding a field 58 | // `value` which holds the custom JSON in addition to the `@type` 59 | // field. Example (for message [google.protobuf.Duration][]): 60 | // 61 | // { 62 | // "@type": "type.googleapis.com/google.protobuf.Duration", 63 | // "value": "1.212s" 64 | // } 65 | @interface GPBAny : GPBMessage 66 | 67 | // A URL/resource name whose content describes the type of the 68 | // serialized message. 69 | // 70 | // For URLs which use the schema `http`, `https`, or no schema, the 71 | // following restrictions and interpretations apply: 72 | // 73 | // * If no schema is provided, `https` is assumed. 74 | // * The last segment of the URL's path must represent the fully 75 | // qualified name of the type (as in `path/google.protobuf.Duration`). 76 | // * An HTTP GET on the URL must yield a [google.protobuf.Type][] 77 | // value in binary format, or produce an error. 78 | // * Applications are allowed to cache lookup results based on the 79 | // URL, or have them precompiled into a binary to avoid any 80 | // lookup. Therefore, binary compatibility needs to be preserved 81 | // on changes to types. (Use versioned type names to manage 82 | // breaking changes.) 83 | // 84 | // Schemas other than `http`, `https` (or the empty schema) might be 85 | // used with implementation specific semantics. 86 | @property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL; 87 | 88 | // Must be valid serialized data of the above specified type. 89 | @property(nonatomic, readwrite, copy, null_resettable) NSData *value; 90 | 91 | @end 92 | 93 | NS_ASSUME_NONNULL_END 94 | 95 | CF_EXTERN_C_END 96 | 97 | // @@protoc_insertion_point(global_scope) 98 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Any.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/any.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/Any.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBAnyRoot 9 | 10 | @implementation GPBAnyRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBAnyRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBAnyRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBAny 29 | 30 | @implementation GPBAny 31 | 32 | @dynamic typeURL; 33 | @dynamic value; 34 | 35 | typedef struct GPBAny__storage_ { 36 | uint32_t _has_storage_[1]; 37 | NSString *typeURL; 38 | NSData *value; 39 | } GPBAny__storage_; 40 | 41 | // This method is threadsafe because it is initially called 42 | // in +initialize for each subclass. 43 | + (GPBDescriptor *)descriptor { 44 | static GPBDescriptor *descriptor = nil; 45 | if (!descriptor) { 46 | static GPBMessageFieldDescription fields[] = { 47 | { 48 | .name = "typeURL", 49 | .number = GPBAny_FieldNumber_TypeURL, 50 | .hasIndex = 0, 51 | .flags = GPBFieldOptional | GPBFieldTextFormatNameCustom, 52 | .dataType = GPBDataTypeString, 53 | .offset = offsetof(GPBAny__storage_, typeURL), 54 | .defaultValue.valueString = nil, 55 | .dataTypeSpecific.className = NULL, 56 | .fieldOptions = NULL, 57 | }, 58 | { 59 | .name = "value", 60 | .number = GPBAny_FieldNumber_Value, 61 | .hasIndex = 1, 62 | .flags = GPBFieldOptional, 63 | .dataType = GPBDataTypeBytes, 64 | .offset = offsetof(GPBAny__storage_, value), 65 | .defaultValue.valueData = nil, 66 | .dataTypeSpecific.className = NULL, 67 | .fieldOptions = NULL, 68 | }, 69 | }; 70 | #if GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 71 | const char *extraTextFormatInfo = NULL; 72 | #else 73 | static const char *extraTextFormatInfo = "\001\001\004\241!!\000"; 74 | #endif // GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS 75 | GPBDescriptor *localDescriptor = 76 | [GPBDescriptor allocDescriptorForClass:[GPBAny class] 77 | rootClass:[GPBAnyRoot class] 78 | file:GPBAnyRoot_FileDescriptor() 79 | fields:fields 80 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 81 | oneofs:NULL 82 | oneofCount:0 83 | enums:NULL 84 | enumCount:0 85 | ranges:NULL 86 | rangeCount:0 87 | storageSize:sizeof(GPBAny__storage_) 88 | wireFormat:NO 89 | extraTextFormatInfo:extraTextFormatInfo]; 90 | NSAssert(descriptor == nil, @"Startup recursed!"); 91 | descriptor = localDescriptor; 92 | } 93 | return descriptor; 94 | } 95 | 96 | @end 97 | 98 | 99 | // @@protoc_insertion_point(global_scope) 100 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Duration.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/duration.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBDurationRoot 17 | 18 | @interface GPBDurationRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBDuration 28 | 29 | typedef GPB_ENUM(GPBDuration_FieldNumber) { 30 | GPBDuration_FieldNumber_Seconds = 1, 31 | GPBDuration_FieldNumber_Nanos = 2, 32 | }; 33 | 34 | // A Duration represents a signed, fixed-length span of time represented 35 | // as a count of seconds and fractions of seconds at nanosecond 36 | // resolution. It is independent of any calendar and concepts like "day" 37 | // or "month". It is related to Timestamp in that the difference between 38 | // two Timestamp values is a Duration and it can be added or subtracted 39 | // from a Timestamp. Range is approximately +-10,000 years. 40 | // 41 | // Example 1: Compute Duration from two Timestamps in pseudo code. 42 | // 43 | // Timestamp start = ...; 44 | // Timestamp end = ...; 45 | // Duration duration = ...; 46 | // 47 | // duration.seconds = end.seconds - start.seconds; 48 | // duration.nanos = end.nanos - start.nanos; 49 | // 50 | // if (duration.seconds < 0 && duration.nanos > 0) { 51 | // duration.seconds += 1; 52 | // duration.nanos -= 1000000000; 53 | // } else if (durations.seconds > 0 && duration.nanos < 0) { 54 | // duration.seconds -= 1; 55 | // duration.nanos += 1000000000; 56 | // } 57 | // 58 | // Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. 59 | // 60 | // Timestamp start = ...; 61 | // Duration duration = ...; 62 | // Timestamp end = ...; 63 | // 64 | // end.seconds = start.seconds + duration.seconds; 65 | // end.nanos = start.nanos + duration.nanos; 66 | // 67 | // if (end.nanos < 0) { 68 | // end.seconds -= 1; 69 | // end.nanos += 1000000000; 70 | // } else if (end.nanos >= 1000000000) { 71 | // end.seconds += 1; 72 | // end.nanos -= 1000000000; 73 | // } 74 | @interface GPBDuration : GPBMessage 75 | 76 | // Signed seconds of the span of time. Must be from -315,576,000,000 77 | // to +315,576,000,000 inclusive. 78 | @property(nonatomic, readwrite) int64_t seconds; 79 | 80 | // Signed fractions of a second at nanosecond resolution of the span 81 | // of time. Durations less than one second are represented with a 0 82 | // `seconds` field and a positive or negative `nanos` field. For durations 83 | // of one second or more, a non-zero value for the `nanos` field must be 84 | // of the same sign as the `seconds` field. Must be from -999,999,999 85 | // to +999,999,999 inclusive. 86 | @property(nonatomic, readwrite) int32_t nanos; 87 | 88 | @end 89 | 90 | NS_ASSUME_NONNULL_END 91 | 92 | CF_EXTERN_C_END 93 | 94 | // @@protoc_insertion_point(global_scope) 95 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Duration.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/duration.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/Duration.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBDurationRoot 9 | 10 | @implementation GPBDurationRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBDurationRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBDurationRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBDuration 29 | 30 | @implementation GPBDuration 31 | 32 | @dynamic seconds; 33 | @dynamic nanos; 34 | 35 | typedef struct GPBDuration__storage_ { 36 | uint32_t _has_storage_[1]; 37 | int32_t nanos; 38 | int64_t seconds; 39 | } GPBDuration__storage_; 40 | 41 | // This method is threadsafe because it is initially called 42 | // in +initialize for each subclass. 43 | + (GPBDescriptor *)descriptor { 44 | static GPBDescriptor *descriptor = nil; 45 | if (!descriptor) { 46 | static GPBMessageFieldDescription fields[] = { 47 | { 48 | .name = "seconds", 49 | .number = GPBDuration_FieldNumber_Seconds, 50 | .hasIndex = 0, 51 | .flags = GPBFieldOptional, 52 | .dataType = GPBDataTypeInt64, 53 | .offset = offsetof(GPBDuration__storage_, seconds), 54 | .defaultValue.valueInt64 = 0LL, 55 | .dataTypeSpecific.className = NULL, 56 | .fieldOptions = NULL, 57 | }, 58 | { 59 | .name = "nanos", 60 | .number = GPBDuration_FieldNumber_Nanos, 61 | .hasIndex = 1, 62 | .flags = GPBFieldOptional, 63 | .dataType = GPBDataTypeInt32, 64 | .offset = offsetof(GPBDuration__storage_, nanos), 65 | .defaultValue.valueInt32 = 0, 66 | .dataTypeSpecific.className = NULL, 67 | .fieldOptions = NULL, 68 | }, 69 | }; 70 | GPBDescriptor *localDescriptor = 71 | [GPBDescriptor allocDescriptorForClass:[GPBDuration class] 72 | rootClass:[GPBDurationRoot class] 73 | file:GPBDurationRoot_FileDescriptor() 74 | fields:fields 75 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 76 | oneofs:NULL 77 | oneofCount:0 78 | enums:NULL 79 | enumCount:0 80 | ranges:NULL 81 | rangeCount:0 82 | storageSize:sizeof(GPBDuration__storage_) 83 | wireFormat:NO]; 84 | NSAssert(descriptor == nil, @"Startup recursed!"); 85 | descriptor = localDescriptor; 86 | } 87 | return descriptor; 88 | } 89 | 90 | @end 91 | 92 | 93 | // @@protoc_insertion_point(global_scope) 94 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Empty.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/empty.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBEmptyRoot 17 | 18 | @interface GPBEmptyRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBEmpty 28 | 29 | // A generic empty message that you can re-use to avoid defining duplicated 30 | // empty messages in your APIs. A typical example is to use it as the request 31 | // or the response type of an API method. For instance: 32 | // 33 | // service Foo { 34 | // rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 35 | // } 36 | // 37 | // The JSON representation for `Empty` is empty JSON object `{}`. 38 | @interface GPBEmpty : GPBMessage 39 | 40 | @end 41 | 42 | NS_ASSUME_NONNULL_END 43 | 44 | CF_EXTERN_C_END 45 | 46 | // @@protoc_insertion_point(global_scope) 47 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Empty.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/empty.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/Empty.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBEmptyRoot 9 | 10 | @implementation GPBEmptyRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBEmptyRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBEmptyRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBEmpty 29 | 30 | @implementation GPBEmpty 31 | 32 | 33 | typedef struct GPBEmpty__storage_ { 34 | uint32_t _has_storage_[0]; 35 | } GPBEmpty__storage_; 36 | 37 | // This method is threadsafe because it is initially called 38 | // in +initialize for each subclass. 39 | + (GPBDescriptor *)descriptor { 40 | static GPBDescriptor *descriptor = nil; 41 | if (!descriptor) { 42 | GPBDescriptor *localDescriptor = 43 | [GPBDescriptor allocDescriptorForClass:[GPBEmpty class] 44 | rootClass:[GPBEmptyRoot class] 45 | file:GPBEmptyRoot_FileDescriptor() 46 | fields:NULL 47 | fieldCount:0 48 | oneofs:NULL 49 | oneofCount:0 50 | enums:NULL 51 | enumCount:0 52 | ranges:NULL 53 | rangeCount:0 54 | storageSize:sizeof(GPBEmpty__storage_) 55 | wireFormat:NO]; 56 | NSAssert(descriptor == nil, @"Startup recursed!"); 57 | descriptor = localDescriptor; 58 | } 59 | return descriptor; 60 | } 61 | 62 | @end 63 | 64 | 65 | // @@protoc_insertion_point(global_scope) 66 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/field_mask.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBFieldMaskRoot 17 | 18 | @interface GPBFieldMaskRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBFieldMask 28 | 29 | typedef GPB_ENUM(GPBFieldMask_FieldNumber) { 30 | GPBFieldMask_FieldNumber_PathsArray = 1, 31 | }; 32 | 33 | // `FieldMask` represents a set of symbolic field paths, for example: 34 | // 35 | // paths: "f.a" 36 | // paths: "f.b.d" 37 | // 38 | // Here `f` represents a field in some root message, `a` and `b` 39 | // fields in the message found in `f`, and `d` a field found in the 40 | // message in `f.b`. 41 | // 42 | // Field masks are used to specify a subset of fields that should be 43 | // returned by a get operation or modified by an update operation. 44 | // Field masks also have a custom JSON encoding (see below). 45 | // 46 | // # Field Masks in Projections 47 | // 48 | // When used in the context of a projection, a response message or 49 | // sub-message is filtered by the API to only contain those fields as 50 | // specified in the mask. For example, if the mask in the previous 51 | // example is applied to a response message as follows: 52 | // 53 | // f { 54 | // a : 22 55 | // b { 56 | // d : 1 57 | // x : 2 58 | // } 59 | // y : 13 60 | // } 61 | // z: 8 62 | // 63 | // The result will not contain specific values for fields x,y and z 64 | // (their value will be set to the default, and omitted in proto text 65 | // output): 66 | // 67 | // 68 | // f { 69 | // a : 22 70 | // b { 71 | // d : 1 72 | // } 73 | // } 74 | // 75 | // A repeated field is not allowed except at the last position of a 76 | // field mask. 77 | // 78 | // If a FieldMask object is not present in a get operation, the 79 | // operation applies to all fields (as if a FieldMask of all fields 80 | // had been specified). 81 | // 82 | // Note that a field mask does not necessarily applies to the 83 | // top-level response message. In case of a REST get operation, the 84 | // field mask applies directly to the response, but in case of a REST 85 | // list operation, the mask instead applies to each individual message 86 | // in the returned resource list. In case of a REST custom method, 87 | // other definitions may be used. Where the mask applies will be 88 | // clearly documented together with its declaration in the API. In 89 | // any case, the effect on the returned resource/resources is required 90 | // behavior for APIs. 91 | // 92 | // # Field Masks in Update Operations 93 | // 94 | // A field mask in update operations specifies which fields of the 95 | // targeted resource are going to be updated. The API is required 96 | // to only change the values of the fields as specified in the mask 97 | // and leave the others untouched. If a resource is passed in to 98 | // describe the updated values, the API ignores the values of all 99 | // fields not covered by the mask. 100 | // 101 | // In order to reset a field's value to the default, the field must 102 | // be in the mask and set to the default value in the provided resource. 103 | // Hence, in order to reset all fields of a resource, provide a default 104 | // instance of the resource and set all fields in the mask, or do 105 | // not provide a mask as described below. 106 | // 107 | // If a field mask is not present on update, the operation applies to 108 | // all fields (as if a field mask of all fields has been specified). 109 | // Note that in the presence of schema evolution, this may mean that 110 | // fields the client does not know and has therefore not filled into 111 | // the request will be reset to their default. If this is unwanted 112 | // behavior, a specific service may require a client to always specify 113 | // a field mask, producing an error if not. 114 | // 115 | // As with get operations, the location of the resource which 116 | // describes the updated values in the request message depends on the 117 | // operation kind. In any case, the effect of the field mask is 118 | // required to be honored by the API. 119 | // 120 | // ## Considerations for HTTP REST 121 | // 122 | // The HTTP kind of an update operation which uses a field mask must 123 | // be set to PATCH instead of PUT in order to satisfy HTTP semantics 124 | // (PUT must only be used for full updates). 125 | // 126 | // # JSON Encoding of Field Masks 127 | // 128 | // In JSON, a field mask is encoded as a single string where paths are 129 | // separated by a comma. Fields name in each path are converted 130 | // to/from lower-camel naming conventions. 131 | // 132 | // As an example, consider the following message declarations: 133 | // 134 | // message Profile { 135 | // User user = 1; 136 | // Photo photo = 2; 137 | // } 138 | // message User { 139 | // string display_name = 1; 140 | // string address = 2; 141 | // } 142 | // 143 | // In proto a field mask for `Profile` may look as such: 144 | // 145 | // mask { 146 | // paths: "user.display_name" 147 | // paths: "photo" 148 | // } 149 | // 150 | // In JSON, the same mask is represented as below: 151 | // 152 | // { 153 | // mask: "user.displayName,photo" 154 | // } 155 | @interface GPBFieldMask : GPBMessage 156 | 157 | // The set of field mask paths. 158 | // |pathsArray| contains |NSString| 159 | @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *pathsArray; 160 | @property(nonatomic, readonly) NSUInteger pathsArray_Count; 161 | 162 | @end 163 | 164 | NS_ASSUME_NONNULL_END 165 | 166 | CF_EXTERN_C_END 167 | 168 | // @@protoc_insertion_point(global_scope) 169 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/field_mask.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/FieldMask.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBFieldMaskRoot 9 | 10 | @implementation GPBFieldMaskRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBFieldMaskRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBFieldMaskRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBFieldMask 29 | 30 | @implementation GPBFieldMask 31 | 32 | @dynamic pathsArray, pathsArray_Count; 33 | 34 | typedef struct GPBFieldMask__storage_ { 35 | uint32_t _has_storage_[1]; 36 | NSMutableArray *pathsArray; 37 | } GPBFieldMask__storage_; 38 | 39 | // This method is threadsafe because it is initially called 40 | // in +initialize for each subclass. 41 | + (GPBDescriptor *)descriptor { 42 | static GPBDescriptor *descriptor = nil; 43 | if (!descriptor) { 44 | static GPBMessageFieldDescription fields[] = { 45 | { 46 | .name = "pathsArray", 47 | .number = GPBFieldMask_FieldNumber_PathsArray, 48 | .hasIndex = GPBNoHasBit, 49 | .flags = GPBFieldRepeated, 50 | .dataType = GPBDataTypeString, 51 | .offset = offsetof(GPBFieldMask__storage_, pathsArray), 52 | .defaultValue.valueMessage = nil, 53 | .dataTypeSpecific.className = NULL, 54 | .fieldOptions = NULL, 55 | }, 56 | }; 57 | GPBDescriptor *localDescriptor = 58 | [GPBDescriptor allocDescriptorForClass:[GPBFieldMask class] 59 | rootClass:[GPBFieldMaskRoot class] 60 | file:GPBFieldMaskRoot_FileDescriptor() 61 | fields:fields 62 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 63 | oneofs:NULL 64 | oneofCount:0 65 | enums:NULL 66 | enumCount:0 67 | ranges:NULL 68 | rangeCount:0 69 | storageSize:sizeof(GPBFieldMask__storage_) 70 | wireFormat:NO]; 71 | NSAssert(descriptor == nil, @"Startup recursed!"); 72 | descriptor = localDescriptor; 73 | } 74 | return descriptor; 75 | } 76 | 77 | @end 78 | 79 | 80 | // @@protoc_insertion_point(global_scope) 81 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/SourceContext.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/source_context.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBSourceContextRoot 17 | 18 | @interface GPBSourceContextRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBSourceContext 28 | 29 | typedef GPB_ENUM(GPBSourceContext_FieldNumber) { 30 | GPBSourceContext_FieldNumber_FileName = 1, 31 | }; 32 | 33 | // `SourceContext` represents information about the source of a 34 | // protobuf element, like the file in which it is defined. 35 | @interface GPBSourceContext : GPBMessage 36 | 37 | // The path-qualified name of the .proto file that contained the associated 38 | // protobuf element. For example: `"google/protobuf/source.proto"`. 39 | @property(nonatomic, readwrite, copy, null_resettable) NSString *fileName; 40 | 41 | @end 42 | 43 | NS_ASSUME_NONNULL_END 44 | 45 | CF_EXTERN_C_END 46 | 47 | // @@protoc_insertion_point(global_scope) 48 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/SourceContext.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/source_context.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/SourceContext.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBSourceContextRoot 9 | 10 | @implementation GPBSourceContextRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBSourceContextRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBSourceContextRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBSourceContext 29 | 30 | @implementation GPBSourceContext 31 | 32 | @dynamic fileName; 33 | 34 | typedef struct GPBSourceContext__storage_ { 35 | uint32_t _has_storage_[1]; 36 | NSString *fileName; 37 | } GPBSourceContext__storage_; 38 | 39 | // This method is threadsafe because it is initially called 40 | // in +initialize for each subclass. 41 | + (GPBDescriptor *)descriptor { 42 | static GPBDescriptor *descriptor = nil; 43 | if (!descriptor) { 44 | static GPBMessageFieldDescription fields[] = { 45 | { 46 | .name = "fileName", 47 | .number = GPBSourceContext_FieldNumber_FileName, 48 | .hasIndex = 0, 49 | .flags = GPBFieldOptional, 50 | .dataType = GPBDataTypeString, 51 | .offset = offsetof(GPBSourceContext__storage_, fileName), 52 | .defaultValue.valueString = nil, 53 | .dataTypeSpecific.className = NULL, 54 | .fieldOptions = NULL, 55 | }, 56 | }; 57 | GPBDescriptor *localDescriptor = 58 | [GPBDescriptor allocDescriptorForClass:[GPBSourceContext class] 59 | rootClass:[GPBSourceContextRoot class] 60 | file:GPBSourceContextRoot_FileDescriptor() 61 | fields:fields 62 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 63 | oneofs:NULL 64 | oneofCount:0 65 | enums:NULL 66 | enumCount:0 67 | ranges:NULL 68 | rangeCount:0 69 | storageSize:sizeof(GPBSourceContext__storage_) 70 | wireFormat:NO]; 71 | NSAssert(descriptor == nil, @"Startup recursed!"); 72 | descriptor = localDescriptor; 73 | } 74 | return descriptor; 75 | } 76 | 77 | @end 78 | 79 | 80 | // @@protoc_insertion_point(global_scope) 81 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Struct.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/struct.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | @class GPBListValue; 15 | @class GPBStruct; 16 | 17 | NS_ASSUME_NONNULL_BEGIN 18 | 19 | #pragma mark - Enum GPBNullValue 20 | 21 | // `NullValue` is a singleton enumeration to represent the null value for the 22 | // `Value` type union. 23 | // 24 | // The JSON representation for `NullValue` is JSON `null`. 25 | typedef GPB_ENUM(GPBNullValue) { 26 | GPBNullValue_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue, 27 | // Null value. 28 | GPBNullValue_NullValue = 0, 29 | }; 30 | 31 | GPBEnumDescriptor *GPBNullValue_EnumDescriptor(void); 32 | 33 | BOOL GPBNullValue_IsValidValue(int32_t value); 34 | 35 | #pragma mark - GPBStructRoot 36 | 37 | @interface GPBStructRoot : GPBRootObject 38 | 39 | // The base class provides: 40 | // + (GPBExtensionRegistry *)extensionRegistry; 41 | // which is an GPBExtensionRegistry that includes all the extensions defined by 42 | // this file and all files that it depends on. 43 | 44 | @end 45 | 46 | #pragma mark - GPBStruct 47 | 48 | typedef GPB_ENUM(GPBStruct_FieldNumber) { 49 | GPBStruct_FieldNumber_Fields = 1, 50 | }; 51 | 52 | // `Struct` represents a structured data value, consisting of fields 53 | // which map to dynamically typed values. In some languages, `Struct` 54 | // might be supported by a native representation. For example, in 55 | // scripting languages like JS a struct is represented as an 56 | // object. The details of that representation are described together 57 | // with the proto support for the language. 58 | // 59 | // The JSON representation for `Struct` is JSON object. 60 | @interface GPBStruct : GPBMessage 61 | 62 | // Map of dynamically typed values. 63 | // |fields| values are |GPBValue| 64 | @property(nonatomic, readwrite, strong, null_resettable) NSMutableDictionary *fields; 65 | @property(nonatomic, readonly) NSUInteger fields_Count; 66 | 67 | @end 68 | 69 | #pragma mark - GPBValue 70 | 71 | typedef GPB_ENUM(GPBValue_FieldNumber) { 72 | GPBValue_FieldNumber_NullValue = 1, 73 | GPBValue_FieldNumber_NumberValue = 2, 74 | GPBValue_FieldNumber_StringValue = 3, 75 | GPBValue_FieldNumber_BoolValue = 4, 76 | GPBValue_FieldNumber_StructValue = 5, 77 | GPBValue_FieldNumber_ListValue = 6, 78 | }; 79 | 80 | typedef GPB_ENUM(GPBValue_Kind_OneOfCase) { 81 | GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase = 0, 82 | GPBValue_Kind_OneOfCase_NullValue = 1, 83 | GPBValue_Kind_OneOfCase_NumberValue = 2, 84 | GPBValue_Kind_OneOfCase_StringValue = 3, 85 | GPBValue_Kind_OneOfCase_BoolValue = 4, 86 | GPBValue_Kind_OneOfCase_StructValue = 5, 87 | GPBValue_Kind_OneOfCase_ListValue = 6, 88 | }; 89 | 90 | // `Value` represents a dynamically typed value which can be either 91 | // null, a number, a string, a boolean, a recursive struct value, or a 92 | // list of values. A producer of value is expected to set one of that 93 | // variants, absence of any variant indicates an error. 94 | // 95 | // The JSON representation for `Value` is JSON value. 96 | @interface GPBValue : GPBMessage 97 | 98 | // The kind of value. 99 | @property(nonatomic, readonly) GPBValue_Kind_OneOfCase kindOneOfCase; 100 | 101 | // Represents a null value. 102 | @property(nonatomic, readwrite) GPBNullValue nullValue; 103 | 104 | // Represents a double value. 105 | @property(nonatomic, readwrite) double numberValue; 106 | 107 | // Represents a string value. 108 | @property(nonatomic, readwrite, copy, null_resettable) NSString *stringValue; 109 | 110 | // Represents a boolean value. 111 | @property(nonatomic, readwrite) BOOL boolValue; 112 | 113 | // Represents a structured value. 114 | @property(nonatomic, readwrite, strong, null_resettable) GPBStruct *structValue; 115 | 116 | // Represents a repeated `Value`. 117 | @property(nonatomic, readwrite, strong, null_resettable) GPBListValue *listValue; 118 | 119 | @end 120 | 121 | int32_t GPBValue_NullValue_RawValue(GPBValue *message); 122 | void SetGPBValue_NullValue_RawValue(GPBValue *message, int32_t value); 123 | 124 | void GPBValue_ClearKindOneOfCase(GPBValue *message); 125 | 126 | #pragma mark - GPBListValue 127 | 128 | typedef GPB_ENUM(GPBListValue_FieldNumber) { 129 | GPBListValue_FieldNumber_ValuesArray = 1, 130 | }; 131 | 132 | // `ListValue` is a wrapper around a repeated field of values. 133 | // 134 | // The JSON representation for `ListValue` is JSON array. 135 | @interface GPBListValue : GPBMessage 136 | 137 | // Repeated field of dynamically typed values. 138 | // |valuesArray| contains |GPBValue| 139 | @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *valuesArray; 140 | @property(nonatomic, readonly) NSUInteger valuesArray_Count; 141 | 142 | @end 143 | 144 | NS_ASSUME_NONNULL_END 145 | 146 | CF_EXTERN_C_END 147 | 148 | // @@protoc_insertion_point(global_scope) 149 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Timestamp.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/timestamp.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBTimestampRoot 17 | 18 | @interface GPBTimestampRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBTimestamp 28 | 29 | typedef GPB_ENUM(GPBTimestamp_FieldNumber) { 30 | GPBTimestamp_FieldNumber_Seconds = 1, 31 | GPBTimestamp_FieldNumber_Nanos = 2, 32 | }; 33 | 34 | // A Timestamp represents a point in time independent of any time zone 35 | // or calendar, represented as seconds and fractions of seconds at 36 | // nanosecond resolution in UTC Epoch time. It is encoded using the 37 | // Proleptic Gregorian Calendar which extends the Gregorian calendar 38 | // backwards to year one. It is encoded assuming all minutes are 60 39 | // seconds long, i.e. leap seconds are "smeared" so that no leap second 40 | // table is needed for interpretation. Range is from 41 | // 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. 42 | // By restricting to that range, we ensure that we can convert to 43 | // and from RFC 3339 date strings. 44 | // See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). 45 | // 46 | // Example 1: Compute Timestamp from POSIX `time()`. 47 | // 48 | // Timestamp timestamp; 49 | // timestamp.set_seconds(time(NULL)); 50 | // timestamp.set_nanos(0); 51 | // 52 | // Example 2: Compute Timestamp from POSIX `gettimeofday()`. 53 | // 54 | // struct timeval tv; 55 | // gettimeofday(&tv, NULL); 56 | // 57 | // Timestamp timestamp; 58 | // timestamp.set_seconds(tv.tv_sec); 59 | // timestamp.set_nanos(tv.tv_usec * 1000); 60 | // 61 | // Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. 62 | // 63 | // FILETIME ft; 64 | // GetSystemTimeAsFileTime(&ft); 65 | // UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; 66 | // 67 | // // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z 68 | // // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. 69 | // Timestamp timestamp; 70 | // timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); 71 | // timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); 72 | // 73 | // Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. 74 | // 75 | // long millis = System.currentTimeMillis(); 76 | // 77 | // Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) 78 | // .setNanos((int) ((millis % 1000) * 1000000)).build(); 79 | // 80 | // 81 | // Example 5: Compute Timestamp from current time in Python. 82 | // 83 | // now = time.time() 84 | // seconds = int(now) 85 | // nanos = int((now - seconds) * 10**9) 86 | // timestamp = Timestamp(seconds=seconds, nanos=nanos) 87 | @interface GPBTimestamp : GPBMessage 88 | 89 | // Represents seconds of UTC time since Unix epoch 90 | // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to 91 | // 9999-12-31T23:59:59Z inclusive. 92 | @property(nonatomic, readwrite) int64_t seconds; 93 | 94 | // Non-negative fractions of a second at nanosecond resolution. Negative 95 | // second values with fractions must still have non-negative nanos values 96 | // that count forward in time. Must be from 0 to 999,999,999 97 | // inclusive. 98 | @property(nonatomic, readwrite) int32_t nanos; 99 | 100 | @end 101 | 102 | NS_ASSUME_NONNULL_END 103 | 104 | CF_EXTERN_C_END 105 | 106 | // @@protoc_insertion_point(global_scope) 107 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Timestamp.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/timestamp.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "google/protobuf/Timestamp.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - GPBTimestampRoot 9 | 10 | @implementation GPBTimestampRoot 11 | 12 | @end 13 | 14 | #pragma mark - GPBTimestampRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *GPBTimestampRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf" 23 | syntax:GPBFileSyntaxProto3]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - GPBTimestamp 29 | 30 | @implementation GPBTimestamp 31 | 32 | @dynamic seconds; 33 | @dynamic nanos; 34 | 35 | typedef struct GPBTimestamp__storage_ { 36 | uint32_t _has_storage_[1]; 37 | int32_t nanos; 38 | int64_t seconds; 39 | } GPBTimestamp__storage_; 40 | 41 | // This method is threadsafe because it is initially called 42 | // in +initialize for each subclass. 43 | + (GPBDescriptor *)descriptor { 44 | static GPBDescriptor *descriptor = nil; 45 | if (!descriptor) { 46 | static GPBMessageFieldDescription fields[] = { 47 | { 48 | .name = "seconds", 49 | .number = GPBTimestamp_FieldNumber_Seconds, 50 | .hasIndex = 0, 51 | .flags = GPBFieldOptional, 52 | .dataType = GPBDataTypeInt64, 53 | .offset = offsetof(GPBTimestamp__storage_, seconds), 54 | .defaultValue.valueInt64 = 0LL, 55 | .dataTypeSpecific.className = NULL, 56 | .fieldOptions = NULL, 57 | }, 58 | { 59 | .name = "nanos", 60 | .number = GPBTimestamp_FieldNumber_Nanos, 61 | .hasIndex = 1, 62 | .flags = GPBFieldOptional, 63 | .dataType = GPBDataTypeInt32, 64 | .offset = offsetof(GPBTimestamp__storage_, nanos), 65 | .defaultValue.valueInt32 = 0, 66 | .dataTypeSpecific.className = NULL, 67 | .fieldOptions = NULL, 68 | }, 69 | }; 70 | GPBDescriptor *localDescriptor = 71 | [GPBDescriptor allocDescriptorForClass:[GPBTimestamp class] 72 | rootClass:[GPBTimestampRoot class] 73 | file:GPBTimestampRoot_FileDescriptor() 74 | fields:fields 75 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 76 | oneofs:NULL 77 | oneofCount:0 78 | enums:NULL 79 | enumCount:0 80 | ranges:NULL 81 | rangeCount:0 82 | storageSize:sizeof(GPBTimestamp__storage_) 83 | wireFormat:NO]; 84 | NSAssert(descriptor == nil, @"Startup recursed!"); 85 | descriptor = localDescriptor; 86 | } 87 | return descriptor; 88 | } 89 | 90 | @end 91 | 92 | 93 | // @@protoc_insertion_point(global_scope) 94 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Protobuf/objectivec/google/protobuf/Wrappers.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: google/protobuf/wrappers.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - GPBWrappersRoot 17 | 18 | @interface GPBWrappersRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - GPBDoubleValue 28 | 29 | typedef GPB_ENUM(GPBDoubleValue_FieldNumber) { 30 | GPBDoubleValue_FieldNumber_Value = 1, 31 | }; 32 | 33 | // Wrapper message for `double`. 34 | // 35 | // The JSON representation for `DoubleValue` is JSON number. 36 | @interface GPBDoubleValue : GPBMessage 37 | 38 | // The double value. 39 | @property(nonatomic, readwrite) double value; 40 | 41 | @end 42 | 43 | #pragma mark - GPBFloatValue 44 | 45 | typedef GPB_ENUM(GPBFloatValue_FieldNumber) { 46 | GPBFloatValue_FieldNumber_Value = 1, 47 | }; 48 | 49 | // Wrapper message for `float`. 50 | // 51 | // The JSON representation for `FloatValue` is JSON number. 52 | @interface GPBFloatValue : GPBMessage 53 | 54 | // The float value. 55 | @property(nonatomic, readwrite) float value; 56 | 57 | @end 58 | 59 | #pragma mark - GPBInt64Value 60 | 61 | typedef GPB_ENUM(GPBInt64Value_FieldNumber) { 62 | GPBInt64Value_FieldNumber_Value = 1, 63 | }; 64 | 65 | // Wrapper message for `int64`. 66 | // 67 | // The JSON representation for `Int64Value` is JSON string. 68 | @interface GPBInt64Value : GPBMessage 69 | 70 | // The int64 value. 71 | @property(nonatomic, readwrite) int64_t value; 72 | 73 | @end 74 | 75 | #pragma mark - GPBUInt64Value 76 | 77 | typedef GPB_ENUM(GPBUInt64Value_FieldNumber) { 78 | GPBUInt64Value_FieldNumber_Value = 1, 79 | }; 80 | 81 | // Wrapper message for `uint64`. 82 | // 83 | // The JSON representation for `UInt64Value` is JSON string. 84 | @interface GPBUInt64Value : GPBMessage 85 | 86 | // The uint64 value. 87 | @property(nonatomic, readwrite) uint64_t value; 88 | 89 | @end 90 | 91 | #pragma mark - GPBInt32Value 92 | 93 | typedef GPB_ENUM(GPBInt32Value_FieldNumber) { 94 | GPBInt32Value_FieldNumber_Value = 1, 95 | }; 96 | 97 | // Wrapper message for `int32`. 98 | // 99 | // The JSON representation for `Int32Value` is JSON number. 100 | @interface GPBInt32Value : GPBMessage 101 | 102 | // The int32 value. 103 | @property(nonatomic, readwrite) int32_t value; 104 | 105 | @end 106 | 107 | #pragma mark - GPBUInt32Value 108 | 109 | typedef GPB_ENUM(GPBUInt32Value_FieldNumber) { 110 | GPBUInt32Value_FieldNumber_Value = 1, 111 | }; 112 | 113 | // Wrapper message for `uint32`. 114 | // 115 | // The JSON representation for `UInt32Value` is JSON number. 116 | @interface GPBUInt32Value : GPBMessage 117 | 118 | // The uint32 value. 119 | @property(nonatomic, readwrite) uint32_t value; 120 | 121 | @end 122 | 123 | #pragma mark - GPBBoolValue 124 | 125 | typedef GPB_ENUM(GPBBoolValue_FieldNumber) { 126 | GPBBoolValue_FieldNumber_Value = 1, 127 | }; 128 | 129 | // Wrapper message for `bool`. 130 | // 131 | // The JSON representation for `BoolValue` is JSON `true` and `false`. 132 | @interface GPBBoolValue : GPBMessage 133 | 134 | // The bool value. 135 | @property(nonatomic, readwrite) BOOL value; 136 | 137 | @end 138 | 139 | #pragma mark - GPBStringValue 140 | 141 | typedef GPB_ENUM(GPBStringValue_FieldNumber) { 142 | GPBStringValue_FieldNumber_Value = 1, 143 | }; 144 | 145 | // Wrapper message for `string`. 146 | // 147 | // The JSON representation for `StringValue` is JSON string. 148 | @interface GPBStringValue : GPBMessage 149 | 150 | // The string value. 151 | @property(nonatomic, readwrite, copy, null_resettable) NSString *value; 152 | 153 | @end 154 | 155 | #pragma mark - GPBBytesValue 156 | 157 | typedef GPB_ENUM(GPBBytesValue_FieldNumber) { 158 | GPBBytesValue_FieldNumber_Value = 1, 159 | }; 160 | 161 | // Wrapper message for `bytes`. 162 | // 163 | // The JSON representation for `BytesValue` is JSON string. 164 | @interface GPBBytesValue : GPBMessage 165 | 166 | // The bytes value. 167 | @property(nonatomic, readwrite, copy, null_resettable) NSData *value; 168 | 169 | @end 170 | 171 | NS_ASSUME_NONNULL_END 172 | 173 | CF_EXTERN_C_END 174 | 175 | // @@protoc_insertion_point(global_scope) 176 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Protobuf 5 | 6 | This license applies to all parts of Protocol Buffers except the following: 7 | 8 | - Atomicops support for generic gcc, located in 9 | src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. 10 | This file is copyrighted by Red Hat Inc. 11 | 12 | - Atomicops support for AIX/POWER, located in 13 | src/google/protobuf/stubs/atomicops_internals_power.h. 14 | This file is copyrighted by Bloomberg Finance LP. 15 | 16 | Copyright 2014, Google Inc. All rights reserved. 17 | 18 | Redistribution and use in source and binary forms, with or without 19 | modification, are permitted provided that the following conditions are 20 | met: 21 | 22 | * Redistributions of source code must retain the above copyright 23 | notice, this list of conditions and the following disclaimer. 24 | * Redistributions in binary form must reproduce the above 25 | copyright notice, this list of conditions and the following disclaimer 26 | in the documentation and/or other materials provided with the 27 | distribution. 28 | * Neither the name of Google Inc. nor the names of its 29 | contributors may be used to endorse or promote products derived from 30 | this software without specific prior written permission. 31 | 32 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 33 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 35 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 36 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 38 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 39 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 40 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 41 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 42 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 43 | 44 | Code generated by the Protocol Buffer compiler is owned by the owner 45 | of the input file used when generating it. This code is not 46 | standalone and requires a support library to be linked with it. This 47 | support library is itself covered by the above license. 48 | 49 | Generated by CocoaPods - http://cocoapods.org 50 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | This license applies to all parts of Protocol Buffers except the following: 18 | 19 | - Atomicops support for generic gcc, located in 20 | src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. 21 | This file is copyrighted by Red Hat Inc. 22 | 23 | - Atomicops support for AIX/POWER, located in 24 | src/google/protobuf/stubs/atomicops_internals_power.h. 25 | This file is copyrighted by Bloomberg Finance LP. 26 | 27 | Copyright 2014, Google Inc. All rights reserved. 28 | 29 | Redistribution and use in source and binary forms, with or without 30 | modification, are permitted provided that the following conditions are 31 | met: 32 | 33 | * Redistributions of source code must retain the above copyright 34 | notice, this list of conditions and the following disclaimer. 35 | * Redistributions in binary form must reproduce the above 36 | copyright notice, this list of conditions and the following disclaimer 37 | in the documentation and/or other materials provided with the 38 | distribution. 39 | * Neither the name of Google Inc. nor the names of its 40 | contributors may be used to endorse or promote products derived from 41 | this software without specific prior written permission. 42 | 43 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 44 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 45 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 46 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 47 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 48 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 49 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 50 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 51 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 52 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 53 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | 55 | Code generated by the Protocol Buffer compiler is owned by the owner 56 | of the input file used when generating it. This code is not 57 | standalone and requires a support library to be linked with it. This 58 | support library is itself covered by the above license. 59 | 60 | Title 61 | Protobuf 62 | Type 63 | PSGroupSpecifier 64 | 65 | 66 | FooterText 67 | Generated by CocoaPods - http://cocoapods.org 68 | Title 69 | 70 | Type 71 | PSGroupSpecifier 72 | 73 | 74 | StringsTable 75 | Acknowledgements 76 | Title 77 | Acknowledgements 78 | 79 | 80 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Protobuf_ObjectiveC : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Protobuf_ObjectiveC 5 | @end 6 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY=$(cd "${1%/*}" && pwd) 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | if [[ "${ACTION}" == "install" ]]; then 63 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 64 | fi 65 | rm -f "$RESOURCES_TO_COPY" 66 | 67 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 68 | then 69 | case "${TARGETED_DEVICE_FAMILY}" in 70 | 1,2) 71 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 72 | ;; 73 | 1) 74 | TARGET_DEVICE_ARGS="--target-device iphone" 75 | ;; 76 | 2) 77 | TARGET_DEVICE_ARGS="--target-device ipad" 78 | ;; 79 | *) 80 | TARGET_DEVICE_ARGS="--target-device mac" 81 | ;; 82 | esac 83 | 84 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 85 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 86 | while read line; do 87 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 88 | XCASSET_FILES+=("$line") 89 | fi 90 | done <<<"$OTHER_XCASSETS" 91 | 92 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 93 | fi 94 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Protobuf" "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Protobuf" -isystem "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Protobuf" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods-Protobuf-ObjectiveC/Pods-Protobuf-ObjectiveC.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Protobuf" "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Protobuf" -isystem "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Protobuf" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## Protobuf 5 | 6 | This license applies to all parts of Protocol Buffers except the following: 7 | 8 | - Atomicops support for generic gcc, located in 9 | src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. 10 | This file is copyrighted by Red Hat Inc. 11 | 12 | - Atomicops support for AIX/POWER, located in 13 | src/google/protobuf/stubs/atomicops_internals_power.h. 14 | This file is copyrighted by Bloomberg Finance LP. 15 | 16 | Copyright 2014, Google Inc. All rights reserved. 17 | 18 | Redistribution and use in source and binary forms, with or without 19 | modification, are permitted provided that the following conditions are 20 | met: 21 | 22 | * Redistributions of source code must retain the above copyright 23 | notice, this list of conditions and the following disclaimer. 24 | * Redistributions in binary form must reproduce the above 25 | copyright notice, this list of conditions and the following disclaimer 26 | in the documentation and/or other materials provided with the 27 | distribution. 28 | * Neither the name of Google Inc. nor the names of its 29 | contributors may be used to endorse or promote products derived from 30 | this software without specific prior written permission. 31 | 32 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 33 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 35 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 36 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 38 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 39 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 40 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 41 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 42 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 43 | 44 | Code generated by the Protocol Buffer compiler is owned by the owner 45 | of the input file used when generating it. This code is not 46 | standalone and requires a support library to be linked with it. This 47 | support library is itself covered by the above license. 48 | 49 | Generated by CocoaPods - http://cocoapods.org 50 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | This license applies to all parts of Protocol Buffers except the following: 18 | 19 | - Atomicops support for generic gcc, located in 20 | src/google/protobuf/stubs/atomicops_internals_generic_gcc.h. 21 | This file is copyrighted by Red Hat Inc. 22 | 23 | - Atomicops support for AIX/POWER, located in 24 | src/google/protobuf/stubs/atomicops_internals_power.h. 25 | This file is copyrighted by Bloomberg Finance LP. 26 | 27 | Copyright 2014, Google Inc. All rights reserved. 28 | 29 | Redistribution and use in source and binary forms, with or without 30 | modification, are permitted provided that the following conditions are 31 | met: 32 | 33 | * Redistributions of source code must retain the above copyright 34 | notice, this list of conditions and the following disclaimer. 35 | * Redistributions in binary form must reproduce the above 36 | copyright notice, this list of conditions and the following disclaimer 37 | in the documentation and/or other materials provided with the 38 | distribution. 39 | * Neither the name of Google Inc. nor the names of its 40 | contributors may be used to endorse or promote products derived from 41 | this software without specific prior written permission. 42 | 43 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 44 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 45 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 46 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 47 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 48 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 49 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 50 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 51 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 52 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 53 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | 55 | Code generated by the Protocol Buffer compiler is owned by the owner 56 | of the input file used when generating it. This code is not 57 | standalone and requires a support library to be linked with it. This 58 | support library is itself covered by the above license. 59 | 60 | Title 61 | Protobuf 62 | Type 63 | PSGroupSpecifier 64 | 65 | 66 | FooterText 67 | Generated by CocoaPods - http://cocoapods.org 68 | Title 69 | 70 | Type 71 | PSGroupSpecifier 72 | 73 | 74 | StringsTable 75 | Acknowledgements 76 | Title 77 | Acknowledgements 78 | 79 | 80 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods : NSObject 3 | @end 4 | @implementation PodsDummy_Pods 5 | @end 6 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | realpath() { 12 | DIRECTORY=$(cd "${1%/*}" && pwd) 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | if [[ "${ACTION}" == "install" ]]; then 63 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 64 | fi 65 | rm -f "$RESOURCES_TO_COPY" 66 | 67 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 68 | then 69 | case "${TARGETED_DEVICE_FAMILY}" in 70 | 1,2) 71 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 72 | ;; 73 | 1) 74 | TARGET_DEVICE_ARGS="--target-device iphone" 75 | ;; 76 | 2) 77 | TARGET_DEVICE_ARGS="--target-device ipad" 78 | ;; 79 | *) 80 | TARGET_DEVICE_ARGS="--target-device mac" 81 | ;; 82 | esac 83 | 84 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 85 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 86 | while read line; do 87 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 88 | XCASSET_FILES+=("$line") 89 | fi 90 | done <<<"$OTHER_XCASSETS" 91 | 92 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 93 | fi 94 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Protobuf" "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Protobuf" -isystem "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Protobuf" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Pods/Pods.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Protobuf" "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/Protobuf" -isystem "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Protobuf" 5 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Protobuf/Protobuf-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Protobuf.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Protobuf" "${PODS_ROOT}/Headers/Private/Protobuf/google/protobuf" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/Protobuf" "${PODS_ROOT}/Headers/Public/Protobuf/google/protobuf" 4 | PODS_ROOT = ${SRCROOT} 5 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Protobuf/Protobuf-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Protobuf : NSObject 3 | @end 4 | @implementation PodsDummy_Protobuf 5 | @end 6 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Protobuf/Protobuf-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Pods/Target Support Files/Protobuf/Protobuf.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Pods/Target Support Files/Protobuf/Protobuf.xcconfig -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcodeproj/project.xcworkspace/xcuserdata/it.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcodeproj/project.xcworkspace/xcuserdata/it.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/Protobuf-ObjectiveC.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcodeproj/xcuserdata/it.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Protobuf-ObjectiveC.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 6AB74B411C85944F00A768C2 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcworkspace/xcuserdata/it.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC.xcworkspace/xcuserdata/it.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC/.DS_Store -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Protobuf-ObjectiveC 4 | // 5 | // Created by it on 1/3/2016. 6 | // Copyright © 2016 Vic. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Protobuf-ObjectiveC 4 | // 5 | // Created by it on 1/3/2016. 6 | // Copyright © 2016 Vic. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // Protobuf-ObjectiveC 4 | // 5 | // Created by it on 1/3/2016. 6 | // Copyright © 2016 Vic. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // Protobuf-ObjectiveC 4 | // 5 | // Created by it on 1/3/2016. 6 | // Copyright © 2016 Vic. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "ProtoPerson.pbobjc.h" 11 | 12 | @interface ViewController () 13 | 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | - (void)viewDidLoad { 19 | [super viewDidLoad]; 20 | Person *person = [[Person alloc] init]; 21 | person.id_p = 111; 22 | person.username = @"test"; 23 | person.phone = @"111111"; 24 | NSData *data = [person data]; 25 | Person *p = [Person parseFromData:data error:nil]; 26 | NSLog(@"person:%@",p); 27 | } 28 | 29 | - (void)didReceiveMemoryWarning { 30 | [super didReceiveMemoryWarning]; 31 | // Dispose of any resources that can be recreated. 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/.DS_Store -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/gen/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/gen/.DS_Store -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/gen/ProtoPerson.pbobjc.h: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: proto_person.proto 3 | 4 | #import "GPBProtocolBuffers.h" 5 | 6 | #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000 7 | #error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources. 8 | #endif 9 | 10 | // @@protoc_insertion_point(imports) 11 | 12 | CF_EXTERN_C_BEGIN 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | #pragma mark - ProtoPersonRoot 17 | 18 | @interface ProtoPersonRoot : GPBRootObject 19 | 20 | // The base class provides: 21 | // + (GPBExtensionRegistry *)extensionRegistry; 22 | // which is an GPBExtensionRegistry that includes all the extensions defined by 23 | // this file and all files that it depends on. 24 | 25 | @end 26 | 27 | #pragma mark - Person 28 | 29 | typedef GPB_ENUM(Person_FieldNumber) { 30 | Person_FieldNumber_Id_p = 1, 31 | Person_FieldNumber_Username = 2, 32 | Person_FieldNumber_Phone = 3, 33 | }; 34 | 35 | @interface Person : GPBMessage 36 | 37 | @property(nonatomic, readwrite) BOOL hasId_p; 38 | @property(nonatomic, readwrite) int32_t id_p; 39 | 40 | @property(nonatomic, readwrite) BOOL hasUsername; 41 | @property(nonatomic, readwrite, copy, null_resettable) NSString *username; 42 | 43 | @property(nonatomic, readwrite) BOOL hasPhone; 44 | @property(nonatomic, readwrite, copy, null_resettable) NSString *phone; 45 | 46 | @end 47 | 48 | NS_ASSUME_NONNULL_END 49 | 50 | CF_EXTERN_C_END 51 | 52 | // @@protoc_insertion_point(global_scope) 53 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/build/gen/ProtoPerson.pbobjc.m: -------------------------------------------------------------------------------- 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! 2 | // source: proto_person.proto 3 | 4 | #import "GPBProtocolBuffers_RuntimeSupport.h" 5 | #import "ProtoPerson.pbobjc.h" 6 | // @@protoc_insertion_point(imports) 7 | 8 | #pragma mark - ProtoPersonRoot 9 | 10 | @implementation ProtoPersonRoot 11 | 12 | @end 13 | 14 | #pragma mark - ProtoPersonRoot_FileDescriptor 15 | 16 | static GPBFileDescriptor *ProtoPersonRoot_FileDescriptor(void) { 17 | // This is called by +initialize so there is no need to worry 18 | // about thread safety of the singleton. 19 | static GPBFileDescriptor *descriptor = NULL; 20 | if (!descriptor) { 21 | GPBDebugCheckRuntimeVersion(); 22 | descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"" 23 | syntax:GPBFileSyntaxProto2]; 24 | } 25 | return descriptor; 26 | } 27 | 28 | #pragma mark - Person 29 | 30 | @implementation Person 31 | 32 | @dynamic hasId_p, id_p; 33 | @dynamic hasUsername, username; 34 | @dynamic hasPhone, phone; 35 | 36 | typedef struct Person__storage_ { 37 | uint32_t _has_storage_[1]; 38 | int32_t id_p; 39 | NSString *username; 40 | NSString *phone; 41 | } Person__storage_; 42 | 43 | // This method is threadsafe because it is initially called 44 | // in +initialize for each subclass. 45 | + (GPBDescriptor *)descriptor { 46 | static GPBDescriptor *descriptor = nil; 47 | if (!descriptor) { 48 | static GPBMessageFieldDescription fields[] = { 49 | { 50 | .name = "id_p", 51 | .number = Person_FieldNumber_Id_p, 52 | .hasIndex = 0, 53 | .flags = GPBFieldRequired, 54 | .dataType = GPBDataTypeInt32, 55 | .offset = offsetof(Person__storage_, id_p), 56 | .defaultValue.valueInt32 = 0, 57 | .dataTypeSpecific.className = NULL, 58 | .fieldOptions = NULL, 59 | }, 60 | { 61 | .name = "username", 62 | .number = Person_FieldNumber_Username, 63 | .hasIndex = 1, 64 | .flags = GPBFieldRequired, 65 | .dataType = GPBDataTypeString, 66 | .offset = offsetof(Person__storage_, username), 67 | .defaultValue.valueString = nil, 68 | .dataTypeSpecific.className = NULL, 69 | .fieldOptions = NULL, 70 | }, 71 | { 72 | .name = "phone", 73 | .number = Person_FieldNumber_Phone, 74 | .hasIndex = 2, 75 | .flags = GPBFieldOptional, 76 | .dataType = GPBDataTypeString, 77 | .offset = offsetof(Person__storage_, phone), 78 | .defaultValue.valueString = nil, 79 | .dataTypeSpecific.className = NULL, 80 | .fieldOptions = NULL, 81 | }, 82 | }; 83 | GPBDescriptor *localDescriptor = 84 | [GPBDescriptor allocDescriptorForClass:[Person class] 85 | rootClass:[ProtoPersonRoot class] 86 | file:ProtoPersonRoot_FileDescriptor() 87 | fields:fields 88 | fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription) 89 | oneofs:NULL 90 | oneofCount:0 91 | enums:NULL 92 | enumCount:0 93 | ranges:NULL 94 | rangeCount:0 95 | storageSize:sizeof(Person__storage_) 96 | wireFormat:NO]; 97 | NSAssert(descriptor == nil, @"Startup recursed!"); 98 | descriptor = localDescriptor; 99 | } 100 | return descriptor; 101 | } 102 | 103 | @end 104 | 105 | 106 | // @@protoc_insertion_point(global_scope) 107 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Protobuf-ObjectiveC 4 | // 5 | // Created by it on 1/3/2016. 6 | // Copyright © 2016 Vic. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/protoc: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # protoc - temporary wrapper script for .libs/protoc 4 | # Generated by libtool (GNU libtool) 2.4.6 5 | # 6 | # The protoc program cannot be directly executed until all the libtool 7 | # libraries that it depends on are installed. 8 | # 9 | # This wrapper script should never be moved out of the build directory. 10 | # If it is, it will not operate correctly. 11 | 12 | # Sed substitution that helps us do robust quoting. It backslashifies 13 | # metacharacters that are still active within double-quoted strings. 14 | sed_quote_subst='s|\([`"$\\]\)|\\\1|g' 15 | 16 | # Be Bourne compatible 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 | emulate sh 19 | NULLCMD=: 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 | # is contrary to our usage. Disable this feature. 22 | alias -g '${1+"$@"}'='"$@"' 23 | setopt NO_GLOB_SUBST 24 | else 25 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 26 | fi 27 | BIN_SH=xpg4; export BIN_SH # for Tru64 28 | DUALCASE=1; export DUALCASE # for MKS sh 29 | 30 | # The HP-UX ksh and POSIX shell print the target directory to stdout 31 | # if CDPATH is set. 32 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33 | 34 | relink_command="" 35 | 36 | # This environment variable determines our operation mode. 37 | if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then 38 | # install mode needs the following variables: 39 | generated_by_libtool_version='2.4.6' 40 | notinst_deplibs=' libprotobuf.la libprotoc.la /Users/it/Downloads/Applications/protobuf-3.0.0-beta-2/src/libprotobuf.la' 41 | else 42 | # When we are sourced in execute mode, $file and $ECHO are already set. 43 | if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then 44 | file="$0" 45 | 46 | # A function that is used when there is no print builtin or printf. 47 | func_fallback_echo () 48 | { 49 | eval 'cat <<_LTECHO_EOF 50 | $1 51 | _LTECHO_EOF' 52 | } 53 | ECHO="printf %s\\n" 54 | fi 55 | 56 | # Very basic option parsing. These options are (a) specific to 57 | # the libtool wrapper, (b) are identical between the wrapper 58 | # /script/ and the wrapper /executable/ that is used only on 59 | # windows platforms, and (c) all begin with the string --lt- 60 | # (application programs are unlikely to have options that match 61 | # this pattern). 62 | # 63 | # There are only two supported options: --lt-debug and 64 | # --lt-dump-script. There is, deliberately, no --lt-help. 65 | # 66 | # The first argument to this parsing function should be the 67 | # script's ../libtool value, followed by no. 68 | lt_option_debug= 69 | func_parse_lt_options () 70 | { 71 | lt_script_arg0=$0 72 | shift 73 | for lt_opt 74 | do 75 | case "$lt_opt" in 76 | --lt-debug) lt_option_debug=1 ;; 77 | --lt-dump-script) 78 | lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'` 79 | test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=. 80 | lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'` 81 | cat "$lt_dump_D/$lt_dump_F" 82 | exit 0 83 | ;; 84 | --lt-*) 85 | $ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2 86 | exit 1 87 | ;; 88 | esac 89 | done 90 | 91 | # Print the debug banner immediately: 92 | if test -n "$lt_option_debug"; then 93 | echo "protoc:protoc:$LINENO: libtool wrapper (GNU libtool) 2.4.6" 1>&2 94 | fi 95 | } 96 | 97 | # Used when --lt-debug. Prints its arguments to stdout 98 | # (redirection is the responsibility of the caller) 99 | func_lt_dump_args () 100 | { 101 | lt_dump_args_N=1; 102 | for lt_arg 103 | do 104 | $ECHO "protoc:protoc:$LINENO: newargv[$lt_dump_args_N]: $lt_arg" 105 | lt_dump_args_N=`expr $lt_dump_args_N + 1` 106 | done 107 | } 108 | 109 | # Core function for launching the target application 110 | func_exec_program_core () 111 | { 112 | 113 | if test -n "$lt_option_debug"; then 114 | $ECHO "protoc:protoc:$LINENO: newargv[0]: $progdir/$program" 1>&2 115 | func_lt_dump_args ${1+"$@"} 1>&2 116 | fi 117 | exec "$progdir/$program" ${1+"$@"} 118 | 119 | $ECHO "$0: cannot exec $program $*" 1>&2 120 | exit 1 121 | } 122 | 123 | # A function to encapsulate launching the target application 124 | # Strips options in the --lt-* namespace from $@ and 125 | # launches target application with the remaining arguments. 126 | func_exec_program () 127 | { 128 | case " $* " in 129 | *\ --lt-*) 130 | for lt_wr_arg 131 | do 132 | case $lt_wr_arg in 133 | --lt-*) ;; 134 | *) set x "$@" "$lt_wr_arg"; shift;; 135 | esac 136 | shift 137 | done ;; 138 | esac 139 | func_exec_program_core ${1+"$@"} 140 | } 141 | 142 | # Parse options 143 | func_parse_lt_options "$0" ${1+"$@"} 144 | 145 | # Find the directory that this script lives in. 146 | thisdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'` 147 | test "x$thisdir" = "x$file" && thisdir=. 148 | 149 | # Follow symbolic links until we get to the real thisdir. 150 | file=`ls -ld "$file" | /usr/bin/sed -n 's/.*-> //p'` 151 | while test -n "$file"; do 152 | destdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'` 153 | 154 | # If there was a directory component, then change thisdir. 155 | if test "x$destdir" != "x$file"; then 156 | case "$destdir" in 157 | [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;; 158 | *) thisdir="$thisdir/$destdir" ;; 159 | esac 160 | fi 161 | 162 | file=`$ECHO "$file" | /usr/bin/sed 's%^.*/%%'` 163 | file=`ls -ld "$thisdir/$file" | /usr/bin/sed -n 's/.*-> //p'` 164 | done 165 | 166 | # Usually 'no', except on cygwin/mingw when embedded into 167 | # the cwrapper. 168 | WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no 169 | if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then 170 | # special case for '.' 171 | if test "$thisdir" = "."; then 172 | thisdir=`pwd` 173 | fi 174 | # remove .libs from thisdir 175 | case "$thisdir" in 176 | *[\\/].libs ) thisdir=`$ECHO "$thisdir" | /usr/bin/sed 's%[\\/][^\\/]*$%%'` ;; 177 | .libs ) thisdir=. ;; 178 | esac 179 | fi 180 | 181 | # Try to get the absolute directory name. 182 | absdir=`cd "$thisdir" && pwd` 183 | test -n "$absdir" && thisdir="$absdir" 184 | 185 | program='protoc' 186 | progdir="$thisdir/.libs" 187 | 188 | 189 | if test -f "$progdir/$program"; then 190 | # Add our own library path to DYLD_LIBRARY_PATH 191 | DYLD_LIBRARY_PATH="/Users/it/Downloads/Applications/protobuf-3.0.0-beta-2/src/.libs:$DYLD_LIBRARY_PATH" 192 | 193 | # Some systems cannot cope with colon-terminated DYLD_LIBRARY_PATH 194 | # The second colon is a workaround for a bug in BeOS R4 sed 195 | DYLD_LIBRARY_PATH=`$ECHO "$DYLD_LIBRARY_PATH" | /usr/bin/sed 's/::*$//'` 196 | 197 | export DYLD_LIBRARY_PATH 198 | 199 | if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then 200 | # Run the actual program with our arguments. 201 | func_exec_program ${1+"$@"} 202 | fi 203 | else 204 | # The program doesn't exist. 205 | $ECHO "$0: error: '$progdir/$program' does not exist" 1>&2 206 | $ECHO "This script is just a wrapper for $program." 1>&2 207 | $ECHO "See the libtool documentation for more information." 1>&2 208 | exit 1 209 | fi 210 | fi 211 | -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/protocols/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vviicc/Protobuf-ObjectiveC-Demo/0a2f825b6834dff9bdbe185751700b3afd35e89b/Protobuf-ObjectiveC/Protobuf-ObjectiveC/protocols/.DS_Store -------------------------------------------------------------------------------- /Protobuf-ObjectiveC/Protobuf-ObjectiveC/protocols/proto_person.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto2"; 2 | 3 | message Person 4 | { 5 | required int32 id = 1; 6 | required string username = 2; 7 | optional string phone = 3; 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Protobuf-ObjectiveC-Demo 2 | ### Protobuf-ObjectiveC的安装使用请见博客[http://www.vviicc.com/blog/use-of-protobuf-3-0-0-for-objective-c/](http://www.vviicc.com/blog/use-of-protobuf-3-0-0-for-objective-c/) 3 | ### 本项目是Protobuf3.0.0-ObjectiveC使用的Demo 4 | --------------------------------------------------------------------------------