Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class Address extends \Google\Model
{
protected $envoyInternalAddressType = EnvoyInternalAddress::class;
protected $envoyInternalAddressDataType = '';
protected $pipeType = Pipe::class;
protected $pipeDataType = '';
protected $socketAddressType = SocketAddress::class;
protected $socketAddressDataType = '';
/**
* Specifies a user-space address handled by :ref:`internal listeners `.
*
* @param EnvoyInternalAddress $envoyInternalAddress
*/
public function setEnvoyInternalAddress(EnvoyInternalAddress $envoyInternalAddress)
{
$this->envoyInternalAddress = $envoyInternalAddress;
}
/**
* @return EnvoyInternalAddress
*/
public function getEnvoyInternalAddress()
{
return $this->envoyInternalAddress;
}
/**
* @param Pipe $pipe
*/
public function setPipe(Pipe $pipe)
{
$this->pipe = $pipe;
}
/**
* @return Pipe
*/
public function getPipe()
{
return $this->pipe;
}
/**
* @param SocketAddress $socketAddress
*/
public function setSocketAddress(SocketAddress $socketAddress)
{
$this->socketAddress = $socketAddress;
}
/**
* @return SocketAddress
*/
public function getSocketAddress()
{
return $this->socketAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_TrafficDirectorService_Address');

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class BuildVersion extends \Google\Model
{
/**
* Free-form build information. Envoy defines several well known keys in the
* source/common/version/version.h file
*
* @var array[]
*/
public $metadata;
protected $versionType = SemanticVersion::class;
protected $versionDataType = '';
/**
* Free-form build information. Envoy defines several well known keys in the
* source/common/version/version.h file
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* SemVer version of extension.
*
* @param SemanticVersion $version
*/
public function setVersion(SemanticVersion $version)
{
$this->version = $version;
}
/**
* @return SemanticVersion
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildVersion::class, 'Google_Service_TrafficDirectorService_BuildVersion');

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ClientConfig extends \Google\Collection
{
protected $collection_key = 'xdsConfig';
/**
* For xDS clients, the scope in which the data is used. For example, gRPC
* indicates the data plane target or that the data is associated with gRPC
* server(s).
*
* @var string
*/
public $clientScope;
protected $genericXdsConfigsType = GenericXdsConfig::class;
protected $genericXdsConfigsDataType = 'array';
protected $nodeType = Node::class;
protected $nodeDataType = '';
protected $xdsConfigType = PerXdsConfig::class;
protected $xdsConfigDataType = 'array';
/**
* For xDS clients, the scope in which the data is used. For example, gRPC
* indicates the data plane target or that the data is associated with gRPC
* server(s).
*
* @param string $clientScope
*/
public function setClientScope($clientScope)
{
$this->clientScope = $clientScope;
}
/**
* @return string
*/
public function getClientScope()
{
return $this->clientScope;
}
/**
* Represents generic xDS config and the exact config structure depends on the
* type URL (like Cluster if it is CDS)
*
* @param GenericXdsConfig[] $genericXdsConfigs
*/
public function setGenericXdsConfigs($genericXdsConfigs)
{
$this->genericXdsConfigs = $genericXdsConfigs;
}
/**
* @return GenericXdsConfig[]
*/
public function getGenericXdsConfigs()
{
return $this->genericXdsConfigs;
}
/**
* Node for a particular client.
*
* @param Node $node
*/
public function setNode(Node $node)
{
$this->node = $node;
}
/**
* @return Node
*/
public function getNode()
{
return $this->node;
}
/**
* This field is deprecated in favor of generic_xds_configs which is much
* simpler and uniform in structure.
*
* @deprecated
* @param PerXdsConfig[] $xdsConfig
*/
public function setXdsConfig($xdsConfig)
{
$this->xdsConfig = $xdsConfig;
}
/**
* @deprecated
* @return PerXdsConfig[]
*/
public function getXdsConfig()
{
return $this->xdsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientConfig::class, 'Google_Service_TrafficDirectorService_ClientConfig');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ClientStatusRequest extends \Google\Collection
{
protected $collection_key = 'nodeMatchers';
/**
* If true, the server will not include the resource contents in the response
* (i.e., the generic_xds_configs.xds_config field will not be populated).
* [#not-implemented-hide:]
*
* @var bool
*/
public $excludeResourceContents;
protected $nodeType = Node::class;
protected $nodeDataType = '';
protected $nodeMatchersType = NodeMatcher::class;
protected $nodeMatchersDataType = 'array';
/**
* If true, the server will not include the resource contents in the response
* (i.e., the generic_xds_configs.xds_config field will not be populated).
* [#not-implemented-hide:]
*
* @param bool $excludeResourceContents
*/
public function setExcludeResourceContents($excludeResourceContents)
{
$this->excludeResourceContents = $excludeResourceContents;
}
/**
* @return bool
*/
public function getExcludeResourceContents()
{
return $this->excludeResourceContents;
}
/**
* The node making the csds request.
*
* @param Node $node
*/
public function setNode(Node $node)
{
$this->node = $node;
}
/**
* @return Node
*/
public function getNode()
{
return $this->node;
}
/**
* Management server can use these match criteria to identify clients. The
* match follows OR semantics.
*
* @param NodeMatcher[] $nodeMatchers
*/
public function setNodeMatchers($nodeMatchers)
{
$this->nodeMatchers = $nodeMatchers;
}
/**
* @return NodeMatcher[]
*/
public function getNodeMatchers()
{
return $this->nodeMatchers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientStatusRequest::class, 'Google_Service_TrafficDirectorService_ClientStatusRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ClientStatusResponse extends \Google\Collection
{
protected $collection_key = 'config';
protected $configType = ClientConfig::class;
protected $configDataType = 'array';
/**
* Client configs for the clients specified in the ClientStatusRequest.
*
* @param ClientConfig[] $config
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return ClientConfig[]
*/
public function getConfig()
{
return $this->config;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientStatusResponse::class, 'Google_Service_TrafficDirectorService_ClientStatusResponse');

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ClustersConfigDump extends \Google\Collection
{
protected $collection_key = 'staticClusters';
protected $dynamicActiveClustersType = DynamicCluster::class;
protected $dynamicActiveClustersDataType = 'array';
protected $dynamicWarmingClustersType = DynamicCluster::class;
protected $dynamicWarmingClustersDataType = 'array';
protected $staticClustersType = StaticCluster::class;
protected $staticClustersDataType = 'array';
/**
* This is the :ref:`version_info ` in the last processed CDS discovery
* response. If there are only static bootstrap clusters, this field will be
* "".
*
* @var string
*/
public $versionInfo;
/**
* The dynamically loaded active clusters. These are clusters that are
* available to service data plane traffic.
*
* @param DynamicCluster[] $dynamicActiveClusters
*/
public function setDynamicActiveClusters($dynamicActiveClusters)
{
$this->dynamicActiveClusters = $dynamicActiveClusters;
}
/**
* @return DynamicCluster[]
*/
public function getDynamicActiveClusters()
{
return $this->dynamicActiveClusters;
}
/**
* The dynamically loaded warming clusters. These are clusters that are
* currently undergoing warming in preparation to service data plane traffic.
* Note that if attempting to recreate an Envoy configuration from a
* configuration dump, the warming clusters should generally be discarded.
*
* @param DynamicCluster[] $dynamicWarmingClusters
*/
public function setDynamicWarmingClusters($dynamicWarmingClusters)
{
$this->dynamicWarmingClusters = $dynamicWarmingClusters;
}
/**
* @return DynamicCluster[]
*/
public function getDynamicWarmingClusters()
{
return $this->dynamicWarmingClusters;
}
/**
* The statically loaded cluster configs.
*
* @param StaticCluster[] $staticClusters
*/
public function setStaticClusters($staticClusters)
{
$this->staticClusters = $staticClusters;
}
/**
* @return StaticCluster[]
*/
public function getStaticClusters()
{
return $this->staticClusters;
}
/**
* This is the :ref:`version_info ` in the last processed CDS discovery
* response. If there are only static bootstrap clusters, this field will be
* "".
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClustersConfigDump::class, 'Google_Service_TrafficDirectorService_ClustersConfigDump');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ContextParams extends \Google\Model
{
/**
* @var string[]
*/
public $params;
/**
* @param string[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContextParams::class, 'Google_Service_TrafficDirectorService_ContextParams');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DoubleMatcher extends \Google\Model
{
/**
* If specified, the input double value must be equal to the value specified
* here.
*
* @var
*/
public $exact;
protected $rangeType = DoubleRange::class;
protected $rangeDataType = '';
public function setExact($exact)
{
$this->exact = $exact;
}
public function getExact()
{
return $this->exact;
}
/**
* If specified, the input double value must be in the range specified here.
* Note: The range is using half-open interval semantics [start, end).
*
* @param DoubleRange $range
*/
public function setRange(DoubleRange $range)
{
$this->range = $range;
}
/**
* @return DoubleRange
*/
public function getRange()
{
return $this->range;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleMatcher::class, 'Google_Service_TrafficDirectorService_DoubleMatcher');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DoubleRange extends \Google\Model
{
/**
* end of the range (exclusive)
*
* @var
*/
public $end;
/**
* start of the range (inclusive)
*
* @var
*/
public $start;
public function setEnd($end)
{
$this->end = $end;
}
public function getEnd()
{
return $this->end;
}
public function setStart($start)
{
$this->start = $start;
}
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleRange::class, 'Google_Service_TrafficDirectorService_DoubleRange');

View File

@@ -0,0 +1,180 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicCluster extends \Google\Model
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
/**
* The client status of this resource. [#not-implemented-hide:]
*
* @var string
*/
public $clientStatus;
/**
* The cluster config.
*
* @var array[]
*/
public $cluster;
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* The timestamp when the Cluster was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the cluster was
* loaded. In the future, discrete per-cluster versions may be supported by
* the API.
*
* @var string
*/
public $versionInfo;
/**
* The client status of this resource. [#not-implemented-hide:]
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* The cluster config.
*
* @param array[] $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return array[]
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty. [#not-implemented-hide:]
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* The timestamp when the Cluster was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the cluster was
* loaded. In the future, discrete per-cluster versions may be supported by
* the API.
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicCluster::class, 'Google_Service_TrafficDirectorService_DynamicCluster');

View File

@@ -0,0 +1,178 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicEndpointConfig extends \Google\Model
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
/**
* The client status of this resource. [#not-implemented-hide:]
*
* @var string
*/
public $clientStatus;
/**
* The endpoint config.
*
* @var array[]
*/
public $endpointConfig;
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* [#not-implemented-hide:] This is the per-resource version information. This
* version is currently taken from the :ref:`version_info ` field at the time
* that the endpoint configuration was loaded.
*
* @var string
*/
public $versionInfo;
/**
* The client status of this resource. [#not-implemented-hide:]
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* The endpoint config.
*
* @param array[] $endpointConfig
*/
public function setEndpointConfig($endpointConfig)
{
$this->endpointConfig = $endpointConfig;
}
/**
* @return array[]
*/
public function getEndpointConfig()
{
return $this->endpointConfig;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty. [#not-implemented-hide:]
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* [#not-implemented-hide:] This is the per-resource version information. This
* version is currently taken from the :ref:`version_info ` field at the time
* that the endpoint configuration was loaded.
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicEndpointConfig::class, 'Google_Service_TrafficDirectorService_DynamicEndpointConfig');

View File

@@ -0,0 +1,195 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicListener extends \Google\Model
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
protected $activeStateType = DynamicListenerState::class;
protected $activeStateDataType = '';
/**
* The client status of this resource. [#not-implemented-hide:]
*
* @var string
*/
public $clientStatus;
protected $drainingStateType = DynamicListenerState::class;
protected $drainingStateDataType = '';
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* The name or unique id of this listener, pulled from the
* DynamicListenerState config.
*
* @var string
*/
public $name;
protected $warmingStateType = DynamicListenerState::class;
protected $warmingStateDataType = '';
/**
* The listener state for any active listener by this name. These are
* listeners that are available to service data plane traffic.
*
* @param DynamicListenerState $activeState
*/
public function setActiveState(DynamicListenerState $activeState)
{
$this->activeState = $activeState;
}
/**
* @return DynamicListenerState
*/
public function getActiveState()
{
return $this->activeState;
}
/**
* The client status of this resource. [#not-implemented-hide:]
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* The listener state for any draining listener by this name. These are
* listeners that are currently undergoing draining in preparation to stop
* servicing data plane traffic. Note that if attempting to recreate an Envoy
* configuration from a configuration dump, the draining listeners should
* generally be discarded.
*
* @param DynamicListenerState $drainingState
*/
public function setDrainingState(DynamicListenerState $drainingState)
{
$this->drainingState = $drainingState;
}
/**
* @return DynamicListenerState
*/
public function getDrainingState()
{
return $this->drainingState;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* The name or unique id of this listener, pulled from the
* DynamicListenerState config.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The listener state for any warming listener by this name. These are
* listeners that are currently undergoing warming in preparation to service
* data plane traffic. Note that if attempting to recreate an Envoy
* configuration from a configuration dump, the warming listeners should
* generally be discarded.
*
* @param DynamicListenerState $warmingState
*/
public function setWarmingState(DynamicListenerState $warmingState)
{
$this->warmingState = $warmingState;
}
/**
* @return DynamicListenerState
*/
public function getWarmingState()
{
return $this->warmingState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicListener::class, 'Google_Service_TrafficDirectorService_DynamicListener');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicListenerState extends \Google\Model
{
/**
* The timestamp when the Listener was last successfully updated.
*
* @var string
*/
public $lastUpdated;
/**
* The listener config.
*
* @var array[]
*/
public $listener;
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the listener was
* loaded. In the future, discrete per-listener versions may be supported by
* the API.
*
* @var string
*/
public $versionInfo;
/**
* The timestamp when the Listener was last successfully updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The listener config.
*
* @param array[] $listener
*/
public function setListener($listener)
{
$this->listener = $listener;
}
/**
* @return array[]
*/
public function getListener()
{
return $this->listener;
}
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the listener was
* loaded. In the future, discrete per-listener versions may be supported by
* the API.
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicListenerState::class, 'Google_Service_TrafficDirectorService_DynamicListenerState');

View File

@@ -0,0 +1,178 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicRouteConfig extends \Google\Model
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
/**
* The client status of this resource. [#not-implemented-hide:]
*
* @var string
*/
public $clientStatus;
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* The timestamp when the Route was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The route config.
*
* @var array[]
*/
public $routeConfig;
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the route
* configuration was loaded.
*
* @var string
*/
public $versionInfo;
/**
* The client status of this resource. [#not-implemented-hide:]
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty. [#not-implemented-hide:]
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* The timestamp when the Route was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The route config.
*
* @param array[] $routeConfig
*/
public function setRouteConfig($routeConfig)
{
$this->routeConfig = $routeConfig;
}
/**
* @return array[]
*/
public function getRouteConfig()
{
return $this->routeConfig;
}
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the route
* configuration was loaded.
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicRouteConfig::class, 'Google_Service_TrafficDirectorService_DynamicRouteConfig');

View File

@@ -0,0 +1,201 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class DynamicScopedRouteConfigs extends \Google\Collection
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
protected $collection_key = 'scopedRouteConfigs';
/**
* The client status of this resource. [#not-implemented-hide:]
*
* @var string
*/
public $clientStatus;
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* The timestamp when the scoped route config set was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The name assigned to the scoped route configurations.
*
* @var string
*/
public $name;
/**
* The scoped route configurations.
*
* @var array[]
*/
public $scopedRouteConfigs;
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the scoped
* routes configuration was loaded.
*
* @var string
*/
public $versionInfo;
/**
* The client status of this resource. [#not-implemented-hide:]
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty. [#not-implemented-hide:]
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* The timestamp when the scoped route config set was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The name assigned to the scoped route configurations.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The scoped route configurations.
*
* @param array[] $scopedRouteConfigs
*/
public function setScopedRouteConfigs($scopedRouteConfigs)
{
$this->scopedRouteConfigs = $scopedRouteConfigs;
}
/**
* @return array[]
*/
public function getScopedRouteConfigs()
{
return $this->scopedRouteConfigs;
}
/**
* This is the per-resource version information. This version is currently
* taken from the :ref:`version_info ` field at the time that the scoped
* routes configuration was loaded.
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DynamicScopedRouteConfigs::class, 'Google_Service_TrafficDirectorService_DynamicScopedRouteConfigs');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class EndpointsConfigDump extends \Google\Collection
{
protected $collection_key = 'staticEndpointConfigs';
protected $dynamicEndpointConfigsType = DynamicEndpointConfig::class;
protected $dynamicEndpointConfigsDataType = 'array';
protected $staticEndpointConfigsType = StaticEndpointConfig::class;
protected $staticEndpointConfigsDataType = 'array';
/**
* The dynamically loaded endpoint configs.
*
* @param DynamicEndpointConfig[] $dynamicEndpointConfigs
*/
public function setDynamicEndpointConfigs($dynamicEndpointConfigs)
{
$this->dynamicEndpointConfigs = $dynamicEndpointConfigs;
}
/**
* @return DynamicEndpointConfig[]
*/
public function getDynamicEndpointConfigs()
{
return $this->dynamicEndpointConfigs;
}
/**
* The statically loaded endpoint configs.
*
* @param StaticEndpointConfig[] $staticEndpointConfigs
*/
public function setStaticEndpointConfigs($staticEndpointConfigs)
{
$this->staticEndpointConfigs = $staticEndpointConfigs;
}
/**
* @return StaticEndpointConfig[]
*/
public function getStaticEndpointConfigs()
{
return $this->staticEndpointConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointsConfigDump::class, 'Google_Service_TrafficDirectorService_EndpointsConfigDump');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class EnvoyInternalAddress extends \Google\Model
{
/**
* Specifies an endpoint identifier to distinguish between multiple endpoints
* for the same internal listener in a single upstream pool. Only used in the
* upstream addresses for tracking changes to individual endpoints. This, for
* example, may be set to the final destination IP for the target internal
* listener.
*
* @var string
*/
public $endpointId;
/**
* Specifies the :ref:`name ` of the internal listener.
*
* @var string
*/
public $serverListenerName;
/**
* Specifies an endpoint identifier to distinguish between multiple endpoints
* for the same internal listener in a single upstream pool. Only used in the
* upstream addresses for tracking changes to individual endpoints. This, for
* example, may be set to the final destination IP for the target internal
* listener.
*
* @param string $endpointId
*/
public function setEndpointId($endpointId)
{
$this->endpointId = $endpointId;
}
/**
* @return string
*/
public function getEndpointId()
{
return $this->endpointId;
}
/**
* Specifies the :ref:`name ` of the internal listener.
*
* @param string $serverListenerName
*/
public function setServerListenerName($serverListenerName)
{
$this->serverListenerName = $serverListenerName;
}
/**
* @return string
*/
public function getServerListenerName()
{
return $this->serverListenerName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnvoyInternalAddress::class, 'Google_Service_TrafficDirectorService_EnvoyInternalAddress');

View File

@@ -0,0 +1,172 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class Extension extends \Google\Collection
{
protected $collection_key = 'typeUrls';
/**
* Category of the extension. Extension category names use reverse DNS
* notation. For instance "envoy.filters.listener" for Envoy's built-in
* listener filters or "com.acme.filters.http" for HTTP filters from acme.com
* vendor. [#comment:
*
* @var string
*/
public $category;
/**
* Indicates that the extension is present but was disabled via dynamic
* configuration.
*
* @var bool
*/
public $disabled;
/**
* This is the name of the Envoy filter as specified in the Envoy
* configuration, e.g. envoy.filters.http.router, com.acme.widget.
*
* @var string
*/
public $name;
/**
* [#not-implemented-hide:] Type descriptor of extension configuration proto.
* [#comment:
*
* @deprecated
* @var string
*/
public $typeDescriptor;
/**
* Type URLs of extension configuration protos.
*
* @var string[]
*/
public $typeUrls;
protected $versionType = BuildVersion::class;
protected $versionDataType = '';
/**
* Category of the extension. Extension category names use reverse DNS
* notation. For instance "envoy.filters.listener" for Envoy's built-in
* listener filters or "com.acme.filters.http" for HTTP filters from acme.com
* vendor. [#comment:
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Indicates that the extension is present but was disabled via dynamic
* configuration.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* This is the name of the Envoy filter as specified in the Envoy
* configuration, e.g. envoy.filters.http.router, com.acme.widget.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* [#not-implemented-hide:] Type descriptor of extension configuration proto.
* [#comment:
*
* @deprecated
* @param string $typeDescriptor
*/
public function setTypeDescriptor($typeDescriptor)
{
$this->typeDescriptor = $typeDescriptor;
}
/**
* @deprecated
* @return string
*/
public function getTypeDescriptor()
{
return $this->typeDescriptor;
}
/**
* Type URLs of extension configuration protos.
*
* @param string[] $typeUrls
*/
public function setTypeUrls($typeUrls)
{
$this->typeUrls = $typeUrls;
}
/**
* @return string[]
*/
public function getTypeUrls()
{
return $this->typeUrls;
}
/**
* The version is a property of the extension and maintained independently of
* other extensions and the Envoy API. This field is not set when extension
* did not provide version information.
*
* @param BuildVersion $version
*/
public function setVersion(BuildVersion $version)
{
$this->version = $version;
}
/**
* @return BuildVersion
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Extension::class, 'Google_Service_TrafficDirectorService_Extension');

View File

@@ -0,0 +1,297 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class GenericXdsConfig extends \Google\Model
{
/**
* Resource status is not available/unknown.
*/
public const CLIENT_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Client requested this resource but hasn't received any update from
* management server. The client will not fail requests, but will queue them
* until update arrives or the client times out waiting for the resource.
*/
public const CLIENT_STATUS_REQUESTED = 'REQUESTED';
/**
* This resource has been requested by the client but has either not been
* delivered by the server or was previously delivered by the server and then
* subsequently removed from resources provided by the server. For more
* information, please refer to the :ref:`"Knowing When a Requested Resource
* Does Not Exist" ` section.
*/
public const CLIENT_STATUS_DOES_NOT_EXIST = 'DOES_NOT_EXIST';
/**
* Client received this resource and replied with ACK.
*/
public const CLIENT_STATUS_ACKED = 'ACKED';
/**
* Client received this resource and replied with NACK.
*/
public const CLIENT_STATUS_NACKED = 'NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_RECEIVED_ERROR = 'RECEIVED_ERROR';
/**
* Client timed out waiting for the resource from the control plane.
*/
public const CLIENT_STATUS_TIMEOUT = 'TIMEOUT';
/**
* Status info is not available/unknown.
*/
public const CONFIG_STATUS_UNKNOWN = 'UNKNOWN';
/**
* Management server has sent the config to client and received ACK.
*/
public const CONFIG_STATUS_SYNCED = 'SYNCED';
/**
* Config is not sent.
*/
public const CONFIG_STATUS_NOT_SENT = 'NOT_SENT';
/**
* Management server has sent the config to client but hasnt received
* ACK/NACK.
*/
public const CONFIG_STATUS_STALE = 'STALE';
/**
* Management server has sent the config to client but received NACK. The
* attached config dump will be the latest config (the rejected one), since it
* is the persisted version in the management server.
*/
public const CONFIG_STATUS_ERROR = 'ERROR';
/**
* Per xDS resource status from the view of a xDS client
*
* @var string
*/
public $clientStatus;
/**
* Per xDS resource config status. It is generated by management servers. It
* will not be present if the CSDS server is an xDS client.
*
* @var string
*/
public $configStatus;
protected $errorStateType = UpdateFailureState::class;
protected $errorStateDataType = '';
/**
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
* @var bool
*/
public $isStaticResource;
/**
* Timestamp when the xDS resource was last updated
*
* @var string
*/
public $lastUpdated;
/**
* Name of the xDS resource
*
* @var string
*/
public $name;
/**
* Type_url represents the fully qualified name of xDS resource type like
* envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
* @var string
*/
public $typeUrl;
/**
* This is the :ref:`version_info ` in the last processed xDS discovery
* response. If there are only static bootstrap listeners, this field will be
* ""
*
* @var string
*/
public $versionInfo;
/**
* The xDS resource config. Actual content depends on the type
*
* @var array[]
*/
public $xdsConfig;
/**
* Per xDS resource status from the view of a xDS client
*
* Accepted values: UNKNOWN, REQUESTED, DOES_NOT_EXIST, ACKED, NACKED,
* RECEIVED_ERROR, TIMEOUT
*
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* Per xDS resource config status. It is generated by management servers. It
* will not be present if the CSDS server is an xDS client.
*
* Accepted values: UNKNOWN, SYNCED, NOT_SENT, STALE, ERROR
*
* @param self::CONFIG_STATUS_* $configStatus
*/
public function setConfigStatus($configStatus)
{
$this->configStatus = $configStatus;
}
/**
* @return self::CONFIG_STATUS_*
*/
public function getConfigStatus()
{
return $this->configStatus;
}
/**
* Set if the last update failed, cleared after the next successful update.
* The *error_state* field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty. [#not-implemented-hide:]
*
* @param UpdateFailureState $errorState
*/
public function setErrorState(UpdateFailureState $errorState)
{
$this->errorState = $errorState;
}
/**
* @return UpdateFailureState
*/
public function getErrorState()
{
return $this->errorState;
}
/**
* Is static resource is true if it is specified in the config supplied
* through the file at the startup.
*
* @param bool $isStaticResource
*/
public function setIsStaticResource($isStaticResource)
{
$this->isStaticResource = $isStaticResource;
}
/**
* @return bool
*/
public function getIsStaticResource()
{
return $this->isStaticResource;
}
/**
* Timestamp when the xDS resource was last updated
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* Name of the xDS resource
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Type_url represents the fully qualified name of xDS resource type like
* envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
*
* @param string $typeUrl
*/
public function setTypeUrl($typeUrl)
{
$this->typeUrl = $typeUrl;
}
/**
* @return string
*/
public function getTypeUrl()
{
return $this->typeUrl;
}
/**
* This is the :ref:`version_info ` in the last processed xDS discovery
* response. If there are only static bootstrap listeners, this field will be
* ""
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
/**
* The xDS resource config. Actual content depends on the type
*
* @param array[] $xdsConfig
*/
public function setXdsConfig($xdsConfig)
{
$this->xdsConfig = $xdsConfig;
}
/**
* @return array[]
*/
public function getXdsConfig()
{
return $this->xdsConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenericXdsConfig::class, 'Google_Service_TrafficDirectorService_GenericXdsConfig');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class GoogleRE2 extends \Google\Model
{
/**
* This field controls the RE2 "program size" which is a rough estimate of how
* complex a compiled regex is to evaluate. A regex that has a program size
* greater than the configured value will fail to compile. In this case, the
* configured max program size can be increased or the regex can be
* simplified. If not specified, the default is 100. This field is deprecated;
* regexp validation should be performed on the management server instead of
* being done by each individual client. .. note:: Although this field is
* deprecated, the program size will still be checked against the global
* ``re2.max_program_size.error_level`` runtime value.
*
* @deprecated
* @var string
*/
public $maxProgramSize;
/**
* This field controls the RE2 "program size" which is a rough estimate of how
* complex a compiled regex is to evaluate. A regex that has a program size
* greater than the configured value will fail to compile. In this case, the
* configured max program size can be increased or the regex can be
* simplified. If not specified, the default is 100. This field is deprecated;
* regexp validation should be performed on the management server instead of
* being done by each individual client. .. note:: Although this field is
* deprecated, the program size will still be checked against the global
* ``re2.max_program_size.error_level`` runtime value.
*
* @deprecated
* @param string $maxProgramSize
*/
public function setMaxProgramSize($maxProgramSize)
{
$this->maxProgramSize = $maxProgramSize;
}
/**
* @deprecated
* @return string
*/
public function getMaxProgramSize()
{
return $this->maxProgramSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleRE2::class, 'Google_Service_TrafficDirectorService_GoogleRE2');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class InlineScopedRouteConfigs extends \Google\Collection
{
protected $collection_key = 'scopedRouteConfigs';
/**
* The timestamp when the scoped route config set was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The name assigned to the scoped route configurations.
*
* @var string
*/
public $name;
/**
* The scoped route configurations.
*
* @var array[]
*/
public $scopedRouteConfigs;
/**
* The timestamp when the scoped route config set was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The name assigned to the scoped route configurations.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The scoped route configurations.
*
* @param array[] $scopedRouteConfigs
*/
public function setScopedRouteConfigs($scopedRouteConfigs)
{
$this->scopedRouteConfigs = $scopedRouteConfigs;
}
/**
* @return array[]
*/
public function getScopedRouteConfigs()
{
return $this->scopedRouteConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InlineScopedRouteConfigs::class, 'Google_Service_TrafficDirectorService_InlineScopedRouteConfigs');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ListMatcher extends \Google\Model
{
protected $oneOfType = ValueMatcher::class;
protected $oneOfDataType = '';
/**
* If specified, at least one of the values in the list must match the value
* specified.
*
* @param ValueMatcher $oneOf
*/
public function setOneOf(ValueMatcher $oneOf)
{
$this->oneOf = $oneOf;
}
/**
* @return ValueMatcher
*/
public function getOneOf()
{
return $this->oneOf;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMatcher::class, 'Google_Service_TrafficDirectorService_ListMatcher');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ListenersConfigDump extends \Google\Collection
{
protected $collection_key = 'staticListeners';
protected $dynamicListenersType = DynamicListener::class;
protected $dynamicListenersDataType = 'array';
protected $staticListenersType = StaticListener::class;
protected $staticListenersDataType = 'array';
/**
* This is the :ref:`version_info ` in the last processed LDS discovery
* response. If there are only static bootstrap listeners, this field will be
* "".
*
* @var string
*/
public $versionInfo;
/**
* State for any warming, active, or draining listeners.
*
* @param DynamicListener[] $dynamicListeners
*/
public function setDynamicListeners($dynamicListeners)
{
$this->dynamicListeners = $dynamicListeners;
}
/**
* @return DynamicListener[]
*/
public function getDynamicListeners()
{
return $this->dynamicListeners;
}
/**
* The statically loaded listener configs.
*
* @param StaticListener[] $staticListeners
*/
public function setStaticListeners($staticListeners)
{
$this->staticListeners = $staticListeners;
}
/**
* @return StaticListener[]
*/
public function getStaticListeners()
{
return $this->staticListeners;
}
/**
* This is the :ref:`version_info ` in the last processed LDS discovery
* response. If there are only static bootstrap listeners, this field will be
* "".
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListenersConfigDump::class, 'Google_Service_TrafficDirectorService_ListenersConfigDump');

View File

@@ -0,0 +1,104 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class Locality extends \Google\Model
{
/**
* Region this :ref:`zone ` belongs to.
*
* @var string
*/
public $region;
/**
* When used for locality of upstream hosts, this field further splits zone
* into smaller chunks of sub-zones so they can be load balanced
* independently.
*
* @var string
*/
public $subZone;
/**
* Defines the local service zone where Envoy is running. Though optional, it
* should be set if discovery service routing is used and the discovery
* service exposes :ref:`zone data `, either in this message or via
* :option:`--service-zone`. The meaning of zone is context dependent, e.g.
* `Availability Zone (AZ) `_ on AWS, `Zone `_ on GCP, etc.
*
* @var string
*/
public $zone;
/**
* Region this :ref:`zone ` belongs to.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* When used for locality of upstream hosts, this field further splits zone
* into smaller chunks of sub-zones so they can be load balanced
* independently.
*
* @param string $subZone
*/
public function setSubZone($subZone)
{
$this->subZone = $subZone;
}
/**
* @return string
*/
public function getSubZone()
{
return $this->subZone;
}
/**
* Defines the local service zone where Envoy is running. Though optional, it
* should be set if discovery service routing is used and the discovery
* service exposes :ref:`zone data `, either in this message or via
* :option:`--service-zone`. The meaning of zone is context dependent, e.g.
* `Availability Zone (AZ) `_ on AWS, `Zone `_ on GCP, etc.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locality::class, 'Google_Service_TrafficDirectorService_Locality');

View File

@@ -0,0 +1,288 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class Node extends \Google\Collection
{
protected $collection_key = 'listeningAddresses';
/**
* Client feature support list. These are well known features described in the
* Envoy API repository for a given major version of an API. Client features
* use reverse DNS naming scheme, for example ``com.acme.feature``. See
* :ref:`the list of features ` that xDS client may support.
*
* @var string[]
*/
public $clientFeatures;
/**
* Defines the local service cluster name where Envoy is running. Though
* optional, it should be set if any of the following features are used:
* :ref:`statsd `, :ref:`health check cluster verification `, :ref:`runtime
* override directory `, :ref:`user agent addition `, :ref:`HTTP global rate
* limiting `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this message
* or via :option:`--service-cluster`.
*
* @var string
*/
public $cluster;
protected $dynamicParametersType = ContextParams::class;
protected $dynamicParametersDataType = 'map';
protected $extensionsType = Extension::class;
protected $extensionsDataType = 'array';
/**
* An opaque node identifier for the Envoy node. This also provides the local
* service node name. It should be set if any of the following features are
* used: :ref:`statsd `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this
* message or via :option:`--service-node`.
*
* @var string
*/
public $id;
protected $listeningAddressesType = Address::class;
protected $listeningAddressesDataType = 'array';
protected $localityType = Locality::class;
protected $localityDataType = '';
/**
* Opaque metadata extending the node identifier. Envoy will pass this
* directly to the management server.
*
* @var array[]
*/
public $metadata;
protected $userAgentBuildVersionType = BuildVersion::class;
protected $userAgentBuildVersionDataType = '';
/**
* Free-form string that identifies the entity requesting config. E.g. "envoy"
* or "grpc"
*
* @var string
*/
public $userAgentName;
/**
* Free-form string that identifies the version of the entity requesting
* config. E.g. "1.12.2" or "abcd1234", or "SpecialEnvoyBuild"
*
* @var string
*/
public $userAgentVersion;
/**
* Client feature support list. These are well known features described in the
* Envoy API repository for a given major version of an API. Client features
* use reverse DNS naming scheme, for example ``com.acme.feature``. See
* :ref:`the list of features ` that xDS client may support.
*
* @param string[] $clientFeatures
*/
public function setClientFeatures($clientFeatures)
{
$this->clientFeatures = $clientFeatures;
}
/**
* @return string[]
*/
public function getClientFeatures()
{
return $this->clientFeatures;
}
/**
* Defines the local service cluster name where Envoy is running. Though
* optional, it should be set if any of the following features are used:
* :ref:`statsd `, :ref:`health check cluster verification `, :ref:`runtime
* override directory `, :ref:`user agent addition `, :ref:`HTTP global rate
* limiting `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this message
* or via :option:`--service-cluster`.
*
* @param string $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return string
*/
public function getCluster()
{
return $this->cluster;
}
/**
* Map from xDS resource type URL to dynamic context parameters. These may
* vary at runtime (unlike other fields in this message). For example, the xDS
* client may have a shard identifier that changes during the lifetime of the
* xDS client. In Envoy, this would be achieved by updating the dynamic
* context on the Server::Instance's LocalInfo context provider. The shard ID
* dynamic parameter then appears in this field during future discovery
* requests.
*
* @param ContextParams[] $dynamicParameters
*/
public function setDynamicParameters($dynamicParameters)
{
$this->dynamicParameters = $dynamicParameters;
}
/**
* @return ContextParams[]
*/
public function getDynamicParameters()
{
return $this->dynamicParameters;
}
/**
* List of extensions and their versions supported by the node.
*
* @param Extension[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return Extension[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* An opaque node identifier for the Envoy node. This also provides the local
* service node name. It should be set if any of the following features are
* used: :ref:`statsd `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this
* message or via :option:`--service-node`.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Known listening ports on the node as a generic hint to the management
* server for filtering :ref:`listeners ` to be returned. For example, if
* there is a listener bound to port 80, the list can optionally contain the
* SocketAddress ``(0.0.0.0,80)``. The field is optional and just a hint.
*
* @deprecated
* @param Address[] $listeningAddresses
*/
public function setListeningAddresses($listeningAddresses)
{
$this->listeningAddresses = $listeningAddresses;
}
/**
* @deprecated
* @return Address[]
*/
public function getListeningAddresses()
{
return $this->listeningAddresses;
}
/**
* Locality specifying where the Envoy instance is running.
*
* @param Locality $locality
*/
public function setLocality(Locality $locality)
{
$this->locality = $locality;
}
/**
* @return Locality
*/
public function getLocality()
{
return $this->locality;
}
/**
* Opaque metadata extending the node identifier. Envoy will pass this
* directly to the management server.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Structured version of the entity requesting config.
*
* @param BuildVersion $userAgentBuildVersion
*/
public function setUserAgentBuildVersion(BuildVersion $userAgentBuildVersion)
{
$this->userAgentBuildVersion = $userAgentBuildVersion;
}
/**
* @return BuildVersion
*/
public function getUserAgentBuildVersion()
{
return $this->userAgentBuildVersion;
}
/**
* Free-form string that identifies the entity requesting config. E.g. "envoy"
* or "grpc"
*
* @param string $userAgentName
*/
public function setUserAgentName($userAgentName)
{
$this->userAgentName = $userAgentName;
}
/**
* @return string
*/
public function getUserAgentName()
{
return $this->userAgentName;
}
/**
* Free-form string that identifies the version of the entity requesting
* config. E.g. "1.12.2" or "abcd1234", or "SpecialEnvoyBuild"
*
* @param string $userAgentVersion
*/
public function setUserAgentVersion($userAgentVersion)
{
$this->userAgentVersion = $userAgentVersion;
}
/**
* @return string
*/
public function getUserAgentVersion()
{
return $this->userAgentVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Node::class, 'Google_Service_TrafficDirectorService_Node');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class NodeMatcher extends \Google\Collection
{
protected $collection_key = 'nodeMetadatas';
protected $nodeIdType = StringMatcher::class;
protected $nodeIdDataType = '';
protected $nodeMetadatasType = StructMatcher::class;
protected $nodeMetadatasDataType = 'array';
/**
* Specifies match criteria on the node id.
*
* @param StringMatcher $nodeId
*/
public function setNodeId(StringMatcher $nodeId)
{
$this->nodeId = $nodeId;
}
/**
* @return StringMatcher
*/
public function getNodeId()
{
return $this->nodeId;
}
/**
* Specifies match criteria on the node metadata.
*
* @param StructMatcher[] $nodeMetadatas
*/
public function setNodeMetadatas($nodeMetadatas)
{
$this->nodeMetadatas = $nodeMetadatas;
}
/**
* @return StructMatcher[]
*/
public function getNodeMetadatas()
{
return $this->nodeMetadatas;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NodeMatcher::class, 'Google_Service_TrafficDirectorService_NodeMatcher');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class NullMatch extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NullMatch::class, 'Google_Service_TrafficDirectorService_NullMatch');

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class OrMatcher extends \Google\Collection
{
protected $collection_key = 'valueMatchers';
protected $valueMatchersType = ValueMatcher::class;
protected $valueMatchersDataType = 'array';
/**
* @param ValueMatcher[] $valueMatchers
*/
public function setValueMatchers($valueMatchers)
{
$this->valueMatchers = $valueMatchers;
}
/**
* @return ValueMatcher[]
*/
public function getValueMatchers()
{
return $this->valueMatchers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrMatcher::class, 'Google_Service_TrafficDirectorService_OrMatcher');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class PathSegment extends \Google\Model
{
/**
* If specified, use the key to retrieve the value in a Struct.
*
* @var string
*/
public $key;
/**
* If specified, use the key to retrieve the value in a Struct.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PathSegment::class, 'Google_Service_TrafficDirectorService_PathSegment');

View File

@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class PerXdsConfig extends \Google\Model
{
/**
* Config status is not available/unknown.
*/
public const CLIENT_STATUS_CLIENT_UNKNOWN = 'CLIENT_UNKNOWN';
/**
* Client requested the config but hasn't received any config from management
* server yet.
*/
public const CLIENT_STATUS_CLIENT_REQUESTED = 'CLIENT_REQUESTED';
/**
* Client received the config and replied with ACK.
*/
public const CLIENT_STATUS_CLIENT_ACKED = 'CLIENT_ACKED';
/**
* Client received the config and replied with NACK. Notably, the attached
* config dump is not the NACKed version, but the most recent accepted one. If
* no config is accepted yet, the attached config dump will be empty.
*/
public const CLIENT_STATUS_CLIENT_NACKED = 'CLIENT_NACKED';
/**
* Client received an error from the control plane. The attached config dump
* is the most recent accepted one. If no config is accepted yet, the attached
* config dump will be empty.
*/
public const CLIENT_STATUS_CLIENT_RECEIVED_ERROR = 'CLIENT_RECEIVED_ERROR';
/**
* Status info is not available/unknown.
*/
public const STATUS_UNKNOWN = 'UNKNOWN';
/**
* Management server has sent the config to client and received ACK.
*/
public const STATUS_SYNCED = 'SYNCED';
/**
* Config is not sent.
*/
public const STATUS_NOT_SENT = 'NOT_SENT';
/**
* Management server has sent the config to client but hasnt received
* ACK/NACK.
*/
public const STATUS_STALE = 'STALE';
/**
* Management server has sent the config to client but received NACK. The
* attached config dump will be the latest config (the rejected one), since it
* is the persisted version in the management server.
*/
public const STATUS_ERROR = 'ERROR';
/**
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config. ..
* attention:: This field is deprecated. Use :ref:`ClientResourceStatus ` for
* per-resource config status instead.
*
* @deprecated
* @var string
*/
public $clientStatus;
protected $clusterConfigType = ClustersConfigDump::class;
protected $clusterConfigDataType = '';
protected $endpointConfigType = EndpointsConfigDump::class;
protected $endpointConfigDataType = '';
protected $listenerConfigType = ListenersConfigDump::class;
protected $listenerConfigDataType = '';
protected $routeConfigType = RoutesConfigDump::class;
protected $routeConfigDataType = '';
protected $scopedRouteConfigType = ScopedRoutesConfigDump::class;
protected $scopedRouteConfigDataType = '';
/**
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
* @var string
*/
public $status;
/**
* Client config status is populated by xDS clients. Will not be present if
* the CSDS server is an xDS server. No matter what the client config status
* is, xDS clients should always dump the most recent accepted xDS config. ..
* attention:: This field is deprecated. Use :ref:`ClientResourceStatus ` for
* per-resource config status instead.
*
* Accepted values: CLIENT_UNKNOWN, CLIENT_REQUESTED, CLIENT_ACKED,
* CLIENT_NACKED, CLIENT_RECEIVED_ERROR
*
* @deprecated
* @param self::CLIENT_STATUS_* $clientStatus
*/
public function setClientStatus($clientStatus)
{
$this->clientStatus = $clientStatus;
}
/**
* @deprecated
* @return self::CLIENT_STATUS_*
*/
public function getClientStatus()
{
return $this->clientStatus;
}
/**
* @param ClustersConfigDump $clusterConfig
*/
public function setClusterConfig(ClustersConfigDump $clusterConfig)
{
$this->clusterConfig = $clusterConfig;
}
/**
* @return ClustersConfigDump
*/
public function getClusterConfig()
{
return $this->clusterConfig;
}
/**
* @param EndpointsConfigDump $endpointConfig
*/
public function setEndpointConfig(EndpointsConfigDump $endpointConfig)
{
$this->endpointConfig = $endpointConfig;
}
/**
* @return EndpointsConfigDump
*/
public function getEndpointConfig()
{
return $this->endpointConfig;
}
/**
* @param ListenersConfigDump $listenerConfig
*/
public function setListenerConfig(ListenersConfigDump $listenerConfig)
{
$this->listenerConfig = $listenerConfig;
}
/**
* @return ListenersConfigDump
*/
public function getListenerConfig()
{
return $this->listenerConfig;
}
/**
* @param RoutesConfigDump $routeConfig
*/
public function setRouteConfig(RoutesConfigDump $routeConfig)
{
$this->routeConfig = $routeConfig;
}
/**
* @return RoutesConfigDump
*/
public function getRouteConfig()
{
return $this->routeConfig;
}
/**
* @param ScopedRoutesConfigDump $scopedRouteConfig
*/
public function setScopedRouteConfig(ScopedRoutesConfigDump $scopedRouteConfig)
{
$this->scopedRouteConfig = $scopedRouteConfig;
}
/**
* @return ScopedRoutesConfigDump
*/
public function getScopedRouteConfig()
{
return $this->scopedRouteConfig;
}
/**
* Config status generated by management servers. Will not be present if the
* CSDS server is an xDS client.
*
* Accepted values: UNKNOWN, SYNCED, NOT_SENT, STALE, ERROR
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PerXdsConfig::class, 'Google_Service_TrafficDirectorService_PerXdsConfig');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class Pipe extends \Google\Model
{
/**
* The mode for the Pipe. Not applicable for abstract sockets.
*
* @var string
*/
public $mode;
/**
* Unix Domain Socket path. On Linux, paths starting with '@' will use the
* abstract namespace. The starting '@' is replaced by a null byte by Envoy.
* Paths starting with '@' will result in an error in environments other than
* Linux.
*
* @var string
*/
public $path;
/**
* The mode for the Pipe. Not applicable for abstract sockets.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* Unix Domain Socket path. On Linux, paths starting with '@' will use the
* abstract namespace. The starting '@' is replaced by a null byte by Envoy.
* Paths starting with '@' will result in an error in environments other than
* Linux.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pipe::class, 'Google_Service_TrafficDirectorService_Pipe');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class RegexMatcher extends \Google\Model
{
protected $googleRe2Type = GoogleRE2::class;
protected $googleRe2DataType = '';
/**
* The regex match string. The string must be supported by the configured
* engine. The regex is matched against the full string, not as a partial
* match.
*
* @var string
*/
public $regex;
/**
* Google's RE2 regex engine.
*
* @deprecated
* @param GoogleRE2 $googleRe2
*/
public function setGoogleRe2(GoogleRE2 $googleRe2)
{
$this->googleRe2 = $googleRe2;
}
/**
* @deprecated
* @return GoogleRE2
*/
public function getGoogleRe2()
{
return $this->googleRe2;
}
/**
* The regex match string. The string must be supported by the configured
* engine. The regex is matched against the full string, not as a partial
* match.
*
* @param string $regex
*/
public function setRegex($regex)
{
$this->regex = $regex;
}
/**
* @return string
*/
public function getRegex()
{
return $this->regex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegexMatcher::class, 'Google_Service_TrafficDirectorService_RegexMatcher');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService\Resource;
use Google\Service\TrafficDirectorService\ClientStatusRequest;
use Google\Service\TrafficDirectorService\ClientStatusResponse;
/**
* The "discovery" collection of methods.
* Typical usage is:
* <code>
* $trafficdirectorService = new Google\Service\TrafficDirectorService(...);
* $discovery = $trafficdirectorService->discovery;
* </code>
*/
class Discovery extends \Google\Service\Resource
{
/**
* (discovery.client_status)
*
* @param ClientStatusRequest $postBody
* @param array $optParams Optional parameters.
* @return ClientStatusResponse
* @throws \Google\Service\Exception
*/
public function client_status(ClientStatusRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('client_status', [$params], ClientStatusResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Discovery::class, 'Google_Service_TrafficDirectorService_Resource_Discovery');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class RoutesConfigDump extends \Google\Collection
{
protected $collection_key = 'staticRouteConfigs';
protected $dynamicRouteConfigsType = DynamicRouteConfig::class;
protected $dynamicRouteConfigsDataType = 'array';
protected $staticRouteConfigsType = StaticRouteConfig::class;
protected $staticRouteConfigsDataType = 'array';
/**
* The dynamically loaded route configs.
*
* @param DynamicRouteConfig[] $dynamicRouteConfigs
*/
public function setDynamicRouteConfigs($dynamicRouteConfigs)
{
$this->dynamicRouteConfigs = $dynamicRouteConfigs;
}
/**
* @return DynamicRouteConfig[]
*/
public function getDynamicRouteConfigs()
{
return $this->dynamicRouteConfigs;
}
/**
* The statically loaded route configs.
*
* @param StaticRouteConfig[] $staticRouteConfigs
*/
public function setStaticRouteConfigs($staticRouteConfigs)
{
$this->staticRouteConfigs = $staticRouteConfigs;
}
/**
* @return StaticRouteConfig[]
*/
public function getStaticRouteConfigs()
{
return $this->staticRouteConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RoutesConfigDump::class, 'Google_Service_TrafficDirectorService_RoutesConfigDump');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ScopedRoutesConfigDump extends \Google\Collection
{
protected $collection_key = 'inlineScopedRouteConfigs';
protected $dynamicScopedRouteConfigsType = DynamicScopedRouteConfigs::class;
protected $dynamicScopedRouteConfigsDataType = 'array';
protected $inlineScopedRouteConfigsType = InlineScopedRouteConfigs::class;
protected $inlineScopedRouteConfigsDataType = 'array';
/**
* The dynamically loaded scoped route configs.
*
* @param DynamicScopedRouteConfigs[] $dynamicScopedRouteConfigs
*/
public function setDynamicScopedRouteConfigs($dynamicScopedRouteConfigs)
{
$this->dynamicScopedRouteConfigs = $dynamicScopedRouteConfigs;
}
/**
* @return DynamicScopedRouteConfigs[]
*/
public function getDynamicScopedRouteConfigs()
{
return $this->dynamicScopedRouteConfigs;
}
/**
* The statically loaded scoped route configs.
*
* @param InlineScopedRouteConfigs[] $inlineScopedRouteConfigs
*/
public function setInlineScopedRouteConfigs($inlineScopedRouteConfigs)
{
$this->inlineScopedRouteConfigs = $inlineScopedRouteConfigs;
}
/**
* @return InlineScopedRouteConfigs[]
*/
public function getInlineScopedRouteConfigs()
{
return $this->inlineScopedRouteConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScopedRoutesConfigDump::class, 'Google_Service_TrafficDirectorService_ScopedRoutesConfigDump');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class SemanticVersion extends \Google\Model
{
/**
* @var string
*/
public $majorNumber;
/**
* @var string
*/
public $minorNumber;
/**
* @var string
*/
public $patch;
/**
* @param string $majorNumber
*/
public function setMajorNumber($majorNumber)
{
$this->majorNumber = $majorNumber;
}
/**
* @return string
*/
public function getMajorNumber()
{
return $this->majorNumber;
}
/**
* @param string $minorNumber
*/
public function setMinorNumber($minorNumber)
{
$this->minorNumber = $minorNumber;
}
/**
* @return string
*/
public function getMinorNumber()
{
return $this->minorNumber;
}
/**
* @param string $patch
*/
public function setPatch($patch)
{
$this->patch = $patch;
}
/**
* @return string
*/
public function getPatch()
{
return $this->patch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SemanticVersion::class, 'Google_Service_TrafficDirectorService_SemanticVersion');

View File

@@ -0,0 +1,218 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class SocketAddress extends \Google\Model
{
public const PROTOCOL_TCP = 'TCP';
public const PROTOCOL_UDP = 'UDP';
/**
* The address for this socket. :ref:`Listeners ` will bind to the address. An
* empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any
* address. [#comment:TODO(zuercher) reinstate when implemented: It is
* possible to distinguish a Listener address via the prefix/suffix matching
* in :ref:`FilterChainMatch `.] When used within an upstream :ref:`BindConfig
* `, the address controls the source address of outbound connections. For
* :ref:`clusters `, the cluster type determines whether the address must be
* an IP (``STATIC`` or ``EDS`` clusters) or a hostname resolved by DNS
* (``STRICT_DNS`` or ``LOGICAL_DNS`` clusters). Address resolution can be
* customized via :ref:`resolver_name `.
*
* @var string
*/
public $address;
/**
* When binding to an IPv6 address above, this enables `IPv4 compatibility `_.
* Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4
* addresses mapped into IPv6 space as ``::FFFF:``.
*
* @var bool
*/
public $ipv4Compat;
/**
* This is only valid if :ref:`resolver_name ` is specified below and the
* named resolver is capable of named port resolution.
*
* @var string
*/
public $namedPort;
/**
* Filepath that specifies the Linux network namespace this socket will be
* created in (see ``man 7 network_namespaces``). If this field is set, Envoy
* will create the socket in the specified network namespace. .. note::
* Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN``
* capability. .. attention:: Network namespaces are only configurable on
* Linux. Otherwise, this field has no effect.
*
* @var string
*/
public $networkNamespaceFilepath;
/**
* @var string
*/
public $portValue;
/**
* @var string
*/
public $protocol;
/**
* The name of the custom resolver. This must have been registered with Envoy.
* If this is empty, a context dependent default applies. If the address is a
* concrete IP address, no resolution will occur. If address is a hostname
* this should be set for resolution other than DNS. Specifying a custom
* resolver with ``STRICT_DNS`` or ``LOGICAL_DNS`` will generate an error at
* runtime.
*
* @var string
*/
public $resolverName;
/**
* The address for this socket. :ref:`Listeners ` will bind to the address. An
* empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any
* address. [#comment:TODO(zuercher) reinstate when implemented: It is
* possible to distinguish a Listener address via the prefix/suffix matching
* in :ref:`FilterChainMatch `.] When used within an upstream :ref:`BindConfig
* `, the address controls the source address of outbound connections. For
* :ref:`clusters `, the cluster type determines whether the address must be
* an IP (``STATIC`` or ``EDS`` clusters) or a hostname resolved by DNS
* (``STRICT_DNS`` or ``LOGICAL_DNS`` clusters). Address resolution can be
* customized via :ref:`resolver_name `.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* When binding to an IPv6 address above, this enables `IPv4 compatibility `_.
* Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4
* addresses mapped into IPv6 space as ``::FFFF:``.
*
* @param bool $ipv4Compat
*/
public function setIpv4Compat($ipv4Compat)
{
$this->ipv4Compat = $ipv4Compat;
}
/**
* @return bool
*/
public function getIpv4Compat()
{
return $this->ipv4Compat;
}
/**
* This is only valid if :ref:`resolver_name ` is specified below and the
* named resolver is capable of named port resolution.
*
* @param string $namedPort
*/
public function setNamedPort($namedPort)
{
$this->namedPort = $namedPort;
}
/**
* @return string
*/
public function getNamedPort()
{
return $this->namedPort;
}
/**
* Filepath that specifies the Linux network namespace this socket will be
* created in (see ``man 7 network_namespaces``). If this field is set, Envoy
* will create the socket in the specified network namespace. .. note::
* Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN``
* capability. .. attention:: Network namespaces are only configurable on
* Linux. Otherwise, this field has no effect.
*
* @param string $networkNamespaceFilepath
*/
public function setNetworkNamespaceFilepath($networkNamespaceFilepath)
{
$this->networkNamespaceFilepath = $networkNamespaceFilepath;
}
/**
* @return string
*/
public function getNetworkNamespaceFilepath()
{
return $this->networkNamespaceFilepath;
}
/**
* @param string $portValue
*/
public function setPortValue($portValue)
{
$this->portValue = $portValue;
}
/**
* @return string
*/
public function getPortValue()
{
return $this->portValue;
}
/**
* @param self::PROTOCOL_* $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return self::PROTOCOL_*
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* The name of the custom resolver. This must have been registered with Envoy.
* If this is empty, a context dependent default applies. If the address is a
* concrete IP address, no resolution will occur. If address is a hostname
* this should be set for resolution other than DNS. Specifying a custom
* resolver with ``STRICT_DNS`` or ``LOGICAL_DNS`` will generate an error at
* runtime.
*
* @param string $resolverName
*/
public function setResolverName($resolverName)
{
$this->resolverName = $resolverName;
}
/**
* @return string
*/
public function getResolverName()
{
return $this->resolverName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SocketAddress::class, 'Google_Service_TrafficDirectorService_SocketAddress');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StaticCluster extends \Google\Model
{
/**
* The cluster config.
*
* @var array[]
*/
public $cluster;
/**
* The timestamp when the Cluster was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The cluster config.
*
* @param array[] $cluster
*/
public function setCluster($cluster)
{
$this->cluster = $cluster;
}
/**
* @return array[]
*/
public function getCluster()
{
return $this->cluster;
}
/**
* The timestamp when the Cluster was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StaticCluster::class, 'Google_Service_TrafficDirectorService_StaticCluster');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StaticEndpointConfig extends \Google\Model
{
/**
* The endpoint config.
*
* @var array[]
*/
public $endpointConfig;
/**
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The endpoint config.
*
* @param array[] $endpointConfig
*/
public function setEndpointConfig($endpointConfig)
{
$this->endpointConfig = $endpointConfig;
}
/**
* @return array[]
*/
public function getEndpointConfig()
{
return $this->endpointConfig;
}
/**
* [#not-implemented-hide:] The timestamp when the Endpoint was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StaticEndpointConfig::class, 'Google_Service_TrafficDirectorService_StaticEndpointConfig');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StaticListener extends \Google\Model
{
/**
* The timestamp when the Listener was last successfully updated.
*
* @var string
*/
public $lastUpdated;
/**
* The listener config.
*
* @var array[]
*/
public $listener;
/**
* The timestamp when the Listener was last successfully updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The listener config.
*
* @param array[] $listener
*/
public function setListener($listener)
{
$this->listener = $listener;
}
/**
* @return array[]
*/
public function getListener()
{
return $this->listener;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StaticListener::class, 'Google_Service_TrafficDirectorService_StaticListener');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StaticRouteConfig extends \Google\Model
{
/**
* The timestamp when the Route was last updated.
*
* @var string
*/
public $lastUpdated;
/**
* The route config.
*
* @var array[]
*/
public $routeConfig;
/**
* The timestamp when the Route was last updated.
*
* @param string $lastUpdated
*/
public function setLastUpdated($lastUpdated)
{
$this->lastUpdated = $lastUpdated;
}
/**
* @return string
*/
public function getLastUpdated()
{
return $this->lastUpdated;
}
/**
* The route config.
*
* @param array[] $routeConfig
*/
public function setRouteConfig($routeConfig)
{
$this->routeConfig = $routeConfig;
}
/**
* @return array[]
*/
public function getRouteConfig()
{
return $this->routeConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StaticRouteConfig::class, 'Google_Service_TrafficDirectorService_StaticRouteConfig');

View File

@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StringMatcher extends \Google\Model
{
/**
* The input string must have the substring specified here. .. note:: Empty
* contains match is not allowed, please use ``safe_regex`` instead. Examples:
* * ``abc`` matches the value ``xyz.abc.def``
*
* @var string
*/
public $contains;
protected $customType = TypedExtensionConfig::class;
protected $customDataType = '';
/**
* The input string must match exactly the string specified here. Examples: *
* ``abc`` only matches the value ``abc``.
*
* @var string
*/
public $exact;
/**
* If ``true``, indicates the exact/prefix/suffix/contains matching should be
* case insensitive. This has no effect for the ``safe_regex`` match. For
* example, the matcher ``data`` will match both input string ``Data`` and
* ``data`` if this option is set to ``true``.
*
* @var bool
*/
public $ignoreCase;
/**
* The input string must have the prefix specified here. .. note:: Empty
* prefix match is not allowed, please use ``safe_regex`` instead. Examples: *
* ``abc`` matches the value ``abc.xyz``
*
* @var string
*/
public $prefix;
protected $safeRegexType = RegexMatcher::class;
protected $safeRegexDataType = '';
/**
* The input string must have the suffix specified here. .. note:: Empty
* suffix match is not allowed, please use ``safe_regex`` instead. Examples: *
* ``abc`` matches the value ``xyz.abc``
*
* @var string
*/
public $suffix;
/**
* The input string must have the substring specified here. .. note:: Empty
* contains match is not allowed, please use ``safe_regex`` instead. Examples:
* * ``abc`` matches the value ``xyz.abc.def``
*
* @param string $contains
*/
public function setContains($contains)
{
$this->contains = $contains;
}
/**
* @return string
*/
public function getContains()
{
return $this->contains;
}
/**
* Use an extension as the matcher type. [#extension-category:
* envoy.string_matcher]
*
* @param TypedExtensionConfig $custom
*/
public function setCustom(TypedExtensionConfig $custom)
{
$this->custom = $custom;
}
/**
* @return TypedExtensionConfig
*/
public function getCustom()
{
return $this->custom;
}
/**
* The input string must match exactly the string specified here. Examples: *
* ``abc`` only matches the value ``abc``.
*
* @param string $exact
*/
public function setExact($exact)
{
$this->exact = $exact;
}
/**
* @return string
*/
public function getExact()
{
return $this->exact;
}
/**
* If ``true``, indicates the exact/prefix/suffix/contains matching should be
* case insensitive. This has no effect for the ``safe_regex`` match. For
* example, the matcher ``data`` will match both input string ``Data`` and
* ``data`` if this option is set to ``true``.
*
* @param bool $ignoreCase
*/
public function setIgnoreCase($ignoreCase)
{
$this->ignoreCase = $ignoreCase;
}
/**
* @return bool
*/
public function getIgnoreCase()
{
return $this->ignoreCase;
}
/**
* The input string must have the prefix specified here. .. note:: Empty
* prefix match is not allowed, please use ``safe_regex`` instead. Examples: *
* ``abc`` matches the value ``abc.xyz``
*
* @param string $prefix
*/
public function setPrefix($prefix)
{
$this->prefix = $prefix;
}
/**
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* The input string must match the regular expression specified here.
*
* @param RegexMatcher $safeRegex
*/
public function setSafeRegex(RegexMatcher $safeRegex)
{
$this->safeRegex = $safeRegex;
}
/**
* @return RegexMatcher
*/
public function getSafeRegex()
{
return $this->safeRegex;
}
/**
* The input string must have the suffix specified here. .. note:: Empty
* suffix match is not allowed, please use ``safe_regex`` instead. Examples: *
* ``abc`` matches the value ``xyz.abc``
*
* @param string $suffix
*/
public function setSuffix($suffix)
{
$this->suffix = $suffix;
}
/**
* @return string
*/
public function getSuffix()
{
return $this->suffix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StringMatcher::class, 'Google_Service_TrafficDirectorService_StringMatcher');

View File

@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class StructMatcher extends \Google\Collection
{
protected $collection_key = 'path';
protected $pathType = PathSegment::class;
protected $pathDataType = 'array';
protected $valueType = ValueMatcher::class;
protected $valueDataType = '';
/**
* The path to retrieve the Value from the Struct.
*
* @param PathSegment[] $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return PathSegment[]
*/
public function getPath()
{
return $this->path;
}
/**
* The StructMatcher is matched if the value retrieved by path is matched to
* this value.
*
* @param ValueMatcher $value
*/
public function setValue(ValueMatcher $value)
{
$this->value = $value;
}
/**
* @return ValueMatcher
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StructMatcher::class, 'Google_Service_TrafficDirectorService_StructMatcher');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class TypedExtensionConfig extends \Google\Model
{
/**
* The name of an extension. This is not used to select the extension, instead
* it serves the role of an opaque identifier.
*
* @var string
*/
public $name;
/**
* The typed config for the extension. The type URL will be used to identify
* the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
* URL of *TypedStruct* will be utilized. See the :ref:`extension
* configuration overview ` for further details.
*
* @var array[]
*/
public $typedConfig;
/**
* The name of an extension. This is not used to select the extension, instead
* it serves the role of an opaque identifier.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The typed config for the extension. The type URL will be used to identify
* the extension. In the case that the type URL is *xds.type.v3.TypedStruct*
* (or, for historical reasons, *udpa.type.v1.TypedStruct*), the inner type
* URL of *TypedStruct* will be utilized. See the :ref:`extension
* configuration overview ` for further details.
*
* @param array[] $typedConfig
*/
public function setTypedConfig($typedConfig)
{
$this->typedConfig = $typedConfig;
}
/**
* @return array[]
*/
public function getTypedConfig()
{
return $this->typedConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TypedExtensionConfig::class, 'Google_Service_TrafficDirectorService_TypedExtensionConfig');

View File

@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class UpdateFailureState extends \Google\Model
{
/**
* Details about the last failed update attempt.
*
* @var string
*/
public $details;
/**
* What the component configuration would have been if the update had
* succeeded. This field may not be populated by xDS clients due to storage
* overhead.
*
* @var array[]
*/
public $failedConfiguration;
/**
* Time of the latest failed update attempt.
*
* @var string
*/
public $lastUpdateAttempt;
/**
* This is the version of the rejected resource. [#not-implemented-hide:]
*
* @var string
*/
public $versionInfo;
/**
* Details about the last failed update attempt.
*
* @param string $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string
*/
public function getDetails()
{
return $this->details;
}
/**
* What the component configuration would have been if the update had
* succeeded. This field may not be populated by xDS clients due to storage
* overhead.
*
* @param array[] $failedConfiguration
*/
public function setFailedConfiguration($failedConfiguration)
{
$this->failedConfiguration = $failedConfiguration;
}
/**
* @return array[]
*/
public function getFailedConfiguration()
{
return $this->failedConfiguration;
}
/**
* Time of the latest failed update attempt.
*
* @param string $lastUpdateAttempt
*/
public function setLastUpdateAttempt($lastUpdateAttempt)
{
$this->lastUpdateAttempt = $lastUpdateAttempt;
}
/**
* @return string
*/
public function getLastUpdateAttempt()
{
return $this->lastUpdateAttempt;
}
/**
* This is the version of the rejected resource. [#not-implemented-hide:]
*
* @param string $versionInfo
*/
public function setVersionInfo($versionInfo)
{
$this->versionInfo = $versionInfo;
}
/**
* @return string
*/
public function getVersionInfo()
{
return $this->versionInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateFailureState::class, 'Google_Service_TrafficDirectorService_UpdateFailureState');

View File

@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\TrafficDirectorService;
class ValueMatcher extends \Google\Model
{
/**
* If specified, a match occurs if and only if the target value is a bool
* value and is equal to this field.
*
* @var bool
*/
public $boolMatch;
protected $doubleMatchType = DoubleMatcher::class;
protected $doubleMatchDataType = '';
protected $listMatchType = ListMatcher::class;
protected $listMatchDataType = '';
protected $nullMatchType = NullMatch::class;
protected $nullMatchDataType = '';
protected $orMatchType = OrMatcher::class;
protected $orMatchDataType = '';
/**
* If specified, value match will be performed based on whether the path is
* referring to a valid primitive value in the metadata. If the path is
* referring to a non-primitive value, the result is always not matched.
*
* @var bool
*/
public $presentMatch;
protected $stringMatchType = StringMatcher::class;
protected $stringMatchDataType = '';
/**
* If specified, a match occurs if and only if the target value is a bool
* value and is equal to this field.
*
* @param bool $boolMatch
*/
public function setBoolMatch($boolMatch)
{
$this->boolMatch = $boolMatch;
}
/**
* @return bool
*/
public function getBoolMatch()
{
return $this->boolMatch;
}
/**
* If specified, a match occurs if and only if the target value is a double
* value and is matched to this field.
*
* @param DoubleMatcher $doubleMatch
*/
public function setDoubleMatch(DoubleMatcher $doubleMatch)
{
$this->doubleMatch = $doubleMatch;
}
/**
* @return DoubleMatcher
*/
public function getDoubleMatch()
{
return $this->doubleMatch;
}
/**
* If specified, a match occurs if and only if the target value is a list
* value and is matched to this field.
*
* @param ListMatcher $listMatch
*/
public function setListMatch(ListMatcher $listMatch)
{
$this->listMatch = $listMatch;
}
/**
* @return ListMatcher
*/
public function getListMatch()
{
return $this->listMatch;
}
/**
* If specified, a match occurs if and only if the target value is a
* NullValue.
*
* @param NullMatch $nullMatch
*/
public function setNullMatch(NullMatch $nullMatch)
{
$this->nullMatch = $nullMatch;
}
/**
* @return NullMatch
*/
public function getNullMatch()
{
return $this->nullMatch;
}
/**
* If specified, a match occurs if and only if any of the alternatives in the
* match accept the value.
*
* @param OrMatcher $orMatch
*/
public function setOrMatch(OrMatcher $orMatch)
{
$this->orMatch = $orMatch;
}
/**
* @return OrMatcher
*/
public function getOrMatch()
{
return $this->orMatch;
}
/**
* If specified, value match will be performed based on whether the path is
* referring to a valid primitive value in the metadata. If the path is
* referring to a non-primitive value, the result is always not matched.
*
* @param bool $presentMatch
*/
public function setPresentMatch($presentMatch)
{
$this->presentMatch = $presentMatch;
}
/**
* @return bool
*/
public function getPresentMatch()
{
return $this->presentMatch;
}
/**
* If specified, a match occurs if and only if the target value is a string
* value and is matched to this field.
*
* @param StringMatcher $stringMatch
*/
public function setStringMatch(StringMatcher $stringMatch)
{
$this->stringMatch = $stringMatch;
}
/**
* @return StringMatcher
*/
public function getStringMatch()
{
return $this->stringMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValueMatcher::class, 'Google_Service_TrafficDirectorService_ValueMatcher');