googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
HttpBody.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
HttpBody.php
167 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/httpbody.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 | * Message that represents an arbitrary HTTP body. It should only be used for |
| 13 | * payload formats that can't be represented as JSON, such as raw binary or |
| 14 | * an HTML page. |
| 15 | * This message can be used both in streaming and non-streaming API methods in |
| 16 | * the request as well as the response. |
| 17 | * It can be used as a top-level request field, which is convenient if one |
| 18 | * wants to extract parameters from either the URL or HTTP template into the |
| 19 | * request fields and also want access to the raw HTTP body. |
| 20 | * Example: |
| 21 | * message GetResourceRequest { |
| 22 | * // A unique request id. |
| 23 | * string request_id = 1; |
| 24 | * // The raw HTTP body is bound to this field. |
| 25 | * google.api.HttpBody http_body = 2; |
| 26 | * } |
| 27 | * service ResourceService { |
| 28 | * rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); |
| 29 | * rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); |
| 30 | * } |
| 31 | * Example with streaming methods: |
| 32 | * service CaldavService { |
| 33 | * rpc GetCalendar(stream google.api.HttpBody) |
| 34 | * returns (stream google.api.HttpBody); |
| 35 | * rpc UpdateCalendar(stream google.api.HttpBody) |
| 36 | * returns (stream google.api.HttpBody); |
| 37 | * } |
| 38 | * Use of this type only changes how the request and response bodies are |
| 39 | * handled, all other features will continue to work unchanged. |
| 40 | * |
| 41 | * Generated from protobuf message <code>google.api.HttpBody</code> |
| 42 | */ |
| 43 | class HttpBody extends \Google\Protobuf\Internal\Message |
| 44 | { |
| 45 | /** |
| 46 | * The HTTP Content-Type string representing the content type of the body. |
| 47 | * |
| 48 | * Generated from protobuf field <code>string content_type = 1;</code> |
| 49 | */ |
| 50 | private $content_type = ''; |
| 51 | /** |
| 52 | * HTTP body binary data. |
| 53 | * |
| 54 | * Generated from protobuf field <code>bytes data = 2;</code> |
| 55 | */ |
| 56 | private $data = ''; |
| 57 | /** |
| 58 | * Application specific response metadata. Must be set in the first response |
| 59 | * for streaming APIs. |
| 60 | * |
| 61 | * Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code> |
| 62 | */ |
| 63 | private $extensions; |
| 64 | |
| 65 | /** |
| 66 | * Constructor. |
| 67 | * |
| 68 | * @param array $data { |
| 69 | * Optional. Data for populating the Message object. |
| 70 | * |
| 71 | * @type string $content_type |
| 72 | * The HTTP Content-Type string representing the content type of the body. |
| 73 | * @type string $data |
| 74 | * HTTP body binary data. |
| 75 | * @type \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $extensions |
| 76 | * Application specific response metadata. Must be set in the first response |
| 77 | * for streaming APIs. |
| 78 | * } |
| 79 | */ |
| 80 | public function __construct($data = NULL) { |
| 81 | \GPBMetadata\Google\Api\Httpbody::initOnce(); |
| 82 | parent::__construct($data); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * The HTTP Content-Type string representing the content type of the body. |
| 87 | * |
| 88 | * Generated from protobuf field <code>string content_type = 1;</code> |
| 89 | * @return string |
| 90 | */ |
| 91 | public function getContentType() |
| 92 | { |
| 93 | return $this->content_type; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * The HTTP Content-Type string representing the content type of the body. |
| 98 | * |
| 99 | * Generated from protobuf field <code>string content_type = 1;</code> |
| 100 | * @param string $var |
| 101 | * @return $this |
| 102 | */ |
| 103 | public function setContentType($var) |
| 104 | { |
| 105 | GPBUtil::checkString($var, True); |
| 106 | $this->content_type = $var; |
| 107 | |
| 108 | return $this; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * HTTP body binary data. |
| 113 | * |
| 114 | * Generated from protobuf field <code>bytes data = 2;</code> |
| 115 | * @return string |
| 116 | */ |
| 117 | public function getData() |
| 118 | { |
| 119 | return $this->data; |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * HTTP body binary data. |
| 124 | * |
| 125 | * Generated from protobuf field <code>bytes data = 2;</code> |
| 126 | * @param string $var |
| 127 | * @return $this |
| 128 | */ |
| 129 | public function setData($var) |
| 130 | { |
| 131 | GPBUtil::checkString($var, False); |
| 132 | $this->data = $var; |
| 133 | |
| 134 | return $this; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Application specific response metadata. Must be set in the first response |
| 139 | * for streaming APIs. |
| 140 | * |
| 141 | * Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code> |
| 142 | * @return \Google\Protobuf\Internal\RepeatedField |
| 143 | */ |
| 144 | public function getExtensions() |
| 145 | { |
| 146 | return $this->extensions; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Application specific response metadata. Must be set in the first response |
| 151 | * for streaming APIs. |
| 152 | * |
| 153 | * Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code> |
| 154 | * @param \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $var |
| 155 | * @return $this |
| 156 | */ |
| 157 | public function setExtensions($var) |
| 158 | { |
| 159 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); |
| 160 | $this->extensions = $arr; |
| 161 | |
| 162 | return $this; |
| 163 | } |
| 164 | |
| 165 | } |
| 166 | |
| 167 |