Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
e0df23ac
Commit
e0df23ac
authored
8 years ago
by
Jisi Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update descritpor protos for objc
parent
454d5be8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
3 additions
and
2029 deletions
+3
-2029
Any.pbobjc.h
objectivec/google/google/protobuf/Any.pbobjc.h
+0
-134
Any.pbobjc.m
objectivec/google/google/protobuf/Any.pbobjc.m
+0
-93
Api.pbobjc.h
objectivec/google/google/protobuf/Api.pbobjc.h
+0
-262
Api.pbobjc.m
objectivec/google/google/protobuf/Api.pbobjc.m
+0
-0
Duration.pbobjc.h
objectivec/google/google/protobuf/Duration.pbobjc.h
+0
-101
Duration.pbobjc.m
objectivec/google/google/protobuf/Duration.pbobjc.m
+0
-88
Empty.pbobjc.h
objectivec/google/google/protobuf/Empty.pbobjc.h
+0
-53
Empty.pbobjc.m
objectivec/google/google/protobuf/Empty.pbobjc.m
+0
-64
FieldMask.pbobjc.h
objectivec/google/google/protobuf/FieldMask.pbobjc.h
+0
-202
FieldMask.pbobjc.m
objectivec/google/google/protobuf/FieldMask.pbobjc.m
+0
-77
SourceContext.pbobjc.h
objectivec/google/google/protobuf/SourceContext.pbobjc.h
+0
-54
SourceContext.pbobjc.m
objectivec/google/google/protobuf/SourceContext.pbobjc.m
+0
-77
Struct.pbobjc.h
objectivec/google/google/protobuf/Struct.pbobjc.h
+0
-167
Struct.pbobjc.m
objectivec/google/google/protobuf/Struct.pbobjc.m
+0
-273
Timestamp.pbobjc.h
objectivec/google/google/protobuf/Timestamp.pbobjc.h
+0
-113
Timestamp.pbobjc.m
objectivec/google/google/protobuf/Timestamp.pbobjc.m
+0
-88
Type.pbobjc.h
objectivec/google/google/protobuf/Type.pbobjc.h
+0
-0
Type.pbobjc.m
objectivec/google/google/protobuf/Type.pbobjc.m
+0
-0
Wrappers.pbobjc.h
objectivec/google/google/protobuf/Wrappers.pbobjc.h
+0
-182
Wrappers.pbobjc.m
objectivec/google/google/protobuf/Wrappers.pbobjc.m
+0
-0
Any.pbobjc.h
objectivec/google/protobuf/Any.pbobjc.h
+2
-0
FieldMask.pbobjc.h
objectivec/google/protobuf/FieldMask.pbobjc.h
+1
-1
No files found.
objectivec/google/google/protobuf/Any.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/any.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBAnyRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBAnyRoot
:
GPBRootObject
@end
#pragma mark - GPBAny
typedef
GPB_ENUM
(
GPBAny_FieldNumber
)
{
GPBAny_FieldNumber_TypeURL
=
1
,
GPBAny_FieldNumber_Value
=
2
,
};
/// `Any` contains an arbitrary serialized protocol buffer message along with a
/// URL that describes the type of the serialized message.
///
/// Protobuf library provides support to pack/unpack Any values in the form
/// of utility functions or additional generated methods of the Any type.
///
/// Example 1: Pack and unpack a message in C++.
///
/// Foo foo = ...;
/// Any any;
/// any.PackFrom(foo);
/// ...
/// if (any.UnpackTo(&foo)) {
/// ...
/// }
///
/// Example 2: Pack and unpack a message in Java.
///
/// Foo foo = ...;
/// Any any = Any.pack(foo);
/// ...
/// if (any.is(Foo.class)) {
/// foo = any.unpack(Foo.class);
/// }
///
/// The pack methods provided by protobuf library will by default use
/// 'type.googleapis.com/full.type.name' as the type URL and the unpack
/// methods only use the fully qualified type name after the last '/'
/// in the type URL, for example "foo.bar.com/x/y.z" will yield type
/// name "y.z".
///
///
/// JSON
/// ====
/// The JSON representation of an `Any` value uses the regular
/// representation of the deserialized, embedded message, with an
/// additional field `\@type` which contains the type URL. Example:
///
/// package google.profile;
/// message Person {
/// string first_name = 1;
/// string last_name = 2;
/// }
///
/// {
/// "\@type": "type.googleapis.com/google.profile.Person",
/// "firstName": <string>,
/// "lastName": <string>
/// }
///
/// If the embedded message type is well-known and has a custom JSON
/// representation, that representation will be embedded adding a field
/// `value` which holds the custom JSON in addition to the `\@type`
/// field. Example (for message [google.protobuf.Duration][]):
///
/// {
/// "\@type": "type.googleapis.com/google.protobuf.Duration",
/// "value": "1.212s"
/// }
@interface
GPBAny
:
GPBMessage
/// A URL/resource name whose content describes the type of the
/// serialized protocol buffer message.
///
/// For URLs which use the schema `http`, `https`, or no schema, the
/// following restrictions and interpretations apply:
///
/// * If no schema is provided, `https` is assumed.
/// * The last segment of the URL's path must represent the fully
/// qualified name of the type (as in `path/google.protobuf.Duration`).
/// The name should be in a canonical form (e.g., leading "." is
/// not accepted).
/// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
/// value in binary format, or produce an error.
/// * Applications are allowed to cache lookup results based on the
/// URL, or have them precompiled into a binary to avoid any
/// lookup. Therefore, binary compatibility needs to be preserved
/// on changes to types. (Use versioned type names to manage
/// breaking changes.)
///
/// Schemas other than `http`, `https` (or the empty schema) might be
/// used with implementation specific semantics.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
typeURL
;
/// Must be a valid serialized protocol buffer of the above specified type.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSData
*
value
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Any.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/any.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/Any.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBAnyRoot
@implementation
GPBAnyRoot
@end
#pragma mark - GPBAnyRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBAnyRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBAny
@implementation
GPBAny
@dynamic
typeURL
;
@dynamic
value
;
typedef
struct
GPBAny__storage_
{
uint32_t
_has_storage_
[
1
];
NSString
*
typeURL
;
NSData
*
value
;
}
GPBAny__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"typeURL"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBAny_FieldNumber_TypeURL
,
.
hasIndex
=
0
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBAny__storage_
,
typeURL
),
.
flags
=
GPBFieldOptional
|
GPBFieldTextFormatNameCustom
,
.
dataType
=
GPBDataTypeString
,
},
{
.
name
=
"value"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBAny_FieldNumber_Value
,
.
hasIndex
=
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBAny__storage_
,
value
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeBytes
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBAny
class
]
rootClass
:[
GPBAnyRoot
class
]
file
:
GPBAnyRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBAny__storage_
)
flags
:
0
];
#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
static
const
char
*
extraTextFormatInfo
=
"
\001\001\004\241
!!
\000
"
;
[
localDescriptor
setupExtraTextInfo
:
extraTextFormatInfo
];
#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Api.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/api.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
@class
GPBMethod
;
@class
GPBMixin
;
@class
GPBOption
;
@class
GPBSourceContext
;
GPB_ENUM_FWD_DECLARE
(
GPBSyntax
);
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBApiRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBApiRoot
:
GPBRootObject
@end
#pragma mark - GPBApi
typedef
GPB_ENUM
(
GPBApi_FieldNumber
)
{
GPBApi_FieldNumber_Name
=
1
,
GPBApi_FieldNumber_MethodsArray
=
2
,
GPBApi_FieldNumber_OptionsArray
=
3
,
GPBApi_FieldNumber_Version
=
4
,
GPBApi_FieldNumber_SourceContext
=
5
,
GPBApi_FieldNumber_MixinsArray
=
6
,
GPBApi_FieldNumber_Syntax
=
7
,
};
/// Api is a light-weight descriptor for a protocol buffer service.
@interface
GPBApi
:
GPBMessage
/// The fully qualified name of this api, including package name
/// followed by the api's simple name.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
name
;
/// The methods of this api, in unspecified order.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
GPBMethod
*>
*
methodsArray
;
/// The number of items in @c methodsArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
methodsArray_Count
;
/// Any metadata attached to the API.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
GPBOption
*>
*
optionsArray
;
/// The number of items in @c optionsArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
optionsArray_Count
;
/// A version string for this api. If specified, must have the form
/// `major-version.minor-version`, as in `1.10`. If the minor version
/// is omitted, it defaults to zero. If the entire version field is
/// empty, the major version is derived from the package name, as
/// outlined below. If the field is not empty, the version in the
/// package name will be verified to be consistent with what is
/// provided here.
///
/// The versioning schema uses [semantic
/// versioning](http://semver.org) where the major version number
/// indicates a breaking change and the minor version an additive,
/// non-breaking change. Both version numbers are signals to users
/// what to expect from different versions, and should be carefully
/// chosen based on the product plan.
///
/// The major version is also reflected in the package name of the
/// API, which must end in `v<major-version>`, as in
/// `google.feature.v1`. For major versions 0 and 1, the suffix can
/// be omitted. Zero major versions must only be used for
/// experimental, none-GA apis.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
version
;
/// Source context for the protocol buffer service represented by this
/// message.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
GPBSourceContext
*
sourceContext
;
/// Test to see if @c sourceContext has been set.
@property
(
nonatomic
,
readwrite
)
BOOL
hasSourceContext
;
/// Included APIs. See [Mixin][].
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
GPBMixin
*>
*
mixinsArray
;
/// The number of items in @c mixinsArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
mixinsArray_Count
;
/// The source syntax of the service.
@property
(
nonatomic
,
readwrite
)
enum
GPBSyntax
syntax
;
@end
/// Fetches the raw value of a @c GPBApi's @c syntax property, even
/// if the value was not defined by the enum at the time the code was generated.
int32_t
GPBApi_Syntax_RawValue
(
GPBApi
*
message
);
/// Sets the raw value of an @c GPBApi's @c syntax property, allowing
/// it to be set to a value that was not defined by the enum at the time the code
/// was generated.
void
SetGPBApi_Syntax_RawValue
(
GPBApi
*
message
,
int32_t
value
);
#pragma mark - GPBMethod
typedef
GPB_ENUM
(
GPBMethod_FieldNumber
)
{
GPBMethod_FieldNumber_Name
=
1
,
GPBMethod_FieldNumber_RequestTypeURL
=
2
,
GPBMethod_FieldNumber_RequestStreaming
=
3
,
GPBMethod_FieldNumber_ResponseTypeURL
=
4
,
GPBMethod_FieldNumber_ResponseStreaming
=
5
,
GPBMethod_FieldNumber_OptionsArray
=
6
,
GPBMethod_FieldNumber_Syntax
=
7
,
};
/// Method represents a method of an api.
@interface
GPBMethod
:
GPBMessage
/// The simple name of this method.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
name
;
/// A URL of the input message type.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
requestTypeURL
;
/// If true, the request is streamed.
@property
(
nonatomic
,
readwrite
)
BOOL
requestStreaming
;
/// The URL of the output message type.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
responseTypeURL
;
/// If true, the response is streamed.
@property
(
nonatomic
,
readwrite
)
BOOL
responseStreaming
;
/// Any metadata attached to the method.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
GPBOption
*>
*
optionsArray
;
/// The number of items in @c optionsArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
optionsArray_Count
;
/// The source syntax of this method.
@property
(
nonatomic
,
readwrite
)
enum
GPBSyntax
syntax
;
@end
/// Fetches the raw value of a @c GPBMethod's @c syntax property, even
/// if the value was not defined by the enum at the time the code was generated.
int32_t
GPBMethod_Syntax_RawValue
(
GPBMethod
*
message
);
/// Sets the raw value of an @c GPBMethod's @c syntax property, allowing
/// it to be set to a value that was not defined by the enum at the time the code
/// was generated.
void
SetGPBMethod_Syntax_RawValue
(
GPBMethod
*
message
,
int32_t
value
);
#pragma mark - GPBMixin
typedef
GPB_ENUM
(
GPBMixin_FieldNumber
)
{
GPBMixin_FieldNumber_Name
=
1
,
GPBMixin_FieldNumber_Root
=
2
,
};
/// Declares an API to be included in this API. The including API must
/// redeclare all the methods from the included API, but documentation
/// and options are inherited as follows:
///
/// - If after comment and whitespace stripping, the documentation
/// string of the redeclared method is empty, it will be inherited
/// from the original method.
///
/// - Each annotation belonging to the service config (http,
/// visibility) which is not set in the redeclared method will be
/// inherited.
///
/// - If an http annotation is inherited, the path pattern will be
/// modified as follows. Any version prefix will be replaced by the
/// version of the including API plus the [root][] path if specified.
///
/// Example of a simple mixin:
///
/// package google.acl.v1;
/// service AccessControl {
/// // Get the underlying ACL object.
/// rpc GetAcl(GetAclRequest) returns (Acl) {
/// option (google.api.http).get = "/v1/{resource=**}:getAcl";
/// }
/// }
///
/// package google.storage.v2;
/// service Storage {
/// rpc GetAcl(GetAclRequest) returns (Acl);
///
/// // Get a data record.
/// rpc GetData(GetDataRequest) returns (Data) {
/// option (google.api.http).get = "/v2/{resource=**}";
/// }
/// }
///
/// Example of a mixin configuration:
///
/// apis:
/// - name: google.storage.v2.Storage
/// mixins:
/// - name: google.acl.v1.AccessControl
///
/// The mixin construct implies that all methods in `AccessControl` are
/// also declared with same name and request/response types in
/// `Storage`. A documentation generator or annotation processor will
/// see the effective `Storage.GetAcl` method after inherting
/// documentation and annotations as follows:
///
/// service Storage {
/// // Get the underlying ACL object.
/// rpc GetAcl(GetAclRequest) returns (Acl) {
/// option (google.api.http).get = "/v2/{resource=**}:getAcl";
/// }
/// ...
/// }
///
/// Note how the version in the path pattern changed from `v1` to `v2`.
///
/// If the `root` field in the mixin is specified, it should be a
/// relative path under which inherited HTTP paths are placed. Example:
///
/// apis:
/// - name: google.storage.v2.Storage
/// mixins:
/// - name: google.acl.v1.AccessControl
/// root: acls
///
/// This implies the following inherited HTTP annotation:
///
/// service Storage {
/// // Get the underlying ACL object.
/// rpc GetAcl(GetAclRequest) returns (Acl) {
/// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl";
/// }
/// ...
/// }
@interface
GPBMixin
:
GPBMessage
/// The fully qualified name of the API which is included.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
name
;
/// If non-empty specifies a path under which inherited HTTP paths
/// are rooted.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
root
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Api.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Duration.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/duration.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBDurationRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBDurationRoot
:
GPBRootObject
@end
#pragma mark - GPBDuration
typedef
GPB_ENUM
(
GPBDuration_FieldNumber
)
{
GPBDuration_FieldNumber_Seconds
=
1
,
GPBDuration_FieldNumber_Nanos
=
2
,
};
/// A Duration represents a signed, fixed-length span of time represented
/// as a count of seconds and fractions of seconds at nanosecond
/// resolution. It is independent of any calendar and concepts like "day"
/// or "month". It is related to Timestamp in that the difference between
/// two Timestamp values is a Duration and it can be added or subtracted
/// from a Timestamp. Range is approximately +-10,000 years.
///
/// Example 1: Compute Duration from two Timestamps in pseudo code.
///
/// Timestamp start = ...;
/// Timestamp end = ...;
/// Duration duration = ...;
///
/// duration.seconds = end.seconds - start.seconds;
/// duration.nanos = end.nanos - start.nanos;
///
/// if (duration.seconds < 0 && duration.nanos > 0) {
/// duration.seconds += 1;
/// duration.nanos -= 1000000000;
/// } else if (durations.seconds > 0 && duration.nanos < 0) {
/// duration.seconds -= 1;
/// duration.nanos += 1000000000;
/// }
///
/// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
///
/// Timestamp start = ...;
/// Duration duration = ...;
/// Timestamp end = ...;
///
/// end.seconds = start.seconds + duration.seconds;
/// end.nanos = start.nanos + duration.nanos;
///
/// if (end.nanos < 0) {
/// end.seconds -= 1;
/// end.nanos += 1000000000;
/// } else if (end.nanos >= 1000000000) {
/// end.seconds += 1;
/// end.nanos -= 1000000000;
/// }
@interface
GPBDuration
:
GPBMessage
/// Signed seconds of the span of time. Must be from -315,576,000,000
/// to +315,576,000,000 inclusive.
@property
(
nonatomic
,
readwrite
)
int64_t
seconds
;
/// Signed fractions of a second at nanosecond resolution of the span
/// of time. Durations less than one second are represented with a 0
/// `seconds` field and a positive or negative `nanos` field. For durations
/// of one second or more, a non-zero value for the `nanos` field must be
/// of the same sign as the `seconds` field. Must be from -999,999,999
/// to +999,999,999 inclusive.
@property
(
nonatomic
,
readwrite
)
int32_t
nanos
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Duration.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/duration.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/Duration.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBDurationRoot
@implementation
GPBDurationRoot
@end
#pragma mark - GPBDurationRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBDurationRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBDuration
@implementation
GPBDuration
@dynamic
seconds
;
@dynamic
nanos
;
typedef
struct
GPBDuration__storage_
{
uint32_t
_has_storage_
[
1
];
int32_t
nanos
;
int64_t
seconds
;
}
GPBDuration__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"seconds"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBDuration_FieldNumber_Seconds
,
.
hasIndex
=
0
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBDuration__storage_
,
seconds
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeInt64
,
},
{
.
name
=
"nanos"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBDuration_FieldNumber_Nanos
,
.
hasIndex
=
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBDuration__storage_
,
nanos
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeInt32
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBDuration
class
]
rootClass
:[
GPBDurationRoot
class
]
file
:
GPBDurationRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBDuration__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Empty.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBEmptyRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBEmptyRoot
:
GPBRootObject
@end
#pragma mark - GPBEmpty
/// A generic empty message that you can re-use to avoid defining duplicated
/// empty messages in your APIs. A typical example is to use it as the request
/// or the response type of an API method. For instance:
///
/// service Foo {
/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
/// }
///
/// The JSON representation for `Empty` is empty JSON object `{}`.
@interface
GPBEmpty
:
GPBMessage
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Empty.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/Empty.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBEmptyRoot
@implementation
GPBEmptyRoot
@end
#pragma mark - GPBEmptyRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBEmptyRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBEmpty
@implementation
GPBEmpty
typedef
struct
GPBEmpty__storage_
{
uint32_t
_has_storage_
[
1
];
}
GPBEmpty__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBEmpty
class
]
rootClass
:[
GPBEmptyRoot
class
]
file
:
GPBEmptyRoot_FileDescriptor
()
fields
:
NULL
fieldCount
:
0
storageSize
:
sizeof
(
GPBEmpty__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/FieldMask.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/field_mask.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBFieldMaskRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBFieldMaskRoot
:
GPBRootObject
@end
#pragma mark - GPBFieldMask
typedef
GPB_ENUM
(
GPBFieldMask_FieldNumber
)
{
GPBFieldMask_FieldNumber_PathsArray
=
1
,
};
/// `FieldMask` represents a set of symbolic field paths, for example:
///
/// paths: "f.a"
/// paths: "f.b.d"
///
/// Here `f` represents a field in some root message, `a` and `b`
/// fields in the message found in `f`, and `d` a field found in the
/// message in `f.b`.
///
/// Field masks are used to specify a subset of fields that should be
/// returned by a get operation or modified by an update operation.
/// Field masks also have a custom JSON encoding (see below).
///
/// # Field Masks in Projections
///
/// When used in the context of a projection, a response message or
/// sub-message is filtered by the API to only contain those fields as
/// specified in the mask. For example, if the mask in the previous
/// example is applied to a response message as follows:
///
/// f {
/// a : 22
/// b {
/// d : 1
/// x : 2
/// }
/// y : 13
/// }
/// z: 8
///
/// The result will not contain specific values for fields x,y and z
/// (their value will be set to the default, and omitted in proto text
/// output):
///
///
/// f {
/// a : 22
/// b {
/// d : 1
/// }
/// }
///
/// A repeated field is not allowed except at the last position of a
/// field mask.
///
/// If a FieldMask object is not present in a get operation, the
/// operation applies to all fields (as if a FieldMask of all fields
/// had been specified).
///
/// Note that a field mask does not necessarily apply to the
/// top-level response message. In case of a REST get operation, the
/// field mask applies directly to the response, but in case of a REST
/// list operation, the mask instead applies to each individual message
/// in the returned resource list. In case of a REST custom method,
/// other definitions may be used. Where the mask applies will be
/// clearly documented together with its declaration in the API. In
/// any case, the effect on the returned resource/resources is required
/// behavior for APIs.
///
/// # Field Masks in Update Operations
///
/// A field mask in update operations specifies which fields of the
/// targeted resource are going to be updated. The API is required
/// to only change the values of the fields as specified in the mask
/// and leave the others untouched. If a resource is passed in to
/// describe the updated values, the API ignores the values of all
/// fields not covered by the mask.
///
/// In order to reset a field's value to the default, the field must
/// be in the mask and set to the default value in the provided resource.
/// Hence, in order to reset all fields of a resource, provide a default
/// instance of the resource and set all fields in the mask, or do
/// not provide a mask as described below.
///
/// If a field mask is not present on update, the operation applies to
/// all fields (as if a field mask of all fields has been specified).
/// Note that in the presence of schema evolution, this may mean that
/// fields the client does not know and has therefore not filled into
/// the request will be reset to their default. If this is unwanted
/// behavior, a specific service may require a client to always specify
/// a field mask, producing an error if not.
///
/// As with get operations, the location of the resource which
/// describes the updated values in the request message depends on the
/// operation kind. In any case, the effect of the field mask is
/// required to be honored by the API.
///
/// ## Considerations for HTTP REST
///
/// The HTTP kind of an update operation which uses a field mask must
/// be set to PATCH instead of PUT in order to satisfy HTTP semantics
/// (PUT must only be used for full updates).
///
/// # JSON Encoding of Field Masks
///
/// In JSON, a field mask is encoded as a single string where paths are
/// separated by a comma. Fields name in each path are converted
/// to/from lower-camel naming conventions.
///
/// As an example, consider the following message declarations:
///
/// message Profile {
/// User user = 1;
/// Photo photo = 2;
/// }
/// message User {
/// string display_name = 1;
/// string address = 2;
/// }
///
/// In proto a field mask for `Profile` may look as such:
///
/// mask {
/// paths: "user.display_name"
/// paths: "photo"
/// }
///
/// In JSON, the same mask is represented as below:
///
/// {
/// mask: "user.displayName,photo"
/// }
///
/// # Field Masks and Oneof Fields
///
/// Field masks treat fields in oneofs just as regular fields. Consider the
/// following message:
///
/// message SampleMessage {
/// oneof test_oneof {
/// string name = 4;
/// SubMessage sub_message = 9;
/// }
/// }
///
/// The field mask can be:
///
/// mask {
/// paths: "name"
/// }
///
/// Or:
///
/// mask {
/// paths: "sub_message"
/// }
///
/// Note that oneof type names ("test_oneof" in this case) cannot be used in
/// paths.
@interface
GPBFieldMask
:
GPBMessage
/// The set of field mask paths.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
NSString
*>
*
pathsArray
;
/// The number of items in @c pathsArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
pathsArray_Count
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/FieldMask.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/field_mask.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/FieldMask.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBFieldMaskRoot
@implementation
GPBFieldMaskRoot
@end
#pragma mark - GPBFieldMaskRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBFieldMaskRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBFieldMask
@implementation
GPBFieldMask
@dynamic
pathsArray
,
pathsArray_Count
;
typedef
struct
GPBFieldMask__storage_
{
uint32_t
_has_storage_
[
1
];
NSMutableArray
*
pathsArray
;
}
GPBFieldMask__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"pathsArray"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBFieldMask_FieldNumber_PathsArray
,
.
hasIndex
=
GPBNoHasBit
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBFieldMask__storage_
,
pathsArray
),
.
flags
=
GPBFieldRepeated
,
.
dataType
=
GPBDataTypeString
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBFieldMask
class
]
rootClass
:[
GPBFieldMaskRoot
class
]
file
:
GPBFieldMaskRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBFieldMask__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/SourceContext.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/source_context.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBSourceContextRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBSourceContextRoot
:
GPBRootObject
@end
#pragma mark - GPBSourceContext
typedef
GPB_ENUM
(
GPBSourceContext_FieldNumber
)
{
GPBSourceContext_FieldNumber_FileName
=
1
,
};
/// `SourceContext` represents information about the source of a
/// protobuf element, like the file in which it is defined.
@interface
GPBSourceContext
:
GPBMessage
/// The path-qualified name of the .proto file that contained the associated
/// protobuf element. For example: `"google/protobuf/source.proto"`.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
fileName
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/SourceContext.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/source_context.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/SourceContext.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBSourceContextRoot
@implementation
GPBSourceContextRoot
@end
#pragma mark - GPBSourceContextRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBSourceContextRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBSourceContext
@implementation
GPBSourceContext
@dynamic
fileName
;
typedef
struct
GPBSourceContext__storage_
{
uint32_t
_has_storage_
[
1
];
NSString
*
fileName
;
}
GPBSourceContext__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"fileName"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBSourceContext_FieldNumber_FileName
,
.
hasIndex
=
0
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBSourceContext__storage_
,
fileName
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeString
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBSourceContext
class
]
rootClass
:[
GPBSourceContextRoot
class
]
file
:
GPBSourceContextRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBSourceContext__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Struct.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
@class
GPBListValue
;
@class
GPBStruct
;
@class
GPBValue
;
NS_ASSUME_NONNULL_BEGIN
#pragma mark - Enum GPBNullValue
/// `NullValue` is a singleton enumeration to represent the null value for the
/// `Value` type union.
///
/// The JSON representation for `NullValue` is JSON `null`.
typedef
GPB_ENUM
(
GPBNullValue
)
{
/// Value used if any message's field encounters a value that is not defined
/// by this enum. The message will also have C functions to get/set the rawValue
/// of the field.
GPBNullValue_GPBUnrecognizedEnumeratorValue
=
kGPBUnrecognizedEnumeratorValue
,
/// Null value.
GPBNullValue_NullValue
=
0
,
};
GPBEnumDescriptor
*
GPBNullValue_EnumDescriptor
(
void
);
/// Checks to see if the given value is defined by the enum or was not known at
/// the time this source was generated.
BOOL
GPBNullValue_IsValidValue
(
int32_t
value
);
#pragma mark - GPBStructRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBStructRoot
:
GPBRootObject
@end
#pragma mark - GPBStruct
typedef
GPB_ENUM
(
GPBStruct_FieldNumber
)
{
GPBStruct_FieldNumber_Fields
=
1
,
};
/// `Struct` represents a structured data value, consisting of fields
/// which map to dynamically typed values. In some languages, `Struct`
/// might be supported by a native representation. For example, in
/// scripting languages like JS a struct is represented as an
/// object. The details of that representation are described together
/// with the proto support for the language.
///
/// The JSON representation for `Struct` is JSON object.
@interface
GPBStruct
:
GPBMessage
/// Unordered map of dynamically typed values.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableDictionary
<
NSString
*
,
GPBValue
*>
*
fields
;
/// The number of items in @c fields without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
fields_Count
;
@end
#pragma mark - GPBValue
typedef
GPB_ENUM
(
GPBValue_FieldNumber
)
{
GPBValue_FieldNumber_NullValue
=
1
,
GPBValue_FieldNumber_NumberValue
=
2
,
GPBValue_FieldNumber_StringValue
=
3
,
GPBValue_FieldNumber_BoolValue
=
4
,
GPBValue_FieldNumber_StructValue
=
5
,
GPBValue_FieldNumber_ListValue
=
6
,
};
typedef
GPB_ENUM
(
GPBValue_Kind_OneOfCase
)
{
GPBValue_Kind_OneOfCase_GPBUnsetOneOfCase
=
0
,
GPBValue_Kind_OneOfCase_NullValue
=
1
,
GPBValue_Kind_OneOfCase_NumberValue
=
2
,
GPBValue_Kind_OneOfCase_StringValue
=
3
,
GPBValue_Kind_OneOfCase_BoolValue
=
4
,
GPBValue_Kind_OneOfCase_StructValue
=
5
,
GPBValue_Kind_OneOfCase_ListValue
=
6
,
};
/// `Value` represents a dynamically typed value which can be either
/// null, a number, a string, a boolean, a recursive struct value, or a
/// list of values. A producer of value is expected to set one of that
/// variants, absence of any variant indicates an error.
///
/// The JSON representation for `Value` is JSON value.
@interface
GPBValue
:
GPBMessage
/// The kind of value.
@property
(
nonatomic
,
readonly
)
GPBValue_Kind_OneOfCase
kindOneOfCase
;
/// Represents a null value.
@property
(
nonatomic
,
readwrite
)
GPBNullValue
nullValue
;
/// Represents a double value.
@property
(
nonatomic
,
readwrite
)
double
numberValue
;
/// Represents a string value.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
stringValue
;
/// Represents a boolean value.
@property
(
nonatomic
,
readwrite
)
BOOL
boolValue
;
/// Represents a structured value.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
GPBStruct
*
structValue
;
/// Represents a repeated `Value`.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
GPBListValue
*
listValue
;
@end
/// Fetches the raw value of a @c GPBValue's @c nullValue property, even
/// if the value was not defined by the enum at the time the code was generated.
int32_t
GPBValue_NullValue_RawValue
(
GPBValue
*
message
);
/// Sets the raw value of an @c GPBValue's @c nullValue property, allowing
/// it to be set to a value that was not defined by the enum at the time the code
/// was generated.
void
SetGPBValue_NullValue_RawValue
(
GPBValue
*
message
,
int32_t
value
);
/// Clears whatever value was set for the oneof 'kind'.
void
GPBValue_ClearKindOneOfCase
(
GPBValue
*
message
);
#pragma mark - GPBListValue
typedef
GPB_ENUM
(
GPBListValue_FieldNumber
)
{
GPBListValue_FieldNumber_ValuesArray
=
1
,
};
/// `ListValue` is a wrapper around a repeated field of values.
///
/// The JSON representation for `ListValue` is JSON array.
@interface
GPBListValue
:
GPBMessage
/// Repeated field of dynamically typed values.
@property
(
nonatomic
,
readwrite
,
strong
,
null_resettable
)
NSMutableArray
<
GPBValue
*>
*
valuesArray
;
/// The number of items in @c valuesArray without causing the array to be created.
@property
(
nonatomic
,
readonly
)
NSUInteger
valuesArray_Count
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Struct.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/Struct.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBStructRoot
@implementation
GPBStructRoot
@end
#pragma mark - GPBStructRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBStructRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - Enum GPBNullValue
GPBEnumDescriptor
*
GPBNullValue_EnumDescriptor
(
void
)
{
static
GPBEnumDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
static
const
char
*
valueNames
=
"NullValue
\000
"
;
static
const
int32_t
values
[]
=
{
GPBNullValue_NullValue
,
};
GPBEnumDescriptor
*
worker
=
[
GPBEnumDescriptor
allocDescriptorForName
:
GPBNSStringifySymbol
(
GPBNullValue
)
valueNames
:
valueNames
values
:
values
count
:
(
uint32_t
)(
sizeof
(
values
)
/
sizeof
(
int32_t
))
enumVerifier
:
GPBNullValue_IsValidValue
];
if
(
!
OSAtomicCompareAndSwapPtrBarrier
(
nil
,
worker
,
(
void
*
volatile
*
)
&
descriptor
))
{
[
worker
release
];
}
}
return
descriptor
;
}
BOOL
GPBNullValue_IsValidValue
(
int32_t
value__
)
{
switch
(
value__
)
{
case
GPBNullValue_NullValue
:
return
YES
;
default
:
return
NO
;
}
}
#pragma mark - GPBStruct
@implementation
GPBStruct
@dynamic
fields
,
fields_Count
;
typedef
struct
GPBStruct__storage_
{
uint32_t
_has_storage_
[
1
];
NSMutableDictionary
*
fields
;
}
GPBStruct__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"fields"
,
.
dataTypeSpecific
.
className
=
GPBStringifySymbol
(
GPBValue
),
.
number
=
GPBStruct_FieldNumber_Fields
,
.
hasIndex
=
GPBNoHasBit
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBStruct__storage_
,
fields
),
.
flags
=
GPBFieldMapKeyString
,
.
dataType
=
GPBDataTypeMessage
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBStruct
class
]
rootClass
:[
GPBStructRoot
class
]
file
:
GPBStructRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBStruct__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma mark - GPBValue
@implementation
GPBValue
@dynamic
kindOneOfCase
;
@dynamic
nullValue
;
@dynamic
numberValue
;
@dynamic
stringValue
;
@dynamic
boolValue
;
@dynamic
structValue
;
@dynamic
listValue
;
typedef
struct
GPBValue__storage_
{
uint32_t
_has_storage_
[
2
];
GPBNullValue
nullValue
;
NSString
*
stringValue
;
GPBStruct
*
structValue
;
GPBListValue
*
listValue
;
double
numberValue
;
}
GPBValue__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"nullValue"
,
.
dataTypeSpecific
.
enumDescFunc
=
GPBNullValue_EnumDescriptor
,
.
number
=
GPBValue_FieldNumber_NullValue
,
.
hasIndex
=
-
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBValue__storage_
,
nullValue
),
.
flags
=
GPBFieldOptional
|
GPBFieldHasEnumDescriptor
,
.
dataType
=
GPBDataTypeEnum
,
},
{
.
name
=
"numberValue"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBValue_FieldNumber_NumberValue
,
.
hasIndex
=
-
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBValue__storage_
,
numberValue
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeDouble
,
},
{
.
name
=
"stringValue"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBValue_FieldNumber_StringValue
,
.
hasIndex
=
-
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBValue__storage_
,
stringValue
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeString
,
},
{
.
name
=
"boolValue"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBValue_FieldNumber_BoolValue
,
.
hasIndex
=
-
1
,
.
offset
=
0
,
// Stored in _has_storage_ to save space.
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeBool
,
},
{
.
name
=
"structValue"
,
.
dataTypeSpecific
.
className
=
GPBStringifySymbol
(
GPBStruct
),
.
number
=
GPBValue_FieldNumber_StructValue
,
.
hasIndex
=
-
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBValue__storage_
,
structValue
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeMessage
,
},
{
.
name
=
"listValue"
,
.
dataTypeSpecific
.
className
=
GPBStringifySymbol
(
GPBListValue
),
.
number
=
GPBValue_FieldNumber_ListValue
,
.
hasIndex
=
-
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBValue__storage_
,
listValue
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeMessage
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBValue
class
]
rootClass
:[
GPBStructRoot
class
]
file
:
GPBStructRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBValue__storage_
)
flags
:
0
];
static
const
char
*
oneofs
[]
=
{
"kind"
,
};
[
localDescriptor
setupOneofs
:
oneofs
count
:(
uint32_t
)(
sizeof
(
oneofs
)
/
sizeof
(
char
*
))
firstHasIndex
:-
1
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
int32_t
GPBValue_NullValue_RawValue
(
GPBValue
*
message
)
{
GPBDescriptor
*
descriptor
=
[
GPBValue
descriptor
];
GPBFieldDescriptor
*
field
=
[
descriptor
fieldWithNumber
:
GPBValue_FieldNumber_NullValue
];
return
GPBGetMessageInt32Field
(
message
,
field
);
}
void
SetGPBValue_NullValue_RawValue
(
GPBValue
*
message
,
int32_t
value
)
{
GPBDescriptor
*
descriptor
=
[
GPBValue
descriptor
];
GPBFieldDescriptor
*
field
=
[
descriptor
fieldWithNumber
:
GPBValue_FieldNumber_NullValue
];
GPBSetInt32IvarWithFieldInternal
(
message
,
field
,
value
,
descriptor
.
file
.
syntax
);
}
void
GPBValue_ClearKindOneOfCase
(
GPBValue
*
message
)
{
GPBDescriptor
*
descriptor
=
[
message
descriptor
];
GPBOneofDescriptor
*
oneof
=
descriptor
->
oneofs_
[
0
];
GPBMaybeClearOneof
(
message
,
oneof
,
-
1
,
0
);
}
#pragma mark - GPBListValue
@implementation
GPBListValue
@dynamic
valuesArray
,
valuesArray_Count
;
typedef
struct
GPBListValue__storage_
{
uint32_t
_has_storage_
[
1
];
NSMutableArray
*
valuesArray
;
}
GPBListValue__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"valuesArray"
,
.
dataTypeSpecific
.
className
=
GPBStringifySymbol
(
GPBValue
),
.
number
=
GPBListValue_FieldNumber_ValuesArray
,
.
hasIndex
=
GPBNoHasBit
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBListValue__storage_
,
valuesArray
),
.
flags
=
GPBFieldRepeated
,
.
dataType
=
GPBDataTypeMessage
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBListValue
class
]
rootClass
:[
GPBStructRoot
class
]
file
:
GPBStructRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBListValue__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Timestamp.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/timestamp.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBTimestampRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBTimestampRoot
:
GPBRootObject
@end
#pragma mark - GPBTimestamp
typedef
GPB_ENUM
(
GPBTimestamp_FieldNumber
)
{
GPBTimestamp_FieldNumber_Seconds
=
1
,
GPBTimestamp_FieldNumber_Nanos
=
2
,
};
/// A Timestamp represents a point in time independent of any time zone
/// or calendar, represented as seconds and fractions of seconds at
/// nanosecond resolution in UTC Epoch time. It is encoded using the
/// Proleptic Gregorian Calendar which extends the Gregorian calendar
/// backwards to year one. It is encoded assuming all minutes are 60
/// seconds long, i.e. leap seconds are "smeared" so that no leap second
/// table is needed for interpretation. Range is from
/// 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
/// By restricting to that range, we ensure that we can convert to
/// and from RFC 3339 date strings.
/// See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
///
/// Example 1: Compute Timestamp from POSIX `time()`.
///
/// Timestamp timestamp;
/// timestamp.set_seconds(time(NULL));
/// timestamp.set_nanos(0);
///
/// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
///
/// struct timeval tv;
/// gettimeofday(&tv, NULL);
///
/// Timestamp timestamp;
/// timestamp.set_seconds(tv.tv_sec);
/// timestamp.set_nanos(tv.tv_usec * 1000);
///
/// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
///
/// FILETIME ft;
/// GetSystemTimeAsFileTime(&ft);
/// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
///
/// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
/// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
/// Timestamp timestamp;
/// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
/// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
///
/// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
///
/// long millis = System.currentTimeMillis();
///
/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
/// .setNanos((int) ((millis % 1000) * 1000000)).build();
///
///
/// Example 5: Compute Timestamp from current time in Python.
///
/// now = time.time()
/// seconds = int(now)
/// nanos = int((now - seconds) * 10**9)
/// timestamp = Timestamp(seconds=seconds, nanos=nanos)
@interface
GPBTimestamp
:
GPBMessage
/// Represents seconds of UTC time since Unix epoch
/// 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to
/// 9999-12-31T23:59:59Z inclusive.
@property
(
nonatomic
,
readwrite
)
int64_t
seconds
;
/// Non-negative fractions of a second at nanosecond resolution. Negative
/// second values with fractions must still have non-negative nanos values
/// that count forward in time. Must be from 0 to 999,999,999
/// inclusive.
@property
(
nonatomic
,
readwrite
)
int32_t
nanos
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Timestamp.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/timestamp.proto
#import "GPBProtocolBuffers_RuntimeSupport.h"
#import "google/protobuf/Timestamp.pbobjc.h"
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma mark - GPBTimestampRoot
@implementation
GPBTimestampRoot
@end
#pragma mark - GPBTimestampRoot_FileDescriptor
static
GPBFileDescriptor
*
GPBTimestampRoot_FileDescriptor
(
void
)
{
// This is called by +initialize so there is no need to worry
// about thread safety of the singleton.
static
GPBFileDescriptor
*
descriptor
=
NULL
;
if
(
!
descriptor
)
{
GPBDebugCheckRuntimeVersion
();
descriptor
=
[[
GPBFileDescriptor
alloc
]
initWithPackage
:
@"google.protobuf"
syntax
:
GPBFileSyntaxProto3
];
}
return
descriptor
;
}
#pragma mark - GPBTimestamp
@implementation
GPBTimestamp
@dynamic
seconds
;
@dynamic
nanos
;
typedef
struct
GPBTimestamp__storage_
{
uint32_t
_has_storage_
[
1
];
int32_t
nanos
;
int64_t
seconds
;
}
GPBTimestamp__storage_
;
// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+
(
GPBDescriptor
*
)
descriptor
{
static
GPBDescriptor
*
descriptor
=
nil
;
if
(
!
descriptor
)
{
static
GPBMessageFieldDescription
fields
[]
=
{
{
.
name
=
"seconds"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBTimestamp_FieldNumber_Seconds
,
.
hasIndex
=
0
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBTimestamp__storage_
,
seconds
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeInt64
,
},
{
.
name
=
"nanos"
,
.
dataTypeSpecific
.
className
=
NULL
,
.
number
=
GPBTimestamp_FieldNumber_Nanos
,
.
hasIndex
=
1
,
.
offset
=
(
uint32_t
)
offsetof
(
GPBTimestamp__storage_
,
nanos
),
.
flags
=
GPBFieldOptional
,
.
dataType
=
GPBDataTypeInt32
,
},
};
GPBDescriptor
*
localDescriptor
=
[
GPBDescriptor
allocDescriptorForClass
:[
GPBTimestamp
class
]
rootClass
:[
GPBTimestampRoot
class
]
file
:
GPBTimestampRoot_FileDescriptor
()
fields
:
fields
fieldCount
:
(
uint32_t
)(
sizeof
(
fields
)
/
sizeof
(
GPBMessageFieldDescription
))
storageSize
:
sizeof
(
GPBTimestamp__storage_
)
flags
:
0
];
NSAssert
(
descriptor
==
nil
,
@"Startup recursed!"
);
descriptor
=
localDescriptor
;
}
return
descriptor
;
}
@end
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Type.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Type.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Wrappers.pbobjc.h
deleted
100644 → 0
View file @
454d5be8
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto
#import "GPBProtocolBuffers.h"
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - GPBWrappersRoot
/// Exposes the extension registry for this file.
///
/// The base class provides:
/// @code
/// + (GPBExtensionRegistry *)extensionRegistry;
/// @endcode
/// which is a @c GPBExtensionRegistry that includes all the extensions defined by
/// this file and all files that it depends on.
@interface
GPBWrappersRoot
:
GPBRootObject
@end
#pragma mark - GPBDoubleValue
typedef
GPB_ENUM
(
GPBDoubleValue_FieldNumber
)
{
GPBDoubleValue_FieldNumber_Value
=
1
,
};
/// Wrapper message for `double`.
///
/// The JSON representation for `DoubleValue` is JSON number.
@interface
GPBDoubleValue
:
GPBMessage
/// The double value.
@property
(
nonatomic
,
readwrite
)
double
value
;
@end
#pragma mark - GPBFloatValue
typedef
GPB_ENUM
(
GPBFloatValue_FieldNumber
)
{
GPBFloatValue_FieldNumber_Value
=
1
,
};
/// Wrapper message for `float`.
///
/// The JSON representation for `FloatValue` is JSON number.
@interface
GPBFloatValue
:
GPBMessage
/// The float value.
@property
(
nonatomic
,
readwrite
)
float
value
;
@end
#pragma mark - GPBInt64Value
typedef
GPB_ENUM
(
GPBInt64Value_FieldNumber
)
{
GPBInt64Value_FieldNumber_Value
=
1
,
};
/// Wrapper message for `int64`.
///
/// The JSON representation for `Int64Value` is JSON string.
@interface
GPBInt64Value
:
GPBMessage
/// The int64 value.
@property
(
nonatomic
,
readwrite
)
int64_t
value
;
@end
#pragma mark - GPBUInt64Value
typedef
GPB_ENUM
(
GPBUInt64Value_FieldNumber
)
{
GPBUInt64Value_FieldNumber_Value
=
1
,
};
/// Wrapper message for `uint64`.
///
/// The JSON representation for `UInt64Value` is JSON string.
@interface
GPBUInt64Value
:
GPBMessage
/// The uint64 value.
@property
(
nonatomic
,
readwrite
)
uint64_t
value
;
@end
#pragma mark - GPBInt32Value
typedef
GPB_ENUM
(
GPBInt32Value_FieldNumber
)
{
GPBInt32Value_FieldNumber_Value
=
1
,
};
/// Wrapper message for `int32`.
///
/// The JSON representation for `Int32Value` is JSON number.
@interface
GPBInt32Value
:
GPBMessage
/// The int32 value.
@property
(
nonatomic
,
readwrite
)
int32_t
value
;
@end
#pragma mark - GPBUInt32Value
typedef
GPB_ENUM
(
GPBUInt32Value_FieldNumber
)
{
GPBUInt32Value_FieldNumber_Value
=
1
,
};
/// Wrapper message for `uint32`.
///
/// The JSON representation for `UInt32Value` is JSON number.
@interface
GPBUInt32Value
:
GPBMessage
/// The uint32 value.
@property
(
nonatomic
,
readwrite
)
uint32_t
value
;
@end
#pragma mark - GPBBoolValue
typedef
GPB_ENUM
(
GPBBoolValue_FieldNumber
)
{
GPBBoolValue_FieldNumber_Value
=
1
,
};
/// Wrapper message for `bool`.
///
/// The JSON representation for `BoolValue` is JSON `true` and `false`.
@interface
GPBBoolValue
:
GPBMessage
/// The bool value.
@property
(
nonatomic
,
readwrite
)
BOOL
value
;
@end
#pragma mark - GPBStringValue
typedef
GPB_ENUM
(
GPBStringValue_FieldNumber
)
{
GPBStringValue_FieldNumber_Value
=
1
,
};
/// Wrapper message for `string`.
///
/// The JSON representation for `StringValue` is JSON string.
@interface
GPBStringValue
:
GPBMessage
/// The string value.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSString
*
value
;
@end
#pragma mark - GPBBytesValue
typedef
GPB_ENUM
(
GPBBytesValue_FieldNumber
)
{
GPBBytesValue_FieldNumber_Value
=
1
,
};
/// Wrapper message for `bytes`.
///
/// The JSON representation for `BytesValue` is JSON string.
@interface
GPBBytesValue
:
GPBMessage
/// The bytes value.
@property
(
nonatomic
,
readwrite
,
copy
,
null_resettable
)
NSData
*
value
;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)
This diff is collapsed.
Click to expand it.
objectivec/google/google/protobuf/Wrappers.pbobjc.m
deleted
100644 → 0
View file @
454d5be8
This diff is collapsed.
Click to expand it.
objectivec/google/protobuf/Any.pbobjc.h
View file @
e0df23ac
...
...
@@ -106,6 +106,8 @@ typedef GPB_ENUM(GPBAny_FieldNumber) {
/// * If no schema is provided, `https` is assumed.
/// * The last segment of the URL's path must represent the fully
/// qualified name of the type (as in `path/google.protobuf.Duration`).
/// The name should be in a canonical form (e.g., leading "." is
/// not accepted).
/// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
/// value in binary format, or produce an error.
/// * Applications are allowed to cache lookup results based on the
...
...
This diff is collapsed.
Click to expand it.
objectivec/google/protobuf/FieldMask.pbobjc.h
View file @
e0df23ac
...
...
@@ -84,7 +84,7 @@ typedef GPB_ENUM(GPBFieldMask_FieldNumber) {
/// operation applies to all fields (as if a FieldMask of all fields
/// had been specified).
///
/// Note that a field mask does not necessarily appl
ies
to the
/// Note that a field mask does not necessarily appl
y
to the
/// top-level response message. In case of a REST get operation, the
/// field mask applies directly to the response, but in case of a REST
/// list operation, the mask instead applies to each individual message
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment