repo stringlengths 6 63 | path stringlengths 5 140 | func_name stringlengths 3 151 | original_string stringlengths 84 13k | language stringclasses 1
value | code stringlengths 84 13k | code_tokens list | docstring stringlengths 3 47.2k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 91 247 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
wp-cli/wp-cli | php/WP_CLI/SynopsisParser.php | SynopsisParser.is_optional | private static function is_optional( $token ) {
if ( '[' === substr( $token, 0, 1 ) && ']' === substr( $token, -1 ) ) {
return array( true, substr( $token, 1, -1 ) );
}
return array( false, $token );
} | php | private static function is_optional( $token ) {
if ( '[' === substr( $token, 0, 1 ) && ']' === substr( $token, -1 ) ) {
return array( true, substr( $token, 1, -1 ) );
}
return array( false, $token );
} | [
"private",
"static",
"function",
"is_optional",
"(",
"$",
"token",
")",
"{",
"if",
"(",
"'['",
"===",
"substr",
"(",
"$",
"token",
",",
"0",
",",
"1",
")",
"&&",
"']'",
"===",
"substr",
"(",
"$",
"token",
",",
"-",
"1",
")",
")",
"{",
"return",
... | An optional parameter is surrounded by square brackets.
@param string $token
@return array | [
"An",
"optional",
"parameter",
"is",
"surrounded",
"by",
"square",
"brackets",
"."
] | 564bf7b7cf1ac833071d1afed5d649d2a7198e15 | https://github.com/wp-cli/wp-cli/blob/564bf7b7cf1ac833071d1afed5d649d2a7198e15/php/WP_CLI/SynopsisParser.php#L169-L175 | train |
googleapis/google-cloud-php | Debugger/src/V2/StatusMessage.php | StatusMessage.setRefersTo | public function setRefersTo($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\StatusMessage_Reference::class);
$this->refers_to = $var;
return $this;
} | php | public function setRefersTo($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\StatusMessage_Reference::class);
$this->refers_to = $var;
return $this;
} | [
"public",
"function",
"setRefersTo",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"StatusMessage_Reference",
"::",
"class",
")",
";",
"$",
"this",
"->",
... | Reference to which the message applies.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2;</code>
@param int $var
@return $this | [
"Reference",
"to",
"which",
"the",
"message",
"applies",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/StatusMessage.php#L104-L110 | train |
googleapis/google-cloud-php | Debugger/src/V2/StatusMessage.php | StatusMessage.setDescription | public function setDescription($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\FormatMessage::class);
$this->description = $var;
return $this;
} | php | public function setDescription($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\FormatMessage::class);
$this->description = $var;
return $this;
} | [
"public",
"function",
"setDescription",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"FormatMessage",
"::",
"class",
")",
";",
"$",
"this",
"->",
"d... | Status message text.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.FormatMessage description = 3;</code>
@param \Google\Cloud\Debugger\V2\FormatMessage $var
@return $this | [
"Status",
"message",
"text",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/StatusMessage.php#L130-L136 | train |
googleapis/google-cloud-php | Asset/src/V1/ExportAssetsRequest.php | ExportAssetsRequest.setContentType | public function setContentType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class);
$this->content_type = $var;
return $this;
} | php | public function setContentType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Asset\V1\ContentType::class);
$this->content_type = $var;
return $this;
} | [
"public",
"function",
"setContentType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Asset",
"\\",
"V1",
"\\",
"ContentType",
"::",
"class",
")",
";",
"$",
"this",
"->",
"content_t... | Asset content type. If not specified, no content but the asset name will be
returned.
Generated from protobuf field <code>.google.cloud.asset.v1.ContentType content_type = 4;</code>
@param int $var
@return $this | [
"Asset",
"content",
"type",
".",
"If",
"not",
"specified",
"no",
"content",
"but",
"the",
"asset",
"name",
"will",
"be",
"returned",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Asset/src/V1/ExportAssetsRequest.php#L218-L224 | train |
googleapis/google-cloud-php | BigQueryDataTransfer/src/V1/ListDataSourcesResponse.php | ListDataSourcesResponse.setDataSources | public function setDataSources($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\DataSource::class);
$this->data_sources = $arr;
return $this;
} | php | public function setDataSources($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\DataSource::class);
$this->data_sources = $arr;
return $this;
} | [
"public",
"function",
"setDataSources",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\... | List of supported data sources and their transfer settings.
Generated from protobuf field <code>repeated .google.cloud.bigquery.datatransfer.v1.DataSource data_sources = 1;</code>
@param \Google\Cloud\BigQuery\DataTransfer\V1\DataSource[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"List",
"of",
"supported",
"data",
"sources",
"and",
"their",
"transfer",
"settings",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQueryDataTransfer/src/V1/ListDataSourcesResponse.php#L72-L78 | train |
googleapis/google-cloud-php | Monitoring/src/V3/TimeSeries.php | TimeSeries.setPoints | public function setPoints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\Point::class);
$this->points = $arr;
return $this;
} | php | public function setPoints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Monitoring\V3\Point::class);
$this->points = $arr;
return $this;
} | [
"public",
"function",
"setPoints",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | The data points of this time series. When listing time series, points are
returned in reverse time order.
When creating a time series, this field must contain exactly one point and
the point's type must be the same as the value type of the associated
metric. If the associated metric's descriptor must be auto-created, t... | [
"The",
"data",
"points",
"of",
"this",
"time",
"series",
".",
"When",
"listing",
"time",
"series",
"points",
"are",
"returned",
"in",
"reverse",
"time",
"order",
".",
"When",
"creating",
"a",
"time",
"series",
"this",
"field",
"must",
"contain",
"exactly",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Monitoring/src/V3/TimeSeries.php#L315-L321 | train |
googleapis/google-cloud-php | Spanner/src/Date.php | Date.createFromValues | public static function createFromValues($year, $month, $day)
{
$value = sprintf('%s-%s-%s', $year, $month, $day);
$dt = \DateTimeImmutable::createFromFormat(self::FORMAT, $value);
return new static($dt);
} | php | public static function createFromValues($year, $month, $day)
{
$value = sprintf('%s-%s-%s', $year, $month, $day);
$dt = \DateTimeImmutable::createFromFormat(self::FORMAT, $value);
return new static($dt);
} | [
"public",
"static",
"function",
"createFromValues",
"(",
"$",
"year",
",",
"$",
"month",
",",
"$",
"day",
")",
"{",
"$",
"value",
"=",
"sprintf",
"(",
"'%s-%s-%s'",
",",
"$",
"year",
",",
"$",
"month",
",",
"$",
"day",
")",
";",
"$",
"dt",
"=",
"... | Create a Date from integer or string values.
Example:
```
$date = Date::createFromValues(1995, 02, 04);
```
@param int|string $year The year.
@param int|string $month The month (as a number).
@param int|string $day The day of the month.
@return Date | [
"Create",
"a",
"Date",
"from",
"integer",
"or",
"string",
"values",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Date.php#L68-L74 | train |
googleapis/google-cloud-php | Core/src/Batch/BatchJob.php | BatchJob.flush | public function flush(array $items = [])
{
if (! $this->callFunc($items)) {
$this->handleFailure($this->id, $items);
return false;
}
return true;
} | php | public function flush(array $items = [])
{
if (! $this->callFunc($items)) {
$this->handleFailure($this->id, $items);
return false;
}
return true;
} | [
"public",
"function",
"flush",
"(",
"array",
"$",
"items",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"callFunc",
"(",
"$",
"items",
")",
")",
"{",
"$",
"this",
"->",
"handleFailure",
"(",
"$",
"this",
"->",
"id",
",",
"$",
"it... | Finish any pending activity for this job.
@param array $items
@return bool | [
"Finish",
"any",
"pending",
"activity",
"for",
"this",
"job",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/Batch/BatchJob.php#L164-L171 | train |
googleapis/google-cloud-php | Firestore/src/Admin/V1/CreateIndexRequest.php | CreateIndexRequest.setIndex | public function setIndex($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index::class);
$this->index = $var;
return $this;
} | php | public function setIndex($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index::class);
$this->index = $var;
return $this;
} | [
"public",
"function",
"setIndex",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"Admin",
"\\",
"V1",
"\\",
"Index",
"::",
"class",
")",
";",
"$",
"this",
"->"... | The composite index to create.
Generated from protobuf field <code>.google.firestore.admin.v1.Index index = 2;</code>
@param \Google\Cloud\Firestore\Admin\V1\Index $var
@return $this | [
"The",
"composite",
"index",
"to",
"create",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Admin/V1/CreateIndexRequest.php#L96-L102 | train |
googleapis/google-cloud-php | Spanner/src/Admin/Instance/V1/InstanceAdminGrpcClient.php | InstanceAdminGrpcClient.GetInstance | public function GetInstance(\Google\Cloud\Spanner\Admin\Instance\V1\GetInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance',
$argument,
['\Google\Cloud\Spanner\Admin\Instance\V1\Instance', 'de... | php | public function GetInstance(\Google\Cloud\Spanner\Admin\Instance\V1\GetInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.spanner.admin.instance.v1.InstanceAdmin/GetInstance',
$argument,
['\Google\Cloud\Spanner\Admin\Instance\V1\Instance', 'de... | [
"public",
"function",
"GetInstance",
"(",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Spanner",
"\\",
"Admin",
"\\",
"Instance",
"\\",
"V1",
"\\",
"GetInstanceRequest",
"$",
"argument",
",",
"$",
"metadata",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
... | Gets information about a particular instance.
@param \Google\Cloud\Spanner\Admin\Instance\V1\GetInstanceRequest $argument input argument
@param array $metadata metadata
@param array $options call options | [
"Gets",
"information",
"about",
"a",
"particular",
"instance",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Admin/Instance/V1/InstanceAdminGrpcClient.php#L103-L109 | train |
googleapis/google-cloud-php | Spanner/src/Admin/Instance/V1/InstanceAdminGrpcClient.php | InstanceAdminGrpcClient.DeleteInstance | public function DeleteInstance(\Google\Cloud\Spanner\Admin\Instance\V1\DeleteInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
... | php | public function DeleteInstance(\Google\Cloud\Spanner\Admin\Instance\V1\DeleteInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.spanner.admin.instance.v1.InstanceAdmin/DeleteInstance',
$argument,
['\Google\Protobuf\GPBEmpty', 'decode'],
... | [
"public",
"function",
"DeleteInstance",
"(",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Spanner",
"\\",
"Admin",
"\\",
"Instance",
"\\",
"V1",
"\\",
"DeleteInstanceRequest",
"$",
"argument",
",",
"$",
"metadata",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
... | Deletes an instance.
Immediately upon completion of the request:
* Billing ceases for all of the instance's reserved resources.
Soon afterward:
* The instance and *all of its databases* immediately and
irrevocably disappear from the API. All data in the databases
is permanently deleted.
@param \Google\Cloud\Spanner... | [
"Deletes",
"an",
"instance",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Admin/Instance/V1/InstanceAdminGrpcClient.php#L227-L233 | train |
googleapis/google-cloud-php | Dlp/src/V2/DatastoreKey.php | DatastoreKey.setEntityKey | public function setEntityKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Key::class);
$this->entity_key = $var;
return $this;
} | php | public function setEntityKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Key::class);
$this->entity_key = $var;
return $this;
} | [
"public",
"function",
"setEntityKey",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"Key",
"::",
"class",
")",
";",
"$",
"this",
"->",
"entity_key",
"="... | Datastore entity key.
Generated from protobuf field <code>.google.privacy.dlp.v2.Key entity_key = 1;</code>
@param \Google\Cloud\Dlp\V2\Key $var
@return $this | [
"Datastore",
"entity",
"key",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DatastoreKey.php#L58-L64 | train |
googleapis/google-cloud-php | Dataproc/src/V1beta2/WorkflowMetadata.php | WorkflowMetadata.setCreateCluster | public function setCreateCluster($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\ClusterOperation::class);
$this->create_cluster = $var;
return $this;
} | php | public function setCreateCluster($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\ClusterOperation::class);
$this->create_cluster = $var;
return $this;
} | [
"public",
"function",
"setCreateCluster",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dataproc",
"\\",
"V1beta2",
"\\",
"ClusterOperation",
"::",
"class",
")",
";",
"$",
"this",
... | Output only. The create cluster operation metadata.
Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.ClusterOperation create_cluster = 3;</code>
@param \Google\Cloud\Dataproc\V1beta2\ClusterOperation $var
@return $this | [
"Output",
"only",
".",
"The",
"create",
"cluster",
"operation",
"metadata",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dataproc/src/V1beta2/WorkflowMetadata.php#L194-L200 | train |
googleapis/google-cloud-php | Dataproc/src/V1beta2/WorkflowMetadata.php | WorkflowMetadata.setGraph | public function setGraph($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\WorkflowGraph::class);
$this->graph = $var;
return $this;
} | php | public function setGraph($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\WorkflowGraph::class);
$this->graph = $var;
return $this;
} | [
"public",
"function",
"setGraph",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dataproc",
"\\",
"V1beta2",
"\\",
"WorkflowGraph",
"::",
"class",
")",
";",
"$",
"this",
"->",
"gr... | Output only. The workflow graph.
Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.WorkflowGraph graph = 4;</code>
@param \Google\Cloud\Dataproc\V1beta2\WorkflowGraph $var
@return $this | [
"Output",
"only",
".",
"The",
"workflow",
"graph",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dataproc/src/V1beta2/WorkflowMetadata.php#L220-L226 | train |
googleapis/google-cloud-php | Dataproc/src/V1beta2/WorkflowMetadata.php | WorkflowMetadata.setParameters | public function setParameters($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->parameters = $arr;
return $this;
} | php | public function setParameters($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->parameters = $arr;
return $this;
} | [
"public",
"function",
"setParameters",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
",",
"\\",
"Google",
"\\",
"... | Map from parameter names to values that were used for those parameters.
Generated from protobuf field <code>map<string, string> parameters = 8;</code>
@param array|\Google\Protobuf\Internal\MapField $var
@return $this | [
"Map",
"from",
"parameter",
"names",
"to",
"values",
"that",
"were",
"used",
"for",
"those",
"parameters",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dataproc/src/V1beta2/WorkflowMetadata.php#L324-L330 | train |
googleapis/google-cloud-php | Firestore/src/V1beta1/CommitRequest.php | CommitRequest.setWrites | public function setWrites($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1beta1\Write::class);
$this->writes = $arr;
return $this;
} | php | public function setWrites($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1beta1\Write::class);
$this->writes = $arr;
return $this;
} | [
"public",
"function",
"setWrites",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | The writes to apply.
Always executed atomically and in order.
Generated from protobuf field <code>repeated .google.firestore.v1beta1.Write writes = 2;</code>
@param \Google\Cloud\Firestore\V1beta1\Write[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"writes",
"to",
"apply",
".",
"Always",
"executed",
"atomically",
"and",
"in",
"order",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1beta1/CommitRequest.php#L108-L114 | train |
googleapis/google-cloud-php | PubSub/src/V1/ListTopicSubscriptionsResponse.php | ListTopicSubscriptionsResponse.setSubscriptions | public function setSubscriptions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->subscriptions = $arr;
return $this;
} | php | public function setSubscriptions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->subscriptions = $arr;
return $this;
} | [
"public",
"function",
"setSubscriptions",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
")",
";",
"$",
"this",... | The names of the subscriptions that match the request.
Generated from protobuf field <code>repeated string subscriptions = 1;</code>
@param string[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"names",
"of",
"the",
"subscriptions",
"that",
"match",
"the",
"request",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/V1/ListTopicSubscriptionsResponse.php#L70-L76 | train |
googleapis/google-cloud-php | Firestore/src/V1/UpdateDocumentRequest.php | UpdateDocumentRequest.setMask | public function setMask($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
$this->mask = $var;
return $this;
} | php | public function setMask($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
$this->mask = $var;
return $this;
} | [
"public",
"function",
"setMask",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1",
"\\",
"DocumentMask",
"::",
"class",
")",
";",
"$",
"this",
"->",
"mask",
... | The fields to return. If not set, returns all fields.
If the document has a field that is not present in this mask, that field
will not be returned in the response.
Generated from protobuf field <code>.google.firestore.v1.DocumentMask mask = 3;</code>
@param \Google\Cloud\Firestore\V1\DocumentMask $var
@return $this | [
"The",
"fields",
"to",
"return",
".",
"If",
"not",
"set",
"returns",
"all",
"fields",
".",
"If",
"the",
"document",
"has",
"a",
"field",
"that",
"is",
"not",
"present",
"in",
"this",
"mask",
"that",
"field",
"will",
"not",
"be",
"returned",
"in",
"the"... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1/UpdateDocumentRequest.php#L168-L174 | train |
googleapis/google-cloud-php | Firestore/src/V1/UpdateDocumentRequest.php | UpdateDocumentRequest.setCurrentDocument | public function setCurrentDocument($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
$this->current_document = $var;
return $this;
} | php | public function setCurrentDocument($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
$this->current_document = $var;
return $this;
} | [
"public",
"function",
"setCurrentDocument",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1",
"\\",
"Precondition",
"::",
"class",
")",
";",
"$",
"this",
"->",
... | An optional precondition on the document.
The request will fail if this is set and not met by the target document.
Generated from protobuf field <code>.google.firestore.v1.Precondition current_document = 4;</code>
@param \Google\Cloud\Firestore\V1\Precondition $var
@return $this | [
"An",
"optional",
"precondition",
"on",
"the",
"document",
".",
"The",
"request",
"will",
"fail",
"if",
"this",
"is",
"set",
"and",
"not",
"met",
"by",
"the",
"target",
"document",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1/UpdateDocumentRequest.php#L196-L202 | train |
googleapis/google-cloud-php | Language/src/V1beta2/Entity.php | Entity.setMetadata | public function setMetadata($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->metadata = $arr;
return $this;
} | php | public function setMetadata($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->metadata = $arr;
return $this;
} | [
"public",
"function",
"setMetadata",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
",",
"\\",
"Google",
"\\",
"Pr... | Metadata associated with the entity.
Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if
available. The associated keys are "wikipedia_url" and "mid", respectively.
Generated from protobuf field <code>map<string, string> metadata = 3;</code>
@param array|\Google\Protobuf\Internal\MapField $var
@return ... | [
"Metadata",
"associated",
"with",
"the",
"entity",
".",
"Currently",
"Wikipedia",
"URLs",
"and",
"Knowledge",
"Graph",
"MIDs",
"are",
"provided",
"if",
"available",
".",
"The",
"associated",
"keys",
"are",
"wikipedia_url",
"and",
"mid",
"respectively",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Language/src/V1beta2/Entity.php#L176-L182 | train |
googleapis/google-cloud-php | Language/src/V1beta2/Entity.php | Entity.setMentions | public function setMentions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Language\V1beta2\EntityMention::class);
$this->mentions = $arr;
return $this;
} | php | public function setMentions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Language\V1beta2\EntityMention::class);
$this->mentions = $arr;
return $this;
} | [
"public",
"function",
"setMentions",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",... | The mentions of this entity in the input document. The API currently
supports proper noun mentions.
Generated from protobuf field <code>repeated .google.cloud.language.v1beta2.EntityMention mentions = 5;</code>
@param \Google\Cloud\Language\V1beta2\EntityMention[]|\Google\Protobuf\Internal\RepeatedField $var
@return $... | [
"The",
"mentions",
"of",
"this",
"entity",
"in",
"the",
"input",
"document",
".",
"The",
"API",
"currently",
"supports",
"proper",
"noun",
"mentions",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Language/src/V1beta2/Entity.php#L238-L244 | train |
googleapis/google-cloud-php | Logging/src/V2/WriteLogEntriesPartialErrors.php | WriteLogEntriesPartialErrors.setLogEntryErrors | public function setLogEntryErrors($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
$this->log_entry_errors = $arr;
return $this;
} | php | public function setLogEntryErrors($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
$this->log_entry_errors = $arr;
return $this;
} | [
"public",
"function",
"setLogEntryErrors",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"INT32",
",",
"\\",
"Google",
"\\",
... | When `WriteLogEntriesRequest.partial_success` is true, records the error
status for entries that were not written due to a permanent error, keyed
by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
Failed requests for which no entries are written will not include
per-entry errors.
Generated from proto... | [
"When",
"WriteLogEntriesRequest",
".",
"partial_success",
"is",
"true",
"records",
"the",
"error",
"status",
"for",
"entries",
"that",
"were",
"not",
"written",
"due",
"to",
"a",
"permanent",
"error",
"keyed",
"by",
"the",
"entry",
"s",
"zero",
"-",
"based",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/WriteLogEntriesPartialErrors.php#L74-L80 | train |
googleapis/google-cloud-php | Dlp/src/V2/DeidentifyContentResponse.php | DeidentifyContentResponse.setItem | public function setItem($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class);
$this->item = $var;
return $this;
} | php | public function setItem($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class);
$this->item = $var;
return $this;
} | [
"public",
"function",
"setItem",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"ContentItem",
"::",
"class",
")",
";",
"$",
"this",
"->",
"item",
"=",
... | The de-identified item.
Generated from protobuf field <code>.google.privacy.dlp.v2.ContentItem item = 1;</code>
@param \Google\Cloud\Dlp\V2\ContentItem $var
@return $this | [
"The",
"de",
"-",
"identified",
"item",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DeidentifyContentResponse.php#L66-L72 | train |
googleapis/google-cloud-php | Dlp/src/V2/DeidentifyContentResponse.php | DeidentifyContentResponse.setOverview | public function setOverview($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class);
$this->overview = $var;
return $this;
} | php | public function setOverview($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class);
$this->overview = $var;
return $this;
} | [
"public",
"function",
"setOverview",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"TransformationOverview",
"::",
"class",
")",
";",
"$",
"this",
"->",
"... | An overview of the changes that were made on the `item`.
Generated from protobuf field <code>.google.privacy.dlp.v2.TransformationOverview overview = 2;</code>
@param \Google\Cloud\Dlp\V2\TransformationOverview $var
@return $this | [
"An",
"overview",
"of",
"the",
"changes",
"that",
"were",
"made",
"on",
"the",
"item",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DeidentifyContentResponse.php#L92-L98 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/IntentBatch.php | IntentBatch.setIntents | public function setIntents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent::class);
$this->intents = $arr;
return $this;
} | php | public function setIntents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent::class);
$this->intents = $arr;
return $this;
} | [
"public",
"function",
"setIntents",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | A collection of intents.
Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Intent intents = 1;</code>
@param \Google\Cloud\Dialogflow\V2\Intent[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"A",
"collection",
"of",
"intents",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/IntentBatch.php#L58-L64 | train |
googleapis/google-cloud-php | Iot/src/V1/CreateDeviceRegistryRequest.php | CreateDeviceRegistryRequest.setDeviceRegistry | public function setDeviceRegistry($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\DeviceRegistry::class);
$this->device_registry = $var;
return $this;
} | php | public function setDeviceRegistry($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\DeviceRegistry::class);
$this->device_registry = $var;
return $this;
} | [
"public",
"function",
"setDeviceRegistry",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Iot",
"\\",
"V1",
"\\",
"DeviceRegistry",
"::",
"class",
")",
";",
"$",
"this",
"->",
"de... | The device registry. The field `name` must be empty. The server will
generate that field from the device registry `id` provided and the
`parent` field.
Generated from protobuf field <code>.google.cloud.iot.v1.DeviceRegistry device_registry = 2;</code>
@param \Google\Cloud\Iot\V1\DeviceRegistry $var
@return $this | [
"The",
"device",
"registry",
".",
"The",
"field",
"name",
"must",
"be",
"empty",
".",
"The",
"server",
"will",
"generate",
"that",
"field",
"from",
"the",
"device",
"registry",
"id",
"provided",
"and",
"the",
"parent",
"field",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Iot/src/V1/CreateDeviceRegistryRequest.php#L104-L110 | train |
googleapis/google-cloud-php | CommonProtos/src/DevTools/Source/V1/CloudWorkspaceId.php | CloudWorkspaceId.setRepoId | public function setRepoId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\RepoId::class);
$this->repo_id = $var;
return $this;
} | php | public function setRepoId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\RepoId::class);
$this->repo_id = $var;
return $this;
} | [
"public",
"function",
"setRepoId",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"DevTools",
"\\",
"Source",
"\\",
"V1",
"\\",
"RepoId",
"::",
"class",
")",
";",
"$",
"this",
"-... | The ID of the repo containing the workspace.
Generated from protobuf field <code>.google.devtools.source.v1.RepoId repo_id = 1;</code>
@param \Google\Cloud\DevTools\Source\V1\RepoId $var
@return $this | [
"The",
"ID",
"of",
"the",
"repo",
"containing",
"the",
"workspace",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/CommonProtos/src/DevTools/Source/V1/CloudWorkspaceId.php#L70-L76 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setAction | public function setAction($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint_Action::class);
$this->action = $var;
return $this;
} | php | public function setAction($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint_Action::class);
$this->action = $var;
return $this;
} | [
"public",
"function",
"setAction",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"Breakpoint_Action",
"::",
"class",
")",
";",
"$",
"this",
"->",
"actio... | Action that the agent should perform when the code at the
breakpoint location is hit.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.Breakpoint.Action action = 13;</code>
@param int $var
@return $this | [
"Action",
"that",
"the",
"agent",
"should",
"perform",
"when",
"the",
"code",
"at",
"the",
"breakpoint",
"location",
"is",
"hit",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L288-L294 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setLocation | public function setLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\SourceLocation::class);
$this->location = $var;
return $this;
} | php | public function setLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\SourceLocation::class);
$this->location = $var;
return $this;
} | [
"public",
"function",
"setLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"SourceLocation",
"::",
"class",
")",
";",
"$",
"this",
"->",
"loc... | Breakpoint source location.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.SourceLocation location = 2;</code>
@param \Google\Cloud\Debugger\V2\SourceLocation $var
@return $this | [
"Breakpoint",
"source",
"location",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L314-L320 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setExpressions | public function setExpressions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->expressions = $arr;
return $this;
} | php | public function setExpressions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->expressions = $arr;
return $this;
} | [
"public",
"function",
"setExpressions",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
")",
";",
"$",
"this",
... | List of read-only expressions to evaluate at the breakpoint location.
The expressions are composed using expressions in the programming language
at the source location. If the breakpoint action is `LOG`, the evaluated
expressions are included in log statements.
Generated from protobuf field <code>repeated string expre... | [
"List",
"of",
"read",
"-",
"only",
"expressions",
"to",
"evaluate",
"at",
"the",
"breakpoint",
"location",
".",
"The",
"expressions",
"are",
"composed",
"using",
"expressions",
"in",
"the",
"programming",
"language",
"at",
"the",
"source",
"location",
".",
"If... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L376-L382 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setLogLevel | public function setLogLevel($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint_LogLevel::class);
$this->log_level = $var;
return $this;
} | php | public function setLogLevel($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint_LogLevel::class);
$this->log_level = $var;
return $this;
} | [
"public",
"function",
"setLogLevel",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"Breakpoint_LogLevel",
"::",
"class",
")",
";",
"$",
"this",
"->",
"l... | Indicates the severity of the log. Only relevant when action is `LOG`.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.Breakpoint.LogLevel log_level = 15;</code>
@param int $var
@return $this | [
"Indicates",
"the",
"severity",
"of",
"the",
"log",
".",
"Only",
"relevant",
"when",
"action",
"is",
"LOG",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L440-L446 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setEvaluatedExpressions | public function setEvaluatedExpressions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class);
$this->evaluated_expressions = $arr;
return $this;
} | php | public function setEvaluatedExpressions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class);
$this->evaluated_expressions = $arr;
return $this;
} | [
"public",
"function",
"setEvaluatedExpressions",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Goog... | Values of evaluated expressions at breakpoint time.
The evaluated expressions appear in exactly the same order they
are listed in the `expressions` field.
The `name` field holds the original expression text, the `value` or
`members` field holds the result of the evaluated expression.
If the expression cannot be evaluat... | [
"Values",
"of",
"evaluated",
"expressions",
"at",
"breakpoint",
"time",
".",
"The",
"evaluated",
"expressions",
"appear",
"in",
"exactly",
"the",
"same",
"order",
"they",
"are",
"listed",
"in",
"the",
"expressions",
"field",
".",
"The",
"name",
"field",
"holds... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L658-L664 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setVariableTable | public function setVariableTable($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class);
$this->variable_table = $arr;
return $this;
} | php | public function setVariableTable($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class);
$this->variable_table = $arr;
return $this;
} | [
"public",
"function",
"setVariableTable",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | The `variable_table` exists to aid with computation, memory and network
traffic optimization. It enables storing a variable once and reference
it from multiple variables, including variables stored in the
`variable_table` itself.
For example, the same `this` object, which may appear at many levels of
the stack, can ha... | [
"The",
"variable_table",
"exists",
"to",
"aid",
"with",
"computation",
"memory",
"and",
"network",
"traffic",
"optimization",
".",
"It",
"enables",
"storing",
"a",
"variable",
"once",
"and",
"reference",
"it",
"from",
"multiple",
"variables",
"including",
"variabl... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L704-L710 | train |
googleapis/google-cloud-php | Debugger/src/V2/Breakpoint.php | Breakpoint.setLabels | public function setLabels($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->labels = $arr;
return $this;
} | php | public function setLabels($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->labels = $arr;
return $this;
} | [
"public",
"function",
"setLabels",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
",",
"\\",
"Google",
"\\",
"Prot... | A set of custom breakpoint properties, populated by the agent, to be
displayed to the user.
Generated from protobuf field <code>map<string, string> labels = 17;</code>
@param array|\Google\Protobuf\Internal\MapField $var
@return $this | [
"A",
"set",
"of",
"custom",
"breakpoint",
"properties",
"populated",
"by",
"the",
"agent",
"to",
"be",
"displayed",
"to",
"the",
"user",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/Breakpoint.php#L732-L738 | train |
googleapis/google-cloud-php | SecurityCenter/src/V1/Finding.php | Finding.setState | public function setState($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenter\V1\Finding_State::class);
$this->state = $var;
return $this;
} | php | public function setState($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\SecurityCenter\V1\Finding_State::class);
$this->state = $var;
return $this;
} | [
"public",
"function",
"setState",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"SecurityCenter",
"\\",
"V1",
"\\",
"Finding_State",
"::",
"class",
")",
";",
"$",
"this",
"->",
"stat... | The state of the finding.
Generated from protobuf field <code>.google.cloud.securitycenter.v1.Finding.State state = 4;</code>
@param int $var
@return $this | [
"The",
"state",
"of",
"the",
"finding",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/SecurityCenter/src/V1/Finding.php#L274-L280 | train |
googleapis/google-cloud-php | SecurityCenter/src/V1/Finding.php | Finding.setSourceProperties | public function setSourceProperties($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
$this->source_properties = $arr;
return $this;
} | php | public function setSourceProperties($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
$this->source_properties = $arr;
return $this;
} | [
"public",
"function",
"setSourceProperties",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
",",
"\\",
"Google",
"\\... | Source specific properties. These properties are managed by the source
that writes the finding. The key names in the source_properties map must be
between 1 and 255 characters, and must start with a letter and contain
alphanumeric characters or underscores only.
Generated from protobuf field <code>map<string, .google.... | [
"Source",
"specific",
"properties",
".",
"These",
"properties",
"are",
"managed",
"by",
"the",
"source",
"that",
"writes",
"the",
"finding",
".",
"The",
"key",
"names",
"in",
"the",
"source_properties",
"map",
"must",
"be",
"between",
"1",
"and",
"255",
"cha... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/SecurityCenter/src/V1/Finding.php#L366-L372 | train |
googleapis/google-cloud-php | SecurityCenter/src/V1/Finding.php | Finding.setSecurityMarks | public function setSecurityMarks($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\SecurityMarks::class);
$this->security_marks = $var;
return $this;
} | php | public function setSecurityMarks($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\SecurityMarks::class);
$this->security_marks = $var;
return $this;
} | [
"public",
"function",
"setSecurityMarks",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"SecurityCenter",
"\\",
"V1",
"\\",
"SecurityMarks",
"::",
"class",
")",
";",
"$",
"this",
"-... | Output only. User specified security marks. These marks are entirely
managed by the user and come from the SecurityMarks resource that belongs
to the finding.
Generated from protobuf field <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;</code>
@param \Google\Cloud\SecurityCenter\V1\SecurityMark... | [
"Output",
"only",
".",
"User",
"specified",
"security",
"marks",
".",
"These",
"marks",
"are",
"entirely",
"managed",
"by",
"the",
"user",
"and",
"come",
"from",
"the",
"SecurityMarks",
"resource",
"that",
"belongs",
"to",
"the",
"finding",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/SecurityCenter/src/V1/Finding.php#L396-L402 | train |
googleapis/google-cloud-php | Debugger/src/MatchingFileIterator.php | MatchingFileIterator.accept | public function accept()
{
$candidate = $this->getInnerIterator()->current();
// Check that the candidate file (a full file path) ends in the pattern we are searching for.
return strrpos($candidate, $this->file) === strlen($candidate) - strlen($this->file);
} | php | public function accept()
{
$candidate = $this->getInnerIterator()->current();
// Check that the candidate file (a full file path) ends in the pattern we are searching for.
return strrpos($candidate, $this->file) === strlen($candidate) - strlen($this->file);
} | [
"public",
"function",
"accept",
"(",
")",
"{",
"$",
"candidate",
"=",
"$",
"this",
"->",
"getInnerIterator",
"(",
")",
"->",
"current",
"(",
")",
";",
"// Check that the candidate file (a full file path) ends in the pattern we are searching for.",
"return",
"strrpos",
"... | FilterIterator callback to determine whether or not the value should be
accepted.
@access private
@return boolean | [
"FilterIterator",
"callback",
"to",
"determine",
"whether",
"or",
"not",
"the",
"value",
"should",
"be",
"accepted",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/MatchingFileIterator.php#L65-L71 | train |
googleapis/google-cloud-php | Monitoring/src/V3/CreateGroupRequest.php | CreateGroupRequest.setGroup | public function setGroup($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\Group::class);
$this->group = $var;
return $this;
} | php | public function setGroup($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\Group::class);
$this->group = $var;
return $this;
} | [
"public",
"function",
"setGroup",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Monitoring",
"\\",
"V3",
"\\",
"Group",
"::",
"class",
")",
";",
"$",
"this",
"->",
"group",
"="... | A group definition. It is an error to define the `name` field because
the system assigns the name.
Generated from protobuf field <code>.google.monitoring.v3.Group group = 2;</code>
@param \Google\Cloud\Monitoring\V3\Group $var
@return $this | [
"A",
"group",
"definition",
".",
"It",
"is",
"an",
"error",
"to",
"define",
"the",
"name",
"field",
"because",
"the",
"system",
"assigns",
"the",
"name",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Monitoring/src/V3/CreateGroupRequest.php#L108-L114 | train |
googleapis/google-cloud-php | Dlp/src/V2/ContentLocation.php | ContentLocation.setRecordLocation | public function setRecordLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordLocation::class);
$this->writeOneof(2, $var);
return $this;
} | php | public function setRecordLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordLocation::class);
$this->writeOneof(2, $var);
return $this;
} | [
"public",
"function",
"setRecordLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"RecordLocation",
"::",
"class",
")",
";",
"$",
"this",
"->",
"wr... | Location within a row or record of a database table.
Generated from protobuf field <code>.google.privacy.dlp.v2.RecordLocation record_location = 2;</code>
@param \Google\Cloud\Dlp\V2\RecordLocation $var
@return $this | [
"Location",
"within",
"a",
"row",
"or",
"record",
"of",
"a",
"database",
"table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/ContentLocation.php#L143-L149 | train |
googleapis/google-cloud-php | Dlp/src/V2/ContentLocation.php | ContentLocation.setImageLocation | public function setImageLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageLocation::class);
$this->writeOneof(3, $var);
return $this;
} | php | public function setImageLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageLocation::class);
$this->writeOneof(3, $var);
return $this;
} | [
"public",
"function",
"setImageLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"ImageLocation",
"::",
"class",
")",
";",
"$",
"this",
"->",
"writ... | Location within an image's pixels.
Generated from protobuf field <code>.google.privacy.dlp.v2.ImageLocation image_location = 3;</code>
@param \Google\Cloud\Dlp\V2\ImageLocation $var
@return $this | [
"Location",
"within",
"an",
"image",
"s",
"pixels",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/ContentLocation.php#L169-L175 | train |
googleapis/google-cloud-php | Dlp/src/V2/ContentLocation.php | ContentLocation.setDocumentLocation | public function setDocumentLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DocumentLocation::class);
$this->writeOneof(5, $var);
return $this;
} | php | public function setDocumentLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DocumentLocation::class);
$this->writeOneof(5, $var);
return $this;
} | [
"public",
"function",
"setDocumentLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"DocumentLocation",
"::",
"class",
")",
";",
"$",
"this",
"->",
... | Location data for document files.
Generated from protobuf field <code>.google.privacy.dlp.v2.DocumentLocation document_location = 5;</code>
@param \Google\Cloud\Dlp\V2\DocumentLocation $var
@return $this | [
"Location",
"data",
"for",
"document",
"files",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/ContentLocation.php#L195-L201 | train |
googleapis/google-cloud-php | Core/src/Batch/SysvProcessor.php | SysvProcessor.submit | public function submit($item, $idNum)
{
if (!array_key_exists($idNum, $this->sysvQs)) {
$this->sysvQs[$idNum] =
msg_get_queue($this->getSysvKey($idNum));
}
$result = @msg_send(
$this->sysvQs[$idNum],
self::$typeDirect,
$item
... | php | public function submit($item, $idNum)
{
if (!array_key_exists($idNum, $this->sysvQs)) {
$this->sysvQs[$idNum] =
msg_get_queue($this->getSysvKey($idNum));
}
$result = @msg_send(
$this->sysvQs[$idNum],
self::$typeDirect,
$item
... | [
"public",
"function",
"submit",
"(",
"$",
"item",
",",
"$",
"idNum",
")",
"{",
"if",
"(",
"!",
"array_key_exists",
"(",
"$",
"idNum",
",",
"$",
"this",
"->",
"sysvQs",
")",
")",
"{",
"$",
"this",
"->",
"sysvQs",
"[",
"$",
"idNum",
"]",
"=",
"msg_... | Submit an item for async processing.
@param mixed $item An item to submit.
@param int $idNum A numeric id of the job.
@return void
@throws \RuntimeException when failed to store the item. | [
"Submit",
"an",
"item",
"for",
"async",
"processing",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/Batch/SysvProcessor.php#L47-L79 | train |
googleapis/google-cloud-php | Container/src/V1/ClusterUpdate.php | ClusterUpdate.setDesiredAddonsConfig | public function setDesiredAddonsConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class);
$this->desired_addons_config = $var;
return $this;
} | php | public function setDesiredAddonsConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class);
$this->desired_addons_config = $var;
return $this;
} | [
"public",
"function",
"setDesiredAddonsConfig",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Container",
"\\",
"V1",
"\\",
"AddonsConfig",
"::",
"class",
")",
";",
"$",
"this",
"-... | Configurations for the various addons available to run in the cluster.
Generated from protobuf field <code>.google.container.v1.AddonsConfig desired_addons_config = 6;</code>
@param \Google\Cloud\Container\V1\AddonsConfig $var
@return $this | [
"Configurations",
"for",
"the",
"various",
"addons",
"available",
"to",
"run",
"in",
"the",
"cluster",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/ClusterUpdate.php#L258-L264 | train |
googleapis/google-cloud-php | Container/src/V1/ClusterUpdate.php | ClusterUpdate.setDesiredNodePoolAutoscaling | public function setDesiredNodePoolAutoscaling($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class);
$this->desired_node_pool_autoscaling = $var;
return $this;
} | php | public function setDesiredNodePoolAutoscaling($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class);
$this->desired_node_pool_autoscaling = $var;
return $this;
} | [
"public",
"function",
"setDesiredNodePoolAutoscaling",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Container",
"\\",
"V1",
"\\",
"NodePoolAutoscaling",
"::",
"class",
")",
";",
"$",
... | Autoscaler configuration for the node pool specified in
desired_node_pool_id. If there is only one pool in the
cluster and desired_node_pool_id is not provided then
the change applies to that single node pool.
Generated from protobuf field <code>.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = ... | [
"Autoscaler",
"configuration",
"for",
"the",
"node",
"pool",
"specified",
"in",
"desired_node_pool_id",
".",
"If",
"there",
"is",
"only",
"one",
"pool",
"in",
"the",
"cluster",
"and",
"desired_node_pool_id",
"is",
"not",
"provided",
"then",
"the",
"change",
"app... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/ClusterUpdate.php#L350-L356 | train |
googleapis/google-cloud-php | Container/src/V1/ClusterUpdate.php | ClusterUpdate.setDesiredMasterAuthorizedNetworksConfig | public function setDesiredMasterAuthorizedNetworksConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class);
$this->desired_master_authorized_networks_config = $var;
return $this;
} | php | public function setDesiredMasterAuthorizedNetworksConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class);
$this->desired_master_authorized_networks_config = $var;
return $this;
} | [
"public",
"function",
"setDesiredMasterAuthorizedNetworksConfig",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Container",
"\\",
"V1",
"\\",
"MasterAuthorizedNetworksConfig",
"::",
"class",... | The desired configuration options for master authorized networks feature.
Generated from protobuf field <code>.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;</code>
@param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var
@return $this | [
"The",
"desired",
"configuration",
"options",
"for",
"master",
"authorized",
"networks",
"feature",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/ClusterUpdate.php#L412-L418 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/StreamingRecognitionResult.php | StreamingRecognitionResult.setMessageType | public function setMessageType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\StreamingRecognitionResult_MessageType::class);
$this->message_type = $var;
return $this;
} | php | public function setMessageType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\StreamingRecognitionResult_MessageType::class);
$this->message_type = $var;
return $this;
} | [
"public",
"function",
"setMessageType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dialogflow",
"\\",
"V2",
"\\",
"StreamingRecognitionResult_MessageType",
"::",
"class",
")",
";",
"$"... | Type of the result message.
Generated from protobuf field <code>.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType message_type = 1;</code>
@param int $var
@return $this | [
"Type",
"of",
"the",
"result",
"message",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/StreamingRecognitionResult.php#L119-L125 | train |
googleapis/google-cloud-php | AutoMl/src/V1beta1/AnnotationPayload.php | AnnotationPayload.setTranslation | public function setTranslation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TranslationAnnotation::class);
$this->writeOneof(2, $var);
return $this;
} | php | public function setTranslation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TranslationAnnotation::class);
$this->writeOneof(2, $var);
return $this;
} | [
"public",
"function",
"setTranslation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"AutoMl",
"\\",
"V1beta1",
"\\",
"TranslationAnnotation",
"::",
"class",
")",
";",
"$",
"this",
... | Annotation details for translation.
Generated from protobuf field <code>.google.cloud.automl.v1beta1.TranslationAnnotation translation = 2;</code>
@param \Google\Cloud\AutoMl\V1beta1\TranslationAnnotation $var
@return $this | [
"Annotation",
"details",
"for",
"translation",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/AutoMl/src/V1beta1/AnnotationPayload.php#L83-L89 | train |
googleapis/google-cloud-php | AutoMl/src/V1beta1/AnnotationPayload.php | AnnotationPayload.setClassification | public function setClassification($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation::class);
$this->writeOneof(3, $var);
return $this;
} | php | public function setClassification($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation::class);
$this->writeOneof(3, $var);
return $this;
} | [
"public",
"function",
"setClassification",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"AutoMl",
"\\",
"V1beta1",
"\\",
"ClassificationAnnotation",
"::",
"class",
")",
";",
"$",
"th... | Annotation details for content or image classification.
Generated from protobuf field <code>.google.cloud.automl.v1beta1.ClassificationAnnotation classification = 3;</code>
@param \Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation $var
@return $this | [
"Annotation",
"details",
"for",
"content",
"or",
"image",
"classification",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/AutoMl/src/V1beta1/AnnotationPayload.php#L109-L115 | train |
googleapis/google-cloud-php | Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php | DeltaPresenceEstimationConfig.setAuxiliaryTables | public function setAuxiliaryTables($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable::class);
$this->auxiliary_tables = $arr;
return $this;
} | php | public function setAuxiliaryTables($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable::class);
$this->auxiliary_tables = $arr;
return $this;
} | [
"public",
"function",
"setAuxiliaryTables",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | Several auxiliary tables can be used in the analysis. Each custom_tag
used to tag a quasi-identifiers field must appear in exactly one
field of one auxiliary table.
Generated from protobuf field <code>repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;</code>
@param \Google\Cloud\Dlp\V2\StatisticalT... | [
"Several",
"auxiliary",
"tables",
"can",
"be",
"used",
"in",
"the",
"analysis",
".",
"Each",
"custom_tag",
"used",
"to",
"tag",
"a",
"quasi",
"-",
"identifiers",
"field",
"must",
"appear",
"in",
"exactly",
"one",
"field",
"of",
"one",
"auxiliary",
"table",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php#L149-L155 | train |
googleapis/google-cloud-php | Iot/src/V1/ListDeviceRegistriesResponse.php | ListDeviceRegistriesResponse.setDeviceRegistries | public function setDeviceRegistries($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceRegistry::class);
$this->device_registries = $arr;
return $this;
} | php | public function setDeviceRegistries($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceRegistry::class);
$this->device_registries = $arr;
return $this;
} | [
"public",
"function",
"setDeviceRegistries",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",... | The registries that matched the query.
Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceRegistry device_registries = 1;</code>
@param \Google\Cloud\Iot\V1\DeviceRegistry[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"registries",
"that",
"matched",
"the",
"query",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Iot/src/V1/ListDeviceRegistriesResponse.php#L70-L76 | train |
googleapis/google-cloud-php | Dataproc/src/V1beta2/InstantiateInlineWorkflowTemplateRequest.php | InstantiateInlineWorkflowTemplateRequest.setTemplate | public function setTemplate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\WorkflowTemplate::class);
$this->template = $var;
return $this;
} | php | public function setTemplate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1beta2\WorkflowTemplate::class);
$this->template = $var;
return $this;
} | [
"public",
"function",
"setTemplate",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dataproc",
"\\",
"V1beta2",
"\\",
"WorkflowTemplate",
"::",
"class",
")",
";",
"$",
"this",
"->",... | Required. The workflow template to instantiate.
Generated from protobuf field <code>.google.cloud.dataproc.v1beta2.WorkflowTemplate template = 2;</code>
@param \Google\Cloud\Dataproc\V1beta2\WorkflowTemplate $var
@return $this | [
"Required",
".",
"The",
"workflow",
"template",
"to",
"instantiate",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dataproc/src/V1beta2/InstantiateInlineWorkflowTemplateRequest.php#L128-L134 | train |
googleapis/google-cloud-php | AutoMl/src/V1beta1/TranslationAnnotation.php | TranslationAnnotation.setTranslatedContent | public function setTranslatedContent($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSnippet::class);
$this->translated_content = $var;
return $this;
} | php | public function setTranslatedContent($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSnippet::class);
$this->translated_content = $var;
return $this;
} | [
"public",
"function",
"setTranslatedContent",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"AutoMl",
"\\",
"V1beta1",
"\\",
"TextSnippet",
"::",
"class",
")",
";",
"$",
"this",
"->... | Output only . The translated content.
Generated from protobuf field <code>.google.cloud.automl.v1beta1.TextSnippet translated_content = 1;</code>
@param \Google\Cloud\AutoMl\V1beta1\TextSnippet $var
@return $this | [
"Output",
"only",
".",
"The",
"translated",
"content",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/AutoMl/src/V1beta1/TranslationAnnotation.php#L58-L64 | train |
googleapis/google-cloud-php | Trace/src/AttributeTrait.php | AttributeTrait.addAttributes | public function addAttributes(array $attributes)
{
foreach ($attributes as $key => $value) {
$this->addAttribute($key, $value);
}
} | php | public function addAttributes(array $attributes)
{
foreach ($attributes as $key => $value) {
$this->addAttribute($key, $value);
}
} | [
"public",
"function",
"addAttributes",
"(",
"array",
"$",
"attributes",
")",
"{",
"foreach",
"(",
"$",
"attributes",
"as",
"$",
"key",
"=>",
"$",
"value",
")",
"{",
"$",
"this",
"->",
"addAttribute",
"(",
"$",
"key",
",",
"$",
"value",
")",
";",
"}",... | Attach labels to this span.
@param array $labels Labels in the form of $label => $value | [
"Attach",
"labels",
"to",
"this",
"span",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Trace/src/AttributeTrait.php#L35-L40 | train |
googleapis/google-cloud-php | Trace/src/AttributeTrait.php | AttributeTrait.addAttribute | public function addAttribute($key, $value)
{
if (!$this->attributes) {
$this->attributes = new Attributes();
}
$this->attributes[$key] = $value;
} | php | public function addAttribute($key, $value)
{
if (!$this->attributes) {
$this->attributes = new Attributes();
}
$this->attributes[$key] = $value;
} | [
"public",
"function",
"addAttribute",
"(",
"$",
"key",
",",
"$",
"value",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"attributes",
")",
"{",
"$",
"this",
"->",
"attributes",
"=",
"new",
"Attributes",
"(",
")",
";",
"}",
"$",
"this",
"->",
"attrib... | Attach a single label to this span.
@param string $label The name of the label.
@param mixed $value The value of the label. Will be cast to a string | [
"Attach",
"a",
"single",
"label",
"to",
"this",
"span",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Trace/src/AttributeTrait.php#L48-L55 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.encodeValuesAsSimpleType | public function encodeValuesAsSimpleType(array $values, $allowMixedArrayType = false)
{
$res = [];
foreach ($values as $value) {
$type = null;
$definition = null;
if (is_array($value) && (empty($value) || !$this->isAssoc($value))) {
$type = Databas... | php | public function encodeValuesAsSimpleType(array $values, $allowMixedArrayType = false)
{
$res = [];
foreach ($values as $value) {
$type = null;
$definition = null;
if (is_array($value) && (empty($value) || !$this->isAssoc($value))) {
$type = Databas... | [
"public",
"function",
"encodeValuesAsSimpleType",
"(",
"array",
"$",
"values",
",",
"$",
"allowMixedArrayType",
"=",
"false",
")",
"{",
"$",
"res",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"values",
"as",
"$",
"value",
")",
"{",
"$",
"type",
"=",
"null... | Accepts a list of values and encodes the value into a format accepted by
the Spanner API.
@param array $values The list of values
@param bool $allowMixedArrayType If true, array values may be of mixed type.
**Defaults to** `false`.
@return array The encoded values | [
"Accepts",
"a",
"list",
"of",
"values",
"and",
"encodes",
"the",
"value",
"into",
"a",
"format",
"accepted",
"by",
"the",
"Spanner",
"API",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L124-L139 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.resolveTypeDefinition | private function resolveTypeDefinition($type, $key = null)
{
$definition = null;
if (is_array($type)) {
$type += [
1 => null,
2 => null
];
$definition = new ArrayType($type[1], $type[2]);
$type = Database::TYPE_ARRAY;
... | php | private function resolveTypeDefinition($type, $key = null)
{
$definition = null;
if (is_array($type)) {
$type += [
1 => null,
2 => null
];
$definition = new ArrayType($type[1], $type[2]);
$type = Database::TYPE_ARRAY;
... | [
"private",
"function",
"resolveTypeDefinition",
"(",
"$",
"type",
",",
"$",
"key",
"=",
"null",
")",
"{",
"$",
"definition",
"=",
"null",
";",
"if",
"(",
"is_array",
"(",
"$",
"type",
")",
")",
"{",
"$",
"type",
"+=",
"[",
"1",
"=>",
"null",
",",
... | Infer the type of a parameter and ensure that the definition, if given,
is valid.
Because types are provided as either an integer code, or a StructType
or an ArrayType, and `paramType()` accepts the type and Struct/Array
definition separately, this method determines the proper value of
both the type and definition pri... | [
"Infer",
"the",
"type",
"of",
"a",
"parameter",
"and",
"ensure",
"that",
"the",
"definition",
"if",
"given",
"is",
"valid",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L200-L220 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.decodeValue | private function decodeValue($value, array $type)
{
if ($value === null || $value === '') {
return $value;
}
switch ($type['code']) {
case self::TYPE_INT64:
$value = $this->returnInt64AsObject
? new Int64($value)
... | php | private function decodeValue($value, array $type)
{
if ($value === null || $value === '') {
return $value;
}
switch ($type['code']) {
case self::TYPE_INT64:
$value = $this->returnInt64AsObject
? new Int64($value)
... | [
"private",
"function",
"decodeValue",
"(",
"$",
"value",
",",
"array",
"$",
"type",
")",
"{",
"if",
"(",
"$",
"value",
"===",
"null",
"||",
"$",
"value",
"===",
"''",
")",
"{",
"return",
"$",
"value",
";",
"}",
"switch",
"(",
"$",
"type",
"[",
"'... | Convert a single value to its corresponding PHP type.
@param mixed $value The value to decode
@param array $type The value type
@return mixed | [
"Convert",
"a",
"single",
"value",
"to",
"its",
"corresponding",
"PHP",
"type",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L229-L304 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.paramType | private function paramType(
$value,
$givenType = null,
$definition = null,
$allowMixedArrayType = false
) {
$valueType = gettype($value);
// If a definition is provided, the type is set to `array` to force
// the value to be interpreted as an array or a struc... | php | private function paramType(
$value,
$givenType = null,
$definition = null,
$allowMixedArrayType = false
) {
$valueType = gettype($value);
// If a definition is provided, the type is set to `array` to force
// the value to be interpreted as an array or a struc... | [
"private",
"function",
"paramType",
"(",
"$",
"value",
",",
"$",
"givenType",
"=",
"null",
",",
"$",
"definition",
"=",
"null",
",",
"$",
"allowMixedArrayType",
"=",
"false",
")",
"{",
"$",
"valueType",
"=",
"gettype",
"(",
"$",
"value",
")",
";",
"// ... | Create a spanner parameter type value object from a PHP value type.
@param mixed $value The PHP value
@param int|null $givenType If set, this type will be used in place of an
inferred type.
@param ArrayType|StructType|null $definition Defines the structured value
type for non-primitive values.
@param bool $allowMixedA... | [
"Create",
"a",
"spanner",
"parameter",
"type",
"value",
"object",
"from",
"a",
"PHP",
"value",
"type",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L319-L414 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.arrayParam | private function arrayParam($value, ArrayType $arrayType, $allowMixedArrayType = false)
{
if (!is_array($value) && $value !== null) {
throw new \InvalidArgumentException('Array value must be an array or null.');
}
$inferredTypes = [];
$res = null;
if ($value !== ... | php | private function arrayParam($value, ArrayType $arrayType, $allowMixedArrayType = false)
{
if (!is_array($value) && $value !== null) {
throw new \InvalidArgumentException('Array value must be an array or null.');
}
$inferredTypes = [];
$res = null;
if ($value !== ... | [
"private",
"function",
"arrayParam",
"(",
"$",
"value",
",",
"ArrayType",
"$",
"arrayType",
",",
"$",
"allowMixedArrayType",
"=",
"false",
")",
"{",
"if",
"(",
"!",
"is_array",
"(",
"$",
"value",
")",
"&&",
"$",
"value",
"!==",
"null",
")",
"{",
"throw... | Create value and paramater type declarations for array SQL parameters.
@param array $value The array values.
@param ArrayType $arrayType The array type declaration.
@param bool $allowMixedArrayType [optional] If true, array values may be of mixed type.
This is useful when reading against complex keys containing multip... | [
"Create",
"value",
"and",
"paramater",
"type",
"declarations",
"for",
"array",
"SQL",
"parameters",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L566-L621 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.objectParam | private function objectParam($value)
{
if ($value instanceof \stdClass) {
throw new \InvalidArgumentException(
'Values of type `\stdClass` are interpreted as structs and must define their types.'
);
}
if ($value instanceof ValueInterface) {
... | php | private function objectParam($value)
{
if ($value instanceof \stdClass) {
throw new \InvalidArgumentException(
'Values of type `\stdClass` are interpreted as structs and must define their types.'
);
}
if ($value instanceof ValueInterface) {
... | [
"private",
"function",
"objectParam",
"(",
"$",
"value",
")",
"{",
"if",
"(",
"$",
"value",
"instanceof",
"\\",
"stdClass",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"'Values of type `\\stdClass` are interpreted as structs and must define their type... | Handle query parameter mappings for various types of objects.
@param mixed $value The parameter value.
@return [array, array] An array containing the value and type. | [
"Handle",
"query",
"parameter",
"mappings",
"for",
"various",
"types",
"of",
"objects",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L629-L656 | train |
googleapis/google-cloud-php | Spanner/src/ValueMapper.php | ValueMapper.getColumnName | private function getColumnName($columns, $index)
{
return (isset($columns[$index]['name']) && $columns[$index]['name'])
? $columns[$index]['name']
: $index;
} | php | private function getColumnName($columns, $index)
{
return (isset($columns[$index]['name']) && $columns[$index]['name'])
? $columns[$index]['name']
: $index;
} | [
"private",
"function",
"getColumnName",
"(",
"$",
"columns",
",",
"$",
"index",
")",
"{",
"return",
"(",
"isset",
"(",
"$",
"columns",
"[",
"$",
"index",
"]",
"[",
"'name'",
"]",
")",
"&&",
"$",
"columns",
"[",
"$",
"index",
"]",
"[",
"'name'",
"]"... | Return the column name given a list of columns and a field index.
If the column name is not found, `$index` is returned.
@codingStandardsIgnoreStart
@param array $columns A list of columns. See
[ResultSetMetadata](https://cloud.google.com/spanner/docs/reference/rpc/google.spanner.v1#google.spanner.v1.ResultSetMetadat... | [
"Return",
"the",
"column",
"name",
"given",
"a",
"list",
"of",
"columns",
"and",
"a",
"field",
"index",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/ValueMapper.php#L689-L694 | train |
googleapis/google-cloud-php | Bigtable/src/Admin/V2/GcRule.php | GcRule.setIntersection | public function setIntersection($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule_Intersection::class);
$this->writeOneof(3, $var);
return $this;
} | php | public function setIntersection($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule_Intersection::class);
$this->writeOneof(3, $var);
return $this;
} | [
"public",
"function",
"setIntersection",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Bigtable",
"\\",
"Admin",
"\\",
"V2",
"\\",
"GcRule_Intersection",
"::",
"class",
")",
";",
"... | Delete cells that would be deleted by every nested rule.
Generated from protobuf field <code>.google.bigtable.admin.v2.GcRule.Intersection intersection = 3;</code>
@param \Google\Cloud\Bigtable\Admin\V2\GcRule\Intersection $var
@return $this | [
"Delete",
"cells",
"that",
"would",
"be",
"deleted",
"by",
"every",
"nested",
"rule",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Admin/V2/GcRule.php#L117-L123 | train |
googleapis/google-cloud-php | Bigtable/src/Admin/V2/GcRule.php | GcRule.setUnion | public function setUnion($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule_Union::class);
$this->writeOneof(4, $var);
return $this;
} | php | public function setUnion($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\GcRule_Union::class);
$this->writeOneof(4, $var);
return $this;
} | [
"public",
"function",
"setUnion",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Bigtable",
"\\",
"Admin",
"\\",
"V2",
"\\",
"GcRule_Union",
"::",
"class",
")",
";",
"$",
"this",
... | Delete cells that would be deleted by any nested rule.
Generated from protobuf field <code>.google.bigtable.admin.v2.GcRule.Union union = 4;</code>
@param \Google\Cloud\Bigtable\Admin\V2\GcRule\Union $var
@return $this | [
"Delete",
"cells",
"that",
"would",
"be",
"deleted",
"by",
"any",
"nested",
"rule",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Admin/V2/GcRule.php#L143-L149 | train |
googleapis/google-cloud-php | Speech/src/SpeechClient.php | SpeechClient.recognize | public function recognize($audio, array $options = [])
{
$results = [];
$response = $this->connection->recognize(
$this->formatRequest($audio, $options)
);
if (!isset($response['results'])) {
return $results;
}
foreach ($response['results'] a... | php | public function recognize($audio, array $options = [])
{
$results = [];
$response = $this->connection->recognize(
$this->formatRequest($audio, $options)
);
if (!isset($response['results'])) {
return $results;
}
foreach ($response['results'] a... | [
"public",
"function",
"recognize",
"(",
"$",
"audio",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"results",
"=",
"[",
"]",
";",
"$",
"response",
"=",
"$",
"this",
"->",
"connection",
"->",
"recognize",
"(",
"$",
"this",
"->",
"form... | Runs a recognize request and returns the results immediately. Ideal when
working with audio up to approximately one minute in length.
Example:
```
$results = $speech->recognize(
fopen(__DIR__ . '/audio.flac', 'r')
);
foreach ($results as $result) {
echo $result->topAlternative()['transcript'] . PHP_EOL;
}
```
```
/... | [
"Runs",
"a",
"recognize",
"request",
"and",
"returns",
"the",
"results",
"immediately",
".",
"Ideal",
"when",
"working",
"with",
"audio",
"up",
"to",
"approximately",
"one",
"minute",
"in",
"length",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Speech/src/SpeechClient.php#L217-L233 | train |
googleapis/google-cloud-php | Speech/src/SpeechClient.php | SpeechClient.beginRecognizeOperation | public function beginRecognizeOperation($audio, array $options = [])
{
$response = $this->connection->longRunningRecognize(
$this->formatRequest($audio, $options)
);
return new Operation(
$this->connection,
$response['name'],
$response
... | php | public function beginRecognizeOperation($audio, array $options = [])
{
$response = $this->connection->longRunningRecognize(
$this->formatRequest($audio, $options)
);
return new Operation(
$this->connection,
$response['name'],
$response
... | [
"public",
"function",
"beginRecognizeOperation",
"(",
"$",
"audio",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"response",
"=",
"$",
"this",
"->",
"connection",
"->",
"longRunningRecognize",
"(",
"$",
"this",
"->",
"formatRequest",
"(",
"$... | Runs a recognize request as an operation. Ideal when working with audio
longer than approximately one minute. Requires polling of the returned
operation in order to fetch results.
For longer audio, up to approximately 80 minutes, you must use Google
Cloud Storage objects as input. In addition to this restriction, only... | [
"Runs",
"a",
"recognize",
"request",
"as",
"an",
"operation",
".",
"Ideal",
"when",
"working",
"with",
"audio",
"longer",
"than",
"approximately",
"one",
"minute",
".",
"Requires",
"polling",
"of",
"the",
"returned",
"operation",
"in",
"order",
"to",
"fetch",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Speech/src/SpeechClient.php#L346-L357 | train |
googleapis/google-cloud-php | Spanner/src/V1/PlanNode.php | PlanNode.setChildLinks | public function setChildLinks($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\V1\PlanNode\ChildLink::class);
$this->child_links = $arr;
return $this;
} | php | public function setChildLinks($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\V1\PlanNode\ChildLink::class);
$this->child_links = $arr;
return $this;
} | [
"public",
"function",
"setChildLinks",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\... | List of child node `index`es and their relationship to this parent.
Generated from protobuf field <code>repeated .google.spanner.v1.PlanNode.ChildLink child_links = 4;</code>
@param \Google\Cloud\Spanner\V1\PlanNode\ChildLink[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"List",
"of",
"child",
"node",
"index",
"es",
"and",
"their",
"relationship",
"to",
"this",
"parent",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/V1/PlanNode.php#L225-L231 | train |
googleapis/google-cloud-php | BigQuery/src/Dataset.php | Dataset.exists | public function exists()
{
try {
$this->connection->getDataset($this->identity + ['fields' => 'datasetReference']);
} catch (NotFoundException $ex) {
return false;
}
return true;
} | php | public function exists()
{
try {
$this->connection->getDataset($this->identity + ['fields' => 'datasetReference']);
} catch (NotFoundException $ex) {
return false;
}
return true;
} | [
"public",
"function",
"exists",
"(",
")",
"{",
"try",
"{",
"$",
"this",
"->",
"connection",
"->",
"getDataset",
"(",
"$",
"this",
"->",
"identity",
"+",
"[",
"'fields'",
"=>",
"'datasetReference'",
"]",
")",
";",
"}",
"catch",
"(",
"NotFoundException",
"... | Check whether or not the dataset exists.
Example:
```
echo $dataset->exists();
```
@return bool | [
"Check",
"whether",
"or",
"not",
"the",
"dataset",
"exists",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQuery/src/Dataset.php#L98-L107 | train |
googleapis/google-cloud-php | BigQuery/src/Dataset.php | Dataset.tables | public function tables(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $table) {
return new Table(
$this->connection,
... | php | public function tables(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $table) {
return new Table(
$this->connection,
... | [
"public",
"function",
"tables",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"resultLimit",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'resultLimit'",
",",
"$",
"options",
",",
"false",
")",
";",
"return",
"new",
"ItemIterator",
"(",
"new",
... | Fetches tables in the dataset.
Example:
```
$tables = $dataset->tables();
foreach ($tables as $table) {
echo $table->id() . PHP_EOL;
}
```
@see https://cloud.google.com/bigquery/docs/reference/v2/tables/list Tables list API documentation.
@param array $options [optional] {
Configuration options.
@type int $maxResu... | [
"Fetches",
"tables",
"in",
"the",
"dataset",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQuery/src/Dataset.php#L232-L256 | train |
googleapis/google-cloud-php | BigQuery/src/Dataset.php | Dataset.reload | public function reload(array $options = [])
{
return $this->info = $this->connection->getDataset($options + $this->identity);
} | php | public function reload(array $options = [])
{
return $this->info = $this->connection->getDataset($options + $this->identity);
} | [
"public",
"function",
"reload",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"return",
"$",
"this",
"->",
"info",
"=",
"$",
"this",
"->",
"connection",
"->",
"getDataset",
"(",
"$",
"options",
"+",
"$",
"this",
"->",
"identity",
")",
";",
... | Triggers a network request to reload the dataset's details.
Example:
```
$dataset->reload();
$info = $dataset->info();
echo $info['selfLink'];
```
@see https://cloud.google.com/bigquery/docs/reference/v2/datasets/get Datasets get API documentation.
@param array $options [optional] Configuration options.
@return arra... | [
"Triggers",
"a",
"network",
"request",
"to",
"reload",
"the",
"dataset",
"s",
"details",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQuery/src/Dataset.php#L346-L349 | train |
googleapis/google-cloud-php | Dlp/src/V2/RecordLocation.php | RecordLocation.setRecordKey | public function setRecordKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordKey::class);
$this->record_key = $var;
return $this;
} | php | public function setRecordKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordKey::class);
$this->record_key = $var;
return $this;
} | [
"public",
"function",
"setRecordKey",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"RecordKey",
"::",
"class",
")",
";",
"$",
"this",
"->",
"record_key",... | Key of the finding.
Generated from protobuf field <code>.google.privacy.dlp.v2.RecordKey record_key = 1;</code>
@param \Google\Cloud\Dlp\V2\RecordKey $var
@return $this | [
"Key",
"of",
"the",
"finding",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/RecordLocation.php#L74-L80 | train |
googleapis/google-cloud-php | Dlp/src/V2/RecordLocation.php | RecordLocation.setFieldId | public function setFieldId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class);
$this->field_id = $var;
return $this;
} | php | public function setFieldId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class);
$this->field_id = $var;
return $this;
} | [
"public",
"function",
"setFieldId",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"FieldId",
"::",
"class",
")",
";",
"$",
"this",
"->",
"field_id",
"="... | Field id of the field containing the finding.
Generated from protobuf field <code>.google.privacy.dlp.v2.FieldId field_id = 2;</code>
@param \Google\Cloud\Dlp\V2\FieldId $var
@return $this | [
"Field",
"id",
"of",
"the",
"field",
"containing",
"the",
"finding",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/RecordLocation.php#L100-L106 | train |
googleapis/google-cloud-php | Dlp/src/V2/RecordLocation.php | RecordLocation.setTableLocation | public function setTableLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableLocation::class);
$this->table_location = $var;
return $this;
} | php | public function setTableLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableLocation::class);
$this->table_location = $var;
return $this;
} | [
"public",
"function",
"setTableLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"TableLocation",
"::",
"class",
")",
";",
"$",
"this",
"->",
"tabl... | Location within a `ContentItem.Table`.
Generated from protobuf field <code>.google.privacy.dlp.v2.TableLocation table_location = 3;</code>
@param \Google\Cloud\Dlp\V2\TableLocation $var
@return $this | [
"Location",
"within",
"a",
"ContentItem",
".",
"Table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/RecordLocation.php#L126-L132 | train |
googleapis/google-cloud-php | Spanner/src/V1/StructType/Field.php | Field.setType | public function setType($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Type::class);
$this->type = $var;
return $this;
} | php | public function setType($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Spanner\V1\Type::class);
$this->type = $var;
return $this;
} | [
"public",
"function",
"setType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Spanner",
"\\",
"V1",
"\\",
"Type",
"::",
"class",
")",
";",
"$",
"this",
"->",
"type",
"=",
"$... | The type of the field.
Generated from protobuf field <code>.google.spanner.v1.Type type = 2;</code>
@param \Google\Cloud\Spanner\V1\Type $var
@return $this | [
"The",
"type",
"of",
"the",
"field",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/V1/StructType/Field.php#L116-L122 | train |
googleapis/google-cloud-php | Spanner/src/Batch/BatchClient.php | BatchClient.snapshot | public function snapshot(array $options = [])
{
$options += [
'transactionOptions' => [],
];
// Single Use transactions are not supported in batch mode.
$options['transactionOptions']['singleUse'] = false;
$transactionOptions = $this->pluck('transactionOptions',... | php | public function snapshot(array $options = [])
{
$options += [
'transactionOptions' => [],
];
// Single Use transactions are not supported in batch mode.
$options['transactionOptions']['singleUse'] = false;
$transactionOptions = $this->pluck('transactionOptions',... | [
"public",
"function",
"snapshot",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"options",
"+=",
"[",
"'transactionOptions'",
"=>",
"[",
"]",
",",
"]",
";",
"// Single Use transactions are not supported in batch mode.",
"$",
"options",
"[",
"'trans... | Create a batch snapshot.
Example:
```
$snapshot = $batch->snapshot();
```
@param array $options [optional] {
Configuration Options
See [ReadOnly](https://cloud.google.com/spanner/reference/rpc/google.spanner.v1#google.spanner.v1.TransactionOptions.ReadOnly)
for detailed description of available options.
@type bool ... | [
"Create",
"a",
"batch",
"snapshot",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Batch/BatchClient.php#L165-L188 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setFrameLabelAnnotations | public function setFrameLabelAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\LabelAnnotation::class);
$this->frame_label_annotations = $arr;
return $this;
} | php | public function setFrameLabelAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\LabelAnnotation::class);
$this->frame_label_annotations = $arr;
return $this;
} | [
"public",
"function",
"setFrameLabelAnnotations",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Goo... | Label annotations on frame level.
There is exactly one element for each unique label.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;</code>
@param \Google\Cloud\VideoIntelligence\V1\LabelAnnotation[]|\Google\Protobuf\Internal\RepeatedField $... | [
"Label",
"annotations",
"on",
"frame",
"level",
".",
"There",
"is",
"exactly",
"one",
"element",
"for",
"each",
"unique",
"label",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L238-L244 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setFaceAnnotations | public function setFaceAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\FaceAnnotation::class);
$this->face_annotations = $arr;
return $this;
} | php | public function setFaceAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\FaceAnnotation::class);
$this->face_annotations = $arr;
return $this;
} | [
"public",
"function",
"setFaceAnnotations",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | Face annotations. There is exactly one element for each unique face.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5;</code>
@param \Google\Cloud\VideoIntelligence\V1\FaceAnnotation[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Face",
"annotations",
".",
"There",
"is",
"exactly",
"one",
"element",
"for",
"each",
"unique",
"face",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L264-L270 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setShotAnnotations | public function setShotAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\VideoSegment::class);
$this->shot_annotations = $arr;
return $this;
} | php | public function setShotAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\VideoSegment::class);
$this->shot_annotations = $arr;
return $this;
} | [
"public",
"function",
"setShotAnnotations",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | Shot annotations. Each shot is represented as a video segment.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;</code>
@param \Google\Cloud\VideoIntelligence\V1\VideoSegment[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Shot",
"annotations",
".",
"Each",
"shot",
"is",
"represented",
"as",
"a",
"video",
"segment",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L290-L296 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setExplicitAnnotation | public function setExplicitAnnotation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\VideoIntelligence\V1\ExplicitContentAnnotation::class);
$this->explicit_annotation = $var;
return $this;
} | php | public function setExplicitAnnotation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\VideoIntelligence\V1\ExplicitContentAnnotation::class);
$this->explicit_annotation = $var;
return $this;
} | [
"public",
"function",
"setExplicitAnnotation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"VideoIntelligence",
"\\",
"V1",
"\\",
"ExplicitContentAnnotation",
"::",
"class",
")",
";",
... | Explicit content annotation.
Generated from protobuf field <code>.google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7;</code>
@param \Google\Cloud\VideoIntelligence\V1\ExplicitContentAnnotation $var
@return $this | [
"Explicit",
"content",
"annotation",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L316-L322 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setSpeechTranscriptions | public function setSpeechTranscriptions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\SpeechTranscription::class);
$this->speech_transcriptions = $arr;
return $this;
} | php | public function setSpeechTranscriptions($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\SpeechTranscription::class);
$this->speech_transcriptions = $arr;
return $this;
} | [
"public",
"function",
"setSpeechTranscriptions",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Goog... | Speech transcription.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;</code>
@param \Google\Cloud\VideoIntelligence\V1\SpeechTranscription[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Speech",
"transcription",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L342-L348 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setTextAnnotations | public function setTextAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\TextAnnotation::class);
$this->text_annotations = $arr;
return $this;
} | php | public function setTextAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\TextAnnotation::class);
$this->text_annotations = $arr;
return $this;
} | [
"public",
"function",
"setTextAnnotations",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | OCR text detection and tracking.
Annotations for list of detected text snippets. Each will have list of
frame information associated with it.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;</code>
@param \Google\Cloud\VideoIntelligence\V1\TextAnnota... | [
"OCR",
"text",
"detection",
"and",
"tracking",
".",
"Annotations",
"for",
"list",
"of",
"detected",
"text",
"snippets",
".",
"Each",
"will",
"have",
"list",
"of",
"frame",
"information",
"associated",
"with",
"it",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L372-L378 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/VideoAnnotationResults.php | VideoAnnotationResults.setObjectAnnotations | public function setObjectAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\ObjectTrackingAnnotation::class);
$this->object_annotations = $arr;
return $this;
} | php | public function setObjectAnnotations($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VideoIntelligence\V1\ObjectTrackingAnnotation::class);
$this->object_annotations = $arr;
return $this;
} | [
"public",
"function",
"setObjectAnnotations",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google"... | Annotations for list of objects detected and tracked in video.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;</code>
@param \Google\Cloud\VideoIntelligence\V1\ObjectTrackingAnnotation[]|\Google\Protobuf\Internal\RepeatedField $var
@retu... | [
"Annotations",
"for",
"list",
"of",
"objects",
"detected",
"and",
"tracked",
"in",
"video",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/VideoAnnotationResults.php#L398-L404 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/ExplicitContentFrame.php | ExplicitContentFrame.setPornographyLikelihood | public function setPornographyLikelihood($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\VideoIntelligence\V1\Likelihood::class);
$this->pornography_likelihood = $var;
return $this;
} | php | public function setPornographyLikelihood($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\VideoIntelligence\V1\Likelihood::class);
$this->pornography_likelihood = $var;
return $this;
} | [
"public",
"function",
"setPornographyLikelihood",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"VideoIntelligence",
"\\",
"V1",
"\\",
"Likelihood",
"::",
"class",
")",
";",
"$",
"this",... | Likelihood of the pornography content..
Generated from protobuf field <code>.google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2;</code>
@param int $var
@return $this | [
"Likelihood",
"of",
"the",
"pornography",
"content",
".."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/ExplicitContentFrame.php#L96-L102 | train |
googleapis/google-cloud-php | Bigtable/src/Admin/V2/CreateTableFromSnapshotMetadata.php | CreateTableFromSnapshotMetadata.setOriginalRequest | public function setOriginalRequest($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest::class);
$this->original_request = $var;
return $this;
} | php | public function setOriginalRequest($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest::class);
$this->original_request = $var;
return $this;
} | [
"public",
"function",
"setOriginalRequest",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Bigtable",
"\\",
"Admin",
"\\",
"V2",
"\\",
"CreateTableFromSnapshotRequest",
"::",
"class",
"... | The request that prompted the initiation of this CreateTableFromSnapshot
operation.
Generated from protobuf field <code>.google.bigtable.admin.v2.CreateTableFromSnapshotRequest original_request = 1;</code>
@param \Google\Cloud\Bigtable\Admin\V2\CreateTableFromSnapshotRequest $var
@return $this | [
"The",
"request",
"that",
"prompted",
"the",
"initiation",
"of",
"this",
"CreateTableFromSnapshot",
"operation",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Admin/V2/CreateTableFromSnapshotMetadata.php#L82-L88 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/QueryResult.php | QueryResult.setFulfillmentMessages | public function setFulfillmentMessages($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message::class);
$this->fulfillment_messages = $arr;
return $this;
} | php | public function setFulfillmentMessages($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\Intent\Message::class);
$this->fulfillment_messages = $arr;
return $this;
} | [
"public",
"function",
"setFulfillmentMessages",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Googl... | The collection of rich messages to present to the user.
Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;</code>
@param \Google\Cloud\Dialogflow\V2\Intent\Message[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"collection",
"of",
"rich",
"messages",
"to",
"present",
"to",
"the",
"user",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/QueryResult.php#L462-L468 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/QueryResult.php | QueryResult.setSentimentAnalysisResult | public function setSentimentAnalysisResult($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult::class);
$this->sentiment_analysis_result = $var;
return $this;
} | php | public function setSentimentAnalysisResult($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult::class);
$this->sentiment_analysis_result = $var;
return $this;
} | [
"public",
"function",
"setSentimentAnalysisResult",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dialogflow",
"\\",
"V2",
"\\",
"SentimentAnalysisResult",
"::",
"class",
")",
";",
"$"... | The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
Generated from protobuf field <code>.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;</code>
@param \Google\Cloud\Dialogflow\V2\SentimentAnalysisResult $var
@return $this | [
"The",
"sentiment",
"analysis",
"result",
"which",
"depends",
"on",
"the",
"sentiment_analysis_request_config",
"specified",
"in",
"the",
"request",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/QueryResult.php#L670-L676 | train |
googleapis/google-cloud-php | Firestore/src/V1/TargetChange.php | TargetChange.setTargetChangeType | public function setTargetChangeType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\TargetChange_TargetChangeType::class);
$this->target_change_type = $var;
return $this;
} | php | public function setTargetChangeType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\TargetChange_TargetChangeType::class);
$this->target_change_type = $var;
return $this;
} | [
"public",
"function",
"setTargetChangeType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1",
"\\",
"TargetChange_TargetChangeType",
"::",
"class",
")",
";",
"$",
"... | The type of change that occurred.
Generated from protobuf field <code>.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;</code>
@param int $var
@return $this | [
"The",
"type",
"of",
"change",
"that",
"occurred",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1/TargetChange.php#L118-L124 | train |
googleapis/google-cloud-php | Firestore/src/V1/TargetChange.php | TargetChange.setTargetIds | public function setTargetIds($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->target_ids = $arr;
return $this;
} | php | public function setTargetIds($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->target_ids = $arr;
return $this;
} | [
"public",
"function",
"setTargetIds",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"INT32",
")",
";",
"$",
"this",
"-... | The target IDs of targets that have changed.
If empty, the change applies to all targets.
For `target_change_type=ADD`, the order of the target IDs matches the order
of the requests to add the targets. This allows clients to unambiguously
associate server-assigned target IDs with added targets.
For other states, the or... | [
"The",
"target",
"IDs",
"of",
"targets",
"that",
"have",
"changed",
".",
"If",
"empty",
"the",
"change",
"applies",
"to",
"all",
"targets",
".",
"For",
"target_change_type",
"=",
"ADD",
"the",
"order",
"of",
"the",
"target",
"IDs",
"matches",
"the",
"order... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1/TargetChange.php#L154-L160 | train |
googleapis/google-cloud-php | WebRisk/src/V1beta1/ThreatEntryAdditions.php | ThreatEntryAdditions.setRawHashes | public function setRawHashes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebRisk\V1beta1\RawHashes::class);
$this->raw_hashes = $arr;
return $this;
} | php | public function setRawHashes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebRisk\V1beta1\RawHashes::class);
$this->raw_hashes = $arr;
return $this;
} | [
"public",
"function",
"setRawHashes",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\"... | The raw SHA256-formatted entries.
Repeated to allow returning sets of hashes with different prefix sizes.
Generated from protobuf field <code>repeated .google.cloud.webrisk.v1beta1.RawHashes raw_hashes = 1;</code>
@param \Google\Cloud\WebRisk\V1beta1\RawHashes[]|\Google\Protobuf\Internal\RepeatedField $var
@return $th... | [
"The",
"raw",
"SHA256",
"-",
"formatted",
"entries",
".",
"Repeated",
"to",
"allow",
"returning",
"sets",
"of",
"hashes",
"with",
"different",
"prefix",
"sizes",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/WebRisk/src/V1beta1/ThreatEntryAdditions.php#L75-L81 | train |
googleapis/google-cloud-php | WebRisk/src/V1beta1/ThreatEntryAdditions.php | ThreatEntryAdditions.setRiceHashes | public function setRiceHashes($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\WebRisk\V1beta1\RiceDeltaEncoding::class);
$this->rice_hashes = $var;
return $this;
} | php | public function setRiceHashes($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\WebRisk\V1beta1\RiceDeltaEncoding::class);
$this->rice_hashes = $var;
return $this;
} | [
"public",
"function",
"setRiceHashes",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"WebRisk",
"\\",
"V1beta1",
"\\",
"RiceDeltaEncoding",
"::",
"class",
")",
";",
"$",
"this",
"->... | The encoded 4-byte prefixes of SHA256-formatted entries, using a
Golomb-Rice encoding. The hashes are converted to uint32, sorted in
ascending order, then delta encoded and stored as encoded_data.
Generated from protobuf field <code>.google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2;</code>
@param \Google... | [
"The",
"encoded",
"4",
"-",
"byte",
"prefixes",
"of",
"SHA256",
"-",
"formatted",
"entries",
"using",
"a",
"Golomb",
"-",
"Rice",
"encoding",
".",
"The",
"hashes",
"are",
"converted",
"to",
"uint32",
"sorted",
"in",
"ascending",
"order",
"then",
"delta",
"... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/WebRisk/src/V1beta1/ThreatEntryAdditions.php#L105-L111 | train |
googleapis/google-cloud-php | Dlp/src/V2/CloudStorageOptions.php | CloudStorageOptions.setFileSet | public function setFileSet($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions_FileSet::class);
$this->file_set = $var;
return $this;
} | php | public function setFileSet($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions_FileSet::class);
$this->file_set = $var;
return $this;
} | [
"public",
"function",
"setFileSet",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"CloudStorageOptions_FileSet",
"::",
"class",
")",
";",
"$",
"this",
"->",... | The set of one or more files to scan.
Generated from protobuf field <code>.google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1;</code>
@param \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $var
@return $this | [
"The",
"set",
"of",
"one",
"or",
"more",
"files",
"to",
"scan",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/CloudStorageOptions.php#L116-L122 | train |
googleapis/google-cloud-php | Dlp/src/V2/CloudStorageOptions.php | CloudStorageOptions.setFileTypes | public function setFileTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class);
$this->file_types = $arr;
return $this;
} | php | public function setFileTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class);
$this->file_types = $arr;
return $this;
} | [
"public",
"function",
"setFileTypes",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"ENUM",
",",
"\\",
"Google",
"\\",
... | List of file type groups to include in the scan.
If empty, all files are scanned and available data format processors
are applied. In addition, the binary content of the selected files
is always scanned as well.
Generated from protobuf field <code>repeated .google.privacy.dlp.v2.FileType file_types = 5;</code>
@param ... | [
"List",
"of",
"file",
"type",
"groups",
"to",
"include",
"in",
"the",
"scan",
".",
"If",
"empty",
"all",
"files",
"are",
"scanned",
"and",
"available",
"data",
"format",
"processors",
"are",
"applied",
".",
"In",
"addition",
"the",
"binary",
"content",
"of... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/CloudStorageOptions.php#L210-L216 | train |
googleapis/google-cloud-php | Spanner/src/Admin/Database/V1/Database.php | Database.setState | public function setState($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\Database_State::class);
$this->state = $var;
return $this;
} | php | public function setState($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\Database_State::class);
$this->state = $var;
return $this;
} | [
"public",
"function",
"setState",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Spanner",
"\\",
"Admin",
"\\",
"Database",
"\\",
"V1",
"\\",
"Database_State",
"::",
"class",
")",
";... | Output only. The current database state.
Generated from protobuf field <code>.google.spanner.admin.database.v1.Database.State state = 2;</code>
@param int $var
@return $this | [
"Output",
"only",
".",
"The",
"current",
"database",
"state",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Admin/Database/V1/Database.php#L108-L114 | train |
googleapis/google-cloud-php | Dlp/src/V2/CloudStorageOptions/FileSet.php | FileSet.setRegexFileSet | public function setRegexFileSet($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet::class);
$this->regex_file_set = $var;
return $this;
} | php | public function setRegexFileSet($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet::class);
$this->regex_file_set = $var;
return $this;
} | [
"public",
"function",
"setRegexFileSet",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"CloudStorageRegexFileSet",
"::",
"class",
")",
";",
"$",
"this",
"->... | The regex-filtered set of files to scan. Exactly one of `url` or
`regex_file_set` must be set.
Generated from protobuf field <code>.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;</code>
@param \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $var
@return $this | [
"The",
"regex",
"-",
"filtered",
"set",
"of",
"files",
"to",
"scan",
".",
"Exactly",
"one",
"of",
"url",
"or",
"regex_file_set",
"must",
"be",
"set",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/CloudStorageOptions/FileSet.php#L124-L130 | train |
googleapis/google-cloud-php | Core/src/LongRunning/LongRunningOperation.php | LongRunningOperation.state | public function state(array $options = [])
{
if (!$this->done($options)) {
return self::STATE_IN_PROGRESS;
}
if ($this->done() && $this->result()) {
return self::STATE_SUCCESS;
}
return self::STATE_ERROR;
} | php | public function state(array $options = [])
{
if (!$this->done($options)) {
return self::STATE_IN_PROGRESS;
}
if ($this->done() && $this->result()) {
return self::STATE_SUCCESS;
}
return self::STATE_ERROR;
} | [
"public",
"function",
"state",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"done",
"(",
"$",
"options",
")",
")",
"{",
"return",
"self",
"::",
"STATE_IN_PROGRESS",
";",
"}",
"if",
"(",
"$",
"this",
"-... | Get the state of the Operation.
Return value will be one of `LongRunningOperation::STATE_IN_PROGRESS`,
`LongRunningOperation::STATE_SUCCESS` or
`LongRunningOperation::STATE_ERROR`.
If the Operation state is not available, a service request may be executed
by this method.
Example:
```
switch ($operation->state()) {
c... | [
"Get",
"the",
"state",
"of",
"the",
"Operation",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/LongRunning/LongRunningOperation.php#L151-L162 | train |
googleapis/google-cloud-php | Core/src/LongRunning/LongRunningOperation.php | LongRunningOperation.reload | public function reload(array $options = [])
{
$res = $this->connection->get([
'name' => $this->name,
] + $options);
$this->result = null;
$this->error = null;
if (isset($res['done']) && $res['done']) {
$type = $res['metadata']['typeUrl'];
... | php | public function reload(array $options = [])
{
$res = $this->connection->get([
'name' => $this->name,
] + $options);
$this->result = null;
$this->error = null;
if (isset($res['done']) && $res['done']) {
$type = $res['metadata']['typeUrl'];
... | [
"public",
"function",
"reload",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"res",
"=",
"$",
"this",
"->",
"connection",
"->",
"get",
"(",
"[",
"'name'",
"=>",
"$",
"this",
"->",
"name",
",",
"]",
"+",
"$",
"options",
")",
";",
... | Reload the Operation to check its status.
Example:
```
$result = $operation->reload();
```
@codingStandardsIgnoreStart
@param array $options [optional] Configuration Options.
@return array [google.longrunning.Operation](https://cloud.google.com/spanner/docs/reference/rpc/google.longrunning#google.longrunning.Operatio... | [
"Reload",
"the",
"Operation",
"to",
"check",
"its",
"status",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/LongRunning/LongRunningOperation.php#L244-L261 | train |
googleapis/google-cloud-php | Core/src/LongRunning/LongRunningOperation.php | LongRunningOperation.pollUntilComplete | public function pollUntilComplete(array $options = [])
{
$options += [
'pollingIntervalSeconds' => $this::WAIT_INTERVAL,
'maxPollingDurationSeconds' => 0.0,
];
$pollingIntervalMicros = $options['pollingIntervalSeconds'] * 1000000;
$maxPollingDuration = $optio... | php | public function pollUntilComplete(array $options = [])
{
$options += [
'pollingIntervalSeconds' => $this::WAIT_INTERVAL,
'maxPollingDurationSeconds' => 0.0,
];
$pollingIntervalMicros = $options['pollingIntervalSeconds'] * 1000000;
$maxPollingDuration = $optio... | [
"public",
"function",
"pollUntilComplete",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"options",
"+=",
"[",
"'pollingIntervalSeconds'",
"=>",
"$",
"this",
"::",
"WAIT_INTERVAL",
",",
"'maxPollingDurationSeconds'",
"=>",
"0.0",
",",
"]",
";",
... | Reload the operation until it is complete.
The return type of this method is dictated by the type of Operation. If
`$options.maxPollingDurationSeconds` is set, and the poll exceeds the
limit, the return will be `null`.
Example:
```
$result = $operation->pollUntilComplete();
```
@param array $options {
Configuration ... | [
"Reload",
"the",
"operation",
"until",
"it",
"is",
"complete",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/LongRunning/LongRunningOperation.php#L285-L303 | train |
googleapis/google-cloud-php | Core/src/LongRunning/LongRunningOperation.php | LongRunningOperation.executeDoneCallback | private function executeDoneCallback($type, $response)
{
if (is_null($response)) {
return null;
}
$callables = array_filter($this->callablesMap, function ($callable) use ($type) {
return $callable['typeUrl'] === $type;
});
if (count($callables) === 0... | php | private function executeDoneCallback($type, $response)
{
if (is_null($response)) {
return null;
}
$callables = array_filter($this->callablesMap, function ($callable) use ($type) {
return $callable['typeUrl'] === $type;
});
if (count($callables) === 0... | [
"private",
"function",
"executeDoneCallback",
"(",
"$",
"type",
",",
"$",
"response",
")",
"{",
"if",
"(",
"is_null",
"(",
"$",
"response",
")",
")",
"{",
"return",
"null",
";",
"}",
"$",
"callables",
"=",
"array_filter",
"(",
"$",
"this",
"->",
"calla... | When the Operation is complete, there may be a callback enqueued to
handle the response. If so, execute it and return the result.
@param string $type The response type.
@param mixed $response The response data.
@return mixed | [
"When",
"the",
"Operation",
"is",
"complete",
"there",
"may",
"be",
"a",
"callback",
"enqueued",
"to",
"handle",
"the",
"response",
".",
"If",
"so",
"execute",
"it",
"and",
"return",
"the",
"result",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/LongRunning/LongRunningOperation.php#L349-L367 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/VoiceSelectionParams.php | VoiceSelectionParams.setSsmlGender | public function setSsmlGender($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class);
$this->ssml_gender = $var;
return $this;
} | php | public function setSsmlGender($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SsmlVoiceGender::class);
$this->ssml_gender = $var;
return $this;
} | [
"public",
"function",
"setSsmlGender",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dialogflow",
"\\",
"V2",
"\\",
"SsmlVoiceGender",
"::",
"class",
")",
";",
"$",
"this",
"->",
"s... | Optional. The preferred gender of the voice. If not set, the service will
choose a voice based on the other parameters such as language_code and
name. Note that this is only a preference, not requirement. If a
voice of the appropriate gender is not available, the synthesizer should
substitute a voice with a different g... | [
"Optional",
".",
"The",
"preferred",
"gender",
"of",
"the",
"voice",
".",
"If",
"not",
"set",
"the",
"service",
"will",
"choose",
"a",
"voice",
"based",
"on",
"the",
"other",
"parameters",
"such",
"as",
"language_code",
"and",
"name",
".",
"Note",
"that",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/VoiceSelectionParams.php#L112-L118 | train |
googleapis/google-cloud-php | Spanner/src/Admin/Database/V1/GetDatabaseDdlResponse.php | GetDatabaseDdlResponse.setStatements | public function setStatements($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->statements = $arr;
return $this;
} | php | public function setStatements($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->statements = $arr;
return $this;
} | [
"public",
"function",
"setStatements",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
")",
";",
"$",
"this",
... | A list of formatted DDL statements defining the schema of the database
specified in the request.
Generated from protobuf field <code>repeated string statements = 1;</code>
@param string[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"A",
"list",
"of",
"formatted",
"DDL",
"statements",
"defining",
"the",
"schema",
"of",
"the",
"database",
"specified",
"in",
"the",
"request",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/Admin/Database/V1/GetDatabaseDdlResponse.php#L63-L69 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.