ExperimentPayload.pbobjc.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. // Copyright 2019 Google
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Generated by the protocol buffer compiler. DO NOT EDIT!
  15. // source: developers/mobile/abt/proto/experiment_payload.proto
  16. // This CPP symbol can be defined to use imports that match up to the framework
  17. // imports needed when using CocoaPods.
  18. #if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
  19. #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
  20. #endif
  21. #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
  22. #import <Protobuf/GPBProtocolBuffers.h>
  23. #else
  24. #import "GPBProtocolBuffers.h"
  25. #endif
  26. #if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
  27. #error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
  28. #endif
  29. #if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
  30. #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
  31. #endif
  32. // @@protoc_insertion_point(imports)
  33. #pragma clang diagnostic push
  34. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  35. CF_EXTERN_C_BEGIN
  36. @class ABTExperimentLite;
  37. NS_ASSUME_NONNULL_BEGIN
  38. #pragma mark - Enum ABTExperimentPayload_ExperimentOverflowPolicy
  39. typedef GPB_ENUM(ABTExperimentPayload_ExperimentOverflowPolicy) {
  40. /**
  41. * Value used if any message's field encounters a value that is not defined
  42. * by this enum. The message will also have C functions to get/set the rawValue
  43. * of the field.
  44. **/
  45. ABTExperimentPayload_ExperimentOverflowPolicy_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
  46. ABTExperimentPayload_ExperimentOverflowPolicy_PolicyUnspecified = 0,
  47. ABTExperimentPayload_ExperimentOverflowPolicy_DiscardOldest = 1,
  48. ABTExperimentPayload_ExperimentOverflowPolicy_IgnoreNewest = 2,
  49. };
  50. GPBEnumDescriptor *ABTExperimentPayload_ExperimentOverflowPolicy_EnumDescriptor(void);
  51. /**
  52. * Checks to see if the given value is defined by the enum or was not known at
  53. * the time this source was generated.
  54. **/
  55. BOOL ABTExperimentPayload_ExperimentOverflowPolicy_IsValidValue(int32_t value);
  56. #pragma mark - ABTExperimentPayloadRoot
  57. /**
  58. * Exposes the extension registry for this file.
  59. *
  60. * The base class provides:
  61. * @code
  62. * + (GPBExtensionRegistry *)extensionRegistry;
  63. * @endcode
  64. * which is a @c GPBExtensionRegistry that includes all the extensions defined by
  65. * this file and all files that it depends on.
  66. **/
  67. @interface ABTExperimentPayloadRoot : GPBRootObject
  68. @end
  69. #pragma mark - ABTExperimentLite
  70. typedef GPB_ENUM(ABTExperimentLite_FieldNumber) {
  71. ABTExperimentLite_FieldNumber_ExperimentId = 1,
  72. };
  73. @interface ABTExperimentLite : GPBMessage
  74. @property(nonatomic, readwrite, copy, null_resettable) NSString *experimentId;
  75. @end
  76. #pragma mark - ABTExperimentPayload
  77. typedef GPB_ENUM(ABTExperimentPayload_FieldNumber) {
  78. ABTExperimentPayload_FieldNumber_ExperimentId = 1,
  79. ABTExperimentPayload_FieldNumber_VariantId = 2,
  80. ABTExperimentPayload_FieldNumber_ExperimentStartTimeMillis = 3,
  81. ABTExperimentPayload_FieldNumber_TriggerEvent = 4,
  82. ABTExperimentPayload_FieldNumber_TriggerTimeoutMillis = 5,
  83. ABTExperimentPayload_FieldNumber_TimeToLiveMillis = 6,
  84. ABTExperimentPayload_FieldNumber_SetEventToLog = 7,
  85. ABTExperimentPayload_FieldNumber_ActivateEventToLog = 8,
  86. ABTExperimentPayload_FieldNumber_ClearEventToLog = 9,
  87. ABTExperimentPayload_FieldNumber_TimeoutEventToLog = 10,
  88. ABTExperimentPayload_FieldNumber_TtlExpiryEventToLog = 11,
  89. ABTExperimentPayload_FieldNumber_OverflowPolicy = 12,
  90. ABTExperimentPayload_FieldNumber_OngoingExperimentsArray = 13,
  91. };
  92. @interface ABTExperimentPayload : GPBMessage
  93. @property(nonatomic, readwrite, copy, null_resettable) NSString *experimentId;
  94. @property(nonatomic, readwrite, copy, null_resettable) NSString *variantId;
  95. @property(nonatomic, readwrite) int64_t experimentStartTimeMillis;
  96. @property(nonatomic, readwrite, copy, null_resettable) NSString *triggerEvent;
  97. @property(nonatomic, readwrite) int64_t triggerTimeoutMillis;
  98. @property(nonatomic, readwrite) int64_t timeToLiveMillis;
  99. @property(nonatomic, readwrite, copy, null_resettable) NSString *setEventToLog;
  100. @property(nonatomic, readwrite, copy, null_resettable) NSString *activateEventToLog;
  101. @property(nonatomic, readwrite, copy, null_resettable) NSString *clearEventToLog;
  102. @property(nonatomic, readwrite, copy, null_resettable) NSString *timeoutEventToLog;
  103. @property(nonatomic, readwrite, copy, null_resettable) NSString *ttlExpiryEventToLog;
  104. @property(nonatomic, readwrite) ABTExperimentPayload_ExperimentOverflowPolicy overflowPolicy;
  105. @property(nonatomic, readwrite, strong, null_resettable) NSMutableArray<ABTExperimentLite*> *ongoingExperimentsArray;
  106. /** The number of items in @c ongoingExperimentsArray without causing the array to be created. */
  107. @property(nonatomic, readonly) NSUInteger ongoingExperimentsArray_Count;
  108. @end
  109. /**
  110. * Fetches the raw value of a @c ABTExperimentPayload's @c overflowPolicy property, even
  111. * if the value was not defined by the enum at the time the code was generated.
  112. **/
  113. int32_t ABTExperimentPayload_OverflowPolicy_RawValue(ABTExperimentPayload *message);
  114. /**
  115. * Sets the raw value of an @c ABTExperimentPayload's @c overflowPolicy property, allowing
  116. * it to be set to a value that was not defined by the enum at the time the code
  117. * was generated.
  118. **/
  119. void SetABTExperimentPayload_OverflowPolicy_RawValue(ABTExperimentPayload *message, int32_t value);
  120. NS_ASSUME_NONNULL_END
  121. CF_EXTERN_C_END
  122. #pragma clang diagnostic pop
  123. // @@protoc_insertion_point(global_scope)