googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
ResourceReference.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
Last commit date
BackendRule
3 years ago
Billing
3 years ago
Distribution
3 years ago
Expr
3 years ago
LabelDescriptor
3 years ago
Logging
3 years ago
MetricDescriptor
3 years ago
Monitoring
3 years ago
Property
3 years ago
ResourceDescriptor
3 years ago
Advice.php
3 years ago
AuthProvider.php
3 years ago
AuthRequirement.php
3 years ago
Authentication.php
3 years ago
AuthenticationRule.php
3 years ago
Backend.php
3 years ago
BackendRule.php
3 years ago
BackendRule_PathTranslation.php
3 years ago
Billing.php
3 years ago
Billing_BillingDestination.php
3 years ago
ChangeType.php
3 years ago
ConfigChange.php
3 years ago
Context.php
3 years ago
ContextRule.php
3 years ago
Control.php
3 years ago
CustomHttpPattern.php
3 years ago
Distribution.php
3 years ago
Distribution_BucketOptions.php
3 years ago
Distribution_BucketOptions_Explicit.php
3 years ago
Distribution_BucketOptions_Exponential.php
3 years ago
Distribution_BucketOptions_Linear.php
3 years ago
Distribution_Exemplar.php
3 years ago
Distribution_Range.php
3 years ago
Documentation.php
3 years ago
DocumentationRule.php
3 years ago
Endpoint.php
3 years ago
FieldBehavior.php
3 years ago
Http.php
3 years ago
HttpBody.php
3 years ago
HttpRule.php
3 years ago
LabelDescriptor.php
3 years ago
LabelDescriptor_ValueType.php
3 years ago
LaunchStage.php
3 years ago
LogDescriptor.php
3 years ago
Logging.php
3 years ago
Logging_LoggingDestination.php
3 years ago
Metric.php
3 years ago
MetricDescriptor.php
3 years ago
MetricDescriptor_MetricDescriptorMetadata.php
3 years ago
MetricDescriptor_MetricKind.php
3 years ago
MetricDescriptor_ValueType.php
3 years ago
MetricRule.php
3 years ago
MonitoredResource.php
3 years ago
MonitoredResourceDescriptor.php
3 years ago
MonitoredResourceMetadata.php
3 years ago
Monitoring.php
3 years ago
Monitoring_MonitoringDestination.php
3 years ago
OAuthRequirements.php
3 years ago
Page.php
3 years ago
ProjectProperties.php
3 years ago
Property.php
3 years ago
Property_PropertyType.php
3 years ago
Quota.php
3 years ago
QuotaLimit.php
3 years ago
ResourceDescriptor.php
3 years ago
ResourceDescriptor_History.php
3 years ago
ResourceReference.php
3 years ago
RoutingParameter.php
3 years ago
RoutingRule.php
3 years ago
Service.php
3 years ago
SourceInfo.php
3 years ago
SystemParameter.php
3 years ago
SystemParameterRule.php
3 years ago
SystemParameters.php
3 years ago
Usage.php
3 years ago
UsageRule.php
3 years ago
ResourceReference.php
159 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/resource.proto |
| 4 | |
| 5 | namespace Google\Api; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Defines a proto annotation that describes a string field that refers to |
| 13 | * an API resource. |
| 14 | * |
| 15 | * Generated from protobuf message <code>google.api.ResourceReference</code> |
| 16 | */ |
| 17 | class ResourceReference extends \Google\Protobuf\Internal\Message |
| 18 | { |
| 19 | /** |
| 20 | * The resource type that the annotated field references. |
| 21 | * Example: |
| 22 | * message Subscription { |
| 23 | * string topic = 2 [(google.api.resource_reference) = { |
| 24 | * type: "pubsub.googleapis.com/Topic" |
| 25 | * }]; |
| 26 | * } |
| 27 | * |
| 28 | * Generated from protobuf field <code>string type = 1;</code> |
| 29 | */ |
| 30 | private $type = ''; |
| 31 | /** |
| 32 | * The resource type of a child collection that the annotated field |
| 33 | * references. This is useful for annotating the `parent` field that |
| 34 | * doesn't have a fixed resource type. |
| 35 | * Example: |
| 36 | * message ListLogEntriesRequest { |
| 37 | * string parent = 1 [(google.api.resource_reference) = { |
| 38 | * child_type: "logging.googleapis.com/LogEntry" |
| 39 | * }; |
| 40 | * } |
| 41 | * |
| 42 | * Generated from protobuf field <code>string child_type = 2;</code> |
| 43 | */ |
| 44 | private $child_type = ''; |
| 45 | |
| 46 | /** |
| 47 | * Constructor. |
| 48 | * |
| 49 | * @param array $data { |
| 50 | * Optional. Data for populating the Message object. |
| 51 | * |
| 52 | * @type string $type |
| 53 | * The resource type that the annotated field references. |
| 54 | * Example: |
| 55 | * message Subscription { |
| 56 | * string topic = 2 [(google.api.resource_reference) = { |
| 57 | * type: "pubsub.googleapis.com/Topic" |
| 58 | * }]; |
| 59 | * } |
| 60 | * @type string $child_type |
| 61 | * The resource type of a child collection that the annotated field |
| 62 | * references. This is useful for annotating the `parent` field that |
| 63 | * doesn't have a fixed resource type. |
| 64 | * Example: |
| 65 | * message ListLogEntriesRequest { |
| 66 | * string parent = 1 [(google.api.resource_reference) = { |
| 67 | * child_type: "logging.googleapis.com/LogEntry" |
| 68 | * }; |
| 69 | * } |
| 70 | * } |
| 71 | */ |
| 72 | public function __construct($data = NULL) { |
| 73 | \GPBMetadata\Google\Api\Resource::initOnce(); |
| 74 | parent::__construct($data); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * The resource type that the annotated field references. |
| 79 | * Example: |
| 80 | * message Subscription { |
| 81 | * string topic = 2 [(google.api.resource_reference) = { |
| 82 | * type: "pubsub.googleapis.com/Topic" |
| 83 | * }]; |
| 84 | * } |
| 85 | * |
| 86 | * Generated from protobuf field <code>string type = 1;</code> |
| 87 | * @return string |
| 88 | */ |
| 89 | public function getType() |
| 90 | { |
| 91 | return $this->type; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * The resource type that the annotated field references. |
| 96 | * Example: |
| 97 | * message Subscription { |
| 98 | * string topic = 2 [(google.api.resource_reference) = { |
| 99 | * type: "pubsub.googleapis.com/Topic" |
| 100 | * }]; |
| 101 | * } |
| 102 | * |
| 103 | * Generated from protobuf field <code>string type = 1;</code> |
| 104 | * @param string $var |
| 105 | * @return $this |
| 106 | */ |
| 107 | public function setType($var) |
| 108 | { |
| 109 | GPBUtil::checkString($var, True); |
| 110 | $this->type = $var; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * The resource type of a child collection that the annotated field |
| 117 | * references. This is useful for annotating the `parent` field that |
| 118 | * doesn't have a fixed resource type. |
| 119 | * Example: |
| 120 | * message ListLogEntriesRequest { |
| 121 | * string parent = 1 [(google.api.resource_reference) = { |
| 122 | * child_type: "logging.googleapis.com/LogEntry" |
| 123 | * }; |
| 124 | * } |
| 125 | * |
| 126 | * Generated from protobuf field <code>string child_type = 2;</code> |
| 127 | * @return string |
| 128 | */ |
| 129 | public function getChildType() |
| 130 | { |
| 131 | return $this->child_type; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * The resource type of a child collection that the annotated field |
| 136 | * references. This is useful for annotating the `parent` field that |
| 137 | * doesn't have a fixed resource type. |
| 138 | * Example: |
| 139 | * message ListLogEntriesRequest { |
| 140 | * string parent = 1 [(google.api.resource_reference) = { |
| 141 | * child_type: "logging.googleapis.com/LogEntry" |
| 142 | * }; |
| 143 | * } |
| 144 | * |
| 145 | * Generated from protobuf field <code>string child_type = 2;</code> |
| 146 | * @param string $var |
| 147 | * @return $this |
| 148 | */ |
| 149 | public function setChildType($var) |
| 150 | { |
| 151 | GPBUtil::checkString($var, True); |
| 152 | $this->child_type = $var; |
| 153 | |
| 154 | return $this; |
| 155 | } |
| 156 | |
| 157 | } |
| 158 | |
| 159 |