laravel-template/app/Services/gRPC/Pinger/PingRequest.php

63 lines
1.2 KiB
PHP
Raw Normal View History

2023-11-01 04:02:17 +00:00
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: resources/proto/pinger.proto
namespace App\Services\gRPC\Pinger;
2023-11-02 13:03:39 +00:00
use App\Services\gRPC\GPBMetadata\Pinger;
2023-11-01 04:02:17 +00:00
use Google\Protobuf\Internal\GPBUtil;
2023-11-02 13:03:39 +00:00
use Google\Protobuf\Internal\Message;
2023-11-01 04:02:17 +00:00
/**
* Generated from protobuf message <code>pinger.PingRequest</code>
*/
2023-11-02 13:03:39 +00:00
class PingRequest extends Message
2023-11-01 04:02:17 +00:00
{
/**
* Generated from protobuf field <code>string url = 1;</code>
*/
protected $url = '';
/**
* Constructor.
*
* @param array $data {
2023-11-02 13:03:39 +00:00
* Optional. Data for populating the Message object.
2023-11-01 04:02:17 +00:00
*
2023-11-02 13:03:39 +00:00
* @type string $url
* }
2023-11-01 04:02:17 +00:00
*/
2023-11-02 13:03:39 +00:00
public function __construct($data = null)
{
Pinger::initOnce();
2023-11-01 04:02:17 +00:00
parent::__construct($data);
}
/**
* Generated from protobuf field <code>string url = 1;</code>
2023-11-02 13:03:39 +00:00
*
2023-11-01 04:02:17 +00:00
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* Generated from protobuf field <code>string url = 1;</code>
2023-11-02 13:03:39 +00:00
*
2023-11-01 04:02:17 +00:00
* @param string $var
2023-11-02 13:03:39 +00:00
*
2023-11-01 04:02:17 +00:00
* @return $this
*/
public function setUrl($var)
{
2023-11-02 13:03:39 +00:00
GPBUtil::checkString($var, true);
2023-11-01 04:02:17 +00:00
$this->url = $var;
return $this;
}
}