PluginProbe
Media Cloud Sync / 1.2.8
Media Cloud Sync v1.2.8
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / ResourceReference.php

ResourceReference.php in Media Cloud Sync 1.2.8, at includes/sdk/google/google/common-protos/src/Api/ResourceReference.php

182 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 # source: google/api/resource.proto
5 namespace Dudlewebs\WPMCS\Google\Api;
6
7 use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType;
8 use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField;
9 use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil;
10 /**
11 * Defines a proto annotation that describes a string field that refers to
12 * an API resource.
13 *
14 * Generated from protobuf message <code>google.api.ResourceReference</code>
15 */
16 class ResourceReference extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
17 {
18 /**
19 * The resource type that the annotated field references.
20 * Example:
21 * message Subscription {
22 * string topic = 2 [(google.api.resource_reference) = {
23 * type: "pubsub.googleapis.com/Topic"
24 * }];
25 * }
26 * Occasionally, a field may reference an arbitrary resource. In this case,
27 * APIs use the special value * in their resource reference.
28 * Example:
29 * message GetIamPolicyRequest {
30 * string resource = 2 [(google.api.resource_reference) = {
31 * type: "*"
32 * }];
33 * }
34 *
35 * Generated from protobuf field <code>string type = 1;</code>
36 */
37 protected $type = '';
38 /**
39 * The resource type of a child collection that the annotated field
40 * references. This is useful for annotating the `parent` field that
41 * doesn't have a fixed resource type.
42 * Example:
43 * message ListLogEntriesRequest {
44 * string parent = 1 [(google.api.resource_reference) = {
45 * child_type: "logging.googleapis.com/LogEntry"
46 * };
47 * }
48 *
49 * Generated from protobuf field <code>string child_type = 2;</code>
50 */
51 protected $child_type = '';
52 /**
53 * Constructor.
54 *
55 * @param array $data {
56 * Optional. Data for populating the Message object.
57 *
58 * @type string $type
59 * The resource type that the annotated field references.
60 * Example:
61 * message Subscription {
62 * string topic = 2 [(google.api.resource_reference) = {
63 * type: "pubsub.googleapis.com/Topic"
64 * }];
65 * }
66 * Occasionally, a field may reference an arbitrary resource. In this case,
67 * APIs use the special value * in their resource reference.
68 * Example:
69 * message GetIamPolicyRequest {
70 * string resource = 2 [(google.api.resource_reference) = {
71 * type: "*"
72 * }];
73 * }
74 * @type string $child_type
75 * The resource type of a child collection that the annotated field
76 * references. This is useful for annotating the `parent` field that
77 * doesn't have a fixed resource type.
78 * Example:
79 * message ListLogEntriesRequest {
80 * string parent = 1 [(google.api.resource_reference) = {
81 * child_type: "logging.googleapis.com/LogEntry"
82 * };
83 * }
84 * }
85 */
86 public function __construct($data = NULL)
87 {
88 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Resource::initOnce();
89 parent::__construct($data);
90 }
91 /**
92 * The resource type that the annotated field references.
93 * Example:
94 * message Subscription {
95 * string topic = 2 [(google.api.resource_reference) = {
96 * type: "pubsub.googleapis.com/Topic"
97 * }];
98 * }
99 * Occasionally, a field may reference an arbitrary resource. In this case,
100 * APIs use the special value * in their resource reference.
101 * Example:
102 * message GetIamPolicyRequest {
103 * string resource = 2 [(google.api.resource_reference) = {
104 * type: "*"
105 * }];
106 * }
107 *
108 * Generated from protobuf field <code>string type = 1;</code>
109 * @return string
110 */
111 public function getType()
112 {
113 return $this->type;
114 }
115 /**
116 * The resource type that the annotated field references.
117 * Example:
118 * message Subscription {
119 * string topic = 2 [(google.api.resource_reference) = {
120 * type: "pubsub.googleapis.com/Topic"
121 * }];
122 * }
123 * Occasionally, a field may reference an arbitrary resource. In this case,
124 * APIs use the special value * in their resource reference.
125 * Example:
126 * message GetIamPolicyRequest {
127 * string resource = 2 [(google.api.resource_reference) = {
128 * type: "*"
129 * }];
130 * }
131 *
132 * Generated from protobuf field <code>string type = 1;</code>
133 * @param string $var
134 * @return $this
135 */
136 public function setType($var)
137 {
138 GPBUtil::checkString($var, True);
139 $this->type = $var;
140 return $this;
141 }
142 /**
143 * The resource type of a child collection that the annotated field
144 * references. This is useful for annotating the `parent` field that
145 * doesn't have a fixed resource type.
146 * Example:
147 * message ListLogEntriesRequest {
148 * string parent = 1 [(google.api.resource_reference) = {
149 * child_type: "logging.googleapis.com/LogEntry"
150 * };
151 * }
152 *
153 * Generated from protobuf field <code>string child_type = 2;</code>
154 * @return string
155 */
156 public function getChildType()
157 {
158 return $this->child_type;
159 }
160 /**
161 * The resource type of a child collection that the annotated field
162 * references. This is useful for annotating the `parent` field that
163 * doesn't have a fixed resource type.
164 * Example:
165 * message ListLogEntriesRequest {
166 * string parent = 1 [(google.api.resource_reference) = {
167 * child_type: "logging.googleapis.com/LogEntry"
168 * };
169 * }
170 *
171 * Generated from protobuf field <code>string child_type = 2;</code>
172 * @param string $var
173 * @return $this
174 */
175 public function setChildType($var)
176 {
177 GPBUtil::checkString($var, True);
178 $this->child_type = $var;
179 return $this;
180 }
181 }
182