├── .gitignore ├── lib ├── GPBMetadata │ └── Io │ │ ├── Common │ │ ├── Operation.php │ │ ├── Note.php │ │ ├── Billing.php │ │ ├── Useragent.php │ │ ├── Expiry.php │ │ ├── Pagination.php │ │ ├── Filter.php │ │ ├── Protocols.php │ │ ├── Links.php │ │ ├── Attributes.php │ │ ├── Project.php │ │ ├── Localization.php │ │ └── Personal.php │ │ ├── Scheduler │ │ └── Scheduler.php │ │ ├── Member │ │ └── Event.php │ │ ├── Flights │ │ ├── CabinCodes │ │ │ └── CabinCodes.php │ │ ├── Airport.php │ │ └── Carrier.php │ │ └── Raw │ │ └── Project.php ├── extra │ ├── GPBMetadata │ │ ├── Google │ │ │ └── Api │ │ │ │ ├── Annotations.php │ │ │ │ └── Http.php │ │ └── ProtocGenOpenapiv2 │ │ │ └── Options │ │ │ └── Annotations.php │ └── Grpc │ │ └── Gateway │ │ └── Protoc_gen_openapiv2 │ │ └── Options │ │ ├── SecurityScheme │ │ ├── In.php │ │ ├── Type.php │ │ └── Flow.php │ │ ├── Scheme.php │ │ ├── HeaderParameter │ │ └── Type.php │ │ └── SecurityRequirement │ │ └── SecurityRequirementValue.php ├── Analytics │ └── AnalyticsClient.php ├── Flights │ ├── DocType.php │ ├── FastTrack.php │ ├── FlightCreateMode.php │ ├── Authority.php │ ├── CarrierCode.php │ ├── AirportCode.php │ ├── InternationalDocVerification.php │ ├── SelecteeIndicator.php │ ├── BoardingPolicy.php │ └── BoardingPassesResponse.php ├── Io │ ├── JWT.php │ ├── Email.php │ ├── Recaptcha.php │ ├── Toggle.php │ ├── ImageBundle.php │ ├── SendMessageResponse.php │ ├── Username.php │ ├── Boolean.php │ ├── StampImagePreview.php │ ├── CertificateSigningRequest.php │ ├── CompanyName.php │ ├── FileBytes.php │ ├── UserType.php │ ├── CouponAnalyticsFilter.php │ ├── PkBool.php │ ├── ProjectStatusFilter.php │ ├── PassTypeIdentifier.php │ ├── Payload.php │ ├── Period.php │ ├── Channel.php │ ├── Gender.php │ ├── ScreenshotEligibility.php │ ├── PassIds.php │ ├── ListPosition.php │ ├── DbLink.php │ ├── ProjectsList.php │ ├── ProtocolList.php │ ├── Operator.php │ ├── PasswordType.php │ ├── Count.php │ ├── Authentication.php │ ├── CertificatesList.php │ ├── MultipleImages.php │ ├── PassBundles.php │ ├── CouponEventIds.php │ ├── RelevantDate.php │ ├── ProfileImageInput.php │ ├── Id.php │ ├── Operation.php │ ├── Strings.php │ ├── MembershipEventIds.php │ ├── TimeState.php │ ├── DataCollectionFields.php │ ├── GetMessageHistoryResponse.php │ ├── DistributionChannel.php │ ├── GoogleAnalyticsDataCollectionPageEvent.php │ ├── EmailTemplateOptions.php │ ├── MessageStatus.php │ ├── TextAlignment.php │ ├── GoogleAnalyticsCustomerInitiatedRedemptionPageEvent.php │ ├── MembershipEventId.php │ ├── Ids.php │ ├── Quota.php │ ├── SupportedAndroidWallet.php │ ├── UsageType.php │ ├── Status.php │ ├── LinkDetector.php │ ├── TeamMemberStatus.php │ ├── NumberStyle.php │ ├── DefaultCouponScanAction.php │ ├── DateTimeStyle.php │ ├── LocalDate.php │ ├── OAuth2Provider.php │ ├── Url.php │ ├── ApplePassType.php │ ├── IntegrationStatus.php │ ├── PassBundleFormat.php │ ├── CopyObjectInput.php │ ├── PersonalizedDataField.php │ └── SemanticWifiNetwork.php ├── Single_use_coupons │ └── CouponStatus.php ├── Event_tickets │ ├── TicketStatus.php │ ├── Tickets.php │ └── TicketPassBundles.php └── Members │ ├── RecoverPassDelivery.php │ ├── BalanceType.php │ ├── GetMetaKeysResponse.php │ ├── ProfileImageSetting.php │ ├── ListProgramsResponse.php │ └── ProgramAutoUpDownGradeTierType.php ├── README.md ├── LICENSE └── composer.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | certs/ca-chain.pem 3 | certs/certificate.pem 4 | certs/key.pem 5 | vendor 6 | vendor/* -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Operation.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xBF\x01\x0A\x19io/common/operation.proto\x12\x02io*M\x0A\x09Operation\x12\x18\x0A\x14OPERATION_DO_NOT_USE\x10\x00\x12\x11\x0A\x0DOPERATION_PUT\x10\x01\x12\x13\x0A\x0FOPERATION_PATCH\x10\x02BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PassKit PHP SDK 2 | 3 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 4 | [![Version](https://poser.pugx.org/passkit/passkit-php-grpc-sdk/version)](https://packagist.org/packages/passkit/passkit-php-grpc-sdk) 5 | 6 | Use the PassKit PHP gRPC SDK to issue and manage Apple Wallet and Google Pay Passes from your PHP application. 7 | 8 | For more information, see our [PHP quick start](https://github.com/PassKit/passkit-php-quickstart). 9 | 10 | ## Getting Help 11 | - [Official documentation](https://docs.passkit.io/) 12 | - [support@passkit.com](mailto:support@passkit.com) 13 | - [Online Chat Support](https://app.passkit.com/) 14 | 15 | ## Contributing 16 | Send bug reports, feature requests and code contributions into this repository. 17 | 18 | ## Author & License 19 | PassKit Inc.: [support@passkit.com](mailto:support@passkit.com) 20 | 21 | Distributed under MIT License. Details available in [license file](LICENSE). 22 | -------------------------------------------------------------------------------- /lib/extra/GPBMetadata/Google/Api/Annotations.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\xC4\x01\x0A\x1Cgoogle/api/annotations.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.protoBn\x0A\x0Ecom.google.apiB\x10AnnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/extra/GPBMetadata/ProtocGenOpenapiv2/Options/Annotations.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\xCF\x01\x0A.protoc-gen-openapiv2/options/annotations.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1A google/protobuf/descriptor.protoBHZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/optionsb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Scheduler/Scheduler.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\xD4\x01\x0A\x1Cio/scheduler/scheduler.proto\x12\x09scheduler\":\x0A\x0BListRequest\x12\x0D\x0A\x05jobId\x18\x01 \x01(\x09\x12\x1C\x0A\x07filters\x18\x02 \x01(\x0B2\x0B.io.FiltersBe\x0A\x1Acom.passkit.grpc.SchedulerZ.stash.passkit.com/io/model/sdk/go/io/scheduler\xAA\x02\x16PassKit.Grpc.Schedulerb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Note.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\xD6\x01\x0A\x14io/common/note.proto\x12\x02io\"i\x0A\x04Note\x12\x11\x0A\x09subjectId\x18\x01 \x01(\x09\x12\x10\x0A\x08username\x18\x02 \x01(\x09\x12\x0F\x0A\x07message\x18\x03 \x01(\x09\x12+\x0A\x07created\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampBG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2022 PassKit Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 14 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 17 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 18 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 19 | OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Billing.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\x91\x02\x0A\x17io/common/billing.proto\x12\x02io\"r\x0A\x05Quota\x12'\x0A\x07details\x18\x01 \x03(\x0B2\x16.io.Quota.DetailsEntry\x1A@\x0A\x0CDetailsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x0D\x12\x1F\x0A\x05value\x18\x02 \x01(\x0B2\x10.io.QuotaDetails:\x028\x01\"-\x0A\x0CQuotaDetails\x12\x0D\x0A\x05quota\x18\x01 \x01(\x05\x12\x0E\x0A\x06status\x18\x02 \x01(\x04BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/Analytics/AnalyticsClient.php: -------------------------------------------------------------------------------- 1 | _simpleRequest('/analytics.Analytics/getAnalytics', 34 | $argument, 35 | ['\Io\AnalyticsResponse', 'decode'], 36 | $metadata, $options); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Useragent.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xDA\x02\x0A\x19io/common/useragent.proto\x12\x02io\"\xD9\x01\x0A\x09UserAgent\x12\x0B\x0A\x03raw\x18\x01 \x01(\x09\x12\x10\x0A\x08platform\x18\x02 \x01(\x09\x12\x0A\x0A\x02os\x18\x03 \x01(\x09\x12\x11\x0A\x09osVersion\x18\x04 \x01(\x09\x12\x0E\x0A\x06engine\x18\x05 \x01(\x09\x12\x15\x0A\x0DengineVersion\x18\x06 \x01(\x09\x12\x0F\x0A\x07browser\x18\x07 \x01(\x09\x12\x16\x0A\x0EbrowserVersion\x18\x08 \x01(\x09\x12\x14\x0A\x0Clocalization\x18\x09 \x01(\x09\x12\x0E\x0A\x06mobile\x18\x0A \x01(\x08\x12\x18\x0A\x10walletCompatible\x18\x0B \x01(\x08BU\x0A\x10com.passkit.grpcB\x0CBrowserAgentZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Expiry.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\x81\x03\x0A\x16io/common/expiry.proto\x12\x02io\"\x84\x01\x0A\x0EExpirySettings\x12\"\x0A\x0AexpiryType\x18\x01 \x01(\x0E2\x0E.io.ExpiryType\x12#\x0A\x0FfixedExpiryDate\x18\x02 \x01(\x0B2\x08.io.DateH\x00\x12\x1A\x0A\x10expireAfterXDays\x18\x03 \x01(\x0DH\x00B\x0D\x0A\x0BexpiryOneof*\x8A\x01\x0A\x0AExpiryType\x12\x0F\x0A\x0BEXPIRE_NONE\x10\x00\x12\x18\x0A\x14EXPIRE_ON_FIXED_DATE\x10\x01\x12\x17\x0A\x13EXPIRE_AFTER_X_DAYS\x10\x02\x12 \x0A\x1CEXPIRE_ON_VARIABLE_DATE_TIME\x10\x03\x12\x16\x0A\x12EXPIRE_SET_TO_NULL\x10\x04BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Pagination.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xA0\x03\x0A\x1Aio/common/pagination.proto\x12\x02io\"\xE0\x01\x0A\x0APagination\x12\x0D\x0A\x05limit\x18\x01 \x01(\x05\x12\x0E\x0A\x06offset\x18\x02 \x01(\x05\x12\x13\x0A\x0BfilterField\x18\x03 \x03(\x09\x12\x13\x0A\x0BfilterValue\x18\x04 \x03(\x09\x12\x16\x0A\x0EfilterOperator\x18\x05 \x03(\x09\x12\x0F\x0A\x07orderBy\x18\x06 \x01(\x09\x12\x10\x0A\x08orderAsc\x18\x07 \x01(\x08:N\x92AK\x0AI*\x0APagination2;Pagination object used to split content into smaller parts.\"J\x0A\x06Filter\x12\x13\x0A\x0BfilterField\x18\x01 \x03(\x09\x12\x13\x0A\x0BfilterValue\x18\x02 \x03(\x09\x12\x16\x0A\x0EfilterOperator\x18\x03 \x03(\x09BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Member/Event.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xAF\x03\x0A\x15io/member/event.proto\x12\x07members\"\xA3\x02\x0A\x0CEventDetails\x12\x0F\x0A\x07address\x18\x01 \x01(\x09\x12\x0B\x0A\x03lat\x18\x02 \x01(\x01\x12\x0B\x0A\x03lon\x18\x03 \x01(\x01\x12\x0B\x0A\x03alt\x18\x04 \x01(\x05\x12\x17\x0A\x0FexternalEventId\x18\x05 \x01(\x09\x12\x18\x0A\x10externalDeviceId\x18\x06 \x01(\x09\x12\x19\x0A\x11externalServiceId\x18\x07 \x01(\x09\x125\x0A\x08metaData\x18\x08 \x03(\x0B2#.members.EventDetails.MetaDataEntry\x12\x0D\x0A\x05notes\x18\x09 \x01(\x09\x12\x16\x0A\x0EexternalUserId\x18\x0A \x01(\x09\x1A/\x0A\x0DMetaDataEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B_\x0A\x18com.passkit.grpc.MembersZ,stash.passkit.com/io/model/sdk/go/io/members\xAA\x02\x14PassKit.Grpc.Membersb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/Flights/DocType.php: -------------------------------------------------------------------------------- 1 | flights.DocType 14 | */ 15 | class DocType 16 | { 17 | /** 18 | * Boarding pass 19 | * 20 | * Generated from protobuf enum B = 0; 21 | */ 22 | const B = 0; 23 | /** 24 | * Itinerary receipt 25 | * 26 | * Generated from protobuf enum I = 1; 27 | */ 28 | const I = 1; 29 | 30 | private static $valueToName = [ 31 | self::B => 'B', 32 | self::I => 'I', 33 | ]; 34 | 35 | public static function name($value) 36 | { 37 | if (!isset(self::$valueToName[$value])) { 38 | throw new UnexpectedValueException(sprintf( 39 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 40 | } 41 | return self::$valueToName[$value]; 42 | } 43 | 44 | 45 | public static function value($name) 46 | { 47 | $const = __CLASS__ . '::' . strtoupper($name); 48 | if (!defined($const)) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 51 | } 52 | return constant($const); 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /lib/Flights/FastTrack.php: -------------------------------------------------------------------------------- 1 | flights.FastTrack 14 | */ 15 | class FastTrack 16 | { 17 | /** 18 | * Not Eligible 19 | * 20 | * Generated from protobuf enum N = 0; 21 | */ 22 | const N = 0; 23 | /** 24 | * Eligible 25 | * 26 | * Generated from protobuf enum Y = 1; 27 | */ 28 | const Y = 1; 29 | 30 | private static $valueToName = [ 31 | self::N => 'N', 32 | self::Y => 'Y', 33 | ]; 34 | 35 | public static function name($value) 36 | { 37 | if (!isset(self::$valueToName[$value])) { 38 | throw new UnexpectedValueException(sprintf( 39 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 40 | } 41 | return self::$valueToName[$value]; 42 | } 43 | 44 | 45 | public static function value($name) 46 | { 47 | $const = __CLASS__ . '::' . strtoupper($name); 48 | if (!defined($const)) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 51 | } 52 | return constant($const); 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /lib/Io/JWT.php: -------------------------------------------------------------------------------- 1 | io.JWT 14 | */ 15 | class JWT extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string token = 1; 19 | */ 20 | protected $token = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $token 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string token = 1; 38 | * @return string 39 | */ 40 | public function getToken() 41 | { 42 | return $this->token; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string token = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setToken($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->token = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Email.php: -------------------------------------------------------------------------------- 1 | io.Email 14 | */ 15 | class Email extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string email = 1; 19 | */ 20 | protected $email = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $email 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string email = 1; 38 | * @return string 39 | */ 40 | public function getEmail() 41 | { 42 | return $this->email; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string email = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setEmail($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->email = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Filter.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\x83\x04\x0A\x16io/common/filter.proto\x12\x02io\"\xCE\x01\x0A\x07Filters\x12\x0D\x0A\x05limit\x18\x01 \x01(\x05\x12\x0E\x0A\x06offset\x18\x02 \x01(\x05\x12%\x0A\x0CfilterGroups\x18\x03 \x03(\x0B2\x0F.io.FilterGroup\x12\x0F\x0A\x07orderBy\x18\x04 \x01(\x09\x12\x10\x0A\x08orderAsc\x18\x05 \x01(\x08:Z\x92AW\x0AU*\x0APagination2GFilters applies multiple filter conditions to retrieve matched records.\"O\x0A\x0BFieldFilter\x12\x13\x0A\x0BfilterField\x18\x01 \x01(\x09\x12\x13\x0A\x0BfilterValue\x18\x02 \x01(\x09\x12\x16\x0A\x0EfilterOperator\x18\x03 \x01(\x09\"U\x0A\x0BFilterGroup\x12\x1F\x0A\x09condition\x18\x01 \x01(\x0E2\x0C.io.Operator\x12%\x0A\x0CfieldFilters\x18\x02 \x03(\x0B2\x0F.io.FieldFilter*\x1B\x0A\x08Operator\x12\x07\x0A\x03AND\x10\x00\x12\x06\x0A\x02OR\x10\x01BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/Io/Recaptcha.php: -------------------------------------------------------------------------------- 1 | io.Recaptcha 14 | */ 15 | class Recaptcha extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string token = 1; 19 | */ 20 | protected $token = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $token 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string token = 1; 38 | * @return string 39 | */ 40 | public function getToken() 41 | { 42 | return $this->token; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string token = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setToken($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->token = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Toggle.php: -------------------------------------------------------------------------------- 1 | io.Toggle 12 | */ 13 | class Toggle 14 | { 15 | /** 16 | * Generated from protobuf enum DO_NOT_USE = 0; 17 | */ 18 | const DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum ON = 1; 21 | */ 22 | const ON = 1; 23 | /** 24 | * Generated from protobuf enum OFF = 2; 25 | */ 26 | const OFF = 2; 27 | 28 | private static $valueToName = [ 29 | self::DO_NOT_USE => 'DO_NOT_USE', 30 | self::ON => 'ON', 31 | self::OFF => 'OFF', 32 | ]; 33 | 34 | public static function name($value) 35 | { 36 | if (!isset(self::$valueToName[$value])) { 37 | throw new UnexpectedValueException(sprintf( 38 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 39 | } 40 | return self::$valueToName[$value]; 41 | } 42 | 43 | 44 | public static function value($name) 45 | { 46 | $const = __CLASS__ . '::' . strtoupper($name); 47 | if (!defined($const)) { 48 | throw new UnexpectedValueException(sprintf( 49 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 50 | } 51 | return constant($const); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Protocols.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xA4\x04\x0A\x19io/common/protocols.proto\x12\x02io*\xA0\x01\x0A\x0CPassProtocol\x12\x1C\x0A\x18PASS_PROTOCOL_DO_NOT_USE\x10\x00\x12\x10\x0A\x0CRAW_PROTOCOL\x10\x01\x12\x0F\x0A\x0BV1_PROTOCOL\x10\x02\x12\x13\x0A\x0FFLIGHT_PROTOCOL\x10\x03\x12\x0E\x0A\x0AMEMBERSHIP\x10d\x12\x15\x0A\x11SINGLE_USE_COUPON\x10e\x12\x13\x0A\x0FEVENT_TICKETING\x10f*\x8E\x02\x0A\x14ProtocolCommonEvents\x12%\x0A!PROTOCOL_COMMON_EVENTS_DO_NOT_USE\x10\x00\x12\x18\x0A\x14EVENT_OBJECT_CREATED\x10\x01\x12\x18\x0A\x14EVENT_OBJECT_UPDATED\x10\x02\x12\x18\x0A\x14EVENT_OBJECT_EXPIRED\x10\x03\x12\x18\x0A\x14EVENT_OBJECT_DELETED\x10\x04\x12\x15\x0A\x11EVENT_PASS_ISSUED\x10\x05\x12\x18\x0A\x14EVENT_PASS_INSTALLED\x10\x06\x12\x1A\x0A\x16EVENT_PASS_UNINSTALLED\x10\x07\x12\x1A\x0A\x16EVENT_PASS_INVALIDATED\x10\x08BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/Io/ImageBundle.php: -------------------------------------------------------------------------------- 1 | io.ImageBundle 14 | */ 15 | class ImageBundle extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field bytes image = 1; 19 | */ 20 | protected $image = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $image 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Image\Image::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field bytes image = 1; 38 | * @return string 39 | */ 40 | public function getImage() 41 | { 42 | return $this->image; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field bytes image = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setImage($var) 51 | { 52 | GPBUtil::checkString($var, False); 53 | $this->image = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/SendMessageResponse.php: -------------------------------------------------------------------------------- 1 | io.SendMessageResponse 14 | */ 15 | class SendMessageResponse extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field int32 count = 1; 19 | */ 20 | protected $count = 0; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type int $count 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Message::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field int32 count = 1; 38 | * @return int 39 | */ 40 | public function getCount() 41 | { 42 | return $this->count; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field int32 count = 1; 47 | * @param int $var 48 | * @return $this 49 | */ 50 | public function setCount($var) 51 | { 52 | GPBUtil::checkInt32($var); 53 | $this->count = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Username.php: -------------------------------------------------------------------------------- 1 | io.Username 14 | */ 15 | class Username extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string username = 1; 19 | */ 20 | protected $username = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $username 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string username = 1; 38 | * @return string 39 | */ 40 | public function getUsername() 41 | { 42 | return $this->username; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string username = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setUsername($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->username = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Boolean.php: -------------------------------------------------------------------------------- 1 | io.Boolean 14 | */ 15 | class Boolean extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field bool response = 1; 19 | */ 20 | protected $response = false; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type bool $response 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field bool response = 1; 38 | * @return bool 39 | */ 40 | public function getResponse() 41 | { 42 | return $this->response; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field bool response = 1; 47 | * @param bool $var 48 | * @return $this 49 | */ 50 | public function setResponse($var) 51 | { 52 | GPBUtil::checkBool($var); 53 | $this->response = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/StampImagePreview.php: -------------------------------------------------------------------------------- 1 | io.StampImagePreview 14 | */ 15 | class StampImagePreview extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string preview = 1; 19 | */ 20 | protected $preview = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $preview 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Image\Image::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string preview = 1; 38 | * @return string 39 | */ 40 | public function getPreview() 41 | { 42 | return $this->preview; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string preview = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setPreview($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->preview = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/CertificateSigningRequest.php: -------------------------------------------------------------------------------- 1 | io.CertificateSigningRequest 14 | */ 15 | class CertificateSigningRequest extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string csr = 1; 19 | */ 20 | protected $csr = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $csr 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Certificate\Certificate::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string csr = 1; 38 | * @return string 39 | */ 40 | public function getCsr() 41 | { 42 | return $this->csr; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string csr = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setCsr($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->csr = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/CompanyName.php: -------------------------------------------------------------------------------- 1 | io.CompanyName 14 | */ 15 | class CompanyName extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string companyName = 1; 19 | */ 20 | protected $companyName = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $companyName 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string companyName = 1; 38 | * @return string 39 | */ 40 | public function getCompanyName() 41 | { 42 | return $this->companyName; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string companyName = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setCompanyName($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->companyName = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/FileBytes.php: -------------------------------------------------------------------------------- 1 | io.FileBytes 14 | */ 15 | class FileBytes extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field bytes fileBytes = 1; 19 | */ 20 | protected $fileBytes = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $fileBytes 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field bytes fileBytes = 1; 38 | * @return string 39 | */ 40 | public function getFileBytes() 41 | { 42 | return $this->fileBytes; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field bytes fileBytes = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setFileBytes($var) 51 | { 52 | GPBUtil::checkString($var, False); 53 | $this->fileBytes = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/UserType.php: -------------------------------------------------------------------------------- 1 | io.UserType 12 | */ 13 | class UserType 14 | { 15 | /** 16 | * Generated from protobuf enum UnknownUserType = 0; 17 | */ 18 | const UnknownUserType = 0; 19 | /** 20 | * Generated from protobuf enum User = 1; 21 | */ 22 | const User = 1; 23 | /** 24 | * Generated from protobuf enum TeamMember = 2; 25 | */ 26 | const TeamMember = 2; 27 | 28 | private static $valueToName = [ 29 | self::UnknownUserType => 'UnknownUserType', 30 | self::User => 'User', 31 | self::TeamMember => 'TeamMember', 32 | ]; 33 | 34 | public static function name($value) 35 | { 36 | if (!isset(self::$valueToName[$value])) { 37 | throw new UnexpectedValueException(sprintf( 38 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 39 | } 40 | return self::$valueToName[$value]; 41 | } 42 | 43 | 44 | public static function value($name) 45 | { 46 | $const = __CLASS__ . '::' . strtoupper($name); 47 | if (!defined($const)) { 48 | throw new UnexpectedValueException(sprintf( 49 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 50 | } 51 | return constant($const); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /lib/Io/CouponAnalyticsFilter.php: -------------------------------------------------------------------------------- 1 | io.CouponAnalyticsFilter 14 | */ 15 | class CouponAnalyticsFilter extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string offerId = 1; 19 | */ 20 | protected $offerId = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $offerId 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Reporting::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string offerId = 1; 38 | * @return string 39 | */ 40 | public function getOfferId() 41 | { 42 | return $this->offerId; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string offerId = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setOfferId($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->offerId = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Flights/FlightCreateMode.php: -------------------------------------------------------------------------------- 1 | flights.FlightCreateMode 12 | */ 13 | class FlightCreateMode 14 | { 15 | /** 16 | * Generated from protobuf enum DO_NOT_USE = 0; 17 | */ 18 | const DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum MANUAL = 1; 21 | */ 22 | const MANUAL = 1; 23 | /** 24 | * Generated from protobuf enum AUTOMATIC = 2; 25 | */ 26 | const AUTOMATIC = 2; 27 | 28 | private static $valueToName = [ 29 | self::DO_NOT_USE => 'DO_NOT_USE', 30 | self::MANUAL => 'MANUAL', 31 | self::AUTOMATIC => 'AUTOMATIC', 32 | ]; 33 | 34 | public static function name($value) 35 | { 36 | if (!isset(self::$valueToName[$value])) { 37 | throw new UnexpectedValueException(sprintf( 38 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 39 | } 40 | return self::$valueToName[$value]; 41 | } 42 | 43 | 44 | public static function value($name) 45 | { 46 | $const = __CLASS__ . '::' . strtoupper($name); 47 | if (!defined($const)) { 48 | throw new UnexpectedValueException(sprintf( 49 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 50 | } 51 | return constant($const); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /lib/Io/PkBool.php: -------------------------------------------------------------------------------- 1 | io.PkBool 16 | */ 17 | class PkBool extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Generated from protobuf field bool ok = 1; 21 | */ 22 | protected $ok = false; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type bool $ok 31 | * } 32 | */ 33 | public function __construct($data = NULL) { 34 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 35 | parent::__construct($data); 36 | } 37 | 38 | /** 39 | * Generated from protobuf field bool ok = 1; 40 | * @return bool 41 | */ 42 | public function getOk() 43 | { 44 | return $this->ok; 45 | } 46 | 47 | /** 48 | * Generated from protobuf field bool ok = 1; 49 | * @param bool $var 50 | * @return $this 51 | */ 52 | public function setOk($var) 53 | { 54 | GPBUtil::checkBool($var); 55 | $this->ok = $var; 56 | 57 | return $this; 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/Io/ProjectStatusFilter.php: -------------------------------------------------------------------------------- 1 | io.ProjectStatusFilter 14 | */ 15 | class ProjectStatusFilter extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field .io.ProjectStatus status = 1; 19 | */ 20 | protected $status = 0; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type int $status 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Project::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field .io.ProjectStatus status = 1; 38 | * @return int 39 | */ 40 | public function getStatus() 41 | { 42 | return $this->status; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field .io.ProjectStatus status = 1; 47 | * @param int $var 48 | * @return $this 49 | */ 50 | public function setStatus($var) 51 | { 52 | GPBUtil::checkEnum($var, \Io\ProjectStatus::class); 53 | $this->status = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Flights/Authority.php: -------------------------------------------------------------------------------- 1 | flights.Authority 14 | */ 15 | class Authority 16 | { 17 | /** 18 | * International Air Transport Association (IATA). 19 | * 20 | * Generated from protobuf enum IATA = 0; 21 | */ 22 | const IATA = 0; 23 | /** 24 | * International Civil Aviation Organization (ICAO). 25 | * 26 | * Generated from protobuf enum ICAO = 1; 27 | */ 28 | const ICAO = 1; 29 | 30 | private static $valueToName = [ 31 | self::IATA => 'IATA', 32 | self::ICAO => 'ICAO', 33 | ]; 34 | 35 | public static function name($value) 36 | { 37 | if (!isset(self::$valueToName[$value])) { 38 | throw new UnexpectedValueException(sprintf( 39 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 40 | } 41 | return self::$valueToName[$value]; 42 | } 43 | 44 | 45 | public static function value($name) 46 | { 47 | $const = __CLASS__ . '::' . strtoupper($name); 48 | if (!defined($const)) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 51 | } 52 | return constant($const); 53 | } 54 | } 55 | 56 | -------------------------------------------------------------------------------- /lib/Io/PassTypeIdentifier.php: -------------------------------------------------------------------------------- 1 | io.PassTypeIdentifier 14 | */ 15 | class PassTypeIdentifier extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string passTypeId = 1; 19 | */ 20 | protected $passTypeId = ''; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type string $passTypeId 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Certificate\Certificate::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field string passTypeId = 1; 38 | * @return string 39 | */ 40 | public function getPassTypeId() 41 | { 42 | return $this->passTypeId; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field string passTypeId = 1; 47 | * @param string $var 48 | * @return $this 49 | */ 50 | public function setPassTypeId($var) 51 | { 52 | GPBUtil::checkString($var, True); 53 | $this->passTypeId = $var; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Single_use_coupons/CouponStatus.php: -------------------------------------------------------------------------------- 1 | single_use_coupons.CouponStatus 12 | */ 13 | class CouponStatus 14 | { 15 | /** 16 | * Default status when a coupon is issued. 17 | * 18 | * Generated from protobuf enum UNREDEEMED = 0; 19 | */ 20 | const UNREDEEMED = 0; 21 | /** 22 | * Set after a coupon is redeemed (the redeem endpoint is called). 23 | * 24 | * Generated from protobuf enum REDEEMED = 1; 25 | */ 26 | const REDEEMED = 1; 27 | 28 | private static $valueToName = [ 29 | self::UNREDEEMED => 'UNREDEEMED', 30 | self::REDEEMED => 'REDEEMED', 31 | ]; 32 | 33 | public static function name($value) 34 | { 35 | if (!isset(self::$valueToName[$value])) { 36 | throw new UnexpectedValueException(sprintf( 37 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 38 | } 39 | return self::$valueToName[$value]; 40 | } 41 | 42 | 43 | public static function value($name) 44 | { 45 | $const = __CLASS__ . '::' . strtoupper($name); 46 | if (!defined($const)) { 47 | throw new UnexpectedValueException(sprintf( 48 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 49 | } 50 | return constant($const); 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /lib/extra/GPBMetadata/Google/Api/Http.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xA2\x04\x0A\x15google/api/http.proto\x12\x0Agoogle.api\"T\x0A\x04Http\x12#\x0A\x05rules\x18\x01 \x03(\x0B2\x14.google.api.HttpRule\x12'\x0A\x1Ffully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\x0A\x08HttpRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0D\x0A\x03get\x18\x02 \x01(\x09H\x00\x12\x0D\x0A\x03put\x18\x03 \x01(\x09H\x00\x12\x0E\x0A\x04post\x18\x04 \x01(\x09H\x00\x12\x10\x0A\x06delete\x18\x05 \x01(\x09H\x00\x12\x0F\x0A\x05patch\x18\x06 \x01(\x09H\x00\x12/\x0A\x06custom\x18\x08 \x01(\x0B2\x1D.google.api.CustomHttpPatternH\x00\x12\x0C\x0A\x04body\x18\x07 \x01(\x09\x12\x15\x0A\x0Dresponse_body\x18\x0C \x01(\x09\x121\x0A\x13additional_bindings\x18\x0B \x03(\x0B2\x14.google.api.HttpRuleB\x09\x0A\x07pattern\"/\x0A\x11CustomHttpPattern\x12\x0C\x0A\x04kind\x18\x01 \x01(\x09\x12\x0C\x0A\x04path\x18\x02 \x01(\x09Bj\x0A\x0Ecom.google.apiB\x09HttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xF8\x01\x01\xA2\x02\x04GAPIb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Flights/CabinCodes/CabinCodes.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\x96\x03\x0A(io/flights/cabin_codes/cabin_codes.proto\x12\x0Bcabin_codes*\xD1\x01\x0A\x0FCompartmentCode\x12\x08\x0A\x04NONE\x10\x00\x12\x05\x0A\x01R\x10\x01\x12\x05\x0A\x01P\x10\x02\x12\x05\x0A\x01F\x10\x03\x12\x05\x0A\x01A\x10\x04\x12\x05\x0A\x01J\x10\x05\x12\x05\x0A\x01C\x10\x06\x12\x05\x0A\x01D\x10\x07\x12\x05\x0A\x01I\x10\x08\x12\x05\x0A\x01Z\x10\x09\x12\x05\x0A\x01W\x10\x0A\x12\x05\x0A\x01E\x10\x0B\x12\x05\x0A\x01S\x10\x0C\x12\x05\x0A\x01Y\x10\x0D\x12\x05\x0A\x01B\x10\x0E\x12\x05\x0A\x01H\x10\x0F\x12\x05\x0A\x01K\x10\x10\x12\x05\x0A\x01L\x10\x11\x12\x05\x0A\x01M\x10\x12\x12\x05\x0A\x01N\x10\x13\x12\x05\x0A\x01O\x10\x14\x12\x05\x0A\x01Q\x10\x15\x12\x05\x0A\x01T\x10\x16\x12\x05\x0A\x01V\x10\x17\x12\x05\x0A\x01X\x10\x18\x12\x05\x0A\x01G\x10\x19\x12\x05\x0A\x01U\x10\x1AB\x80\x01\x0A#com.passkit.grpc.Flights.CabinCodesZ7stash.passkit.com/io/model/sdk/go/io/flights/cabincodes\xAA\x02\x1FPassKit.Grpc.Flights.CabinCodesb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/Io/Payload.php: -------------------------------------------------------------------------------- 1 | io.Payload 16 | */ 17 | class Payload extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Generated from protobuf field string payload = 1; 21 | */ 22 | protected $payload = ''; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type string $payload 31 | * } 32 | */ 33 | public function __construct($data = NULL) { 34 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 35 | parent::__construct($data); 36 | } 37 | 38 | /** 39 | * Generated from protobuf field string payload = 1; 40 | * @return string 41 | */ 42 | public function getPayload() 43 | { 44 | return $this->payload; 45 | } 46 | 47 | /** 48 | * Generated from protobuf field string payload = 1; 49 | * @param string $var 50 | * @return $this 51 | */ 52 | public function setPayload($var) 53 | { 54 | GPBUtil::checkString($var, True); 55 | $this->payload = $var; 56 | 57 | return $this; 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Links.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 21 | "\x0A\xF0\x03\x0A\x15io/common/links.proto\x12\x02io\x1A\x1Cio/common/localization.proto\"\xD3\x01\x0A\x04Link\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0B\x0A\x03url\x18\x02 \x01(\x09\x12\x0D\x0A\x05title\x18\x03 \x01(\x09\x12\x1A\x0A\x04type\x18\x04 \x01(\x0E2\x0C.io.LinkType\x12*\x0A\x0DlocalizedLink\x18\x05 \x01(\x0B2\x13.io.LocalizedString\x12+\x0A\x0ElocalizedTitle\x18\x06 \x01(\x0B2\x13.io.LocalizedString\x12\x1C\x0A\x05usage\x18\x07 \x03(\x0E2\x0D.io.UsageType\x12\x10\x0A\x08position\x18\x08 \x01(\x0D\"!\x0A\x06DbLink\x12\x17\x0A\x05links\x18\x01 \x03(\x0B2\x08.io.Link*k\x0A\x08LinkType\x12\x12\x0A\x0EURI_DO_NOT_USE\x10\x00\x12\x0B\x0A\x07URI_WEB\x10\x01\x12\x0B\x0A\x07URI_TEL\x10\x02\x12\x0D\x0A\x09URI_EMAIL\x10\x03\x12\x10\x0A\x0CURI_LOCATION\x10\x04\x12\x10\x0A\x0CURI_CALENDAR\x10\x05BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 22 | , true); 23 | 24 | static::$is_initialized = true; 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /lib/Io/Period.php: -------------------------------------------------------------------------------- 1 | io.Period 12 | */ 13 | class Period 14 | { 15 | /** 16 | * Show individual data by day. 17 | * 18 | * Generated from protobuf enum DAY = 0; 19 | */ 20 | const DAY = 0; 21 | /** 22 | * Default response will be in months. 23 | * 24 | * Generated from protobuf enum MONTH = 1; 25 | */ 26 | const MONTH = 1; 27 | /** 28 | * Show individual data by year. 29 | * 30 | * Generated from protobuf enum YEAR = 2; 31 | */ 32 | const YEAR = 2; 33 | 34 | private static $valueToName = [ 35 | self::DAY => 'DAY', 36 | self::MONTH => 'MONTH', 37 | self::YEAR => 'YEAR', 38 | ]; 39 | 40 | public static function name($value) 41 | { 42 | if (!isset(self::$valueToName[$value])) { 43 | throw new UnexpectedValueException(sprintf( 44 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 45 | } 46 | return self::$valueToName[$value]; 47 | } 48 | 49 | 50 | public static function value($name) 51 | { 52 | $const = __CLASS__ . '::' . strtoupper($name); 53 | if (!defined($const)) { 54 | throw new UnexpectedValueException(sprintf( 55 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 56 | } 57 | return constant($const); 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "passkit/passkit-php-grpc-sdk", 3 | "description": "PHP gRPC SDK for Apple Wallet and Google Pay Membership / Loyalty / Access Cards, Coupons, Flights & Event-Tickets.", 4 | "keywords": [ 5 | "passkit", 6 | "php", 7 | "sdk", 8 | "api", 9 | "grpc", 10 | "wallet", 11 | "mobile-wallet" 12 | ], 13 | "homepage": "http://passkit.com", 14 | "license": "MIT", 15 | "authors": [ 16 | { 17 | "name": "PassKit Inc.", 18 | "homepage": "https://passkit.com" 19 | } 20 | ], 21 | "require": { 22 | "grpc/grpc": "^v1.57.0", 23 | "google/protobuf": "^v4.29.3" 24 | }, 25 | "autoload": { 26 | "psr-4": { 27 | "Analytics\\": "lib/Analytics", 28 | "Cabin_codes\\": "lib/Cabin_codes", 29 | "Ct\\": "lib/Ct", 30 | "Event_tickets\\": "lib/Event_tickets", 31 | "Flights\\": "lib/Flights", 32 | "Io\\": "lib/Io", 33 | "Members\\": "lib/Members", 34 | "Raw\\": "lib/Raw", 35 | "Scheduler\\": "lib/Scheduler", 36 | "Single_use_coupons\\": "lib/Single_use_coupons", 37 | "GPBMetadata\\Io\\": "lib/GPBMetadata/Io", 38 | "GPBMetadata\\Ct\\": "lib/GPBMetadata/Ct", 39 | "GPBMetadata\\Google\\": "lib/extra/GPBMetadata/Google", 40 | "Google\\Api\\": "lib/extra/google/api", 41 | "GPBMetadata\\ProtocGenOpenapiv2\\": "lib/extra/GPBMetadata/ProtocGenOpenapiv2", 42 | "Protoc_gen_openapiv2\\Options\\": "lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options" 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /lib/Io/Channel.php: -------------------------------------------------------------------------------- 1 | io.Channel 12 | */ 13 | class Channel 14 | { 15 | /** 16 | * Generated from protobuf enum UnknownChannel = 0; 17 | */ 18 | const UnknownChannel = 0; 19 | /** 20 | * Generated from protobuf enum Web = 1; 21 | */ 22 | const Web = 1; 23 | /** 24 | * Generated from protobuf enum API = 2; 25 | */ 26 | const API = 2; 27 | /** 28 | * Generated from protobuf enum App = 3; 29 | */ 30 | const App = 3; 31 | 32 | private static $valueToName = [ 33 | self::UnknownChannel => 'UnknownChannel', 34 | self::Web => 'Web', 35 | self::API => 'API', 36 | self::App => 'App', 37 | ]; 38 | 39 | public static function name($value) 40 | { 41 | if (!isset(self::$valueToName[$value])) { 42 | throw new UnexpectedValueException(sprintf( 43 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 44 | } 45 | return self::$valueToName[$value]; 46 | } 47 | 48 | 49 | public static function value($name) 50 | { 51 | $const = __CLASS__ . '::' . strtoupper($name); 52 | if (!defined($const)) { 53 | throw new UnexpectedValueException(sprintf( 54 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 55 | } 56 | return constant($const); 57 | } 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Gender.php: -------------------------------------------------------------------------------- 1 | io.Gender 14 | */ 15 | class Gender 16 | { 17 | /** 18 | * Use only where gender is not known 19 | * 20 | * Generated from protobuf enum NOT_KNOWN = 0; 21 | */ 22 | const NOT_KNOWN = 0; 23 | /** 24 | * Male 25 | * 26 | * Generated from protobuf enum MALE = 1; 27 | */ 28 | const MALE = 1; 29 | /** 30 | * Female 31 | * 32 | * Generated from protobuf enum FEMALE = 2; 33 | */ 34 | const FEMALE = 2; 35 | 36 | private static $valueToName = [ 37 | self::NOT_KNOWN => 'NOT_KNOWN', 38 | self::MALE => 'MALE', 39 | self::FEMALE => 'FEMALE', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Io/ScreenshotEligibility.php: -------------------------------------------------------------------------------- 1 | io.ScreenshotEligibility 12 | */ 13 | class ScreenshotEligibility 14 | { 15 | /** 16 | * Generated from protobuf enum SCREENSHOT_ELIGIBILITY_UNSPECIFIED = 0; 17 | */ 18 | const SCREENSHOT_ELIGIBILITY_UNSPECIFIED = 0; 19 | /** 20 | * Generated from protobuf enum ELIGIBLE = 1; 21 | */ 22 | const ELIGIBLE = 1; 23 | /** 24 | * Generated from protobuf enum INELIGIBLE = 2; 25 | */ 26 | const INELIGIBLE = 2; 27 | 28 | private static $valueToName = [ 29 | self::SCREENSHOT_ELIGIBILITY_UNSPECIFIED => 'SCREENSHOT_ELIGIBILITY_UNSPECIFIED', 30 | self::ELIGIBLE => 'ELIGIBLE', 31 | self::INELIGIBLE => 'INELIGIBLE', 32 | ]; 33 | 34 | public static function name($value) 35 | { 36 | if (!isset(self::$valueToName[$value])) { 37 | throw new UnexpectedValueException(sprintf( 38 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 39 | } 40 | return self::$valueToName[$value]; 41 | } 42 | 43 | 44 | public static function value($name) 45 | { 46 | $const = __CLASS__ . '::' . strtoupper($name); 47 | if (!defined($const)) { 48 | throw new UnexpectedValueException(sprintf( 49 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 50 | } 51 | return constant($const); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /lib/Io/PassIds.php: -------------------------------------------------------------------------------- 1 | io.PassIds 14 | */ 15 | class PassIds extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated string ids = 1; 19 | */ 20 | private $ids; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array|\Google\Protobuf\Internal\RepeatedField $ids 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated string ids = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getIds() 41 | { 42 | return $this->ids; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated string ids = 1; 47 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setIds($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 53 | $this->ids = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Attributes.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\xA4\x04\x0A\x1Aio/common/attributes.proto\x12\x02io*\xE4\x01\x0A\x10DeviceAttributes\x12\x10\x0A\x0CNoAttributes\x10\x00\x12\x07\x0A\x03Ios\x10\x01\x12\x0B\x0A\x07Android\x10\x02\x12\x11\x0A\x0DSupportWallet\x10\x04\x12\x11\x0A\x0DWalletScanner\x10\x08\x12\x10\x0A\x0CWalletDaemon\x10\x10\x12\x10\x0A\x0CWalletPasses\x10 \x12\x0B\x0A\x07Windows\x10@\x12\x08\x0A\x03OSX\x10\x80\x01\x12\x0A\x0A\x05Linux\x10\x80\x02\x12\x0B\x0A\x06Mobile\x10\x80\x04\x12\x0C\x0A\x07Desktop\x10\x80\x08\x12\x0B\x0A\x06Tablet\x10\x80\x10\x12\x13\x0A\x0EUnsupportedIos\x10\x80 *8\x0A\x07Channel\x12\x12\x0A\x0EUnknownChannel\x10\x00\x12\x07\x0A\x03Web\x10\x01\x12\x07\x0A\x03API\x10\x02\x12\x07\x0A\x03App\x10\x03*U\x0A\x0EAuthentication\x12\x13\x0A\x0FUnauthenticated\x10\x00\x12\x0C\x0A\x08WebToken\x10\x01\x12\x0F\x0A\x0BBearerToken\x10\x02\x12\x0F\x0A\x0BCertificate\x10\x03*9\x0A\x08UserType\x12\x13\x0A\x0FUnknownUserType\x10\x00\x12\x08\x0A\x04User\x10\x01\x12\x0E\x0A\x0ATeamMember\x10\x02BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Flights/Airport.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\x8B\x05\x0A\x18io/flights/airport.proto\x12\x07flights\x1A.protoc-gen-openapiv2/options/annotations.proto\"\xA8\x03\x0A\x04Port\x12\x1E\x0A\x0FiataAirportCode\x18\x01 \x01(\x09B\x05\x92A\x02x\x03\x12\x1E\x0A\x0FicaoAirportCode\x18\x02 \x01(\x09B\x05\x92A\x02x\x04\x12\x10\x0A\x08cityName\x18\x03 \x01(\x09\x12.\x0A\x11localizedCityName\x18\x04 \x01(\x0B2\x13.io.LocalizedString\x12\x13\x0A\x0BairportName\x18\x05 \x01(\x09\x121\x0A\x14localizedAirportName\x18\x06 \x01(\x0B2\x13.io.LocalizedString\x12\x13\x0A\x0BcountryCode\x18\x07 \x01(\x09\x12\x10\x0A\x08timezone\x18\x08 \x01(\x09:\xAE\x01\x92A\xAA\x01\x0A\xA7\x01*\x0EAirport Record2QAirport records are required for each port that a carrier operates in and out of.\xD2\x01\x0FiataAirportCode\xD2\x01\x08cityName\xD2\x01\x0BairportName\xD2\x01\x0BcountryCode\xD2\x01\x08timezone\"\"\x0A\x0BAirportCode\x12\x13\x0A\x0BairportCode\x18\x01 \x01(\x09B_\x0A\x18com.passkit.grpc.FlightsZ,stash.passkit.com/io/model/sdk/go/io/flights\xAA\x02\x14PassKit.Grpc.Flightsb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/Io/ListPosition.php: -------------------------------------------------------------------------------- 1 | io.ListPosition 14 | */ 15 | class ListPosition 16 | { 17 | /** 18 | * Generated from protobuf enum APPEND = 0; 19 | */ 20 | const APPEND = 0; 21 | /** 22 | * Generated from protobuf enum PREPEND = 1; 23 | */ 24 | const PREPEND = 1; 25 | /** 26 | * Generated from protobuf enum REPLACE = 2; 27 | */ 28 | const REPLACE = 2; 29 | 30 | private static $valueToName = [ 31 | self::APPEND => 'APPEND', 32 | self::PREPEND => 'PREPEND', 33 | self::REPLACE => 'REPLACE', 34 | ]; 35 | 36 | public static function name($value) 37 | { 38 | if (!isset(self::$valueToName[$value])) { 39 | throw new UnexpectedValueException(sprintf( 40 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 41 | } 42 | return self::$valueToName[$value]; 43 | } 44 | 45 | 46 | public static function value($name) 47 | { 48 | $const = __CLASS__ . '::' . strtoupper($name); 49 | if (!defined($const)) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 52 | } 53 | return constant($const); 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /lib/Event_tickets/TicketStatus.php: -------------------------------------------------------------------------------- 1 | event_tickets.TicketStatus 12 | */ 13 | class TicketStatus 14 | { 15 | /** 16 | * Generated from protobuf enum STATUS_NONE = 0; 17 | */ 18 | const STATUS_NONE = 0; 19 | /** 20 | * Default ticket status 21 | * 22 | * Generated from protobuf enum ISSUED = 1; 23 | */ 24 | const ISSUED = 1; 25 | /** 26 | * Set after a ticket is redeemed (the redeem endpoint is called). 27 | * 28 | * Generated from protobuf enum REDEEMED = 2; 29 | */ 30 | const REDEEMED = 2; 31 | 32 | private static $valueToName = [ 33 | self::STATUS_NONE => 'STATUS_NONE', 34 | self::ISSUED => 'ISSUED', 35 | self::REDEEMED => 'REDEEMED', 36 | ]; 37 | 38 | public static function name($value) 39 | { 40 | if (!isset(self::$valueToName[$value])) { 41 | throw new UnexpectedValueException(sprintf( 42 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 43 | } 44 | return self::$valueToName[$value]; 45 | } 46 | 47 | 48 | public static function value($name) 49 | { 50 | $const = __CLASS__ . '::' . strtoupper($name); 51 | if (!defined($const)) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 54 | } 55 | return constant($const); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /lib/Io/DbLink.php: -------------------------------------------------------------------------------- 1 | io.DbLink 14 | */ 15 | class DbLink extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .io.Link links = 1; 19 | */ 20 | private $links; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Io\Link>|\Google\Protobuf\Internal\RepeatedField $links 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Links::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .io.Link links = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getLinks() 41 | { 42 | return $this->links; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .io.Link links = 1; 47 | * @param array<\Io\Link>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setLinks($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\Link::class); 53 | $this->links = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/ProjectsList.php: -------------------------------------------------------------------------------- 1 | io.ProjectsList 14 | */ 15 | class ProjectsList extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated string projects = 1; 19 | */ 20 | private $projects; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array|\Google\Protobuf\Internal\RepeatedField $projects 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated string projects = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getProjects() 41 | { 42 | return $this->projects; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated string projects = 1; 47 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setProjects($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 53 | $this->projects = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/ProtocolList.php: -------------------------------------------------------------------------------- 1 | io.ProtocolList 14 | */ 15 | class ProtocolList extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated string classIds = 1; 19 | */ 20 | private $classIds; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array|\Google\Protobuf\Internal\RepeatedField $classIds 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated string classIds = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getClassIds() 41 | { 42 | return $this->classIds; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated string classIds = 1; 47 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setClassIds($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 53 | $this->classIds = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/Operator.php: -------------------------------------------------------------------------------- 1 | io.Operator 12 | */ 13 | class Operator 14 | { 15 | /** 16 | * Join grouped filter fields with AND operator. E.g. tier_id = bronze AND tier_id = silver. The default. 17 | * 18 | * Generated from protobuf enum AND = 0; 19 | */ 20 | const PBAND = 0; 21 | /** 22 | * Join grouped filter fields with OR operator. E.g. tier_id = bronze OR tier_id = silver. 23 | * 24 | * Generated from protobuf enum OR = 1; 25 | */ 26 | const PBOR = 1; 27 | 28 | private static $valueToName = [ 29 | self::PBAND => 'AND', 30 | self::PBOR => 'OR', 31 | ]; 32 | 33 | public static function name($value) 34 | { 35 | if (!isset(self::$valueToName[$value])) { 36 | throw new UnexpectedValueException(sprintf( 37 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 38 | } 39 | return self::$valueToName[$value]; 40 | } 41 | 42 | 43 | public static function value($name) 44 | { 45 | $const = __CLASS__ . '::' . strtoupper($name); 46 | if (!defined($const)) { 47 | $pbconst = __CLASS__. '::PB' . strtoupper($name); 48 | if (!defined($pbconst)) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 51 | } 52 | return constant($pbconst); 53 | } 54 | return constant($const); 55 | } 56 | } 57 | 58 | -------------------------------------------------------------------------------- /lib/Io/PasswordType.php: -------------------------------------------------------------------------------- 1 | io.PasswordType 12 | */ 13 | class PasswordType 14 | { 15 | /** 16 | * Generated from protobuf enum PASSWORD_TYPE_DO_NOT_USE = 0; 17 | */ 18 | const PASSWORD_TYPE_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum PASSWORD_TYPE_NO_PASSWORD = 1; 21 | */ 22 | const PASSWORD_TYPE_NO_PASSWORD = 1; 23 | /** 24 | * Generated from protobuf enum PASSWORD_TYPE_PASSWORD_ONLY = 2; 25 | */ 26 | const PASSWORD_TYPE_PASSWORD_ONLY = 2; 27 | 28 | private static $valueToName = [ 29 | self::PASSWORD_TYPE_DO_NOT_USE => 'PASSWORD_TYPE_DO_NOT_USE', 30 | self::PASSWORD_TYPE_NO_PASSWORD => 'PASSWORD_TYPE_NO_PASSWORD', 31 | self::PASSWORD_TYPE_PASSWORD_ONLY => 'PASSWORD_TYPE_PASSWORD_ONLY', 32 | ]; 33 | 34 | public static function name($value) 35 | { 36 | if (!isset(self::$valueToName[$value])) { 37 | throw new UnexpectedValueException(sprintf( 38 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 39 | } 40 | return self::$valueToName[$value]; 41 | } 42 | 43 | 44 | public static function value($name) 45 | { 46 | $const = __CLASS__ . '::' . strtoupper($name); 47 | if (!defined($const)) { 48 | throw new UnexpectedValueException(sprintf( 49 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 50 | } 51 | return constant($const); 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /lib/Io/Count.php: -------------------------------------------------------------------------------- 1 | io.Count 14 | */ 15 | class Count extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * set as int32 so JSON renders as an integer 19 | * 20 | * Generated from protobuf field int32 total = 1; 21 | */ 22 | protected $total = 0; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type int $total 31 | * set as int32 so JSON renders as an integer 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * set as int32 so JSON renders as an integer 41 | * 42 | * Generated from protobuf field int32 total = 1; 43 | * @return int 44 | */ 45 | public function getTotal() 46 | { 47 | return $this->total; 48 | } 49 | 50 | /** 51 | * set as int32 so JSON renders as an integer 52 | * 53 | * Generated from protobuf field int32 total = 1; 54 | * @param int $var 55 | * @return $this 56 | */ 57 | public function setTotal($var) 58 | { 59 | GPBUtil::checkInt32($var); 60 | $this->total = $var; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/Authentication.php: -------------------------------------------------------------------------------- 1 | io.Authentication 12 | */ 13 | class Authentication 14 | { 15 | /** 16 | * Generated from protobuf enum Unauthenticated = 0; 17 | */ 18 | const Unauthenticated = 0; 19 | /** 20 | * Generated from protobuf enum WebToken = 1; 21 | */ 22 | const WebToken = 1; 23 | /** 24 | * Generated from protobuf enum BearerToken = 2; 25 | */ 26 | const BearerToken = 2; 27 | /** 28 | * Generated from protobuf enum Certificate = 3; 29 | */ 30 | const Certificate = 3; 31 | 32 | private static $valueToName = [ 33 | self::Unauthenticated => 'Unauthenticated', 34 | self::WebToken => 'WebToken', 35 | self::BearerToken => 'BearerToken', 36 | self::Certificate => 'Certificate', 37 | ]; 38 | 39 | public static function name($value) 40 | { 41 | if (!isset(self::$valueToName[$value])) { 42 | throw new UnexpectedValueException(sprintf( 43 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 44 | } 45 | return self::$valueToName[$value]; 46 | } 47 | 48 | 49 | public static function value($name) 50 | { 51 | $const = __CLASS__ . '::' . strtoupper($name); 52 | if (!defined($const)) { 53 | throw new UnexpectedValueException(sprintf( 54 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 55 | } 56 | return constant($const); 57 | } 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/CertificatesList.php: -------------------------------------------------------------------------------- 1 | io.CertificatesList 14 | */ 15 | class CertificatesList extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated string certificates = 1; 19 | */ 20 | private $certificates; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array|\Google\Protobuf\Internal\RepeatedField $certificates 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\User\User::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated string certificates = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getCertificates() 41 | { 42 | return $this->certificates; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated string certificates = 1; 47 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setCertificates($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 53 | $this->certificates = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/MultipleImages.php: -------------------------------------------------------------------------------- 1 | io.MultipleImages 14 | */ 15 | class MultipleImages extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .io.ImageRecord images = 1; 19 | */ 20 | private $images; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Io\ImageRecord>|\Google\Protobuf\Internal\RepeatedField $images 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Image\Image::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .io.ImageRecord images = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getImages() 41 | { 42 | return $this->images; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .io.ImageRecord images = 1; 47 | * @param array<\Io\ImageRecord>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setImages($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\ImageRecord::class); 53 | $this->images = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/PassBundles.php: -------------------------------------------------------------------------------- 1 | io.PassBundles 14 | */ 15 | class PassBundles extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .io.PassBundle passes = 1; 19 | */ 20 | private $passes; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $passes 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .io.PassBundle passes = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getPasses() 41 | { 42 | return $this->passes; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .io.PassBundle passes = 1; 47 | * @param array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setPasses($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\PassBundle::class); 53 | $this->passes = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/SecurityScheme/In.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In 14 | */ 15 | class In 16 | { 17 | /** 18 | * Generated from protobuf enum IN_INVALID = 0; 19 | */ 20 | const IN_INVALID = 0; 21 | /** 22 | * Generated from protobuf enum IN_QUERY = 1; 23 | */ 24 | const IN_QUERY = 1; 25 | /** 26 | * Generated from protobuf enum IN_HEADER = 2; 27 | */ 28 | const IN_HEADER = 2; 29 | 30 | private static $valueToName = [ 31 | self::IN_INVALID => 'IN_INVALID', 32 | self::IN_QUERY => 'IN_QUERY', 33 | self::IN_HEADER => 'IN_HEADER', 34 | ]; 35 | 36 | public static function name($value) 37 | { 38 | if (!isset(self::$valueToName[$value])) { 39 | throw new UnexpectedValueException(sprintf( 40 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 41 | } 42 | return self::$valueToName[$value]; 43 | } 44 | 45 | 46 | public static function value($name) 47 | { 48 | $const = __CLASS__ . '::' . strtoupper($name); 49 | if (!defined($const)) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 52 | } 53 | return constant($const); 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /lib/Io/CouponEventIds.php: -------------------------------------------------------------------------------- 1 | io.CouponEventIds 16 | */ 17 | class CouponEventIds extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Generated from protobuf field repeated .io.CouponEventId ids = 1; 21 | */ 22 | private $ids; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\RepeatedField $ids 31 | * } 32 | */ 33 | public function __construct($data = NULL) { 34 | \GPBMetadata\Io\Common\Integration::initOnce(); 35 | parent::__construct($data); 36 | } 37 | 38 | /** 39 | * Generated from protobuf field repeated .io.CouponEventId ids = 1; 40 | * @return \Google\Protobuf\Internal\RepeatedField 41 | */ 42 | public function getIds() 43 | { 44 | return $this->ids; 45 | } 46 | 47 | /** 48 | * Generated from protobuf field repeated .io.CouponEventId ids = 1; 49 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 50 | * @return $this 51 | */ 52 | public function setIds($var) 53 | { 54 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Io\CouponEventId::class); 55 | $this->ids = $arr; 56 | 57 | return $this; 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/Io/RelevantDate.php: -------------------------------------------------------------------------------- 1 | io.RelevantDate 16 | */ 17 | class RelevantDate extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Unix timestamp. ISO8601 datetime. 21 | * 22 | * Generated from protobuf field uint32 timestamp = 1; 23 | */ 24 | protected $timestamp = 0; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type int $timestamp 33 | * Unix timestamp. ISO8601 datetime. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\Proximity::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * Unix timestamp. ISO8601 datetime. 43 | * 44 | * Generated from protobuf field uint32 timestamp = 1; 45 | * @return int 46 | */ 47 | public function getTimestamp() 48 | { 49 | return $this->timestamp; 50 | } 51 | 52 | /** 53 | * Unix timestamp. ISO8601 datetime. 54 | * 55 | * Generated from protobuf field uint32 timestamp = 1; 56 | * @param int $var 57 | * @return $this 58 | */ 59 | public function setTimestamp($var) 60 | { 61 | GPBUtil::checkUint32($var); 62 | $this->timestamp = $var; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Io/ProfileImageInput.php: -------------------------------------------------------------------------------- 1 | io.ProfileImageInput 14 | */ 15 | class ProfileImageInput extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Provide an image URL or base64 image data. 19 | * 20 | * Generated from protobuf field string imageData = 1; 21 | */ 22 | protected $imageData = ''; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type string $imageData 31 | * Provide an image URL or base64 image data. 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\Image\Image::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * Provide an image URL or base64 image data. 41 | * 42 | * Generated from protobuf field string imageData = 1; 43 | * @return string 44 | */ 45 | public function getImageData() 46 | { 47 | return $this->imageData; 48 | } 49 | 50 | /** 51 | * Provide an image URL or base64 image data. 52 | * 53 | * Generated from protobuf field string imageData = 1; 54 | * @param string $var 55 | * @return $this 56 | */ 57 | public function setImageData($var) 58 | { 59 | GPBUtil::checkString($var, True); 60 | $this->imageData = $var; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Flights/Carrier.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\x92\x06\x0A\x18io/flights/carrier.proto\x12\x07flights\x1A.protoc-gen-openapiv2/options/annotations.proto\"\xAF\x04\x0A\x07Carrier\x12,\x0A\x0FiataCarrierCode\x18\x01 \x01(\x09B\x13\x92A\x10\x8A\x01\x0D^[A-Z0-9]{2}\$\x12,\x0A\x0FicaoCarrierCode\x18\x02 \x01(\x09B\x13\x92A\x10\x8A\x01\x0D^[A-Z0-9]{3}\$\x12(\x0A\x12iataAccountingCode\x18\x03 \x01(\x05B\x0C\x92A\x09Y\x00\x00\x00\x00\x008\x8F@\x12\x13\x0A\x0BairlineName\x18\x04 \x01(\x09\x121\x0A\x14localizedAirlineName\x18\x05 \x01(\x0B2\x13.io.LocalizedString\x12\x1A\x0A\x12passTypeIdentifier\x18\x06 \x01(\x09\x12\x14\x0A\x0CprivateKeyId\x18\x07 \x01(\x09:\xA3\x02\x92A\x9F\x02\x0A\x9C\x02*\x07Carrier2\xDB\x01A carrier record contains details of the carrier. The carrier will be the issuer of the boarding pass and may be used as a marketing or operating carrier. All marketing and operating carriers require a Carrier record.\xD2\x01\x0FiataCarrierCode\xD2\x01\x0BairlineName\xD2\x01\x12passTypeIdentifier\"\"\x0A\x0BCarrierCode\x12\x13\x0A\x0BcarrierCode\x18\x01 \x01(\x09B_\x0A\x18com.passkit.grpc.FlightsZ,stash.passkit.com/io/model/sdk/go/io/flights\xAA\x02\x14PassKit.Grpc.Flightsb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/Io/Id.php: -------------------------------------------------------------------------------- 1 | io.Id 16 | */ 17 | class Id extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * The unique identifier to an object or record. 21 | * 22 | * Generated from protobuf field string id = 1; 23 | */ 24 | protected $id = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $id 33 | * The unique identifier to an object or record. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * The unique identifier to an object or record. 43 | * 44 | * Generated from protobuf field string id = 1; 45 | * @return string 46 | */ 47 | public function getId() 48 | { 49 | return $this->id; 50 | } 51 | 52 | /** 53 | * The unique identifier to an object or record. 54 | * 55 | * Generated from protobuf field string id = 1; 56 | * @param string $var 57 | * @return $this 58 | */ 59 | public function setId($var) 60 | { 61 | GPBUtil::checkString($var, True); 62 | $this->id = $var; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Io/Operation.php: -------------------------------------------------------------------------------- 1 | io.Operation 12 | */ 13 | class Operation 14 | { 15 | /** 16 | * Will use the default operator PATCH. 17 | * 18 | * Generated from protobuf enum OPERATION_DO_NOT_USE = 0; 19 | */ 20 | const OPERATION_DO_NOT_USE = 0; 21 | /** 22 | * PUT will replace all values provided in the request. 23 | * 24 | * Generated from protobuf enum OPERATION_PUT = 1; 25 | */ 26 | const OPERATION_PUT = 1; 27 | /** 28 | * PATCH will ignore missing or falsey values. 29 | * 30 | * Generated from protobuf enum OPERATION_PATCH = 2; 31 | */ 32 | const OPERATION_PATCH = 2; 33 | 34 | private static $valueToName = [ 35 | self::OPERATION_DO_NOT_USE => 'OPERATION_DO_NOT_USE', 36 | self::OPERATION_PUT => 'OPERATION_PUT', 37 | self::OPERATION_PATCH => 'OPERATION_PATCH', 38 | ]; 39 | 40 | public static function name($value) 41 | { 42 | if (!isset(self::$valueToName[$value])) { 43 | throw new UnexpectedValueException(sprintf( 44 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 45 | } 46 | return self::$valueToName[$value]; 47 | } 48 | 49 | 50 | public static function value($name) 51 | { 52 | $const = __CLASS__ . '::' . strtoupper($name); 53 | if (!defined($const)) { 54 | throw new UnexpectedValueException(sprintf( 55 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 56 | } 57 | return constant($const); 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /lib/Io/Strings.php: -------------------------------------------------------------------------------- 1 | io.Strings 16 | */ 17 | class Strings extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Generated from protobuf field repeated string response = 1; 21 | */ 22 | private $response; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\RepeatedField $response 31 | * } 32 | */ 33 | public function __construct($data = NULL) { 34 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 35 | parent::__construct($data); 36 | } 37 | 38 | /** 39 | * Generated from protobuf field repeated string response = 1; 40 | * @return \Google\Protobuf\Internal\RepeatedField 41 | */ 42 | public function getResponse() 43 | { 44 | return $this->response; 45 | } 46 | 47 | /** 48 | * Generated from protobuf field repeated string response = 1; 49 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 50 | * @return $this 51 | */ 52 | public function setResponse($var) 53 | { 54 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 55 | $this->response = $arr; 56 | 57 | return $this; 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/Io/MembershipEventIds.php: -------------------------------------------------------------------------------- 1 | io.MembershipEventIds 16 | */ 17 | class MembershipEventIds extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * Generated from protobuf field repeated .io.MembershipEventId ids = 1; 21 | */ 22 | private $ids; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\RepeatedField $ids 31 | * } 32 | */ 33 | public function __construct($data = NULL) { 34 | \GPBMetadata\Io\Common\Integration::initOnce(); 35 | parent::__construct($data); 36 | } 37 | 38 | /** 39 | * Generated from protobuf field repeated .io.MembershipEventId ids = 1; 40 | * @return \Google\Protobuf\Internal\RepeatedField 41 | */ 42 | public function getIds() 43 | { 44 | return $this->ids; 45 | } 46 | 47 | /** 48 | * Generated from protobuf field repeated .io.MembershipEventId ids = 1; 49 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 50 | * @return $this 51 | */ 52 | public function setIds($var) 53 | { 54 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Io\MembershipEventId::class); 55 | $this->ids = $arr; 56 | 57 | return $this; 58 | } 59 | 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/Io/TimeState.php: -------------------------------------------------------------------------------- 1 | io.TimeState 12 | */ 13 | class TimeState 14 | { 15 | /** 16 | * Generated from protobuf enum TIME_STATE_NONE = 0; 17 | */ 18 | const TIME_STATE_NONE = 0; 19 | /** 20 | * Generated from protobuf enum TIME_STATE_CURRENT = 1; 21 | */ 22 | const TIME_STATE_CURRENT = 1; 23 | /** 24 | * Generated from protobuf enum TIME_STATE_PREVIOUS = 2; 25 | */ 26 | const TIME_STATE_PREVIOUS = 2; 27 | /** 28 | * Generated from protobuf enum TIME_STATE_FOLLOWING = 3; 29 | */ 30 | const TIME_STATE_FOLLOWING = 3; 31 | 32 | private static $valueToName = [ 33 | self::TIME_STATE_NONE => 'TIME_STATE_NONE', 34 | self::TIME_STATE_CURRENT => 'TIME_STATE_CURRENT', 35 | self::TIME_STATE_PREVIOUS => 'TIME_STATE_PREVIOUS', 36 | self::TIME_STATE_FOLLOWING => 'TIME_STATE_FOLLOWING', 37 | ]; 38 | 39 | public static function name($value) 40 | { 41 | if (!isset(self::$valueToName[$value])) { 42 | throw new UnexpectedValueException(sprintf( 43 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 44 | } 45 | return self::$valueToName[$value]; 46 | } 47 | 48 | 49 | public static function value($name) 50 | { 51 | $const = __CLASS__ . '::' . strtoupper($name); 52 | if (!defined($const)) { 53 | throw new UnexpectedValueException(sprintf( 54 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 55 | } 56 | return constant($const); 57 | } 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Members/RecoverPassDelivery.php: -------------------------------------------------------------------------------- 1 | members.RecoverPassDelivery 14 | */ 15 | class RecoverPassDelivery 16 | { 17 | /** 18 | * redirect to pass url. 19 | * 20 | * Generated from protobuf enum DELIVERY_REDIRECT = 0; 21 | */ 22 | const DELIVERY_REDIRECT = 0; 23 | /** 24 | * email user (resend welcome email) 25 | * 26 | * Generated from protobuf enum DELIVERY_EMAIL = 1; 27 | */ 28 | const DELIVERY_EMAIL = 1; 29 | /** 30 | * sms to users phone 31 | * 32 | * Generated from protobuf enum DELIVERY_SMS = 2; 33 | */ 34 | const DELIVERY_SMS = 2; 35 | 36 | private static $valueToName = [ 37 | self::DELIVERY_REDIRECT => 'DELIVERY_REDIRECT', 38 | self::DELIVERY_EMAIL => 'DELIVERY_EMAIL', 39 | self::DELIVERY_SMS => 'DELIVERY_SMS', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Io/DataCollectionFields.php: -------------------------------------------------------------------------------- 1 | io.DataCollectionFields 14 | */ 15 | class DataCollectionFields extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .io.DataCollectionField fields = 1; 19 | */ 20 | private $fields; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Io\DataCollectionField>|\Google\Protobuf\Internal\RepeatedField $fields 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Distribution::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .io.DataCollectionField fields = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getFields() 41 | { 42 | return $this->fields; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .io.DataCollectionField fields = 1; 47 | * @param array<\Io\DataCollectionField>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setFields($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\DataCollectionField::class); 53 | $this->fields = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Flights/CarrierCode.php: -------------------------------------------------------------------------------- 1 | flights.CarrierCode 16 | */ 17 | class CarrierCode extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * The IATA or ICAO carrier code. 21 | * 22 | * Generated from protobuf field string carrierCode = 1; 23 | */ 24 | protected $carrierCode = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $carrierCode 33 | * The IATA or ICAO carrier code. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Flights\Carrier::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * The IATA or ICAO carrier code. 43 | * 44 | * Generated from protobuf field string carrierCode = 1; 45 | * @return string 46 | */ 47 | public function getCarrierCode() 48 | { 49 | return $this->carrierCode; 50 | } 51 | 52 | /** 53 | * The IATA or ICAO carrier code. 54 | * 55 | * Generated from protobuf field string carrierCode = 1; 56 | * @param string $var 57 | * @return $this 58 | */ 59 | public function setCarrierCode($var) 60 | { 61 | GPBUtil::checkString($var, True); 62 | $this->carrierCode = $var; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Members/BalanceType.php: -------------------------------------------------------------------------------- 1 | members.BalanceType 12 | */ 13 | class BalanceType 14 | { 15 | /** 16 | * Generated from protobuf enum BALANCE_TYPE_STRING = 0; 17 | */ 18 | const BALANCE_TYPE_STRING = 0; 19 | /** 20 | * Generated from protobuf enum BALANCE_TYPE_INT = 1; 21 | */ 22 | const BALANCE_TYPE_INT = 1; 23 | /** 24 | * Generated from protobuf enum BALANCE_TYPE_DOUBLE = 2; 25 | */ 26 | const BALANCE_TYPE_DOUBLE = 2; 27 | /** 28 | * Generated from protobuf enum BALANCE_TYPE_MONEY = 3; 29 | */ 30 | const BALANCE_TYPE_MONEY = 3; 31 | 32 | private static $valueToName = [ 33 | self::BALANCE_TYPE_STRING => 'BALANCE_TYPE_STRING', 34 | self::BALANCE_TYPE_INT => 'BALANCE_TYPE_INT', 35 | self::BALANCE_TYPE_DOUBLE => 'BALANCE_TYPE_DOUBLE', 36 | self::BALANCE_TYPE_MONEY => 'BALANCE_TYPE_MONEY', 37 | ]; 38 | 39 | public static function name($value) 40 | { 41 | if (!isset(self::$valueToName[$value])) { 42 | throw new UnexpectedValueException(sprintf( 43 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 44 | } 45 | return self::$valueToName[$value]; 46 | } 47 | 48 | 49 | public static function value($name) 50 | { 51 | $const = __CLASS__ . '::' . strtoupper($name); 52 | if (!defined($const)) { 53 | throw new UnexpectedValueException(sprintf( 54 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 55 | } 56 | return constant($const); 57 | } 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Flights/AirportCode.php: -------------------------------------------------------------------------------- 1 | flights.AirportCode 16 | */ 17 | class AirportCode extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * The IATA or ICAO airport code. 21 | * 22 | * Generated from protobuf field string airportCode = 1; 23 | */ 24 | protected $airportCode = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $airportCode 33 | * The IATA or ICAO airport code. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Flights\Airport::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * The IATA or ICAO airport code. 43 | * 44 | * Generated from protobuf field string airportCode = 1; 45 | * @return string 46 | */ 47 | public function getAirportCode() 48 | { 49 | return $this->airportCode; 50 | } 51 | 52 | /** 53 | * The IATA or ICAO airport code. 54 | * 55 | * Generated from protobuf field string airportCode = 1; 56 | * @param string $var 57 | * @return $this 58 | */ 59 | public function setAirportCode($var) 60 | { 61 | GPBUtil::checkString($var, True); 62 | $this->airportCode = $var; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Io/GetMessageHistoryResponse.php: -------------------------------------------------------------------------------- 1 | io.GetMessageHistoryResponse 14 | */ 15 | class GetMessageHistoryResponse extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .io.GetMessageResponse messages = 1; 19 | */ 20 | private $messages; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Io\GetMessageResponse>|\Google\Protobuf\Internal\RepeatedField $messages 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\Common\Message::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .io.GetMessageResponse messages = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getMessages() 41 | { 42 | return $this->messages; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .io.GetMessageResponse messages = 1; 47 | * @param array<\Io\GetMessageResponse>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setMessages($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\GetMessageResponse::class); 53 | $this->messages = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Flights/InternationalDocVerification.php: -------------------------------------------------------------------------------- 1 | flights.InternationalDocVerification 14 | */ 15 | class InternationalDocVerification 16 | { 17 | /** 18 | * No travel document verification required 19 | * 20 | * Generated from protobuf enum NOT_REQUIRED = 0; 21 | */ 22 | const NOT_REQUIRED = 0; 23 | /** 24 | * Travel document verification required before boarding 25 | * 26 | * Generated from protobuf enum REQUIRED = 1; 27 | */ 28 | const REQUIRED = 1; 29 | /** 30 | * Travel document verification successfully completed 31 | * 32 | * Generated from protobuf enum COMPLETED = 2; 33 | */ 34 | const COMPLETED = 2; 35 | 36 | private static $valueToName = [ 37 | self::NOT_REQUIRED => 'NOT_REQUIRED', 38 | self::REQUIRED => 'REQUIRED', 39 | self::COMPLETED => 'COMPLETED', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Io/DistributionChannel.php: -------------------------------------------------------------------------------- 1 | io.DistributionChannel 12 | */ 13 | class DistributionChannel 14 | { 15 | /** 16 | * Generated from protobuf enum NO_DISTRIBUTION = 0; 17 | */ 18 | const NO_DISTRIBUTION = 0; 19 | /** 20 | * Unique pass link is distributed via email (will use default PK email template if no custom Email Template is provided) 21 | * 22 | * Generated from protobuf enum CHANNEL_EMAIL = 1; 23 | */ 24 | const CHANNEL_EMAIL = 1; 25 | /** 26 | * Unique pass link is distributed via SMS (will use default PK SMS template if no custom SMS Template is provided) 27 | * 28 | * Generated from protobuf enum CHANNEL_SMS = 2; 29 | */ 30 | const CHANNEL_SMS = 2; 31 | 32 | private static $valueToName = [ 33 | self::NO_DISTRIBUTION => 'NO_DISTRIBUTION', 34 | self::CHANNEL_EMAIL => 'CHANNEL_EMAIL', 35 | self::CHANNEL_SMS => 'CHANNEL_SMS', 36 | ]; 37 | 38 | public static function name($value) 39 | { 40 | if (!isset(self::$valueToName[$value])) { 41 | throw new UnexpectedValueException(sprintf( 42 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 43 | } 44 | return self::$valueToName[$value]; 45 | } 46 | 47 | 48 | public static function value($name) 49 | { 50 | $const = __CLASS__ . '::' . strtoupper($name); 51 | if (!defined($const)) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 54 | } 55 | return constant($const); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /lib/Io/GoogleAnalyticsDataCollectionPageEvent.php: -------------------------------------------------------------------------------- 1 | io.GoogleAnalyticsDataCollectionPageEvent 12 | */ 13 | class GoogleAnalyticsDataCollectionPageEvent 14 | { 15 | /** 16 | * Generated from protobuf enum GA_DC_EVENT_DO_NOT_USE = 0; 17 | */ 18 | const GA_DC_EVENT_DO_NOT_USE = 0; 19 | /** 20 | * This is the default GA even tracking page visits. 21 | * 22 | * Generated from protobuf enum GA_DC_EVENT_PAGE_VIEW = 1; 23 | */ 24 | const GA_DC_EVENT_PAGE_VIEW = 1; 25 | /** 26 | * When a user submits the data collection form. 27 | * 28 | * Generated from protobuf enum GA_DC_EVENT_SUBMIT_FORM = 2; 29 | */ 30 | const GA_DC_EVENT_SUBMIT_FORM = 2; 31 | 32 | private static $valueToName = [ 33 | self::GA_DC_EVENT_DO_NOT_USE => 'GA_DC_EVENT_DO_NOT_USE', 34 | self::GA_DC_EVENT_PAGE_VIEW => 'GA_DC_EVENT_PAGE_VIEW', 35 | self::GA_DC_EVENT_SUBMIT_FORM => 'GA_DC_EVENT_SUBMIT_FORM', 36 | ]; 37 | 38 | public static function name($value) 39 | { 40 | if (!isset(self::$valueToName[$value])) { 41 | throw new UnexpectedValueException(sprintf( 42 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 43 | } 44 | return self::$valueToName[$value]; 45 | } 46 | 47 | 48 | public static function value($name) 49 | { 50 | $const = __CLASS__ . '::' . strtoupper($name); 51 | if (!defined($const)) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 54 | } 55 | return constant($const); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /lib/Io/EmailTemplateOptions.php: -------------------------------------------------------------------------------- 1 | io.EmailTemplateOptions 12 | */ 13 | class EmailTemplateOptions 14 | { 15 | /** 16 | * Generated from protobuf enum EMAIL_TEMP_OPT_NONE = 0; 17 | */ 18 | const EMAIL_TEMP_OPT_NONE = 0; 19 | /** 20 | * Hide default external Id field on top right of the template. 21 | * 22 | * Generated from protobuf enum EMAIL_TEMP_OPT_HIDE_EXT_ID = 1; 23 | */ 24 | const EMAIL_TEMP_OPT_HIDE_EXT_ID = 1; 25 | /** 26 | * Hide default full name field on top left of the template. 27 | * 28 | * Generated from protobuf enum EMAIL_TEMP_OPT_HIDE_FULL_NAME = 2; 29 | */ 30 | const EMAIL_TEMP_OPT_HIDE_FULL_NAME = 2; 31 | 32 | private static $valueToName = [ 33 | self::EMAIL_TEMP_OPT_NONE => 'EMAIL_TEMP_OPT_NONE', 34 | self::EMAIL_TEMP_OPT_HIDE_EXT_ID => 'EMAIL_TEMP_OPT_HIDE_EXT_ID', 35 | self::EMAIL_TEMP_OPT_HIDE_FULL_NAME => 'EMAIL_TEMP_OPT_HIDE_FULL_NAME', 36 | ]; 37 | 38 | public static function name($value) 39 | { 40 | if (!isset(self::$valueToName[$value])) { 41 | throw new UnexpectedValueException(sprintf( 42 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 43 | } 44 | return self::$valueToName[$value]; 45 | } 46 | 47 | 48 | public static function value($name) 49 | { 50 | $const = __CLASS__ . '::' . strtoupper($name); 51 | if (!defined($const)) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 54 | } 55 | return constant($const); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /lib/Io/MessageStatus.php: -------------------------------------------------------------------------------- 1 | io.MessageStatus 12 | */ 13 | class MessageStatus 14 | { 15 | /** 16 | * Generated from protobuf enum MESSAGE_STATUS_DO_NOT_USE = 0; 17 | */ 18 | const MESSAGE_STATUS_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum SCHEDULED = 1; 21 | */ 22 | const SCHEDULED = 1; 23 | /** 24 | * Generated from protobuf enum ACTIVE = 2; 25 | */ 26 | const ACTIVE = 2; 27 | /** 28 | * Generated from protobuf enum EXPIRED = 3; 29 | */ 30 | const EXPIRED = 3; 31 | /** 32 | * Generated from protobuf enum CANCELLED = 4; 33 | */ 34 | const CANCELLED = 4; 35 | 36 | private static $valueToName = [ 37 | self::MESSAGE_STATUS_DO_NOT_USE => 'MESSAGE_STATUS_DO_NOT_USE', 38 | self::SCHEDULED => 'SCHEDULED', 39 | self::ACTIVE => 'ACTIVE', 40 | self::EXPIRED => 'EXPIRED', 41 | self::CANCELLED => 'CANCELLED', 42 | ]; 43 | 44 | public static function name($value) 45 | { 46 | if (!isset(self::$valueToName[$value])) { 47 | throw new UnexpectedValueException(sprintf( 48 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 49 | } 50 | return self::$valueToName[$value]; 51 | } 52 | 53 | 54 | public static function value($name) 55 | { 56 | $const = __CLASS__ . '::' . strtoupper($name); 57 | if (!defined($const)) { 58 | throw new UnexpectedValueException(sprintf( 59 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 60 | } 61 | return constant($const); 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /lib/Event_tickets/Tickets.php: -------------------------------------------------------------------------------- 1 | event_tickets.Tickets 14 | */ 15 | class Tickets extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field repeated .event_tickets.TicketLimitedFields tickets = 1; 19 | */ 20 | private $tickets; 21 | 22 | /** 23 | * Constructor. 24 | * 25 | * @param array $data { 26 | * Optional. Data for populating the Message object. 27 | * 28 | * @type array<\Event_tickets\TicketLimitedFields>|\Google\Protobuf\Internal\RepeatedField $tickets 29 | * } 30 | */ 31 | public function __construct($data = NULL) { 32 | \GPBMetadata\Io\EventTickets\Ticket::initOnce(); 33 | parent::__construct($data); 34 | } 35 | 36 | /** 37 | * Generated from protobuf field repeated .event_tickets.TicketLimitedFields tickets = 1; 38 | * @return \Google\Protobuf\Internal\RepeatedField 39 | */ 40 | public function getTickets() 41 | { 42 | return $this->tickets; 43 | } 44 | 45 | /** 46 | * Generated from protobuf field repeated .event_tickets.TicketLimitedFields tickets = 1; 47 | * @param array<\Event_tickets\TicketLimitedFields>|\Google\Protobuf\Internal\RepeatedField $var 48 | * @return $this 49 | */ 50 | public function setTickets($var) 51 | { 52 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Event_tickets\TicketLimitedFields::class); 53 | $this->tickets = $arr; 54 | 55 | return $this; 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /lib/Io/TextAlignment.php: -------------------------------------------------------------------------------- 1 | io.TextAlignment 12 | */ 13 | class TextAlignment 14 | { 15 | /** 16 | * Generated from protobuf enum TEXT_ALIGNMENT_DO_NOT_USE = 0; 17 | */ 18 | const TEXT_ALIGNMENT_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum LEFT = 1; 21 | */ 22 | const LEFT = 1; 23 | /** 24 | * Generated from protobuf enum CENTER = 2; 25 | */ 26 | const CENTER = 2; 27 | /** 28 | * Generated from protobuf enum RIGHT = 3; 29 | */ 30 | const RIGHT = 3; 31 | /** 32 | * Used for Apple only. 33 | * 34 | * Generated from protobuf enum NATURAL = 4; 35 | */ 36 | const NATURAL = 4; 37 | 38 | private static $valueToName = [ 39 | self::TEXT_ALIGNMENT_DO_NOT_USE => 'TEXT_ALIGNMENT_DO_NOT_USE', 40 | self::LEFT => 'LEFT', 41 | self::CENTER => 'CENTER', 42 | self::RIGHT => 'RIGHT', 43 | self::NATURAL => 'NATURAL', 44 | ]; 45 | 46 | public static function name($value) 47 | { 48 | if (!isset(self::$valueToName[$value])) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 51 | } 52 | return self::$valueToName[$value]; 53 | } 54 | 55 | 56 | public static function value($name) 57 | { 58 | $const = __CLASS__ . '::' . strtoupper($name); 59 | if (!defined($const)) { 60 | throw new UnexpectedValueException(sprintf( 61 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 62 | } 63 | return constant($const); 64 | } 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/GoogleAnalyticsCustomerInitiatedRedemptionPageEvent.php: -------------------------------------------------------------------------------- 1 | io.GoogleAnalyticsCustomerInitiatedRedemptionPageEvent 12 | */ 13 | class GoogleAnalyticsCustomerInitiatedRedemptionPageEvent 14 | { 15 | /** 16 | * Generated from protobuf enum GA_CIRP_EVENT_DO_NOT_USE = 0; 17 | */ 18 | const GA_CIRP_EVENT_DO_NOT_USE = 0; 19 | /** 20 | * This is the default GA event tracking page visits. 21 | * 22 | * Generated from protobuf enum GA_CIRP_EVENT_PAGE_VIEW = 1; 23 | */ 24 | const GA_CIRP_EVENT_PAGE_VIEW = 1; 25 | /** 26 | * When a user redeems the coupon. 27 | * 28 | * Generated from protobuf enum GA_CIRP_EVENT_REDEEM = 2; 29 | */ 30 | const GA_CIRP_EVENT_REDEEM = 2; 31 | 32 | private static $valueToName = [ 33 | self::GA_CIRP_EVENT_DO_NOT_USE => 'GA_CIRP_EVENT_DO_NOT_USE', 34 | self::GA_CIRP_EVENT_PAGE_VIEW => 'GA_CIRP_EVENT_PAGE_VIEW', 35 | self::GA_CIRP_EVENT_REDEEM => 'GA_CIRP_EVENT_REDEEM', 36 | ]; 37 | 38 | public static function name($value) 39 | { 40 | if (!isset(self::$valueToName[$value])) { 41 | throw new UnexpectedValueException(sprintf( 42 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 43 | } 44 | return self::$valueToName[$value]; 45 | } 46 | 47 | 48 | public static function value($name) 49 | { 50 | $const = __CLASS__ . '::' . strtoupper($name); 51 | if (!defined($const)) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 54 | } 55 | return constant($const); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /lib/Members/GetMetaKeysResponse.php: -------------------------------------------------------------------------------- 1 | members.GetMetaKeysResponse 14 | */ 15 | class GetMetaKeysResponse extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * An array of distinct meta keys. 19 | * 20 | * Generated from protobuf field repeated string keys = 1; 21 | */ 22 | private $keys; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\RepeatedField $keys 31 | * An array of distinct meta keys. 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\Member\Program::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * An array of distinct meta keys. 41 | * 42 | * Generated from protobuf field repeated string keys = 1; 43 | * @return \Google\Protobuf\Internal\RepeatedField 44 | */ 45 | public function getKeys() 46 | { 47 | return $this->keys; 48 | } 49 | 50 | /** 51 | * An array of distinct meta keys. 52 | * 53 | * Generated from protobuf field repeated string keys = 1; 54 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 55 | * @return $this 56 | */ 57 | public function setKeys($var) 58 | { 59 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 60 | $this->keys = $arr; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/MembershipEventId.php: -------------------------------------------------------------------------------- 1 | io.MembershipEventId 14 | */ 15 | class MembershipEventId 16 | { 17 | /** 18 | * Generated from protobuf enum MEMBER_EVENT_NONE = 0; 19 | */ 20 | const MEMBER_EVENT_NONE = 0; 21 | /** 22 | * The member payload will be sent to destination when member record is created. 23 | * 24 | * Generated from protobuf enum MEMBER_EVENT_ENROLLED = 1; 25 | */ 26 | const MEMBER_EVENT_ENROLLED = 1; 27 | /** 28 | * The member payload will be sent to destination when any of member field is updated. 29 | * 30 | * Generated from protobuf enum MEMBER_EVENT_UPDATED = 2; 31 | */ 32 | const MEMBER_EVENT_UPDATED = 2; 33 | 34 | private static $valueToName = [ 35 | self::MEMBER_EVENT_NONE => 'MEMBER_EVENT_NONE', 36 | self::MEMBER_EVENT_ENROLLED => 'MEMBER_EVENT_ENROLLED', 37 | self::MEMBER_EVENT_UPDATED => 'MEMBER_EVENT_UPDATED', 38 | ]; 39 | 40 | public static function name($value) 41 | { 42 | if (!isset(self::$valueToName[$value])) { 43 | throw new UnexpectedValueException(sprintf( 44 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 45 | } 46 | return self::$valueToName[$value]; 47 | } 48 | 49 | 50 | public static function value($name) 51 | { 52 | $const = __CLASS__ . '::' . strtoupper($name); 53 | if (!defined($const)) { 54 | throw new UnexpectedValueException(sprintf( 55 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 56 | } 57 | return constant($const); 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /lib/Io/Ids.php: -------------------------------------------------------------------------------- 1 | io.Ids 14 | */ 15 | class Ids extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * An array of unique identifiers for objects or records. 19 | * 20 | * Generated from protobuf field repeated string id = 1; 21 | */ 22 | private $id; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\RepeatedField $id 31 | * An array of unique identifiers for objects or records. 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * An array of unique identifiers for objects or records. 41 | * 42 | * Generated from protobuf field repeated string id = 1; 43 | * @return \Google\Protobuf\Internal\RepeatedField 44 | */ 45 | public function getId() 46 | { 47 | return $this->id; 48 | } 49 | 50 | /** 51 | * An array of unique identifiers for objects or records. 52 | * 53 | * Generated from protobuf field repeated string id = 1; 54 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 55 | * @return $this 56 | */ 57 | public function setId($var) 58 | { 59 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 60 | $this->id = $arr; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/Quota.php: -------------------------------------------------------------------------------- 1 | io.Quota 14 | */ 15 | class Quota extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * key is one of pk.MeteredEventType 19 | * 20 | * Generated from protobuf field map details = 1; 21 | */ 22 | private $details; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array|\Google\Protobuf\Internal\MapField $details 31 | * key is one of pk.MeteredEventType 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\Common\Billing::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * key is one of pk.MeteredEventType 41 | * 42 | * Generated from protobuf field map details = 1; 43 | * @return \Google\Protobuf\Internal\MapField 44 | */ 45 | public function getDetails() 46 | { 47 | return $this->details; 48 | } 49 | 50 | /** 51 | * key is one of pk.MeteredEventType 52 | * 53 | * Generated from protobuf field map details = 1; 54 | * @param array|\Google\Protobuf\Internal\MapField $var 55 | * @return $this 56 | */ 57 | public function setDetails($var) 58 | { 59 | $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\QuotaDetails::class); 60 | $this->details = $arr; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/SupportedAndroidWallet.php: -------------------------------------------------------------------------------- 1 | io.SupportedAndroidWallet 12 | */ 13 | class SupportedAndroidWallet 14 | { 15 | /** 16 | * For legacy support, a setting of do not use will default to WalletPasses. 17 | * 18 | * Generated from protobuf enum ANDROID_WALLET_DO_NOT_USE = 0; 19 | */ 20 | const ANDROID_WALLET_DO_NOT_USE = 0; 21 | /** 22 | * Android PassWallet https://passwallet.net. 23 | * 24 | * Generated from protobuf enum ANDROID_WALLET_PASSWALLET = 1; 25 | */ 26 | const ANDROID_WALLET_PASSWALLET = 1; 27 | /** 28 | * WalletPasses https://walletpasses.io (Default). 29 | * 30 | * Generated from protobuf enum ANDROID_WALLET_WALLETPASSES = 2; 31 | */ 32 | const ANDROID_WALLET_WALLETPASSES = 2; 33 | 34 | private static $valueToName = [ 35 | self::ANDROID_WALLET_DO_NOT_USE => 'ANDROID_WALLET_DO_NOT_USE', 36 | self::ANDROID_WALLET_PASSWALLET => 'ANDROID_WALLET_PASSWALLET', 37 | self::ANDROID_WALLET_WALLETPASSES => 'ANDROID_WALLET_WALLETPASSES', 38 | ]; 39 | 40 | public static function name($value) 41 | { 42 | if (!isset(self::$valueToName[$value])) { 43 | throw new UnexpectedValueException(sprintf( 44 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 45 | } 46 | return self::$valueToName[$value]; 47 | } 48 | 49 | 50 | public static function value($name) 51 | { 52 | $const = __CLASS__ . '::' . strtoupper($name); 53 | if (!defined($const)) { 54 | throw new UnexpectedValueException(sprintf( 55 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 56 | } 57 | return constant($const); 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/SecurityScheme/Type.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type 15 | */ 16 | class Type 17 | { 18 | /** 19 | * Generated from protobuf enum TYPE_INVALID = 0; 20 | */ 21 | const TYPE_INVALID = 0; 22 | /** 23 | * Generated from protobuf enum TYPE_BASIC = 1; 24 | */ 25 | const TYPE_BASIC = 1; 26 | /** 27 | * Generated from protobuf enum TYPE_API_KEY = 2; 28 | */ 29 | const TYPE_API_KEY = 2; 30 | /** 31 | * Generated from protobuf enum TYPE_OAUTH2 = 3; 32 | */ 33 | const TYPE_OAUTH2 = 3; 34 | 35 | private static $valueToName = [ 36 | self::TYPE_INVALID => 'TYPE_INVALID', 37 | self::TYPE_BASIC => 'TYPE_BASIC', 38 | self::TYPE_API_KEY => 'TYPE_API_KEY', 39 | self::TYPE_OAUTH2 => 'TYPE_OAUTH2', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Event_tickets/TicketPassBundles.php: -------------------------------------------------------------------------------- 1 | event_tickets.TicketPassBundles 14 | */ 15 | class TicketPassBundles extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * An array of tickets. 19 | * 20 | * Generated from protobuf field repeated .io.PassBundle tickets = 1; 21 | */ 22 | private $tickets; 23 | 24 | /** 25 | * Constructor. 26 | * 27 | * @param array $data { 28 | * Optional. Data for populating the Message object. 29 | * 30 | * @type array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $tickets 31 | * An array of tickets. 32 | * } 33 | */ 34 | public function __construct($data = NULL) { 35 | \GPBMetadata\Io\EventTickets\Ticket::initOnce(); 36 | parent::__construct($data); 37 | } 38 | 39 | /** 40 | * An array of tickets. 41 | * 42 | * Generated from protobuf field repeated .io.PassBundle tickets = 1; 43 | * @return \Google\Protobuf\Internal\RepeatedField 44 | */ 45 | public function getTickets() 46 | { 47 | return $this->tickets; 48 | } 49 | 50 | /** 51 | * An array of tickets. 52 | * 53 | * Generated from protobuf field repeated .io.PassBundle tickets = 1; 54 | * @param array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $var 55 | * @return $this 56 | */ 57 | public function setTickets($var) 58 | { 59 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\PassBundle::class); 60 | $this->tickets = $arr; 61 | 62 | return $this; 63 | } 64 | 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/Scheme.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.Scheme 15 | */ 16 | class Scheme 17 | { 18 | /** 19 | * Generated from protobuf enum UNKNOWN = 0; 20 | */ 21 | const UNKNOWN = 0; 22 | /** 23 | * Generated from protobuf enum HTTP = 1; 24 | */ 25 | const HTTP = 1; 26 | /** 27 | * Generated from protobuf enum HTTPS = 2; 28 | */ 29 | const HTTPS = 2; 30 | /** 31 | * Generated from protobuf enum WS = 3; 32 | */ 33 | const WS = 3; 34 | /** 35 | * Generated from protobuf enum WSS = 4; 36 | */ 37 | const WSS = 4; 38 | 39 | private static $valueToName = [ 40 | self::UNKNOWN => 'UNKNOWN', 41 | self::HTTP => 'HTTP', 42 | self::HTTPS => 'HTTPS', 43 | self::WS => 'WS', 44 | self::WSS => 'WSS', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Flights/SelecteeIndicator.php: -------------------------------------------------------------------------------- 1 | flights.SelecteeIndicator 14 | */ 15 | class SelecteeIndicator 16 | { 17 | /** 18 | * Not selected for special security screening 19 | * 20 | * Generated from protobuf enum NOT_SELECTEE = 0; 21 | */ 22 | const NOT_SELECTEE = 0; 23 | /** 24 | * Selected for special security screening 25 | * 26 | * Generated from protobuf enum SELECTEE = 1; 27 | */ 28 | const SELECTEE = 1; 29 | /** 30 | * Passenger eligible for TSA PreCheck® 31 | * 32 | * Generated from protobuf enum TSA_PRECHECK = 3; 33 | */ 34 | const TSA_PRECHECK = 3; 35 | 36 | private static $valueToName = [ 37 | self::NOT_SELECTEE => 'NOT_SELECTEE', 38 | self::SELECTEE => 'SELECTEE', 39 | self::TSA_PRECHECK => 'TSA_PRECHECK', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Members/ProfileImageSetting.php: -------------------------------------------------------------------------------- 1 | members.ProfileImageSetting 12 | */ 13 | class ProfileImageSetting 14 | { 15 | /** 16 | * Generated from protobuf enum PROFILE_IMAGE_NONE = 0; 17 | */ 18 | const PROFILE_IMAGE_NONE = 0; 19 | /** 20 | * Generated from protobuf enum PROFILE_IMAGE_OPTIONAL = 1; 21 | */ 22 | const PROFILE_IMAGE_OPTIONAL = 1; 23 | /** 24 | * Generated from protobuf enum PROFILE_IMAGE_REQUIRED = 2; 25 | */ 26 | const PROFILE_IMAGE_REQUIRED = 2; 27 | /** 28 | * option to restict the profile image upload from the data collection page. 29 | * 30 | * Generated from protobuf enum PROFILE_IMAGE_RESTRICTED = 3; 31 | */ 32 | const PROFILE_IMAGE_RESTRICTED = 3; 33 | 34 | private static $valueToName = [ 35 | self::PROFILE_IMAGE_NONE => 'PROFILE_IMAGE_NONE', 36 | self::PROFILE_IMAGE_OPTIONAL => 'PROFILE_IMAGE_OPTIONAL', 37 | self::PROFILE_IMAGE_REQUIRED => 'PROFILE_IMAGE_REQUIRED', 38 | self::PROFILE_IMAGE_RESTRICTED => 'PROFILE_IMAGE_RESTRICTED', 39 | ]; 40 | 41 | public static function name($value) 42 | { 43 | if (!isset(self::$valueToName[$value])) { 44 | throw new UnexpectedValueException(sprintf( 45 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 46 | } 47 | return self::$valueToName[$value]; 48 | } 49 | 50 | 51 | public static function value($name) 52 | { 53 | $const = __CLASS__ . '::' . strtoupper($name); 54 | if (!defined($const)) { 55 | throw new UnexpectedValueException(sprintf( 56 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 57 | } 58 | return constant($const); 59 | } 60 | } 61 | 62 | -------------------------------------------------------------------------------- /lib/Members/ListProgramsResponse.php: -------------------------------------------------------------------------------- 1 | members.ListProgramsResponse 16 | */ 17 | class ListProgramsResponse extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * An array of programs. 21 | * 22 | * Generated from protobuf field repeated .members.Program programs = 1; 23 | */ 24 | private $programs; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type array<\Members\Program>|\Google\Protobuf\Internal\RepeatedField $programs 33 | * An array of programs. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Member\Program::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * An array of programs. 43 | * 44 | * Generated from protobuf field repeated .members.Program programs = 1; 45 | * @return \Google\Protobuf\Internal\RepeatedField 46 | */ 47 | public function getPrograms() 48 | { 49 | return $this->programs; 50 | } 51 | 52 | /** 53 | * An array of programs. 54 | * 55 | * Generated from protobuf field repeated .members.Program programs = 1; 56 | * @param array<\Members\Program>|\Google\Protobuf\Internal\RepeatedField $var 57 | * @return $this 58 | */ 59 | public function setPrograms($var) 60 | { 61 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Members\Program::class); 62 | $this->programs = $arr; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Io/UsageType.php: -------------------------------------------------------------------------------- 1 | io.UsageType 14 | */ 15 | class UsageType 16 | { 17 | /** 18 | * Generated from protobuf enum NO_USAGE = 0; 19 | */ 20 | const NO_USAGE = 0; 21 | /** 22 | * Rendered on Apple Wallet 23 | * 24 | * Generated from protobuf enum USAGE_APPLE_WALLET = 1; 25 | */ 26 | const USAGE_APPLE_WALLET = 1; 27 | /** 28 | * Rendered on Google Pay 29 | * 30 | * Generated from protobuf enum USAGE_GOOGLE_PAY = 2; 31 | */ 32 | const USAGE_GOOGLE_PAY = 2; 33 | /** 34 | * Rendered on data collection page 35 | * 36 | * Generated from protobuf enum USAGE_DATA_COLLECTION_PAGE = 4; 37 | */ 38 | const USAGE_DATA_COLLECTION_PAGE = 4; 39 | 40 | private static $valueToName = [ 41 | self::NO_USAGE => 'NO_USAGE', 42 | self::USAGE_APPLE_WALLET => 'USAGE_APPLE_WALLET', 43 | self::USAGE_GOOGLE_PAY => 'USAGE_GOOGLE_PAY', 44 | self::USAGE_DATA_COLLECTION_PAGE => 'USAGE_DATA_COLLECTION_PAGE', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Io/Status.php: -------------------------------------------------------------------------------- 1 | io.Status 14 | */ 15 | class Status 16 | { 17 | /** 18 | * Pass has been issued. 19 | * 20 | * Generated from protobuf enum PASS_ISSUED = 0; 21 | */ 22 | const PASS_ISSUED = 0; 23 | /** 24 | * Pass has been installed in a wallet. 25 | * 26 | * Generated from protobuf enum PASS_INSTALLED = 1; 27 | */ 28 | const PASS_INSTALLED = 1; 29 | /** 30 | * Pass has been uninstalled (possibly deleted) from a wallet. 31 | * 32 | * Generated from protobuf enum PASS_UNINSTALLED = 2; 33 | */ 34 | const PASS_UNINSTALLED = 2; 35 | /** 36 | * Pass has been invalidated. 37 | * 38 | * Generated from protobuf enum PASS_INVALIDATED = 3; 39 | */ 40 | const PASS_INVALIDATED = 3; 41 | 42 | private static $valueToName = [ 43 | self::PASS_ISSUED => 'PASS_ISSUED', 44 | self::PASS_INSTALLED => 'PASS_INSTALLED', 45 | self::PASS_UNINSTALLED => 'PASS_UNINSTALLED', 46 | self::PASS_INVALIDATED => 'PASS_INVALIDATED', 47 | ]; 48 | 49 | public static function name($value) 50 | { 51 | if (!isset(self::$valueToName[$value])) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 54 | } 55 | return self::$valueToName[$value]; 56 | } 57 | 58 | 59 | public static function value($name) 60 | { 61 | $const = __CLASS__ . '::' . strtoupper($name); 62 | if (!defined($const)) { 63 | throw new UnexpectedValueException(sprintf( 64 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 65 | } 66 | return constant($const); 67 | } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /lib/Io/LinkDetector.php: -------------------------------------------------------------------------------- 1 | io.LinkDetector 12 | */ 13 | class LinkDetector 14 | { 15 | /** 16 | * Generated from protobuf enum LINK_DETECTOR_DO_NOT_USE = 0; 17 | */ 18 | const LINK_DETECTOR_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum LINK_DETECTOR_ADDRESS = 1; 21 | */ 22 | const LINK_DETECTOR_ADDRESS = 1; 23 | /** 24 | * Generated from protobuf enum LINK_DETECTOR_DATE = 2; 25 | */ 26 | const LINK_DETECTOR_DATE = 2; 27 | /** 28 | * Generated from protobuf enum LINK_DETECTOR_URL = 3; 29 | */ 30 | const LINK_DETECTOR_URL = 3; 31 | /** 32 | * Generated from protobuf enum LINK_DETECTOR_PHONE = 4; 33 | */ 34 | const LINK_DETECTOR_PHONE = 4; 35 | 36 | private static $valueToName = [ 37 | self::LINK_DETECTOR_DO_NOT_USE => 'LINK_DETECTOR_DO_NOT_USE', 38 | self::LINK_DETECTOR_ADDRESS => 'LINK_DETECTOR_ADDRESS', 39 | self::LINK_DETECTOR_DATE => 'LINK_DETECTOR_DATE', 40 | self::LINK_DETECTOR_URL => 'LINK_DETECTOR_URL', 41 | self::LINK_DETECTOR_PHONE => 'LINK_DETECTOR_PHONE', 42 | ]; 43 | 44 | public static function name($value) 45 | { 46 | if (!isset(self::$valueToName[$value])) { 47 | throw new UnexpectedValueException(sprintf( 48 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 49 | } 50 | return self::$valueToName[$value]; 51 | } 52 | 53 | 54 | public static function value($name) 55 | { 56 | $const = __CLASS__ . '::' . strtoupper($name); 57 | if (!defined($const)) { 58 | throw new UnexpectedValueException(sprintf( 59 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 60 | } 61 | return constant($const); 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /lib/Io/TeamMemberStatus.php: -------------------------------------------------------------------------------- 1 | io.TeamMemberStatus 12 | */ 13 | class TeamMemberStatus 14 | { 15 | /** 16 | * Zero based enum, don't use 0. 17 | * 18 | * Generated from protobuf enum STATUS_NONE = 0; 19 | */ 20 | const STATUS_NONE = 0; 21 | /** 22 | * Generated from protobuf enum TEAM_MEMBER_ACTIVE = 1; 23 | */ 24 | const TEAM_MEMBER_ACTIVE = 1; 25 | /** 26 | * Generated from protobuf enum TEAM_MEMBER_DISABLED = 2; 27 | */ 28 | const TEAM_MEMBER_DISABLED = 2; 29 | /** 30 | * Generated from protobuf enum TEAM_MEMBER_EXPIRED = 4; 31 | */ 32 | const TEAM_MEMBER_EXPIRED = 4; 33 | /** 34 | * Generated from protobuf enum TEAM_MEMBER_PENDING = 8; 35 | */ 36 | const TEAM_MEMBER_PENDING = 8; 37 | 38 | private static $valueToName = [ 39 | self::STATUS_NONE => 'STATUS_NONE', 40 | self::TEAM_MEMBER_ACTIVE => 'TEAM_MEMBER_ACTIVE', 41 | self::TEAM_MEMBER_DISABLED => 'TEAM_MEMBER_DISABLED', 42 | self::TEAM_MEMBER_EXPIRED => 'TEAM_MEMBER_EXPIRED', 43 | self::TEAM_MEMBER_PENDING => 'TEAM_MEMBER_PENDING', 44 | ]; 45 | 46 | public static function name($value) 47 | { 48 | if (!isset(self::$valueToName[$value])) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 51 | } 52 | return self::$valueToName[$value]; 53 | } 54 | 55 | 56 | public static function value($name) 57 | { 58 | $const = __CLASS__ . '::' . strtoupper($name); 59 | if (!defined($const)) { 60 | throw new UnexpectedValueException(sprintf( 61 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 62 | } 63 | return constant($const); 64 | } 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Project.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 22 | "\x0A\xA2\x06\x0A\x17io/common/project.proto\x12\x02io\x1A\x19io/common/protocols.proto\x1A\x18io/common/template.proto\"\xC3\x01\x0A\x07Project\x12\"\x0A\x08protocol\x18\x01 \x01(\x0E2\x10.io.PassProtocol\x12\x0F\x0A\x07classId\x18\x02 \x01(\x09\x12\x0C\x0A\x04name\x18\x03 \x01(\x09\x12\x11\x0A\x09shortCode\x18\x04 \x01(\x09\x12+\x0A\x07created\x18\x05 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0E\x0A\x06secret\x18\x06 \x01(\x09\x12\x0B\x0A\x03key\x18\x07 \x01(\x09\x12\x18\x0A\x10encryptedClassId\x18\x09 \x01(\x09\"\\\x0A\x18ProjectByShortCodeResult\x12\x1C\x0A\x07project\x18\x01 \x01(\x0B2\x0B.io.Project\x12\"\x0A\x08template\x18\x02 \x01(\x0B2\x10.io.PassTemplate\"8\x0A\x13ProjectStatusFilter\x12!\x0A\x06status\x18\x01 \x01(\x0E2\x11.io.ProjectStatus*\x9E\x02\x0A\x0DProjectStatus\x12\x15\x0A\x11NO_PROJECT_STATUS\x10\x00\x12&\x0A\"PROJECT_ACTIVE_FOR_OBJECT_CREATION\x10\x01\x12(\x0A\$PROJECT_DISABLED_FOR_OBJECT_CREATION\x10\x02\x12\x11\x0A\x0DPROJECT_DRAFT\x10\x04\x12\x15\x0A\x11PROJECT_PUBLISHED\x10\x08\x12\x13\x0A\x0FPROJECT_PRIVATE\x10\x10\x12\x16\x0A\x12PROJECT_OVER_QUOTA\x10 \x12\x13\x0A\x0FPROJECT_DELETED\x10@\x12\x1A\x0A\x15PROJECT_EMAIL_WARNING\x10\x80\x01\x12\x1C\x0A\x17PROJECT_EMAIL_SUSPENDED\x10\x80\x02BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 23 | , true); 24 | 25 | static::$is_initialized = true; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /lib/Io/NumberStyle.php: -------------------------------------------------------------------------------- 1 | io.NumberStyle 12 | */ 13 | class NumberStyle 14 | { 15 | /** 16 | * Generated from protobuf enum NUMBER_STYLE_DO_NOT_USE = 0; 17 | */ 18 | const NUMBER_STYLE_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum NUMBER_STYLE_DECIMAL = 1; 21 | */ 22 | const NUMBER_STYLE_DECIMAL = 1; 23 | /** 24 | * Generated from protobuf enum NUMBER_STYLE_PERCENT = 2; 25 | */ 26 | const NUMBER_STYLE_PERCENT = 2; 27 | /** 28 | * Generated from protobuf enum NUMBER_STYLE_SCIENTIFIC = 3; 29 | */ 30 | const NUMBER_STYLE_SCIENTIFIC = 3; 31 | /** 32 | * Generated from protobuf enum NUMBER_STYLE_SPELL = 4; 33 | */ 34 | const NUMBER_STYLE_SPELL = 4; 35 | 36 | private static $valueToName = [ 37 | self::NUMBER_STYLE_DO_NOT_USE => 'NUMBER_STYLE_DO_NOT_USE', 38 | self::NUMBER_STYLE_DECIMAL => 'NUMBER_STYLE_DECIMAL', 39 | self::NUMBER_STYLE_PERCENT => 'NUMBER_STYLE_PERCENT', 40 | self::NUMBER_STYLE_SCIENTIFIC => 'NUMBER_STYLE_SCIENTIFIC', 41 | self::NUMBER_STYLE_SPELL => 'NUMBER_STYLE_SPELL', 42 | ]; 43 | 44 | public static function name($value) 45 | { 46 | if (!isset(self::$valueToName[$value])) { 47 | throw new UnexpectedValueException(sprintf( 48 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 49 | } 50 | return self::$valueToName[$value]; 51 | } 52 | 53 | 54 | public static function value($name) 55 | { 56 | $const = __CLASS__ . '::' . strtoupper($name); 57 | if (!defined($const)) { 58 | throw new UnexpectedValueException(sprintf( 59 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 60 | } 61 | return constant($const); 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/HeaderParameter/Type.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type 15 | */ 16 | class Type 17 | { 18 | /** 19 | * Generated from protobuf enum UNKNOWN = 0; 20 | */ 21 | const UNKNOWN = 0; 22 | /** 23 | * Generated from protobuf enum STRING = 1; 24 | */ 25 | const STRING = 1; 26 | /** 27 | * Generated from protobuf enum NUMBER = 2; 28 | */ 29 | const NUMBER = 2; 30 | /** 31 | * Generated from protobuf enum INTEGER = 3; 32 | */ 33 | const INTEGER = 3; 34 | /** 35 | * Generated from protobuf enum BOOLEAN = 4; 36 | */ 37 | const BOOLEAN = 4; 38 | 39 | private static $valueToName = [ 40 | self::UNKNOWN => 'UNKNOWN', 41 | self::STRING => 'STRING', 42 | self::NUMBER => 'NUMBER', 43 | self::INTEGER => 'INTEGER', 44 | self::BOOLEAN => 'BOOLEAN', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Io/DefaultCouponScanAction.php: -------------------------------------------------------------------------------- 1 | io.DefaultCouponScanAction 14 | */ 15 | class DefaultCouponScanAction 16 | { 17 | /** 18 | * Zero based enum, don't use 0. 19 | * 20 | * Generated from protobuf enum COUPON_DEFAULT_NONE = 0; 21 | */ 22 | const COUPON_DEFAULT_NONE = 0; 23 | /** 24 | * Set so any card scanned gets automatically redeemed. 25 | * 26 | * Generated from protobuf enum COUPON_DEFAULT_REDEEM = 1; 27 | */ 28 | const COUPON_DEFAULT_REDEEM = 1; 29 | /** 30 | * Set so any card scanned gets automatically validated. 31 | * 32 | * Generated from protobuf enum COUPON_DEFAULT_VALIDATE = 2; 33 | */ 34 | const COUPON_DEFAULT_VALIDATE = 2; 35 | 36 | private static $valueToName = [ 37 | self::COUPON_DEFAULT_NONE => 'COUPON_DEFAULT_NONE', 38 | self::COUPON_DEFAULT_REDEEM => 'COUPON_DEFAULT_REDEEM', 39 | self::COUPON_DEFAULT_VALIDATE => 'COUPON_DEFAULT_VALIDATE', 40 | ]; 41 | 42 | public static function name($value) 43 | { 44 | if (!isset(self::$valueToName[$value])) { 45 | throw new UnexpectedValueException(sprintf( 46 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 47 | } 48 | return self::$valueToName[$value]; 49 | } 50 | 51 | 52 | public static function value($name) 53 | { 54 | $const = __CLASS__ . '::' . strtoupper($name); 55 | if (!defined($const)) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 58 | } 59 | return constant($const); 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /lib/Flights/BoardingPolicy.php: -------------------------------------------------------------------------------- 1 | flights.BoardingPolicy 14 | */ 15 | class BoardingPolicy 16 | { 17 | /** 18 | * Generated from protobuf enum BOARDING_POLICY_UNSPECIFIED = 0; 19 | */ 20 | const BOARDING_POLICY_UNSPECIFIED = 0; 21 | /** 22 | * Boarding is managed by zone. 23 | * 24 | * Generated from protobuf enum ZONE_BASED = 1; 25 | */ 26 | const ZONE_BASED = 1; 27 | /** 28 | * Boarding is managed by group. 29 | * 30 | * Generated from protobuf enum GROUP_BASED = 2; 31 | */ 32 | const GROUP_BASED = 2; 33 | /** 34 | * Another, or No boarding policy is in place. 35 | * 36 | * Generated from protobuf enum BOARDING_POLICY_OTHER = 3; 37 | */ 38 | const BOARDING_POLICY_OTHER = 3; 39 | 40 | private static $valueToName = [ 41 | self::BOARDING_POLICY_UNSPECIFIED => 'BOARDING_POLICY_UNSPECIFIED', 42 | self::ZONE_BASED => 'ZONE_BASED', 43 | self::GROUP_BASED => 'GROUP_BASED', 44 | self::BOARDING_POLICY_OTHER => 'BOARDING_POLICY_OTHER', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Io/DateTimeStyle.php: -------------------------------------------------------------------------------- 1 | io.DateTimeStyle 12 | */ 13 | class DateTimeStyle 14 | { 15 | /** 16 | * Generated from protobuf enum DATE_TIME_STYLE_DO_NOT_USE = 0; 17 | */ 18 | const DATE_TIME_STYLE_DO_NOT_USE = 0; 19 | /** 20 | * Generated from protobuf enum DATE_TIME_STYLE_SHORT = 1; 21 | */ 22 | const DATE_TIME_STYLE_SHORT = 1; 23 | /** 24 | * Generated from protobuf enum DATE_TIME_STYLE_MEDIUM = 2; 25 | */ 26 | const DATE_TIME_STYLE_MEDIUM = 2; 27 | /** 28 | * Generated from protobuf enum DATE_TIME_STYLE_LONG = 3; 29 | */ 30 | const DATE_TIME_STYLE_LONG = 3; 31 | /** 32 | * Generated from protobuf enum DATE_TIME_STYLE_FULL = 4; 33 | */ 34 | const DATE_TIME_STYLE_FULL = 4; 35 | 36 | private static $valueToName = [ 37 | self::DATE_TIME_STYLE_DO_NOT_USE => 'DATE_TIME_STYLE_DO_NOT_USE', 38 | self::DATE_TIME_STYLE_SHORT => 'DATE_TIME_STYLE_SHORT', 39 | self::DATE_TIME_STYLE_MEDIUM => 'DATE_TIME_STYLE_MEDIUM', 40 | self::DATE_TIME_STYLE_LONG => 'DATE_TIME_STYLE_LONG', 41 | self::DATE_TIME_STYLE_FULL => 'DATE_TIME_STYLE_FULL', 42 | ]; 43 | 44 | public static function name($value) 45 | { 46 | if (!isset(self::$valueToName[$value])) { 47 | throw new UnexpectedValueException(sprintf( 48 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 49 | } 50 | return self::$valueToName[$value]; 51 | } 52 | 53 | 54 | public static function value($name) 55 | { 56 | $const = __CLASS__ . '::' . strtoupper($name); 57 | if (!defined($const)) { 58 | throw new UnexpectedValueException(sprintf( 59 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 60 | } 61 | return constant($const); 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Localization.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 19 | "\x0A\x93\x05\x0A\x1Cio/common/localization.proto\x12\x02io\"\x83\x01\x0A\x0FLocalizedString\x12;\x0A\x0Ctranslations\x18\x01 \x03(\x0B2%.io.LocalizedString.TranslationsEntry\x1A3\x0A\x11TranslationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01*\x97\x03\x0A\x0CLanguageCode\x12\x06\x0A\x02EN\x10\x00\x12\x06\x0A\x02AR\x10\x04\x12\x0B\x0A\x07ZH_HANS\x10\x08\x12\x0B\x0A\x07ZH_HANT\x10\x0C\x12\x09\x0A\x05ZH_HK\x10\x10\x12\x06\x0A\x02CA\x10\x14\x12\x06\x0A\x02HR\x10\x18\x12\x06\x0A\x02CS\x10\x1C\x12\x06\x0A\x02DA\x10 \x12\x06\x0A\x02DE\x10\$\x12\x09\x0A\x05EN_AU\x10(\x12\x09\x0A\x05EN_GB\x10,\x12\x09\x0A\x05EN_CA\x100\x12\x09\x0A\x05EN_US\x104\x12\x09\x0A\x05EN_IN\x108\x12\x06\x0A\x02ES\x10<\x12\x0A\x0A\x06ES_419\x10@\x12\x06\x0A\x02FI\x10D\x12\x06\x0A\x02FR\x10H\x12\x09\x0A\x05FR_CA\x10L\x12\x06\x0A\x02EL\x10P\x12\x06\x0A\x02HE\x10T\x12\x06\x0A\x02HI\x10X\x12\x06\x0A\x02HU\x10\\\x12\x06\x0A\x02ID\x10`\x12\x06\x0A\x02IT\x10d\x12\x06\x0A\x02JA\x10h\x12\x06\x0A\x02KO\x10l\x12\x06\x0A\x02MS\x10p\x12\x06\x0A\x02MT\x10t\x12\x06\x0A\x02NL\x10x\x12\x06\x0A\x02NB\x10|\x12\x07\x0A\x02PL\x10\x80\x01\x12\x07\x0A\x02PT\x10\x84\x01\x12\x0A\x0A\x05PT_BR\x10\x88\x01\x12\x07\x0A\x02RO\x10\x8C\x01\x12\x07\x0A\x02RU\x10\x90\x01\x12\x07\x0A\x02SK\x10\x94\x01\x12\x07\x0A\x02SV\x10\x98\x01\x12\x07\x0A\x02TH\x10\x9C\x01\x12\x07\x0A\x02TR\x10\xA0\x01\x12\x07\x0A\x02UK\x10\xA4\x01\x12\x07\x0A\x02VI\x10\xA8\x01BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 20 | , true); 21 | 22 | static::$is_initialized = true; 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/SecurityRequirement/SecurityRequirementValue.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue 18 | */ 19 | class SecurityRequirementValue extends \Google\Protobuf\Internal\Message 20 | { 21 | /** 22 | * Generated from protobuf field repeated string scope = 1; 23 | */ 24 | private $scope; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type array|\Google\Protobuf\Internal\RepeatedField $scope 33 | * } 34 | */ 35 | public function __construct($data = NULL) { 36 | \GPBMetadata\ProtocGenOpenapiv2\Options\Openapiv2::initOnce(); 37 | parent::__construct($data); 38 | } 39 | 40 | /** 41 | * Generated from protobuf field repeated string scope = 1; 42 | * @return \Google\Protobuf\Internal\RepeatedField 43 | */ 44 | public function getScope() 45 | { 46 | return $this->scope; 47 | } 48 | 49 | /** 50 | * Generated from protobuf field repeated string scope = 1; 51 | * @param array|\Google\Protobuf\Internal\RepeatedField $var 52 | * @return $this 53 | */ 54 | public function setScope($var) 55 | { 56 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); 57 | $this->scope = $arr; 58 | 59 | return $this; 60 | } 61 | 62 | } 63 | 64 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Common/Personal.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 20 | "\x0A\xE9\x05\x0A\x18io/common/personal.proto\x12\x02io\"\xD9\x02\x0A\x06Person\x12\x0F\x0A\x07surname\x18\x01 \x01(\x09\x12\x10\x0A\x08forename\x18\x02 \x01(\x09\x12\x12\x0A\x0AotherNames\x18\x03 \x03(\x09\x12\x12\x0A\x0Asalutation\x18\x04 \x01(\x09\x12\x0E\x0A\x06suffix\x18\x05 \x01(\x09\x12\x13\x0A\x0BdisplayName\x18\x06 \x01(\x09\x12\x1A\x0A\x06gender\x18\x07 \x01(\x0E2\x0A.io.Gender\x12\x1D\x0A\x0BdateOfBirth\x18\x08 \x01(\x0B2\x08.io.Date\x12\x14\x0A\x0CemailAddress\x18\x09 \x01(\x09\x12\x14\x0A\x0CmobileNumber\x18\x0A \x01(\x09\x12\x12\x0A\x0AexternalId\x18\x0B \x01(\x09\x120\x0A\x0BexternalIds\x18\x0C \x03(\x0B2\x1B.io.Person.ExternalIdsEntry\x1A2\x0A\x10ExternalIdsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x05\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x8E\x01\x0A\x07Address\x12\x14\x0A\x0CaddressLine1\x18\x01 \x01(\x09\x12\x14\x0A\x0CaddressLine2\x18\x02 \x01(\x09\x12\x14\x0A\x0CaddressLine3\x18\x03 \x01(\x09\x12\x0C\x0A\x04city\x18\x04 \x01(\x09\x12\x0D\x0A\x05state\x18\x05 \x01(\x09\x12\x0F\x0A\x07zipCode\x18\x06 \x01(\x09\x12\x13\x0A\x0BcountryCode\x18\x07 \x01(\x09\"\\\x0A\x0DPersonRequest\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x12\x0A\x0AexternalId\x18\x02 \x01(\x09\x12\x0F\x0A\x07classId\x18\x03 \x01(\x09\x12\x1A\x0A\x06person\x18\x04 \x01(\x0B2\x0A.io.Person*-\x0A\x06Gender\x12\x0D\x0A\x09NOT_KNOWN\x10\x00\x12\x08\x0A\x04MALE\x10\x01\x12\x0A\x0A\x06FEMALE\x10\x02BG\x0A\x10com.passkit.grpcZ\$stash.passkit.com/io/model/sdk/go/io\xAA\x02\x0CPassKit.Grpcb\x06proto3" 21 | , true); 22 | 23 | static::$is_initialized = true; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /lib/Io/LocalDate.php: -------------------------------------------------------------------------------- 1 | io.LocalDate 16 | */ 17 | class LocalDate extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * ISO 8601 format date without a time. E.g. 2019-08-07. 21 | * 22 | * Generated from protobuf field string dateTime = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 23 | */ 24 | protected $dateTime = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $dateTime 33 | * ISO 8601 format date without a time. E.g. 2019-08-07. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * ISO 8601 format date without a time. E.g. 2019-08-07. 43 | * 44 | * Generated from protobuf field string dateTime = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 45 | * @return string 46 | */ 47 | public function getDateTime() 48 | { 49 | return $this->dateTime; 50 | } 51 | 52 | /** 53 | * ISO 8601 format date without a time. E.g. 2019-08-07. 54 | * 55 | * Generated from protobuf field string dateTime = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { 56 | * @param string $var 57 | * @return $this 58 | */ 59 | public function setDateTime($var) 60 | { 61 | GPBUtil::checkString($var, True); 62 | $this->dateTime = $var; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/Io/OAuth2Provider.php: -------------------------------------------------------------------------------- 1 | io.OAuth2Provider 12 | */ 13 | class OAuth2Provider 14 | { 15 | /** 16 | * Zero based enum, don't use 0 17 | * 18 | * Generated from protobuf enum OAUTH_DO_NOT_USE = 0; 19 | */ 20 | const OAUTH_DO_NOT_USE = 0; 21 | /** 22 | * Membership 10-49 23 | * 24 | * Generated from protobuf enum OAUTH_PATREON = 10; 25 | */ 26 | const OAUTH_PATREON = 10; 27 | /** 28 | * CRM 50-99 29 | * 30 | * Generated from protobuf enum OAUTH_SPROUT = 50; 31 | */ 32 | const OAUTH_SPROUT = 50; 33 | /** 34 | * Marketing 100-149 35 | * 36 | * Generated from protobuf enum OAUTH_MAILCHIMP = 100; 37 | */ 38 | const OAUTH_MAILCHIMP = 100; 39 | /** 40 | * Accounting 150-199 41 | * 42 | * Generated from protobuf enum OAUTH_XERO = 150; 43 | */ 44 | const OAUTH_XERO = 150; 45 | 46 | private static $valueToName = [ 47 | self::OAUTH_DO_NOT_USE => 'OAUTH_DO_NOT_USE', 48 | self::OAUTH_PATREON => 'OAUTH_PATREON', 49 | self::OAUTH_SPROUT => 'OAUTH_SPROUT', 50 | self::OAUTH_MAILCHIMP => 'OAUTH_MAILCHIMP', 51 | self::OAUTH_XERO => 'OAUTH_XERO', 52 | ]; 53 | 54 | public static function name($value) 55 | { 56 | if (!isset(self::$valueToName[$value])) { 57 | throw new UnexpectedValueException(sprintf( 58 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 59 | } 60 | return self::$valueToName[$value]; 61 | } 62 | 63 | 64 | public static function value($name) 65 | { 66 | $const = __CLASS__ . '::' . strtoupper($name); 67 | if (!defined($const)) { 68 | throw new UnexpectedValueException(sprintf( 69 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 70 | } 71 | return constant($const); 72 | } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /lib/Io/Url.php: -------------------------------------------------------------------------------- 1 | io.Url 14 | */ 15 | class Url extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string url = 1; 19 | */ 20 | protected $url = ''; 21 | /** 22 | * Generated from protobuf field string title = 2; 23 | */ 24 | protected $title = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $url 33 | * @type string $title 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\CommonObjects::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * Generated from protobuf field string url = 1; 43 | * @return string 44 | */ 45 | public function getUrl() 46 | { 47 | return $this->url; 48 | } 49 | 50 | /** 51 | * Generated from protobuf field string url = 1; 52 | * @param string $var 53 | * @return $this 54 | */ 55 | public function setUrl($var) 56 | { 57 | GPBUtil::checkString($var, True); 58 | $this->url = $var; 59 | 60 | return $this; 61 | } 62 | 63 | /** 64 | * Generated from protobuf field string title = 2; 65 | * @return string 66 | */ 67 | public function getTitle() 68 | { 69 | return $this->title; 70 | } 71 | 72 | /** 73 | * Generated from protobuf field string title = 2; 74 | * @param string $var 75 | * @return $this 76 | */ 77 | public function setTitle($var) 78 | { 79 | GPBUtil::checkString($var, True); 80 | $this->title = $var; 81 | 82 | return $this; 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /lib/Io/ApplePassType.php: -------------------------------------------------------------------------------- 1 | io.ApplePassType 14 | */ 15 | class ApplePassType 16 | { 17 | /** 18 | * Use if you do not wish to support Apple Wallet 19 | * 20 | * Generated from protobuf enum APPLE_NOT_SUPPORTED = 0; 21 | */ 22 | const APPLE_NOT_SUPPORTED = 0; 23 | /** 24 | * Generated from protobuf enum BOARDING_PASS = 1; 25 | */ 26 | const BOARDING_PASS = 1; 27 | /** 28 | * Generated from protobuf enum COUPON = 2; 29 | */ 30 | const COUPON = 2; 31 | /** 32 | * Generated from protobuf enum EVENT_TICKET = 3; 33 | */ 34 | const EVENT_TICKET = 3; 35 | /** 36 | * Generated from protobuf enum GENERIC = 4; 37 | */ 38 | const GENERIC = 4; 39 | /** 40 | * Generated from protobuf enum STORE_CARD = 5; 41 | */ 42 | const STORE_CARD = 5; 43 | 44 | private static $valueToName = [ 45 | self::APPLE_NOT_SUPPORTED => 'APPLE_NOT_SUPPORTED', 46 | self::BOARDING_PASS => 'BOARDING_PASS', 47 | self::COUPON => 'COUPON', 48 | self::EVENT_TICKET => 'EVENT_TICKET', 49 | self::GENERIC => 'GENERIC', 50 | self::STORE_CARD => 'STORE_CARD', 51 | ]; 52 | 53 | public static function name($value) 54 | { 55 | if (!isset(self::$valueToName[$value])) { 56 | throw new UnexpectedValueException(sprintf( 57 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 58 | } 59 | return self::$valueToName[$value]; 60 | } 61 | 62 | 63 | public static function value($name) 64 | { 65 | $const = __CLASS__ . '::' . strtoupper($name); 66 | if (!defined($const)) { 67 | throw new UnexpectedValueException(sprintf( 68 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 69 | } 70 | return constant($const); 71 | } 72 | } 73 | 74 | -------------------------------------------------------------------------------- /lib/Io/IntegrationStatus.php: -------------------------------------------------------------------------------- 1 | io.IntegrationStatus 14 | */ 15 | class IntegrationStatus 16 | { 17 | /** 18 | * Generated from protobuf enum INTEGRATION_STATUS_NONE = 0; 19 | */ 20 | const INTEGRATION_STATUS_NONE = 0; 21 | /** 22 | * Turn off the integration. 23 | * 24 | * Generated from protobuf enum INTEGRATION_DISABLED = 1; 25 | */ 26 | const INTEGRATION_DISABLED = 1; 27 | /** 28 | * Turn on the integration. 29 | * 30 | * Generated from protobuf enum INTEGRATION_ACTIVE = 2; 31 | */ 32 | const INTEGRATION_ACTIVE = 2; 33 | /** 34 | * The status assigned by PassKit when the account or record is not satisfying the requirements to conduct integration process. 35 | * 36 | * Generated from protobuf enum INTEGRATION_SUSPENDED = 3; 37 | */ 38 | const INTEGRATION_SUSPENDED = 3; 39 | 40 | private static $valueToName = [ 41 | self::INTEGRATION_STATUS_NONE => 'INTEGRATION_STATUS_NONE', 42 | self::INTEGRATION_DISABLED => 'INTEGRATION_DISABLED', 43 | self::INTEGRATION_ACTIVE => 'INTEGRATION_ACTIVE', 44 | self::INTEGRATION_SUSPENDED => 'INTEGRATION_SUSPENDED', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Io/PassBundleFormat.php: -------------------------------------------------------------------------------- 1 | io.PassBundleFormat 14 | */ 15 | class PassBundleFormat 16 | { 17 | /** 18 | * The URL to the web landing page. 19 | * 20 | * Generated from protobuf enum PASS_URL = 0; 21 | */ 22 | const PASS_URL = 0; 23 | /** 24 | * A URL that can be used in an Android app or email. Note that this is not recommended for web use. 25 | * 26 | * Generated from protobuf enum GOOGLE_URL = 2; 27 | */ 28 | const GOOGLE_URL = 2; 29 | /** 30 | * The Base64 encoded bytes of the Apple Wallet pass bundle. 31 | * 32 | * Generated from protobuf enum APPLE_PASS_BUNDLE = 8; 33 | */ 34 | const APPLE_PASS_BUNDLE = 8; 35 | /** 36 | * The URL to a landing page for multiple passes containing a common identifier. 37 | * 38 | * Generated from protobuf enum MULTI_LINK = 16; 39 | */ 40 | const MULTI_LINK = 16; 41 | 42 | private static $valueToName = [ 43 | self::PASS_URL => 'PASS_URL', 44 | self::GOOGLE_URL => 'GOOGLE_URL', 45 | self::APPLE_PASS_BUNDLE => 'APPLE_PASS_BUNDLE', 46 | self::MULTI_LINK => 'MULTI_LINK', 47 | ]; 48 | 49 | public static function name($value) 50 | { 51 | if (!isset(self::$valueToName[$value])) { 52 | throw new UnexpectedValueException(sprintf( 53 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 54 | } 55 | return self::$valueToName[$value]; 56 | } 57 | 58 | 59 | public static function value($name) 60 | { 61 | $const = __CLASS__ . '::' . strtoupper($name); 62 | if (!defined($const)) { 63 | throw new UnexpectedValueException(sprintf( 64 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 65 | } 66 | return constant($const); 67 | } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /lib/Io/CopyObjectInput.php: -------------------------------------------------------------------------------- 1 | io.CopyObjectInput 14 | */ 15 | class CopyObjectInput extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string id = 1; 19 | */ 20 | protected $id = ''; 21 | /** 22 | * Generated from protobuf field string newName = 2; 23 | */ 24 | protected $newName = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $id 33 | * @type string $newName 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\Template::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * Generated from protobuf field string id = 1; 43 | * @return string 44 | */ 45 | public function getId() 46 | { 47 | return $this->id; 48 | } 49 | 50 | /** 51 | * Generated from protobuf field string id = 1; 52 | * @param string $var 53 | * @return $this 54 | */ 55 | public function setId($var) 56 | { 57 | GPBUtil::checkString($var, True); 58 | $this->id = $var; 59 | 60 | return $this; 61 | } 62 | 63 | /** 64 | * Generated from protobuf field string newName = 2; 65 | * @return string 66 | */ 67 | public function getNewName() 68 | { 69 | return $this->newName; 70 | } 71 | 72 | /** 73 | * Generated from protobuf field string newName = 2; 74 | * @param string $var 75 | * @return $this 76 | */ 77 | public function setNewName($var) 78 | { 79 | GPBUtil::checkString($var, True); 80 | $this->newName = $var; 81 | 82 | return $this; 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /lib/GPBMetadata/Io/Raw/Project.php: -------------------------------------------------------------------------------- 1 | internalAddGeneratedFile( 24 | "\x0A\x8A\x07\x0A\x14io/raw/project.proto\x12\x03raw\x1A\x1Cio/common/distribution.proto\x1A\x1Cio/common/localization.proto\x1A\x17io/common/project.proto\x1A\x17io/common/billing.proto\x1A.protoc-gen-openapiv2/options/annotations.proto\"\xFE\x03\x0A\x0BPassProject\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12*\x0A\x0DlocalizedName\x18\x03 \x01(\x0B2\x13.io.LocalizedString\x12!\x0A\x06status\x18\x04 \x03(\x0E2\x11.io.ProjectStatus\x12\x18\x0A\x05quota\x18\x05 \x01(\x0B2\x09.io.Quota\x12\x1A\x0A\x12passTypeIdentifier\x18\x06 \x01(\x09\x126\x0A\x14distributionSettings\x18\x07 \x01(\x0B2\x18.io.DistributionSettings\x12+\x0A\x07created\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12+\x0A\x07updated\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp:\xBD\x01\x92A\xB9\x01\x0A\xB6\x01*\x0CPass Project2\x95\x01Pass Project holds the basic business logic. Pass Project holds details on pass distribution, quotas, Apple certificate, integrations & hooks to use.\xD2\x01\x04name\xD2\x01\x06status\"q\x0A\x16PassProjectCopyRequest\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12!\x0A\x06status\x18\x03 \x03(\x0E2\x11.io.ProjectStatus\x12\x1A\x0A\x12passTypeIdentifier\x18\x04 \x01(\x09BS\x0A\x14com.passkit.grpc.RawZ(stash.passkit.com/io/model/sdk/go/io/raw\xAA\x02\x10PassKit.Grpc.Rawb\x06proto3" 25 | , true); 26 | 27 | static::$is_initialized = true; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /lib/Members/ProgramAutoUpDownGradeTierType.php: -------------------------------------------------------------------------------- 1 | members.ProgramAutoUpDownGradeTierType 12 | */ 13 | class ProgramAutoUpDownGradeTierType 14 | { 15 | /** 16 | * Auto up / down grades based on points. 17 | * 18 | * Generated from protobuf enum UPDOWNGRADE_POINTS = 0; 19 | */ 20 | const UPDOWNGRADE_POINTS = 0; 21 | /** 22 | * Auto up / down grades based on secondary points. 23 | * 24 | * Generated from protobuf enum UPDOWNGRADE_SECONDARY_POINTS = 1; 25 | */ 26 | const UPDOWNGRADE_SECONDARY_POINTS = 1; 27 | /** 28 | * Auto up / down grades based on tier points. 29 | * 30 | * Generated from protobuf enum UPDOWNGRADE_TIER_POINTS = 2; 31 | */ 32 | const UPDOWNGRADE_TIER_POINTS = 2; 33 | /** 34 | * Auto up / down grades based on # of visits. 35 | * 36 | * Generated from protobuf enum UPDOWNGRADE_VISITS = 3; 37 | */ 38 | const UPDOWNGRADE_VISITS = 3; 39 | 40 | private static $valueToName = [ 41 | self::UPDOWNGRADE_POINTS => 'UPDOWNGRADE_POINTS', 42 | self::UPDOWNGRADE_SECONDARY_POINTS => 'UPDOWNGRADE_SECONDARY_POINTS', 43 | self::UPDOWNGRADE_TIER_POINTS => 'UPDOWNGRADE_TIER_POINTS', 44 | self::UPDOWNGRADE_VISITS => 'UPDOWNGRADE_VISITS', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/Io/PersonalizedDataField.php: -------------------------------------------------------------------------------- 1 | io.PersonalizedDataField 14 | */ 15 | class PersonalizedDataField 16 | { 17 | /** 18 | * Generated from protobuf enum PERSONALIZE_DO_NOT_USE = 0; 19 | */ 20 | const PERSONALIZE_DO_NOT_USE = 0; 21 | /** 22 | * Generated from protobuf enum PERSONALIZE_NAME = 1; 23 | */ 24 | const PERSONALIZE_NAME = 1; 25 | /** 26 | * Generated from protobuf enum PERSONALIZE_EMAIL_ADDRESS = 2; 27 | */ 28 | const PERSONALIZE_EMAIL_ADDRESS = 2; 29 | /** 30 | * Generated from protobuf enum PERSONALIZE_PHONE_NUMBER = 4; 31 | */ 32 | const PERSONALIZE_PHONE_NUMBER = 4; 33 | /** 34 | * Generated from protobuf enum PERSONALIZE_POSTAL_CODE = 8; 35 | */ 36 | const PERSONALIZE_POSTAL_CODE = 8; 37 | 38 | private static $valueToName = [ 39 | self::PERSONALIZE_DO_NOT_USE => 'PERSONALIZE_DO_NOT_USE', 40 | self::PERSONALIZE_NAME => 'PERSONALIZE_NAME', 41 | self::PERSONALIZE_EMAIL_ADDRESS => 'PERSONALIZE_EMAIL_ADDRESS', 42 | self::PERSONALIZE_PHONE_NUMBER => 'PERSONALIZE_PHONE_NUMBER', 43 | self::PERSONALIZE_POSTAL_CODE => 'PERSONALIZE_POSTAL_CODE', 44 | ]; 45 | 46 | public static function name($value) 47 | { 48 | if (!isset(self::$valueToName[$value])) { 49 | throw new UnexpectedValueException(sprintf( 50 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 51 | } 52 | return self::$valueToName[$value]; 53 | } 54 | 55 | 56 | public static function value($name) 57 | { 58 | $const = __CLASS__ . '::' . strtoupper($name); 59 | if (!defined($const)) { 60 | throw new UnexpectedValueException(sprintf( 61 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 62 | } 63 | return constant($const); 64 | } 65 | } 66 | 67 | -------------------------------------------------------------------------------- /lib/Io/SemanticWifiNetwork.php: -------------------------------------------------------------------------------- 1 | io.SemanticWifiNetwork 14 | */ 15 | class SemanticWifiNetwork extends \Google\Protobuf\Internal\Message 16 | { 17 | /** 18 | * Generated from protobuf field string password = 1; 19 | */ 20 | protected $password = ''; 21 | /** 22 | * Generated from protobuf field string ssid = 2; 23 | */ 24 | protected $ssid = ''; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type string $password 33 | * @type string $ssid 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Common\Semantics::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * Generated from protobuf field string password = 1; 43 | * @return string 44 | */ 45 | public function getPassword() 46 | { 47 | return $this->password; 48 | } 49 | 50 | /** 51 | * Generated from protobuf field string password = 1; 52 | * @param string $var 53 | * @return $this 54 | */ 55 | public function setPassword($var) 56 | { 57 | GPBUtil::checkString($var, True); 58 | $this->password = $var; 59 | 60 | return $this; 61 | } 62 | 63 | /** 64 | * Generated from protobuf field string ssid = 2; 65 | * @return string 66 | */ 67 | public function getSsid() 68 | { 69 | return $this->ssid; 70 | } 71 | 72 | /** 73 | * Generated from protobuf field string ssid = 2; 74 | * @param string $var 75 | * @return $this 76 | */ 77 | public function setSsid($var) 78 | { 79 | GPBUtil::checkString($var, True); 80 | $this->ssid = $var; 81 | 82 | return $this; 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /lib/Flights/BoardingPassesResponse.php: -------------------------------------------------------------------------------- 1 | flights.BoardingPassesResponse 16 | */ 17 | class BoardingPassesResponse extends \Google\Protobuf\Internal\Message 18 | { 19 | /** 20 | * An array of boarding passes found relating to the PNR. 21 | * 22 | * Generated from protobuf field repeated .io.PassBundle boardingPasses = 1; 23 | */ 24 | private $boardingPasses; 25 | 26 | /** 27 | * Constructor. 28 | * 29 | * @param array $data { 30 | * Optional. Data for populating the Message object. 31 | * 32 | * @type array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $boardingPasses 33 | * An array of boarding passes found relating to the PNR. 34 | * } 35 | */ 36 | public function __construct($data = NULL) { 37 | \GPBMetadata\Io\Flights\BoardingPass::initOnce(); 38 | parent::__construct($data); 39 | } 40 | 41 | /** 42 | * An array of boarding passes found relating to the PNR. 43 | * 44 | * Generated from protobuf field repeated .io.PassBundle boardingPasses = 1; 45 | * @return \Google\Protobuf\Internal\RepeatedField 46 | */ 47 | public function getBoardingPasses() 48 | { 49 | return $this->boardingPasses; 50 | } 51 | 52 | /** 53 | * An array of boarding passes found relating to the PNR. 54 | * 55 | * Generated from protobuf field repeated .io.PassBundle boardingPasses = 1; 56 | * @param array<\Io\PassBundle>|\Google\Protobuf\Internal\RepeatedField $var 57 | * @return $this 58 | */ 59 | public function setBoardingPasses($var) 60 | { 61 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\PassBundle::class); 62 | $this->boardingPasses = $arr; 63 | 64 | return $this; 65 | } 66 | 67 | } 68 | 69 | -------------------------------------------------------------------------------- /lib/extra/Grpc/Gateway/Protoc_gen_openapiv2/Options/SecurityScheme/Flow.php: -------------------------------------------------------------------------------- 1 | grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow 15 | */ 16 | class Flow 17 | { 18 | /** 19 | * Generated from protobuf enum FLOW_INVALID = 0; 20 | */ 21 | const FLOW_INVALID = 0; 22 | /** 23 | * Generated from protobuf enum FLOW_IMPLICIT = 1; 24 | */ 25 | const FLOW_IMPLICIT = 1; 26 | /** 27 | * Generated from protobuf enum FLOW_PASSWORD = 2; 28 | */ 29 | const FLOW_PASSWORD = 2; 30 | /** 31 | * Generated from protobuf enum FLOW_APPLICATION = 3; 32 | */ 33 | const FLOW_APPLICATION = 3; 34 | /** 35 | * Generated from protobuf enum FLOW_ACCESS_CODE = 4; 36 | */ 37 | const FLOW_ACCESS_CODE = 4; 38 | 39 | private static $valueToName = [ 40 | self::FLOW_INVALID => 'FLOW_INVALID', 41 | self::FLOW_IMPLICIT => 'FLOW_IMPLICIT', 42 | self::FLOW_PASSWORD => 'FLOW_PASSWORD', 43 | self::FLOW_APPLICATION => 'FLOW_APPLICATION', 44 | self::FLOW_ACCESS_CODE => 'FLOW_ACCESS_CODE', 45 | ]; 46 | 47 | public static function name($value) 48 | { 49 | if (!isset(self::$valueToName[$value])) { 50 | throw new UnexpectedValueException(sprintf( 51 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); 52 | } 53 | return self::$valueToName[$value]; 54 | } 55 | 56 | 57 | public static function value($name) 58 | { 59 | $const = __CLASS__ . '::' . strtoupper($name); 60 | if (!defined($const)) { 61 | throw new UnexpectedValueException(sprintf( 62 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); 63 | } 64 | return constant($const); 65 | } 66 | } 67 | 68 | --------------------------------------------------------------------------------