Properties | List of all members
GPBMixin Class Reference

#import <Api.pbobjc.h>

Inheritance diagram for GPBMixin:
Inheritance graph
[legend]

Properties

NSString * name
 
NSString * root
 
- Properties inherited from GPBMessage
BOOL initialized
 
GPBUnknownFieldSetunknownFields
 

Additional Inherited Members

- Instance Methods inherited from GPBMessage
(void) - addExtension:value:
 
(void) - addExtension:value:
 
(void) - addUnknownMapEntry:value: [implementation]
 
(void) - addUnknownMapEntry:value: [implementation]
 
(void) - clear
 
(void) - clear
 
(void) - clearExtension:
 
(void) - clearExtension:
 
(nullable NSData *) - data
 
(nullable NSData *) - data
 
(NSData *) - delimitedData
 
(NSData *) - delimitedData
 
(GPBDescriptor *) - descriptor
 
(GPBDescriptor *) - descriptor
 
(NSArray *) - extensionsCurrentlySet
 
(NSArray *) - extensionsCurrentlySet
 
(id- getExistingExtension: [implementation]
 
(id- getExistingExtension: [implementation]
 
(nullable id- getExtension:
 
(nullable id- getExtension:
 
(BOOL- hasExtension:
 
(BOOL- hasExtension:
 
(nullable instancetype) - initWithCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) - initWithCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) - initWithData:error:
 
(nullable instancetype) - initWithData:error:
 
(nullable instancetype) - initWithData:extensionRegistry:error:
 
(nullable instancetype) - initWithData:extensionRegistry:error:
 
(void) - mergeDelimitedFromCodedInputStream:extensionRegistry: [implementation]
 
(void) - mergeDelimitedFromCodedInputStream:extensionRegistry: [implementation]
 
(void) - mergeFrom:
 
(void) - mergeFrom:
 
(void) - mergeFromCodedInputStream:extensionRegistry: [implementation]
 
(void) - mergeFromCodedInputStream:extensionRegistry: [implementation]
 
(void) - mergeFromData:extensionRegistry:
 
(void) - mergeFromData:extensionRegistry:
 
(size_t) - serializedSize
 
(size_t) - serializedSize
 
(void) - setExtension:index:value:
 
(void) - setExtension:index:value:
 
(void) - setExtension:value:
 
(void) - setExtension:value:
 
(void) - writeDelimitedToCodedOutputStream:
 
(void) - writeDelimitedToCodedOutputStream:
 
(void) - writeDelimitedToOutputStream:
 
(void) - writeDelimitedToOutputStream:
 
(void) - writeToCodedOutputStream:
 
(void) - writeToCodedOutputStream:
 
(void) - writeToOutputStream:
 
(void) - writeToOutputStream:
 
- Class Methods inherited from GPBMessage
(GPBDescriptor *) + descriptor
 
(GPBDescriptor *) + descriptor
 
(instancetype) + message
 
(instancetype) + message
 
(nullable instancetype) + parseDelimitedFromCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) + parseDelimitedFromCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) + parseFromCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) + parseFromCodedInputStream:extensionRegistry:error:
 
(nullable instancetype) + parseFromData:error:
 
(nullable instancetype) + parseFromData:error:
 
(nullable instancetype) + parseFromData:extensionRegistry:error:
 
(nullable instancetype) + parseFromData:extensionRegistry:error:
 
- Protected Attributes inherited from GPBMessage
package GPBMessage_StoragePtr messageStorage_
 

Detailed Description

Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows:

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";
  }
  ...
}

Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows:

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 inheriting 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";
  }
  ...
}

Definition at line 292 of file bloaty/third_party/protobuf/objectivec/google/protobuf/Api.pbobjc.h.

Property Documentation

◆ name

- (NSString *) name
readwritenonatomiccopy

The fully qualified name of the interface which is included.

Definition at line 295 of file bloaty/third_party/protobuf/objectivec/google/protobuf/Api.pbobjc.h.

◆ root

- (NSString *) root
readwritenonatomiccopy

If non-empty specifies a path under which inherited HTTP paths are rooted.

Definition at line 301 of file bloaty/third_party/protobuf/objectivec/google/protobuf/Api.pbobjc.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:45