ResourceReference
class ResourceReference extends Message
Defines a proto annotation that describes a string field that refers to an API resource.
Generated from protobuf message google.api.ResourceReference
Methods
Constructor.
The resource type that the annotated field references.
The resource type that the annotated field references.
The resource type of a child collection that the annotated field
references. This is useful for annotating the parent
field that
doesn't have a fixed resource type.
The resource type of a child collection that the annotated field
references. This is useful for annotating the parent
field that
doesn't have a fixed resource type.
Details
at line 72
__construct(array $data = NULL)
Constructor.
at line 89
string
getType()
The resource type that the annotated field references.
Example: message Subscription { string topic = 2 [(google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }]; }
Generated from protobuf field string type = 1;
at line 107
$this
setType(string $var)
The resource type that the annotated field references.
Example: message Subscription { string topic = 2 [(google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }]; }
Generated from protobuf field string type = 1;
at line 129
string
getChildType()
The resource type of a child collection that the annotated field
references. This is useful for annotating the parent
field that
doesn't have a fixed resource type.
Example: message ListLogEntriesRequest { string parent = 1 [(google.api.resource_reference) = { child_type: "logging.googleapis.com/LogEntry" }; }
Generated from protobuf field string child_type = 2;
at line 149
$this
setChildType(string $var)
The resource type of a child collection that the annotated field
references. This is useful for annotating the parent
field that
doesn't have a fixed resource type.
Example: message ListLogEntriesRequest { string parent = 1 [(google.api.resource_reference) = { child_type: "logging.googleapis.com/LogEntry" }; }
Generated from protobuf field string child_type = 2;