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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
googleapis/google-cloud-php | Dialogflow/src/V2/Intent/Parameter.php | Parameter.setPrompts | public function setPrompts($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->prompts = $arr;
return $this;
} | php | public function setPrompts($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->prompts = $arr;
return $this;
} | [
"public",
"function",
"setPrompts",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
")",
";",
"$",
"this",
"->... | Optional. The collection of prompts that the agent can present to the
user in order to collect value for the parameter.
Generated from protobuf field <code>repeated string prompts = 7;</code>
@param string[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"collection",
"of",
"prompts",
"that",
"the",
"agent",
"can",
"present",
"to",
"the",
"user",
"in",
"order",
"to",
"collect",
"value",
"for",
"the",
"parameter",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/Intent/Parameter.php#L322-L328 | train |
googleapis/google-cloud-php | Dlp/src/V2/DateShiftConfig.php | DateShiftConfig.setCryptoKey | public function setCryptoKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class);
$this->writeOneof(4, $var);
return $this;
} | php | public function setCryptoKey($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class);
$this->writeOneof(4, $var);
return $this;
} | [
"public",
"function",
"setCryptoKey",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"CryptoKey",
"::",
"class",
")",
";",
"$",
"this",
"->",
"writeOneof",... | Causes the shift to be computed based on this key and the context. This
results in the same shift for the same context and crypto_key.
Generated from protobuf field <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
@param \Google\Cloud\Dlp\V2\CryptoKey $var
@return $this | [
"Causes",
"the",
"shift",
"to",
"be",
"computed",
"based",
"on",
"this",
"key",
"and",
"the",
"context",
".",
"This",
"results",
"in",
"the",
"same",
"shift",
"for",
"the",
"same",
"context",
"and",
"crypto_key",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DateShiftConfig.php#L188-L194 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.topics | public function topics(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $topic) {
return $this->topicFactory($topic['name'], $topic);
},
... | php | public function topics(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $topic) {
return $this->topicFactory($topic['name'], $topic);
},
... | [
"public",
"function",
"topics",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"resultLimit",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'resultLimit'",
",",
"$",
"options",
",",
"false",
")",
";",
"return",
"new",
"ItemIterator",
"(",
"new",
... | Get a list of the topics registered to your project.
Example:
```
$topics = $pubsub->topics();
foreach ($topics as $topic) {
$info = $topic->info();
echo $info['name']; // `projects/my-awesome-project/topics/my-new-topic`
}
```
@see https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/list List Topi... | [
"Get",
"a",
"list",
"of",
"the",
"topics",
"registered",
"to",
"your",
"project",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L238-L255 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.subscriptions | public function subscriptions(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $subscription) {
return $this->subscriptionFactory(
$s... | php | public function subscriptions(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $subscription) {
return $this->subscriptionFactory(
$s... | [
"public",
"function",
"subscriptions",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"resultLimit",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'resultLimit'",
",",
"$",
"options",
",",
"false",
")",
";",
"return",
"new",
"ItemIterator",
"(",
... | Get a list of the subscriptions registered to all of your project's
topics.
Example:
```
$subscriptions = $pubsub->subscriptions();
foreach ($subscriptions as $subscription) {
$info = $subscription->info();
echo $info['name']; // `projects/my-awesome-project/subscriptions/<subscription-name>`
}
```
@see https://cloud... | [
"Get",
"a",
"list",
"of",
"the",
"subscriptions",
"registered",
"to",
"all",
"of",
"your",
"project",
"s",
"topics",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L337-L358 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.snapshot | public function snapshot($name, array $info = [])
{
return new Snapshot($this->connection, $this->projectId, $name, $this->encode, $info);
} | php | public function snapshot($name, array $info = [])
{
return new Snapshot($this->connection, $this->projectId, $name, $this->encode, $info);
} | [
"public",
"function",
"snapshot",
"(",
"$",
"name",
",",
"array",
"$",
"info",
"=",
"[",
"]",
")",
"{",
"return",
"new",
"Snapshot",
"(",
"$",
"this",
"->",
"connection",
",",
"$",
"this",
"->",
"projectId",
",",
"$",
"name",
",",
"$",
"this",
"->"... | Lazily create a snapshot instance.
Example:
```
$snapshot = $pubsub->snapshot('my-snapshot');
```
@param string $name The snapshot name.
@param array $info [optional] Snapshot info.
@return Snapshot | [
"Lazily",
"create",
"a",
"snapshot",
"instance",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L399-L402 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.snapshots | public function snapshots(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $snapshot) {
return new Snapshot(
$this->connection,
... | php | public function snapshots(array $options = [])
{
$resultLimit = $this->pluck('resultLimit', $options, false);
return new ItemIterator(
new PageIterator(
function (array $snapshot) {
return new Snapshot(
$this->connection,
... | [
"public",
"function",
"snapshots",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"resultLimit",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'resultLimit'",
",",
"$",
"options",
",",
"false",
")",
";",
"return",
"new",
"ItemIterator",
"(",
"new... | Get a list of the snapshots in the project.
Please note that this method may not yet be available in your project.
Example:
```
$snapshots = $pubsub->snapshots();
foreach ($snapshots as $snapshot) {
$info = $snapshot->info();
echo $info['name'];
}
```
@param array $options [optional] {
Configuration Options
@type i... | [
"Get",
"a",
"list",
"of",
"the",
"snapshots",
"in",
"the",
"project",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L430-L453 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.consume | public function consume(array $requestData)
{
return $this->messageFactory($requestData, $this->connection, $this->projectId, $this->encode);
} | php | public function consume(array $requestData)
{
return $this->messageFactory($requestData, $this->connection, $this->projectId, $this->encode);
} | [
"public",
"function",
"consume",
"(",
"array",
"$",
"requestData",
")",
"{",
"return",
"$",
"this",
"->",
"messageFactory",
"(",
"$",
"requestData",
",",
"$",
"this",
"->",
"connection",
",",
"$",
"this",
"->",
"projectId",
",",
"$",
"this",
"->",
"encod... | Consume an incoming message and return a PubSub Message.
This method is for use with push delivery only.
Example:
```
$httpPostRequestBody = file_get_contents('php://input');
$requestData = json_decode($httpPostRequestBody, true);
$message = $pubsub->consume($requestData);
```
@param array $requestBody The HTTP Req... | [
"Consume",
"an",
"incoming",
"message",
"and",
"return",
"a",
"PubSub",
"Message",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L471-L474 | train |
googleapis/google-cloud-php | PubSub/src/PubSubClient.php | PubSubClient.topicFactory | private function topicFactory($name, array $info = [])
{
return new Topic(
$this->connection,
$this->projectId,
$name,
$this->encode,
$info,
$this->clientConfig
);
} | php | private function topicFactory($name, array $info = [])
{
return new Topic(
$this->connection,
$this->projectId,
$name,
$this->encode,
$info,
$this->clientConfig
);
} | [
"private",
"function",
"topicFactory",
"(",
"$",
"name",
",",
"array",
"$",
"info",
"=",
"[",
"]",
")",
"{",
"return",
"new",
"Topic",
"(",
"$",
"this",
"->",
"connection",
",",
"$",
"this",
"->",
"projectId",
",",
"$",
"name",
",",
"$",
"this",
"-... | Create an instance of a topic
@codingStandardsIgnoreStart
@param string $name The topic name
@param array $info [optional] Information about the topic. Used internally to
populate topic objects with an API result. Should be
a representation of a [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.... | [
"Create",
"an",
"instance",
"of",
"a",
"topic"
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/PubSubClient.php#L523-L533 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/EmploymentRecord.php | EmploymentRecord.setAddress | public function setAddress($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Address::class);
$this->address = $var;
return $this;
} | php | public function setAddress($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Address::class);
$this->address = $var;
return $this;
} | [
"public",
"function",
"setAddress",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Talent",
"\\",
"V4beta1",
"\\",
"Address",
"::",
"class",
")",
";",
"$",
"this",
"->",
"address"... | Optional.
The physical address of the employer.
Generated from protobuf field <code>.google.cloud.talent.v4beta1.Address address = 5;</code>
@param \Google\Cloud\Talent\V4beta1\Address $var
@return $this | [
"Optional",
".",
"The",
"physical",
"address",
"of",
"the",
"employer",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/EmploymentRecord.php#L378-L384 | train |
googleapis/google-cloud-php | AutoMl/src/V1beta1/Gapic/AutoMlGapicClient.php | AutoMlGapicClient.datasetName | public static function datasetName($project, $location, $dataset)
{
return self::getDatasetNameTemplate()->render([
'project' => $project,
'location' => $location,
'dataset' => $dataset,
]);
} | php | public static function datasetName($project, $location, $dataset)
{
return self::getDatasetNameTemplate()->render([
'project' => $project,
'location' => $location,
'dataset' => $dataset,
]);
} | [
"public",
"static",
"function",
"datasetName",
"(",
"$",
"project",
",",
"$",
"location",
",",
"$",
"dataset",
")",
"{",
"return",
"self",
"::",
"getDatasetNameTemplate",
"(",
")",
"->",
"render",
"(",
"[",
"'project'",
"=>",
"$",
"project",
",",
"'locatio... | Formats a string containing the fully-qualified path to represent
a dataset resource.
@param string $project
@param string $location
@param string $dataset
@return string The formatted dataset resource.
@experimental | [
"Formats",
"a",
"string",
"containing",
"the",
"fully",
"-",
"qualified",
"path",
"to",
"represent",
"a",
"dataset",
"resource",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/AutoMl/src/V1beta1/Gapic/AutoMlGapicClient.php#L231-L238 | train |
googleapis/google-cloud-php | AutoMl/src/V1beta1/Gapic/AutoMlGapicClient.php | AutoMlGapicClient.modelEvaluationName | public static function modelEvaluationName($project, $location, $model, $modelEvaluation)
{
return self::getModelEvaluationNameTemplate()->render([
'project' => $project,
'location' => $location,
'model' => $model,
'model_evaluation' => $modelEvaluation,
... | php | public static function modelEvaluationName($project, $location, $model, $modelEvaluation)
{
return self::getModelEvaluationNameTemplate()->render([
'project' => $project,
'location' => $location,
'model' => $model,
'model_evaluation' => $modelEvaluation,
... | [
"public",
"static",
"function",
"modelEvaluationName",
"(",
"$",
"project",
",",
"$",
"location",
",",
"$",
"model",
",",
"$",
"modelEvaluation",
")",
"{",
"return",
"self",
"::",
"getModelEvaluationNameTemplate",
"(",
")",
"->",
"render",
"(",
"[",
"'project'... | Formats a string containing the fully-qualified path to represent
a model_evaluation resource.
@param string $project
@param string $location
@param string $model
@param string $modelEvaluation
@return string The formatted model_evaluation resource.
@experimental | [
"Formats",
"a",
"string",
"containing",
"the",
"fully",
"-",
"qualified",
"path",
"to",
"represent",
"a",
"model_evaluation",
"resource",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/AutoMl/src/V1beta1/Gapic/AutoMlGapicClient.php#L272-L280 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.documents | public function documents(array $options = [])
{
$maxRetries = $this->pluck('maxRetries', $options, false);
$maxRetries = $maxRetries === null
? FirestoreClient::MAX_RETRIES
: $maxRetries;
$rows = (new ExponentialBackoff($maxRetries))->execute(function () use ($optio... | php | public function documents(array $options = [])
{
$maxRetries = $this->pluck('maxRetries', $options, false);
$maxRetries = $maxRetries === null
? FirestoreClient::MAX_RETRIES
: $maxRetries;
$rows = (new ExponentialBackoff($maxRetries))->execute(function () use ($optio... | [
"public",
"function",
"documents",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"maxRetries",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'maxRetries'",
",",
"$",
"options",
",",
"false",
")",
";",
"$",
"maxRetries",
"=",
"$",
"maxRetries",
... | Get all documents matching the provided query filters.
Example:
```
$result = $query->documents();
```
@codingStandardsIgnoreStart
@see https://cloud.google.com/firestore/docs/reference/rpc/google.firestore.v1beta1#google.firestore.v1beta1.Firestore.RunQuery RunQuery
@codingStandardsIgnoreEnd
@param array $options {
... | [
"Get",
"all",
"documents",
"matching",
"the",
"provided",
"query",
"filters",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L166-L218 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.select | public function select(array $fieldPaths)
{
$fields = [];
foreach ($fieldPaths as $field) {
if (!($field instanceof FieldPath)) {
$field = FieldPath::fromString($field);
}
$fields[] = [
'fieldPath' => $field->pathString()
... | php | public function select(array $fieldPaths)
{
$fields = [];
foreach ($fieldPaths as $field) {
if (!($field instanceof FieldPath)) {
$field = FieldPath::fromString($field);
}
$fields[] = [
'fieldPath' => $field->pathString()
... | [
"public",
"function",
"select",
"(",
"array",
"$",
"fieldPaths",
")",
"{",
"$",
"fields",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"fieldPaths",
"as",
"$",
"field",
")",
"{",
"if",
"(",
"!",
"(",
"$",
"field",
"instanceof",
"FieldPath",
")",
")",
"... | Add a SELECT to the Query.
Creates and returns a new Query instance that applies a field mask to the
result and returns only the specified subset of fields. You can specify a
list of field paths to return, or use an empty list to only return the
references of matching documents.
Subsequent calls to this method will o... | [
"Add",
"a",
"SELECT",
"to",
"the",
"Query",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L240-L264 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.where | public function where($fieldPath, $operator, $value)
{
if ($value instanceof FieldValueInterface) {
throw new \InvalidArgumentException(sprintf(
'Value cannot be a `%s` value.',
FieldValue::class
));
}
if (!($fieldPath instanceof Field... | php | public function where($fieldPath, $operator, $value)
{
if ($value instanceof FieldValueInterface) {
throw new \InvalidArgumentException(sprintf(
'Value cannot be a `%s` value.',
FieldValue::class
));
}
if (!($fieldPath instanceof Field... | [
"public",
"function",
"where",
"(",
"$",
"fieldPath",
",",
"$",
"operator",
",",
"$",
"value",
")",
"{",
"if",
"(",
"$",
"value",
"instanceof",
"FieldValueInterface",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentException",
"(",
"sprintf",
"(",
"'Value ca... | Add a WHERE clause to the Query.
Example:
```
$query = $query->where('firstName', '=', 'John');
```
```
// Filtering against `null` and `NAN` is supported only with the equality operator.
$query = $query->where('coolnessPercentage', '=', NAN);
```
```
// Use `array-contains` to select documents where the array conta... | [
"Add",
"a",
"WHERE",
"clause",
"to",
"the",
"Query",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L290-L357 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.orderBy | public function orderBy($fieldPath, $direction = self::DIR_ASCENDING)
{
$direction = array_key_exists(strtoupper($direction), $this->shortDirections)
? $this->shortDirections[strtoupper($direction)]
: $direction;
if (!in_array($direction, $this->allowedDirections)) {
... | php | public function orderBy($fieldPath, $direction = self::DIR_ASCENDING)
{
$direction = array_key_exists(strtoupper($direction), $this->shortDirections)
? $this->shortDirections[strtoupper($direction)]
: $direction;
if (!in_array($direction, $this->allowedDirections)) {
... | [
"public",
"function",
"orderBy",
"(",
"$",
"fieldPath",
",",
"$",
"direction",
"=",
"self",
"::",
"DIR_ASCENDING",
")",
"{",
"$",
"direction",
"=",
"array_key_exists",
"(",
"strtoupper",
"(",
"$",
"direction",
")",
",",
"$",
"this",
"->",
"shortDirections",
... | Add an ORDER BY clause to the Query.
Example:
```
$query = $query->orderBy('firstName', 'DESC');
```
@param string|FieldPath $fieldPath The field to order by.
@param string $direction The direction to order in. **Defaults to** `ASC`.
@return Query A new instance of Query with the given changes applied.
@throws \Inval... | [
"Add",
"an",
"ORDER",
"BY",
"clause",
"to",
"the",
"Query",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L374-L408 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.snapshotPosition | private function snapshotPosition(DocumentSnapshot $snapshot, array $orderBy)
{
$appendName = true;
foreach ($orderBy as $order) {
if ($order['field']['fieldPath'] === self::DOCUMENT_ID) {
$appendName = false;
break;
}
}
if ($a... | php | private function snapshotPosition(DocumentSnapshot $snapshot, array $orderBy)
{
$appendName = true;
foreach ($orderBy as $order) {
if ($order['field']['fieldPath'] === self::DOCUMENT_ID) {
$appendName = false;
break;
}
}
if ($a... | [
"private",
"function",
"snapshotPosition",
"(",
"DocumentSnapshot",
"$",
"snapshot",
",",
"array",
"$",
"orderBy",
")",
"{",
"$",
"appendName",
"=",
"true",
";",
"foreach",
"(",
"$",
"orderBy",
"as",
"$",
"order",
")",
"{",
"if",
"(",
"$",
"order",
"[",
... | Build cursors for document snapshots.
@param DocumentSnapshot $snapshot The document snapshot
@param array $orderBy A list of orderBy clauses.
@return array A list, where position 0 is fieldValues and position 1 is orderBy. | [
"Build",
"cursors",
"for",
"document",
"snapshots",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L703-L766 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.snapshotCursorValues | private function snapshotCursorValues(DocumentSnapshot $snapshot, array $orderBy)
{
$fieldValues = [];
foreach ($orderBy as $order) {
$path = $order['field']['fieldPath'];
if ($path === self::DOCUMENT_ID) {
continue;
}
$fieldValues[] =... | php | private function snapshotCursorValues(DocumentSnapshot $snapshot, array $orderBy)
{
$fieldValues = [];
foreach ($orderBy as $order) {
$path = $order['field']['fieldPath'];
if ($path === self::DOCUMENT_ID) {
continue;
}
$fieldValues[] =... | [
"private",
"function",
"snapshotCursorValues",
"(",
"DocumentSnapshot",
"$",
"snapshot",
",",
"array",
"$",
"orderBy",
")",
"{",
"$",
"fieldValues",
"=",
"[",
"]",
";",
"foreach",
"(",
"$",
"orderBy",
"as",
"$",
"order",
")",
"{",
"$",
"path",
"=",
"$",
... | Determine field values for Document Snapshot cursors.
@param DocumentSnapshot $snapshot
@param array $orderBy
@return $fieldValues | [
"Determine",
"field",
"values",
"for",
"Document",
"Snapshot",
"cursors",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L775-L789 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.newQuery | private function newQuery(array $additionalConfig, $overrideTopLevelKeys = false)
{
$query = $this->query;
if ($overrideTopLevelKeys) {
$keys = array_keys($additionalConfig);
foreach ($keys as $key) {
unset($query[$key]);
}
}
$que... | php | private function newQuery(array $additionalConfig, $overrideTopLevelKeys = false)
{
$query = $this->query;
if ($overrideTopLevelKeys) {
$keys = array_keys($additionalConfig);
foreach ($keys as $key) {
unset($query[$key]);
}
}
$que... | [
"private",
"function",
"newQuery",
"(",
"array",
"$",
"additionalConfig",
",",
"$",
"overrideTopLevelKeys",
"=",
"false",
")",
"{",
"$",
"query",
"=",
"$",
"this",
"->",
"query",
";",
"if",
"(",
"$",
"overrideTopLevelKeys",
")",
"{",
"$",
"keys",
"=",
"a... | Create a new Query instance
@param array $additionalConfig
@param bool $overrideTopLevelKeys If true, top-level keys will be replaced
rather than recursively merged.
@return Query A new instance of Query with the given changes applied. | [
"Create",
"a",
"new",
"Query",
"instance"
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L799-L818 | train |
googleapis/google-cloud-php | Firestore/src/Query.php | Query.finalQueryPrepare | private function finalQueryPrepare(array $query)
{
if (isset($query['where']['compositeFilter']) && count($query['where']['compositeFilter']['filters']) === 1) {
$filter = $query['where']['compositeFilter']['filters'][0];
$query['where'] = $filter;
}
return $query;
... | php | private function finalQueryPrepare(array $query)
{
if (isset($query['where']['compositeFilter']) && count($query['where']['compositeFilter']['filters']) === 1) {
$filter = $query['where']['compositeFilter']['filters'][0];
$query['where'] = $filter;
}
return $query;
... | [
"private",
"function",
"finalQueryPrepare",
"(",
"array",
"$",
"query",
")",
"{",
"if",
"(",
"isset",
"(",
"$",
"query",
"[",
"'where'",
"]",
"[",
"'compositeFilter'",
"]",
")",
"&&",
"count",
"(",
"$",
"query",
"[",
"'where'",
"]",
"[",
"'compositeFilte... | Clean up the query array before sending.
Some optimizations cannot be performed ahead of time and must be done
at execution.
@param array $query The incoming query
@return array The final query data | [
"Clean",
"up",
"the",
"query",
"array",
"before",
"sending",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Query.php#L829-L837 | train |
googleapis/google-cloud-php | Datastore/src/V1/CommitResponse.php | CommitResponse.setMutationResults | public function setMutationResults($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\MutationResult::class);
$this->mutation_results = $arr;
return $this;
} | php | public function setMutationResults($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\MutationResult::class);
$this->mutation_results = $arr;
return $this;
} | [
"public",
"function",
"setMutationResults",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
Generated from protobuf field <code>repeated .google.datastore.v1.MutationResult mutation_results = 3;</code>
@param \Google\Cloud\Datastore\V1\MutationResult[]|\Google\Protobuf\Internal\RepeatedField $var... | [
"The",
"result",
"of",
"performing",
"the",
"mutations",
".",
"The",
"i",
"-",
"th",
"mutation",
"result",
"corresponds",
"to",
"the",
"i",
"-",
"th",
"mutation",
"in",
"the",
"request",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Datastore/src/V1/CommitResponse.php#L72-L78 | train |
googleapis/google-cloud-php | Redis/src/V1beta1/Gapic/CloudRedisGapicClient.php | CloudRedisGapicClient.instanceName | public static function instanceName($project, $location, $instance)
{
return self::getInstanceNameTemplate()->render([
'project' => $project,
'location' => $location,
'instance' => $instance,
]);
} | php | public static function instanceName($project, $location, $instance)
{
return self::getInstanceNameTemplate()->render([
'project' => $project,
'location' => $location,
'instance' => $instance,
]);
} | [
"public",
"static",
"function",
"instanceName",
"(",
"$",
"project",
",",
"$",
"location",
",",
"$",
"instance",
")",
"{",
"return",
"self",
"::",
"getInstanceNameTemplate",
"(",
")",
"->",
"render",
"(",
"[",
"'project'",
"=>",
"$",
"project",
",",
"'loca... | Formats a string containing the fully-qualified path to represent
a instance resource.
@param string $project
@param string $location
@param string $instance
@return string The formatted instance resource.
@experimental | [
"Formats",
"a",
"string",
"containing",
"the",
"fully",
"-",
"qualified",
"path",
"to",
"represent",
"a",
"instance",
"resource",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Redis/src/V1beta1/Gapic/CloudRedisGapicClient.php#L201-L208 | train |
googleapis/google-cloud-php | Bigtable/src/Admin/V2/BigtableInstanceAdminGrpcClient.php | BigtableInstanceAdminGrpcClient.CreateInstance | public function CreateInstance(\Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance',
$argument,
['\Google\LongRunning\Operation', 'decode'],
$m... | php | public function CreateInstance(\Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $argument,
$metadata = [], $options = []) {
return $this->_simpleRequest('/google.bigtable.admin.v2.BigtableInstanceAdmin/CreateInstance',
$argument,
['\Google\LongRunning\Operation', 'decode'],
$m... | [
"public",
"function",
"CreateInstance",
"(",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Bigtable",
"\\",
"Admin",
"\\",
"V2",
"\\",
"CreateInstanceRequest",
"$",
"argument",
",",
"$",
"metadata",
"=",
"[",
"]",
",",
"$",
"options",
"=",
"[",
"]",
")",
"{",
... | Create an instance within a project.
@param \Google\Cloud\Bigtable\Admin\V2\CreateInstanceRequest $argument input argument
@param array $metadata metadata
@param array $options call options | [
"Create",
"an",
"instance",
"within",
"a",
"project",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Admin/V2/BigtableInstanceAdminGrpcClient.php#L44-L50 | train |
googleapis/google-cloud-php | Speech/src/V1/StreamingRecognizeRequest.php | StreamingRecognizeRequest.setStreamingConfig | public function setStreamingConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1\StreamingRecognitionConfig::class);
$this->writeOneof(1, $var);
return $this;
} | php | public function setStreamingConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1\StreamingRecognitionConfig::class);
$this->writeOneof(1, $var);
return $this;
} | [
"public",
"function",
"setStreamingConfig",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Speech",
"\\",
"V1",
"\\",
"StreamingRecognitionConfig",
"::",
"class",
")",
";",
"$",
"this... | Provides information to the recognizer that specifies how to process the
request. The first `StreamingRecognizeRequest` message must contain a
`streaming_config` message.
Generated from protobuf field <code>.google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;</code>
@param \Google\Cloud\Speech\V1\... | [
"Provides",
"information",
"to",
"the",
"recognizer",
"that",
"specifies",
"how",
"to",
"process",
"the",
"request",
".",
"The",
"first",
"StreamingRecognizeRequest",
"message",
"must",
"contain",
"a",
"streaming_config",
"message",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Speech/src/V1/StreamingRecognizeRequest.php#L72-L78 | train |
googleapis/google-cloud-php | Vision/src/V1/Image.php | Image.setSource | public function setSource($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ImageSource::class);
$this->source = $var;
return $this;
} | php | public function setSource($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ImageSource::class);
$this->source = $var;
return $this;
} | [
"public",
"function",
"setSource",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Vision",
"\\",
"V1",
"\\",
"ImageSource",
"::",
"class",
")",
";",
"$",
"this",
"->",
"source",
... | Google Cloud Storage image location, or publicly-accessible image
URL. If both `content` and `source` are provided for an image, `content`
takes precedence and is used to perform the image annotation request.
Generated from protobuf field <code>.google.cloud.vision.v1.ImageSource source = 2;</code>
@param \Google\Clou... | [
"Google",
"Cloud",
"Storage",
"image",
"location",
"or",
"publicly",
"-",
"accessible",
"image",
"URL",
".",
"If",
"both",
"content",
"and",
"source",
"are",
"provided",
"for",
"an",
"image",
"content",
"takes",
"precedence",
"and",
"is",
"used",
"to",
"perf... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Vision/src/V1/Image.php#L108-L114 | train |
googleapis/google-cloud-php | Spanner/src/BatchDmlResult.php | BatchDmlResult.rowCounts | public function rowCounts()
{
if (!$this->rowCounts) {
foreach ($this->data['resultSets'] as $resultSet) {
$this->rowCounts[] = $resultSet['stats']['rowCountExact'];
}
}
return $this->rowCounts;
} | php | public function rowCounts()
{
if (!$this->rowCounts) {
foreach ($this->data['resultSets'] as $resultSet) {
$this->rowCounts[] = $resultSet['stats']['rowCountExact'];
}
}
return $this->rowCounts;
} | [
"public",
"function",
"rowCounts",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"rowCounts",
")",
"{",
"foreach",
"(",
"$",
"this",
"->",
"data",
"[",
"'resultSets'",
"]",
"as",
"$",
"resultSet",
")",
"{",
"$",
"this",
"->",
"rowCounts",
"[",
... | Get a list of integers indicating the number of modified rows for each
successful statement.
Example:
```
$counts = $batchDmlResult->rowCounts();
```
@return int[] | [
"Get",
"a",
"list",
"of",
"integers",
"indicating",
"the",
"number",
"of",
"modified",
"rows",
"for",
"each",
"successful",
"statement",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Spanner/src/BatchDmlResult.php#L87-L96 | train |
googleapis/google-cloud-php | Firestore/src/DocumentSnapshot.php | DocumentSnapshot.get | public function get($fieldPath)
{
$res = null;
if (is_string($fieldPath)) {
$parts = explode('.', $fieldPath);
} elseif ($fieldPath instanceof FieldPath) {
$parts = $fieldPath->path();
} else {
throw new \InvalidArgumentException('Given path was n... | php | public function get($fieldPath)
{
$res = null;
if (is_string($fieldPath)) {
$parts = explode('.', $fieldPath);
} elseif ($fieldPath instanceof FieldPath) {
$parts = $fieldPath->path();
} else {
throw new \InvalidArgumentException('Given path was n... | [
"public",
"function",
"get",
"(",
"$",
"fieldPath",
")",
"{",
"$",
"res",
"=",
"null",
";",
"if",
"(",
"is_string",
"(",
"$",
"fieldPath",
")",
")",
"{",
"$",
"parts",
"=",
"explode",
"(",
"'.'",
",",
"$",
"fieldPath",
")",
";",
"}",
"elseif",
"(... | Get a field by field path.
A field path is a string containing the path to a specific field, at the
top level or nested, delimited by `.`. For instance, the value `hello` in
the structured field `{ "foo" : { "bar" : "hello" }}` would be accessible
using a field path of `foo.bar`.
Example:
```
$value = $snapshot->get(... | [
"Get",
"a",
"field",
"by",
"field",
"path",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/DocumentSnapshot.php#L276-L308 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/ListEntityTypesResponse.php | ListEntityTypesResponse.setEntityTypes | public function setEntityTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\EntityType::class);
$this->entity_types = $arr;
return $this;
} | php | public function setEntityTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\EntityType::class);
$this->entity_types = $arr;
return $this;
} | [
"public",
"function",
"setEntityTypes",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\... | The list of agent entity types. There will be a maximum number of items
returned based on the page_size field in the request.
Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.EntityType entity_types = 1;</code>
@param \Google\Cloud\Dialogflow\V2\EntityType[]|\Google\Protobuf\Internal\RepeatedFi... | [
"The",
"list",
"of",
"agent",
"entity",
"types",
".",
"There",
"will",
"be",
"a",
"maximum",
"number",
"of",
"items",
"returned",
"based",
"on",
"the",
"page_size",
"field",
"in",
"the",
"request",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/ListEntityTypesResponse.php#L72-L78 | train |
googleapis/google-cloud-php | BigQueryDataTransfer/src/V1/ScheduleTransferRunsResponse.php | ScheduleTransferRunsResponse.setRuns | public function setRuns($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\TransferRun::class);
$this->runs = $arr;
return $this;
} | php | public function setRuns($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\DataTransfer\V1\TransferRun::class);
$this->runs = $arr;
return $this;
} | [
"public",
"function",
"setRuns",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
"... | The transfer runs that were scheduled.
Generated from protobuf field <code>repeated .google.cloud.bigquery.datatransfer.v1.TransferRun runs = 1;</code>
@param \Google\Cloud\BigQuery\DataTransfer\V1\TransferRun[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"transfer",
"runs",
"that",
"were",
"scheduled",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQueryDataTransfer/src/V1/ScheduleTransferRunsResponse.php#L58-L64 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/ProfileEvent.php | ProfileEvent.setType | public function setType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ProfileEvent_ProfileEventType::class);
$this->type = $var;
return $this;
} | php | public function setType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\ProfileEvent_ProfileEventType::class);
$this->type = $var;
return $this;
} | [
"public",
"function",
"setType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Talent",
"\\",
"V4beta1",
"\\",
"ProfileEvent_ProfileEventType",
"::",
"class",
")",
";",
"$",
"this",
"... | Required.
Type of event.
Generated from protobuf field <code>.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1;</code>
@param int $var
@return $this | [
"Required",
".",
"Type",
"of",
"event",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/ProfileEvent.php#L91-L97 | train |
googleapis/google-cloud-php | Dialogflow/src/V2/CreateContextRequest.php | CreateContextRequest.setContext | public function setContext($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Context::class);
$this->context = $var;
return $this;
} | php | public function setContext($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\Context::class);
$this->context = $var;
return $this;
} | [
"public",
"function",
"setContext",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dialogflow",
"\\",
"V2",
"\\",
"Context",
"::",
"class",
")",
";",
"$",
"this",
"->",
"context",... | Required. The context to create.
Generated from protobuf field <code>.google.cloud.dialogflow.v2.Context context = 2;</code>
@param \Google\Cloud\Dialogflow\V2\Context $var
@return $this | [
"Required",
".",
"The",
"context",
"to",
"create",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dialogflow/src/V2/CreateContextRequest.php#L96-L102 | train |
googleapis/google-cloud-php | Dlp/src/V2/InspectResult.php | InspectResult.setFindings | public function setFindings($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class);
$this->findings = $arr;
return $this;
} | php | public function setFindings($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class);
$this->findings = $arr;
return $this;
} | [
"public",
"function",
"setFindings",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",... | List of findings for an item.
Generated from protobuf field <code>repeated .google.privacy.dlp.v2.Finding findings = 1;</code>
@param \Google\Cloud\Dlp\V2\Finding[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"List",
"of",
"findings",
"for",
"an",
"item",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/InspectResult.php#L76-L82 | train |
googleapis/google-cloud-php | Debugger/src/V2/ListDebuggeesResponse.php | ListDebuggeesResponse.setDebuggees | public function setDebuggees($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Debuggee::class);
$this->debuggees = $arr;
return $this;
} | php | public function setDebuggees($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Debuggee::class);
$this->debuggees = $arr;
return $this;
} | [
"public",
"function",
"setDebuggees",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\"... | List of debuggees accessible to the calling user.
The fields `debuggee.id` and `description` are guaranteed to be set.
The `description` field is a human readable field provided by agents and
can be displayed to users.
Generated from protobuf field <code>repeated .google.devtools.clouddebugger.v2.Debuggee debuggees = ... | [
"List",
"of",
"debuggees",
"accessible",
"to",
"the",
"calling",
"user",
".",
"The",
"fields",
"debuggee",
".",
"id",
"and",
"description",
"are",
"guaranteed",
"to",
"be",
"set",
".",
"The",
"description",
"field",
"is",
"a",
"human",
"readable",
"field",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/ListDebuggeesResponse.php#L70-L76 | train |
googleapis/google-cloud-php | SecurityCenter/src/V1/OrganizationSettings.php | OrganizationSettings.setAssetDiscoveryConfig | public function setAssetDiscoveryConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\OrganizationSettings_AssetDiscoveryConfig::class);
$this->asset_discovery_config = $var;
return $this;
} | php | public function setAssetDiscoveryConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\SecurityCenter\V1\OrganizationSettings_AssetDiscoveryConfig::class);
$this->asset_discovery_config = $var;
return $this;
} | [
"public",
"function",
"setAssetDiscoveryConfig",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"SecurityCenter",
"\\",
"V1",
"\\",
"OrganizationSettings_AssetDiscoveryConfig",
"::",
"class",
... | The configuration used for Asset Discovery runs.
Generated from protobuf field <code>.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig asset_discovery_config = 3;</code>
@param \Google\Cloud\SecurityCenter\V1\OrganizationSettings\AssetDiscoveryConfig $var
@return $this | [
"The",
"configuration",
"used",
"for",
"Asset",
"Discovery",
"runs",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/SecurityCenter/src/V1/OrganizationSettings.php#L151-L157 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Job.php | Job.setJobBenefits | public function setJobBenefits($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Talent\V4beta1\JobBenefit::class);
$this->job_benefits = $arr;
return $this;
} | php | public function setJobBenefits($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Talent\V4beta1\JobBenefit::class);
$this->job_benefits = $arr;
return $this;
} | [
"public",
"function",
"setJobBenefits",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"ENUM",
",",
"\\",
"Google",
"\\",... | Optional.
The benefits included with the job.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.JobBenefit job_benefits = 8;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"benefits",
"included",
"with",
"the",
"job",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Job.php#L897-L903 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Job.php | Job.setDegreeTypes | public function setDegreeTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Talent\V4beta1\DegreeType::class);
$this->degree_types = $arr;
return $this;
} | php | public function setDegreeTypes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Talent\V4beta1\DegreeType::class);
$this->degree_types = $arr;
return $this;
} | [
"public",
"function",
"setDegreeTypes",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"ENUM",
",",
"\\",
"Google",
"\\",... | Optional.
The desired education degrees for the job, such as Bachelors, Masters.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.DegreeType degree_types = 11;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"desired",
"education",
"degrees",
"for",
"the",
"job",
"such",
"as",
"Bachelors",
"Masters",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Job.php#L1001-L1007 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Job.php | Job.setJobLevel | public function setJobLevel($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\JobLevel::class);
$this->job_level = $var;
return $this;
} | php | public function setJobLevel($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Talent\V4beta1\JobLevel::class);
$this->job_level = $var;
return $this;
} | [
"public",
"function",
"setJobLevel",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Talent",
"\\",
"V4beta1",
"\\",
"JobLevel",
"::",
"class",
")",
";",
"$",
"this",
"->",
"job_level... | Optional.
The experience level associated with the job, such as "Entry Level".
Generated from protobuf field <code>.google.cloud.talent.v4beta1.JobLevel job_level = 16;</code>
@param int $var
@return $this | [
"Optional",
".",
"The",
"experience",
"level",
"associated",
"with",
"the",
"job",
"such",
"as",
"Entry",
"Level",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Job.php#L1173-L1179 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Job.php | Job.setDerivedInfo | public function setDerivedInfo($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Job_DerivedInfo::class);
$this->derived_info = $var;
return $this;
} | php | public function setDerivedInfo($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Job_DerivedInfo::class);
$this->derived_info = $var;
return $this;
} | [
"public",
"function",
"setDerivedInfo",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Talent",
"\\",
"V4beta1",
"\\",
"Job_DerivedInfo",
"::",
"class",
")",
";",
"$",
"this",
"->",... | Output only. Derived details about the job posting.
Generated from protobuf field <code>.google.cloud.talent.v4beta1.Job.DerivedInfo derived_info = 29;</code>
@param \Google\Cloud\Talent\V4beta1\Job\DerivedInfo $var
@return $this | [
"Output",
"only",
".",
"Derived",
"details",
"about",
"the",
"job",
"posting",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Job.php#L1647-L1653 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Job.php | Job.setProcessingOptions | public function setProcessingOptions($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Job_ProcessingOptions::class);
$this->processing_options = $var;
return $this;
} | php | public function setProcessingOptions($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Talent\V4beta1\Job_ProcessingOptions::class);
$this->processing_options = $var;
return $this;
} | [
"public",
"function",
"setProcessingOptions",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Talent",
"\\",
"V4beta1",
"\\",
"Job_ProcessingOptions",
"::",
"class",
")",
";",
"$",
"th... | Optional.
Options for job processing.
Generated from protobuf field <code>.google.cloud.talent.v4beta1.Job.ProcessingOptions processing_options = 30;</code>
@param \Google\Cloud\Talent\V4beta1\Job\ProcessingOptions $var
@return $this | [
"Optional",
".",
"Options",
"for",
"job",
"processing",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Job.php#L1675-L1681 | train |
googleapis/google-cloud-php | Firestore/src/V1beta1/Write.php | Write.setUpdate | public function setUpdate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Document::class);
$this->writeOneof(1, $var);
return $this;
} | php | public function setUpdate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\Document::class);
$this->writeOneof(1, $var);
return $this;
} | [
"public",
"function",
"setUpdate",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1beta1",
"\\",
"Document",
"::",
"class",
")",
";",
"$",
"this",
"->",
"write... | A document to write.
Generated from protobuf field <code>.google.firestore.v1beta1.Document update = 1;</code>
@param \Google\Cloud\Firestore\V1beta1\Document $var
@return $this | [
"A",
"document",
"to",
"write",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1beta1/Write.php#L95-L101 | train |
googleapis/google-cloud-php | Firestore/src/V1beta1/Write.php | Write.setTransform | public function setTransform($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform::class);
$this->writeOneof(6, $var);
return $this;
} | php | public function setTransform($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform::class);
$this->writeOneof(6, $var);
return $this;
} | [
"public",
"function",
"setTransform",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1beta1",
"\\",
"DocumentTransform",
"::",
"class",
")",
";",
"$",
"this",
"-... | Applies a transformation to a document.
At most one `transform` per document is allowed in a given request.
An `update` cannot follow a `transform` on the same document in a given
request.
Generated from protobuf field <code>.google.firestore.v1beta1.DocumentTransform transform = 6;</code>
@param \Google\Cloud\Firesto... | [
"Applies",
"a",
"transformation",
"to",
"a",
"document",
".",
"At",
"most",
"one",
"transform",
"per",
"document",
"is",
"allowed",
"in",
"a",
"given",
"request",
".",
"An",
"update",
"cannot",
"follow",
"a",
"transform",
"on",
"the",
"same",
"document",
"... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1beta1/Write.php#L155-L161 | train |
googleapis/google-cloud-php | Firestore/src/V1beta1/Write.php | Write.setUpdateMask | public function setUpdateMask($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\DocumentMask::class);
$this->update_mask = $var;
return $this;
} | php | public function setUpdateMask($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1beta1\DocumentMask::class);
$this->update_mask = $var;
return $this;
} | [
"public",
"function",
"setUpdateMask",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Firestore",
"\\",
"V1beta1",
"\\",
"DocumentMask",
"::",
"class",
")",
";",
"$",
"this",
"->",
... | The fields to update in this write.
This field can be set only when the operation is `update`.
If the mask is not set for an `update` and the document exists, any
existing data will be overwritten.
If the mask is set and the document on the server has fields not covered by
the mask, they are left unchanged.
Fields refe... | [
"The",
"fields",
"to",
"update",
"in",
"this",
"write",
".",
"This",
"field",
"can",
"be",
"set",
"only",
"when",
"the",
"operation",
"is",
"update",
".",
"If",
"the",
"mask",
"is",
"not",
"set",
"for",
"an",
"update",
"and",
"the",
"document",
"exists... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/V1beta1/Write.php#L197-L203 | train |
googleapis/google-cloud-php | Dlp/src/V2/ReplaceValueConfig.php | ReplaceValueConfig.setNewValue | public function setNewValue($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class);
$this->new_value = $var;
return $this;
} | php | public function setNewValue($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class);
$this->new_value = $var;
return $this;
} | [
"public",
"function",
"setNewValue",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"Value",
"::",
"class",
")",
";",
"$",
"this",
"->",
"new_value",
"="... | Value to replace it with.
Generated from protobuf field <code>.google.privacy.dlp.v2.Value new_value = 1;</code>
@param \Google\Cloud\Dlp\V2\Value $var
@return $this | [
"Value",
"to",
"replace",
"it",
"with",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/ReplaceValueConfig.php#L58-L64 | train |
googleapis/google-cloud-php | dev/src/Split/Command.php | Command.execute | protected function execute(InputInterface $input, OutputInterface $output)
{
if (PHP_VERSION_ID < 50600) {
throw new \RuntimeException('This command is only available in PHP 5.6 and later.');
}
$execDir = $this->rootPath . '/' . self::EXEC_DIR;
$token = $this->githubToke... | php | protected function execute(InputInterface $input, OutputInterface $output)
{
if (PHP_VERSION_ID < 50600) {
throw new \RuntimeException('This command is only available in PHP 5.6 and later.');
}
$execDir = $this->rootPath . '/' . self::EXEC_DIR;
$token = $this->githubToke... | [
"protected",
"function",
"execute",
"(",
"InputInterface",
"$",
"input",
",",
"OutputInterface",
"$",
"output",
")",
"{",
"if",
"(",
"PHP_VERSION_ID",
"<",
"50600",
")",
"{",
"throw",
"new",
"\\",
"RuntimeException",
"(",
"'This command is only available in PHP 5.6 ... | Execute Split and Release process.
@param InputInterface $input The Symfony input handler.
@param OutputInterface $output The Symfony output handler.
@return int The exit code. | [
"Execute",
"Split",
"and",
"Release",
"process",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/dev/src/Split/Command.php#L100-L150 | train |
googleapis/google-cloud-php | dev/src/Split/Command.php | Command.processComponent | private function processComponent(
OutputInterface $output,
GitHub $github,
Split $split,
array $component,
$splitBinaryPath,
$parentTagSource
) {
$output->writeln('');
$localVersion = current($this->componentManager->componentsVersion($component['id']... | php | private function processComponent(
OutputInterface $output,
GitHub $github,
Split $split,
array $component,
$splitBinaryPath,
$parentTagSource
) {
$output->writeln('');
$localVersion = current($this->componentManager->componentsVersion($component['id']... | [
"private",
"function",
"processComponent",
"(",
"OutputInterface",
"$",
"output",
",",
"GitHub",
"$",
"github",
",",
"Split",
"$",
"split",
",",
"array",
"$",
"component",
",",
"$",
"splitBinaryPath",
",",
"$",
"parentTagSource",
")",
"{",
"$",
"output",
"->... | Process release for a given component.
Checks if the tag exists on the remote target, splits the component,
pushes to the remote target and creates a github release.
@param OutputInterface $output Allows writing to cli.
@param GitHub A GitHub API wrapper.
@param Split A Splitsh wrapper.
@param array $component The co... | [
"Process",
"release",
"for",
"a",
"given",
"component",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/dev/src/Split/Command.php#L166-L254 | train |
googleapis/google-cloud-php | dev/src/Split/Command.php | Command.githubToken | protected function githubToken($userToken)
{
$token = $userToken ?: getenv(self::TOKEN_ENV);
if (!$token) {
throw new \RuntimeException(sprintf(
'Could not find GitHub auth token. Please set the environment ' .
'variable `%s` or pass token as console argu... | php | protected function githubToken($userToken)
{
$token = $userToken ?: getenv(self::TOKEN_ENV);
if (!$token) {
throw new \RuntimeException(sprintf(
'Could not find GitHub auth token. Please set the environment ' .
'variable `%s` or pass token as console argu... | [
"protected",
"function",
"githubToken",
"(",
"$",
"userToken",
")",
"{",
"$",
"token",
"=",
"$",
"userToken",
"?",
":",
"getenv",
"(",
"self",
"::",
"TOKEN_ENV",
")",
";",
"if",
"(",
"!",
"$",
"token",
")",
"{",
"throw",
"new",
"\\",
"RuntimeException"... | Fetch the GitHub auth token from the user or environment.
@param string|null $userToken The user token, if provided, else `null`.
@return string
@throws \RuntimeException If no user token was given and the environment
variable is not set. | [
"Fetch",
"the",
"GitHub",
"auth",
"token",
"from",
"the",
"user",
"or",
"environment",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/dev/src/Split/Command.php#L264-L277 | train |
googleapis/google-cloud-php | dev/src/Split/Command.php | Command.githubClient | protected function githubClient(OutputInterface $output, RunShell $shell, Client $guzzle, $token)
{
$output->writeln('<comment>[info]</comment> Instantiating GitHub API Wrapper.');
return new GitHub($shell, $guzzle, $token);
} | php | protected function githubClient(OutputInterface $output, RunShell $shell, Client $guzzle, $token)
{
$output->writeln('<comment>[info]</comment> Instantiating GitHub API Wrapper.');
return new GitHub($shell, $guzzle, $token);
} | [
"protected",
"function",
"githubClient",
"(",
"OutputInterface",
"$",
"output",
",",
"RunShell",
"$",
"shell",
",",
"Client",
"$",
"guzzle",
",",
"$",
"token",
")",
"{",
"$",
"output",
"->",
"writeln",
"(",
"'<comment>[info]</comment> Instantiating GitHub API Wrappe... | Initialize the Github client.
You can override this method in unit tests.
@param OutputInterface $output Allows writing to cli.
@param RunShell $shell A wrapper for executing shell commands.
@param Client $guzzle A guzzle client for executing HTTP requests.
@param string $token A Github auth token.
@return GitHub | [
"Initialize",
"the",
"Github",
"client",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/dev/src/Split/Command.php#L306-L311 | train |
googleapis/google-cloud-php | dev/src/Split/Command.php | Command.splitshInstall | protected function splitshInstall(OutputInterface $output, RunShell $shell, $execDir, $binaryPath)
{
if ($binaryPath) {
$output->writeln('<comment>[info]</comment> Using User-Provided Splitsh binary.');
return $binaryPath;
}
$output->writeln('<comment>[info]</comment... | php | protected function splitshInstall(OutputInterface $output, RunShell $shell, $execDir, $binaryPath)
{
if ($binaryPath) {
$output->writeln('<comment>[info]</comment> Using User-Provided Splitsh binary.');
return $binaryPath;
}
$output->writeln('<comment>[info]</comment... | [
"protected",
"function",
"splitshInstall",
"(",
"OutputInterface",
"$",
"output",
",",
"RunShell",
"$",
"shell",
",",
"$",
"execDir",
",",
"$",
"binaryPath",
")",
"{",
"if",
"(",
"$",
"binaryPath",
")",
"{",
"$",
"output",
"->",
"writeln",
"(",
"'<comment>... | Install the Splitsh program.
You can override this method in unit tests.
@param OutputInterface $output Allows writing to cli.
@param RunShell $shell A wrapper for executing shell commands.
@param string $execDir The path to a working directory.
@param string|null The path to an existing splitsh binary, or null if
in... | [
"Install",
"the",
"Splitsh",
"program",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/dev/src/Split/Command.php#L337-L357 | train |
googleapis/google-cloud-php | Bigtable/src/Table.php | Table.mutateRows | public function mutateRows(array $rowMutations, array $options = [])
{
if (!$this->isAssoc($rowMutations)) {
throw new \InvalidArgumentException(
'Expected rowMutations to be of type associative array, instead got list.'
);
}
$entries = [];
for... | php | public function mutateRows(array $rowMutations, array $options = [])
{
if (!$this->isAssoc($rowMutations)) {
throw new \InvalidArgumentException(
'Expected rowMutations to be of type associative array, instead got list.'
);
}
$entries = [];
for... | [
"public",
"function",
"mutateRows",
"(",
"array",
"$",
"rowMutations",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"isAssoc",
"(",
"$",
"rowMutations",
")",
")",
"{",
"throw",
"new",
"\\",
"InvalidArgumentE... | Mutates rows in a table.
Example:
```
use Google\Cloud\Bigtable\Mutations;
$mutations = (new Mutations)
->upsert('cf1', 'cq1', 'value1', 1534183334215000);
$table->mutateRows(['r1' => $mutations]);
```
@param array $rowMutations An associative array with the key being the
row key and the value being the
{@see Googl... | [
"Mutates",
"rows",
"in",
"a",
"table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Table.php#L120-L132 | train |
googleapis/google-cloud-php | Bigtable/src/Table.php | Table.mutateRow | public function mutateRow($rowKey, Mutations $mutations, array $options = [])
{
$this->gapicClient->mutateRow(
$this->tableName,
$rowKey,
$mutations->toProto(),
$options + $this->options
);
} | php | public function mutateRow($rowKey, Mutations $mutations, array $options = [])
{
$this->gapicClient->mutateRow(
$this->tableName,
$rowKey,
$mutations->toProto(),
$options + $this->options
);
} | [
"public",
"function",
"mutateRow",
"(",
"$",
"rowKey",
",",
"Mutations",
"$",
"mutations",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"this",
"->",
"gapicClient",
"->",
"mutateRow",
"(",
"$",
"this",
"->",
"tableName",
",",
"$",
"rowKe... | Mutates a row atomically. Cells already present in the row are left
unchanged unless explicitly changed by `mutations`.
Example:
```
use Google\Cloud\Bigtable\Mutations;
$mutations = (new Mutations)
->upsert('cf1', 'cq1', 'value1', 1534183334215000);
$table->mutateRow('r1', $mutations);
```
@param string $rowKey Th... | [
"Mutates",
"a",
"row",
"atomically",
".",
"Cells",
"already",
"present",
"in",
"the",
"row",
"are",
"left",
"unchanged",
"unless",
"explicitly",
"changed",
"by",
"mutations",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Table.php#L158-L166 | train |
googleapis/google-cloud-php | Bigtable/src/Table.php | Table.readRows | public function readRows(array $options = [])
{
$rowKeys = $this->pluck('rowKeys', $options, false) ?: [];
$ranges = $this->pluck('rowRanges', $options, false) ?: [];
$filter = $this->pluck('filter', $options, false) ?: null;
array_walk($ranges, function (&$range) {
$ran... | php | public function readRows(array $options = [])
{
$rowKeys = $this->pluck('rowKeys', $options, false) ?: [];
$ranges = $this->pluck('rowRanges', $options, false) ?: [];
$filter = $this->pluck('filter', $options, false) ?: null;
array_walk($ranges, function (&$range) {
$ran... | [
"public",
"function",
"readRows",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"rowKeys",
"=",
"$",
"this",
"->",
"pluck",
"(",
"'rowKeys'",
",",
"$",
"options",
",",
"false",
")",
"?",
":",
"[",
"]",
";",
"$",
"ranges",
"=",
"$",
... | Read rows from the table.
Example:
```
$rows = $table->readRows();
foreach ($rows as $row) {
print_r($row) . PHP_EOL;
}
```
```
// Specify a set of row ranges.
$rows = $table->readRows([
'rowRanges' => [
[
'startKeyOpen' => 'jefferson',
'endKeyOpen' => 'lincoln'
]
]
]);
foreach ($rows as $row) {
print_r($row) . PHP... | [
"Read",
"rows",
"from",
"the",
"table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Table.php#L263-L309 | train |
googleapis/google-cloud-php | Bigtable/src/Table.php | Table.readRow | public function readRow($rowKey, array $options = [])
{
return $this->readRows(
['rowKeys' => [$rowKey]] + $options + $this->options
)
->readAll()
->current();
} | php | public function readRow($rowKey, array $options = [])
{
return $this->readRows(
['rowKeys' => [$rowKey]] + $options + $this->options
)
->readAll()
->current();
} | [
"public",
"function",
"readRow",
"(",
"$",
"rowKey",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"return",
"$",
"this",
"->",
"readRows",
"(",
"[",
"'rowKeys'",
"=>",
"[",
"$",
"rowKey",
"]",
"]",
"+",
"$",
"options",
"+",
"$",
"this",
... | Read a single row from the table.
Example:
```
$row = $table->readRow('jefferson');
print_r($row);
```
@param string $rowKey The row key to read.
@param array $options [optional] Configuration options.
@return array|null | [
"Read",
"a",
"single",
"row",
"from",
"the",
"table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Table.php#L325-L332 | train |
googleapis/google-cloud-php | Bigtable/src/Table.php | Table.checkAndMutateRow | public function checkAndMutateRow($rowKey, array $options = [])
{
$hasSetMutations = false;
if (isset($options['predicateFilter'])) {
$this->convertToProto($options, 'predicateFilter', FilterInterface::class);
}
if (isset($options['trueMutations'])) {
$this->... | php | public function checkAndMutateRow($rowKey, array $options = [])
{
$hasSetMutations = false;
if (isset($options['predicateFilter'])) {
$this->convertToProto($options, 'predicateFilter', FilterInterface::class);
}
if (isset($options['trueMutations'])) {
$this->... | [
"public",
"function",
"checkAndMutateRow",
"(",
"$",
"rowKey",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"hasSetMutations",
"=",
"false",
";",
"if",
"(",
"isset",
"(",
"$",
"options",
"[",
"'predicateFilter'",
"]",
")",
")",
"{",
"$",... | Mutates the specified row atomically based on output of the filter.
Example:
```
use Google\Cloud\Bigtable\Mutations;
$mutations = (new Mutations)->upsert('family', 'qualifier', 'value');
$result = $table->checkAndMutateRow('rk1', ['trueMutations' => $mutations]);
```
```
// With predicate filter
use Google\Cloud\Bi... | [
"Mutates",
"the",
"specified",
"row",
"atomically",
"based",
"on",
"output",
"of",
"the",
"filter",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Table.php#L469-L495 | train |
googleapis/google-cloud-php | Logging/src/V2/LogMetric.php | LogMetric.setLabelExtractors | public function setLabelExtractors($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->label_extractors = $arr;
return $this;
} | php | public function setLabelExtractors($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->label_extractors = $arr;
return $this;
} | [
"public",
"function",
"setLabelExtractors",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkMapField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"STRING",
",",
"\\",
"Google",
"\\"... | Optional. A map from a label key string to an extractor expression which is
used to extract data from a log entry field and assign as the label value.
Each label key specified in the LabelDescriptor must have an associated
extractor expression in this map. The syntax of the extractor expression
is the same as for the `... | [
"Optional",
".",
"A",
"map",
"from",
"a",
"label",
"key",
"string",
"to",
"an",
"extractor",
"expression",
"which",
"is",
"used",
"to",
"extract",
"data",
"from",
"a",
"log",
"entry",
"field",
"and",
"assign",
"as",
"the",
"label",
"value",
".",
"Each",
... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogMetric.php#L491-L497 | train |
googleapis/google-cloud-php | Logging/src/V2/LogMetric.php | LogMetric.setVersion | public function setVersion($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Logging\V2\LogMetric_ApiVersion::class);
$this->version = $var;
return $this;
} | php | public function setVersion($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Logging\V2\LogMetric_ApiVersion::class);
$this->version = $var;
return $this;
} | [
"public",
"function",
"setVersion",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Logging",
"\\",
"V2",
"\\",
"LogMetric_ApiVersion",
"::",
"class",
")",
";",
"$",
"this",
"->",
"ve... | Deprecated. The API version that created or updated this metric.
The v2 format is used by default and cannot be changed.
Generated from protobuf field <code>.google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true];</code>
@param int $var
@return $this | [
"Deprecated",
".",
"The",
"API",
"version",
"that",
"created",
"or",
"updated",
"this",
"metric",
".",
"The",
"v2",
"format",
"is",
"used",
"by",
"default",
"and",
"cannot",
"be",
"changed",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogMetric.php#L549-L555 | train |
googleapis/google-cloud-php | Trace/src/V2/BatchWriteSpansRequest.php | BatchWriteSpansRequest.setSpans | public function setSpans($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Trace\V2\Span::class);
$this->spans = $arr;
return $this;
} | php | public function setSpans($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Trace\V2\Span::class);
$this->spans = $arr;
return $this;
} | [
"public",
"function",
"setSpans",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | A list of new spans. The span names must not match existing
spans, or the results are undefined.
Generated from protobuf field <code>repeated .google.devtools.cloudtrace.v2.Span spans = 2;</code>
@param \Google\Cloud\Trace\V2\Span[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"A",
"list",
"of",
"new",
"spans",
".",
"The",
"span",
"names",
"must",
"not",
"match",
"existing",
"spans",
"or",
"the",
"results",
"are",
"undefined",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Trace/src/V2/BatchWriteSpansRequest.php#L100-L106 | train |
googleapis/google-cloud-php | Dlp/src/V2/DeidentifyConfig.php | DeidentifyConfig.setInfoTypeTransformations | public function setInfoTypeTransformations($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class);
$this->writeOneof(1, $var);
return $this;
} | php | public function setInfoTypeTransformations($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class);
$this->writeOneof(1, $var);
return $this;
} | [
"public",
"function",
"setInfoTypeTransformations",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"InfoTypeTransformations",
"::",
"class",
")",
";",
"$",
"th... | Treat the dataset as free-form text and apply the same free text
transformation everywhere.
Generated from protobuf field <code>.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;</code>
@param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var
@return $this | [
"Treat",
"the",
"dataset",
"as",
"free",
"-",
"form",
"text",
"and",
"apply",
"the",
"same",
"free",
"text",
"transformation",
"everywhere",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DeidentifyConfig.php#L60-L66 | train |
googleapis/google-cloud-php | Dlp/src/V2/DeidentifyConfig.php | DeidentifyConfig.setRecordTransformations | public function setRecordTransformations($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformations::class);
$this->writeOneof(2, $var);
return $this;
} | php | public function setRecordTransformations($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformations::class);
$this->writeOneof(2, $var);
return $this;
} | [
"public",
"function",
"setRecordTransformations",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"RecordTransformations",
"::",
"class",
")",
";",
"$",
"this",... | Treat the dataset as structured. Transformations can be applied to
specific locations within structured datasets, such as transforming
a column within a table.
Generated from protobuf field <code>.google.privacy.dlp.v2.RecordTransformations record_transformations = 2;</code>
@param \Google\Cloud\Dlp\V2\RecordTransform... | [
"Treat",
"the",
"dataset",
"as",
"structured",
".",
"Transformations",
"can",
"be",
"applied",
"to",
"specific",
"locations",
"within",
"structured",
"datasets",
"such",
"as",
"transforming",
"a",
"column",
"within",
"a",
"table",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/DeidentifyConfig.php#L90-L96 | train |
googleapis/google-cloud-php | Tasks/src/V2beta2/Task.php | Task.setStatus | public function setStatus($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2beta2\TaskStatus::class);
$this->status = $var;
return $this;
} | php | public function setStatus($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Tasks\V2beta2\TaskStatus::class);
$this->status = $var;
return $this;
} | [
"public",
"function",
"setStatus",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Tasks",
"\\",
"V2beta2",
"\\",
"TaskStatus",
"::",
"class",
")",
";",
"$",
"this",
"->",
"status"... | Output only. The task status.
Generated from protobuf field <code>.google.cloud.tasks.v2beta2.TaskStatus status = 7;</code>
@param \Google\Cloud\Tasks\V2beta2\TaskStatus $var
@return $this | [
"Output",
"only",
".",
"The",
"task",
"status",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Tasks/src/V2beta2/Task.php#L360-L366 | train |
googleapis/google-cloud-php | Dlp/src/V2/ByteContentItem.php | ByteContentItem.setType | public function setType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ByteContentItem_BytesType::class);
$this->type = $var;
return $this;
} | php | public function setType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ByteContentItem_BytesType::class);
$this->type = $var;
return $this;
} | [
"public",
"function",
"setType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Dlp",
"\\",
"V2",
"\\",
"ByteContentItem_BytesType",
"::",
"class",
")",
";",
"$",
"this",
"->",
"type... | The type of data stored in the bytes string. Default will be TEXT_UTF8.
Generated from protobuf field <code>.google.privacy.dlp.v2.ByteContentItem.BytesType type = 1;</code>
@param int $var
@return $this | [
"The",
"type",
"of",
"data",
"stored",
"in",
"the",
"bytes",
"string",
".",
"Default",
"will",
"be",
"TEXT_UTF8",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Dlp/src/V2/ByteContentItem.php#L66-L72 | train |
googleapis/google-cloud-php | Scheduler/src/V1beta1/Gapic/CloudSchedulerGapicClient.php | CloudSchedulerGapicClient.jobName | public static function jobName($project, $location, $job)
{
return self::getJobNameTemplate()->render([
'project' => $project,
'location' => $location,
'job' => $job,
]);
} | php | public static function jobName($project, $location, $job)
{
return self::getJobNameTemplate()->render([
'project' => $project,
'location' => $location,
'job' => $job,
]);
} | [
"public",
"static",
"function",
"jobName",
"(",
"$",
"project",
",",
"$",
"location",
",",
"$",
"job",
")",
"{",
"return",
"self",
"::",
"getJobNameTemplate",
"(",
")",
"->",
"render",
"(",
"[",
"'project'",
"=>",
"$",
"project",
",",
"'location'",
"=>",... | Formats a string containing the fully-qualified path to represent
a job resource.
@param string $project
@param string $location
@param string $job
@return string The formatted job resource.
@experimental | [
"Formats",
"a",
"string",
"containing",
"the",
"fully",
"-",
"qualified",
"path",
"to",
"represent",
"a",
"job",
"resource",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Scheduler/src/V1beta1/Gapic/CloudSchedulerGapicClient.php#L229-L236 | train |
googleapis/google-cloud-php | Scheduler/src/V1beta1/Gapic/CloudSchedulerGapicClient.php | CloudSchedulerGapicClient.deleteJob | public function deleteJob($name, array $optionalArgs = [])
{
$request = new DeleteJobRequest();
$request->setName($name);
$requestParams = new RequestParamsHeaderDescriptor([
'name' => $request->getName(),
]);
$optionalArgs['headers'] = isset($optionalArgs['headers... | php | public function deleteJob($name, array $optionalArgs = [])
{
$request = new DeleteJobRequest();
$request->setName($name);
$requestParams = new RequestParamsHeaderDescriptor([
'name' => $request->getName(),
]);
$optionalArgs['headers'] = isset($optionalArgs['headers... | [
"public",
"function",
"deleteJob",
"(",
"$",
"name",
",",
"array",
"$",
"optionalArgs",
"=",
"[",
"]",
")",
"{",
"$",
"request",
"=",
"new",
"DeleteJobRequest",
"(",
")",
";",
"$",
"request",
"->",
"setName",
"(",
"$",
"name",
")",
";",
"$",
"request... | Deletes a job.
Sample code:
```
$cloudSchedulerClient = new CloudSchedulerClient();
try {
$formattedName = $cloudSchedulerClient->jobName('[PROJECT]', '[LOCATION]', '[JOB]');
$cloudSchedulerClient->deleteJob($formattedName);
} finally {
$cloudSchedulerClient->close();
}
```
@param string $name Required.
The job name... | [
"Deletes",
"a",
"job",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Scheduler/src/V1beta1/Gapic/CloudSchedulerGapicClient.php#L636-L654 | train |
googleapis/google-cloud-php | CommonProtos/src/DevTools/Source/V1/RepoId.php | RepoId.setProjectRepoId | public function setProjectRepoId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\ProjectRepoId::class);
$this->writeOneof(1, $var);
return $this;
} | php | public function setProjectRepoId($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\ProjectRepoId::class);
$this->writeOneof(1, $var);
return $this;
} | [
"public",
"function",
"setProjectRepoId",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"DevTools",
"\\",
"Source",
"\\",
"V1",
"\\",
"ProjectRepoId",
"::",
"class",
")",
";",
"$",
... | A combination of a project ID and a repo name.
Generated from protobuf field <code>.google.devtools.source.v1.ProjectRepoId project_repo_id = 1;</code>
@param \Google\Cloud\DevTools\Source\V1\ProjectRepoId $var
@return $this | [
"A",
"combination",
"of",
"a",
"project",
"ID",
"and",
"a",
"repo",
"name",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/CommonProtos/src/DevTools/Source/V1/RepoId.php#L55-L61 | train |
googleapis/google-cloud-php | Container/src/V1/Operation.php | Operation.setOperationType | public function setOperationType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation_Type::class);
$this->operation_type = $var;
return $this;
} | php | public function setOperationType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation_Type::class);
$this->operation_type = $var;
return $this;
} | [
"public",
"function",
"setOperationType",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Container",
"\\",
"V1",
"\\",
"Operation_Type",
"::",
"class",
")",
";",
"$",
"this",
"->",
"... | The operation type.
Generated from protobuf field <code>.google.container.v1.Operation.Type operation_type = 3;</code>
@param int $var
@return $this | [
"The",
"operation",
"type",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/Operation.php#L213-L219 | train |
googleapis/google-cloud-php | Logging/src/V2/LogEntry.php | LogEntry.setSeverity | public function setSeverity($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Logging\Type\LogSeverity::class);
$this->severity = $var;
return $this;
} | php | public function setSeverity($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Logging\Type\LogSeverity::class);
$this->severity = $var;
return $this;
} | [
"public",
"function",
"setSeverity",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkEnum",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Logging",
"\\",
"Type",
"\\",
"LogSeverity",
"::",
"class",
")",
";",
"$",
"this",
"->",
"severity... | Optional. The severity of the log entry. The default value is
`LogSeverity.DEFAULT`.
Generated from protobuf field <code>.google.logging.type.LogSeverity severity = 10;</code>
@param int $var
@return $this | [
"Optional",
".",
"The",
"severity",
"of",
"the",
"log",
"entry",
".",
"The",
"default",
"value",
"is",
"LogSeverity",
".",
"DEFAULT",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogEntry.php#L532-L538 | train |
googleapis/google-cloud-php | Logging/src/V2/LogEntry.php | LogEntry.setHttpRequest | public function setHttpRequest($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\Type\HttpRequest::class);
$this->http_request = $var;
return $this;
} | php | public function setHttpRequest($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\Type\HttpRequest::class);
$this->http_request = $var;
return $this;
} | [
"public",
"function",
"setHttpRequest",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Logging",
"\\",
"Type",
"\\",
"HttpRequest",
"::",
"class",
")",
";",
"$",
"this",
"->",
"ht... | Optional. Information about the HTTP request associated with this
log entry, if applicable.
Generated from protobuf field <code>.google.logging.type.HttpRequest http_request = 7;</code>
@param \Google\Cloud\Logging\Type\HttpRequest $var
@return $this | [
"Optional",
".",
"Information",
"about",
"the",
"HTTP",
"request",
"associated",
"with",
"this",
"log",
"entry",
"if",
"applicable",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogEntry.php#L596-L602 | train |
googleapis/google-cloud-php | Logging/src/V2/LogEntry.php | LogEntry.setOperation | public function setOperation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntryOperation::class);
$this->operation = $var;
return $this;
} | php | public function setOperation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntryOperation::class);
$this->operation = $var;
return $this;
} | [
"public",
"function",
"setOperation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Logging",
"\\",
"V2",
"\\",
"LogEntryOperation",
"::",
"class",
")",
";",
"$",
"this",
"->",
"... | Optional. Information about an operation associated with the log entry, if
applicable.
Generated from protobuf field <code>.google.logging.v2.LogEntryOperation operation = 15;</code>
@param \Google\Cloud\Logging\V2\LogEntryOperation $var
@return $this | [
"Optional",
".",
"Information",
"about",
"an",
"operation",
"associated",
"with",
"the",
"log",
"entry",
"if",
"applicable",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogEntry.php#L682-L688 | train |
googleapis/google-cloud-php | Logging/src/V2/LogEntry.php | LogEntry.setSourceLocation | public function setSourceLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntrySourceLocation::class);
$this->source_location = $var;
return $this;
} | php | public function setSourceLocation($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Logging\V2\LogEntrySourceLocation::class);
$this->source_location = $var;
return $this;
} | [
"public",
"function",
"setSourceLocation",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Logging",
"\\",
"V2",
"\\",
"LogEntrySourceLocation",
"::",
"class",
")",
";",
"$",
"this",
... | Optional. Source code location information associated with the log entry,
if any.
Generated from protobuf field <code>.google.logging.v2.LogEntrySourceLocation source_location = 23;</code>
@param \Google\Cloud\Logging\V2\LogEntrySourceLocation $var
@return $this | [
"Optional",
".",
"Source",
"code",
"location",
"information",
"associated",
"with",
"the",
"log",
"entry",
"if",
"any",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/V2/LogEntry.php#L810-L816 | train |
googleapis/google-cloud-php | Iot/src/V1/ListDevicesRequest.php | ListDevicesRequest.setGatewayListOptions | public function setGatewayListOptions($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\GatewayListOptions::class);
$this->gateway_list_options = $var;
return $this;
} | php | public function setGatewayListOptions($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\GatewayListOptions::class);
$this->gateway_list_options = $var;
return $this;
} | [
"public",
"function",
"setGatewayListOptions",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Iot",
"\\",
"V1",
"\\",
"GatewayListOptions",
"::",
"class",
")",
";",
"$",
"this",
"->... | Options related to gateways.
Generated from protobuf field <code>.google.cloud.iot.v1.GatewayListOptions gateway_list_options = 6;</code>
@param \Google\Cloud\Iot\V1\GatewayListOptions $var
@return $this | [
"Options",
"related",
"to",
"gateways",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Iot/src/V1/ListDevicesRequest.php#L240-L246 | train |
googleapis/google-cloud-php | BigQueryDataTransfer/src/V1/UpdateTransferConfigRequest.php | UpdateTransferConfigRequest.setTransferConfig | public function setTransferConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\DataTransfer\V1\TransferConfig::class);
$this->transfer_config = $var;
return $this;
} | php | public function setTransferConfig($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\DataTransfer\V1\TransferConfig::class);
$this->transfer_config = $var;
return $this;
} | [
"public",
"function",
"setTransferConfig",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"BigQuery",
"\\",
"DataTransfer",
"\\",
"V1",
"\\",
"TransferConfig",
"::",
"class",
")",
";",... | Data transfer configuration to create.
Generated from protobuf field <code>.google.cloud.bigquery.datatransfer.v1.TransferConfig transfer_config = 1;</code>
@param \Google\Cloud\BigQuery\DataTransfer\V1\TransferConfig $var
@return $this | [
"Data",
"transfer",
"configuration",
"to",
"create",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/BigQueryDataTransfer/src/V1/UpdateTransferConfigRequest.php#L103-L109 | train |
googleapis/google-cloud-php | Firestore/src/Admin/V1/ListIndexesResponse.php | ListIndexesResponse.setIndexes | public function setIndexes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index::class);
$this->indexes = $arr;
return $this;
} | php | public function setIndexes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index::class);
$this->indexes = $arr;
return $this;
} | [
"public",
"function",
"setIndexes",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | The requested indexes.
Generated from protobuf field <code>repeated .google.firestore.admin.v1.Index indexes = 1;</code>
@param \Google\Cloud\Firestore\Admin\V1\Index[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"requested",
"indexes",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Firestore/src/Admin/V1/ListIndexesResponse.php#L68-L74 | train |
googleapis/google-cloud-php | Core/src/Lock/LockTrait.php | LockTrait.synchronize | public function synchronize(callable $func, array $options = [])
{
$result = null;
$exception = null;
if ($this->acquire($options)) {
try {
$result = $func();
} catch (\Exception $ex) {
$exception = $ex;
}
$this... | php | public function synchronize(callable $func, array $options = [])
{
$result = null;
$exception = null;
if ($this->acquire($options)) {
try {
$result = $func();
} catch (\Exception $ex) {
$exception = $ex;
}
$this... | [
"public",
"function",
"synchronize",
"(",
"callable",
"$",
"func",
",",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"$",
"result",
"=",
"null",
";",
"$",
"exception",
"=",
"null",
";",
"if",
"(",
"$",
"this",
"->",
"acquire",
"(",
"$",
"optio... | Execute a callable within a lock. If an exception is caught during
execution of the callable the lock will first be released before throwing
it.
@param callable $func The callable to execute.
@param array $options [optional] {
Configuration options.
@type bool $blocking Whether the process should block while waiting
... | [
"Execute",
"a",
"callable",
"within",
"a",
"lock",
".",
"If",
"an",
"exception",
"is",
"caught",
"during",
"execution",
"of",
"the",
"callable",
"the",
"lock",
"will",
"first",
"be",
"released",
"before",
"throwing",
"it",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/Lock/LockTrait.php#L60-L79 | train |
googleapis/google-cloud-php | Bigtable/src/Admin/V2/ModifyColumnFamiliesRequest/Modification.php | Modification.setCreate | public function setCreate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class);
$this->writeOneof(2, $var);
return $this;
} | php | public function setCreate($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\ColumnFamily::class);
$this->writeOneof(2, $var);
return $this;
} | [
"public",
"function",
"setCreate",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Bigtable",
"\\",
"Admin",
"\\",
"V2",
"\\",
"ColumnFamily",
"::",
"class",
")",
";",
"$",
"this",... | Create a new column family with the specified schema, or fail if
one already exists with the given ID.
Generated from protobuf field <code>.google.bigtable.admin.v2.ColumnFamily create = 2;</code>
@param \Google\Cloud\Bigtable\Admin\V2\ColumnFamily $var
@return $this | [
"Create",
"a",
"new",
"column",
"family",
"with",
"the",
"specified",
"schema",
"or",
"fail",
"if",
"one",
"already",
"exists",
"with",
"the",
"given",
"ID",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Bigtable/src/Admin/V2/ModifyColumnFamiliesRequest/Modification.php#L96-L102 | train |
googleapis/google-cloud-php | Monitoring/src/V3/NotificationChannelDescriptor.php | NotificationChannelDescriptor.setLabels | public function setLabels($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class);
$this->labels = $arr;
return $this;
} | php | public function setLabels($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class);
$this->labels = $arr;
return $this;
} | [
"public",
"function",
"setLabels",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | The set of labels that must be defined to identify a particular
channel of the corresponding type. Each label includes a
description for how that field should be populated.
Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
@param \Google\Api\LabelDescriptor[]|\Google\Protobuf\... | [
"The",
"set",
"of",
"labels",
"that",
"must",
"be",
"defined",
"to",
"identify",
"a",
"particular",
"channel",
"of",
"the",
"corresponding",
"type",
".",
"Each",
"label",
"includes",
"a",
"description",
"for",
"how",
"that",
"field",
"should",
"be",
"populat... | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Monitoring/src/V3/NotificationChannelDescriptor.php#L238-L244 | train |
googleapis/google-cloud-php | Monitoring/src/V3/NotificationChannelDescriptor.php | NotificationChannelDescriptor.setSupportedTiers | public function setSupportedTiers($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Monitoring\V3\ServiceTier::class);
$this->supported_tiers = $arr;
return $this;
} | php | public function setSupportedTiers($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Monitoring\V3\ServiceTier::class);
$this->supported_tiers = $arr;
return $this;
} | [
"public",
"function",
"setSupportedTiers",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"ENUM",
",",
"\\",
"Google",
"\... | The tiers that support this notification channel; the project service tier
must be one of the supported_tiers.
Generated from protobuf field <code>repeated .google.monitoring.v3.ServiceTier supported_tiers = 5 [deprecated = true];</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"The",
"tiers",
"that",
"support",
"this",
"notification",
"channel",
";",
"the",
"project",
"service",
"tier",
"must",
"be",
"one",
"of",
"the",
"supported_tiers",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Monitoring/src/V3/NotificationChannelDescriptor.php#L266-L272 | train |
googleapis/google-cloud-php | Container/src/V1/Gapic/ClusterManagerGapicClient.php | ClusterManagerGapicClient.listClusters | public function listClusters($projectId, $zone, array $optionalArgs = [])
{
$request = new ListClustersRequest();
$request->setProjectId($projectId);
$request->setZone($zone);
if (isset($optionalArgs['parent'])) {
$request->setParent($optionalArgs['parent']);
}
... | php | public function listClusters($projectId, $zone, array $optionalArgs = [])
{
$request = new ListClustersRequest();
$request->setProjectId($projectId);
$request->setZone($zone);
if (isset($optionalArgs['parent'])) {
$request->setParent($optionalArgs['parent']);
}
... | [
"public",
"function",
"listClusters",
"(",
"$",
"projectId",
",",
"$",
"zone",
",",
"array",
"$",
"optionalArgs",
"=",
"[",
"]",
")",
"{",
"$",
"request",
"=",
"new",
"ListClustersRequest",
"(",
")",
";",
"$",
"request",
"->",
"setProjectId",
"(",
"$",
... | Lists all clusters owned by a project in either the specified zone or all
zones.
Sample code:
```
$clusterManagerClient = new ClusterManagerClient();
try {
$projectId = '';
$zone = '';
$response = $clusterManagerClient->listClusters($projectId, $zone);
} finally {
$clusterManagerClient->close();
}
```
@param string $... | [
"Lists",
"all",
"clusters",
"owned",
"by",
"a",
"project",
"in",
"either",
"the",
"specified",
"zone",
"or",
"all",
"zones",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/Gapic/ClusterManagerGapicClient.php#L253-L275 | train |
googleapis/google-cloud-php | Container/src/V1/Gapic/ClusterManagerGapicClient.php | ClusterManagerGapicClient.getCluster | public function getCluster($projectId, $zone, $clusterId, array $optionalArgs = [])
{
$request = new GetClusterRequest();
$request->setProjectId($projectId);
$request->setZone($zone);
$request->setClusterId($clusterId);
if (isset($optionalArgs['name'])) {
$request... | php | public function getCluster($projectId, $zone, $clusterId, array $optionalArgs = [])
{
$request = new GetClusterRequest();
$request->setProjectId($projectId);
$request->setZone($zone);
$request->setClusterId($clusterId);
if (isset($optionalArgs['name'])) {
$request... | [
"public",
"function",
"getCluster",
"(",
"$",
"projectId",
",",
"$",
"zone",
",",
"$",
"clusterId",
",",
"array",
"$",
"optionalArgs",
"=",
"[",
"]",
")",
"{",
"$",
"request",
"=",
"new",
"GetClusterRequest",
"(",
")",
";",
"$",
"request",
"->",
"setPr... | Gets the details of a specific cluster.
Sample code:
```
$clusterManagerClient = new ClusterManagerClient();
try {
$projectId = '';
$zone = '';
$clusterId = '';
$response = $clusterManagerClient->getCluster($projectId, $zone, $clusterId);
} finally {
$clusterManagerClient->close();
}
```
@param string $projectId D... | [
"Gets",
"the",
"details",
"of",
"a",
"specific",
"cluster",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Container/src/V1/Gapic/ClusterManagerGapicClient.php#L320-L343 | train |
googleapis/google-cloud-php | Debugger/src/V2/ListBreakpointsRequest.php | ListBreakpointsRequest.setAction | public function setAction($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\ListBreakpointsRequest_BreakpointActionValue::class);
$this->action = $var;
return $this;
} | php | public function setAction($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\ListBreakpointsRequest_BreakpointActionValue::class);
$this->action = $var;
return $this;
} | [
"public",
"function",
"setAction",
"(",
"$",
"var",
")",
"{",
"GPBUtil",
"::",
"checkMessage",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Cloud",
"\\",
"Debugger",
"\\",
"V2",
"\\",
"ListBreakpointsRequest_BreakpointActionValue",
"::",
"class",
")",
";",
"... | When set, the response includes only breakpoints with the specified action.
Generated from protobuf field <code>.google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue action = 4;</code>
@param \Google\Cloud\Debugger\V2\ListBreakpointsRequest\BreakpointActionValue $var
@return $this | [
"When",
"set",
"the",
"response",
"includes",
"only",
"breakpoints",
"with",
"the",
"specified",
"action",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Debugger/src/V2/ListBreakpointsRequest.php#L204-L210 | train |
googleapis/google-cloud-php | Vision/src/V1/AsyncBatchAnnotateFilesResponse.php | AsyncBatchAnnotateFilesResponse.setResponses | public function setResponses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\AsyncAnnotateFileResponse::class);
$this->responses = $arr;
return $this;
} | php | public function setResponses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\AsyncAnnotateFileResponse::class);
$this->responses = $arr;
return $this;
} | [
"public",
"function",
"setResponses",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\"... | The list of file annotation responses, one for each request in
AsyncBatchAnnotateFilesRequest.
Generated from protobuf field <code>repeated .google.cloud.vision.v1.AsyncAnnotateFileResponse responses = 1;</code>
@param \Google\Cloud\Vision\V1\AsyncAnnotateFileResponse[]|\Google\Protobuf\Internal\RepeatedField $var
@re... | [
"The",
"list",
"of",
"file",
"annotation",
"responses",
"one",
"for",
"each",
"request",
"in",
"AsyncBatchAnnotateFilesRequest",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Vision/src/V1/AsyncBatchAnnotateFilesResponse.php#L62-L68 | train |
googleapis/google-cloud-php | VideoIntelligence/src/V1/AnnotateVideoRequest.php | AnnotateVideoRequest.setFeatures | public function setFeatures($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\VideoIntelligence\V1\Feature::class);
$this->features = $arr;
return $this;
} | php | public function setFeatures($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\VideoIntelligence\V1\Feature::class);
$this->features = $arr;
return $this;
} | [
"public",
"function",
"setFeatures",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"ENUM",
",",
"\\",
"Google",
"\\",
... | Requested video annotation features.
Generated from protobuf field <code>repeated .google.cloud.videointelligence.v1.Feature features = 2;</code>
@param int[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Requested",
"video",
"annotation",
"features",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/VideoIntelligence/src/V1/AnnotateVideoRequest.php#L208-L214 | train |
googleapis/google-cloud-php | Core/src/RequestWrapperTrait.php | RequestWrapperTrait.setCommonDefaults | public function setCommonDefaults(array $config)
{
$config += [
'authCache' => new MemoryCacheItemPool(),
'authCacheOptions' => [],
'credentialsFetcher' => null,
'keyFile' => null,
'requestTimeout' => null,
'retries' => 3,
'... | php | public function setCommonDefaults(array $config)
{
$config += [
'authCache' => new MemoryCacheItemPool(),
'authCacheOptions' => [],
'credentialsFetcher' => null,
'keyFile' => null,
'requestTimeout' => null,
'retries' => 3,
'... | [
"public",
"function",
"setCommonDefaults",
"(",
"array",
"$",
"config",
")",
"{",
"$",
"config",
"+=",
"[",
"'authCache'",
"=>",
"new",
"MemoryCacheItemPool",
"(",
")",
",",
"'authCacheOptions'",
"=>",
"[",
"]",
",",
"'credentialsFetcher'",
"=>",
"null",
",",
... | Sets common defaults between request wrappers.
@param array $config {
Configuration options.
@type CacheItemPoolInterface $authCache A cache for storing access
tokens. **Defaults to** a simple in memory implementation.
@type array $authCacheOptions Cache configuration options.
@type FetchAuthTokenInterface $credentia... | [
"Sets",
"common",
"defaults",
"between",
"request",
"wrappers",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Core/src/RequestWrapperTrait.php#L91-L118 | train |
googleapis/google-cloud-php | Vision/src/V1/CropHintsAnnotation.php | CropHintsAnnotation.setCropHints | public function setCropHints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\CropHint::class);
$this->crop_hints = $arr;
return $this;
} | php | public function setCropHints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Vision\V1\CropHint::class);
$this->crop_hints = $arr;
return $this;
} | [
"public",
"function",
"setCropHints",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\"... | Crop hint results.
Generated from protobuf field <code>repeated .google.cloud.vision.v1.CropHint crop_hints = 1;</code>
@param \Google\Cloud\Vision\V1\CropHint[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Crop",
"hint",
"results",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Vision/src/V1/CropHintsAnnotation.php#L58-L64 | train |
googleapis/google-cloud-php | Datastore/src/V1/Gapic/DatastoreGapicClient.php | DatastoreGapicClient.beginTransaction | public function beginTransaction($projectId, array $optionalArgs = [])
{
$request = new BeginTransactionRequest();
$request->setProjectId($projectId);
if (isset($optionalArgs['transactionOptions'])) {
$request->setTransactionOptions($optionalArgs['transactionOptions']);
}... | php | public function beginTransaction($projectId, array $optionalArgs = [])
{
$request = new BeginTransactionRequest();
$request->setProjectId($projectId);
if (isset($optionalArgs['transactionOptions'])) {
$request->setTransactionOptions($optionalArgs['transactionOptions']);
}... | [
"public",
"function",
"beginTransaction",
"(",
"$",
"projectId",
",",
"array",
"$",
"optionalArgs",
"=",
"[",
"]",
")",
"{",
"$",
"request",
"=",
"new",
"BeginTransactionRequest",
"(",
")",
";",
"$",
"request",
"->",
"setProjectId",
"(",
"$",
"projectId",
... | Begins a new transaction.
Sample code:
```
$datastoreClient = new DatastoreClient();
try {
$projectId = '';
$response = $datastoreClient->beginTransaction($projectId);
} finally {
$datastoreClient->close();
}
```
@param string $projectId The ID of the project against which to make the request.
@param array $optio... | [
"Begins",
"a",
"new",
"transaction",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Datastore/src/V1/Gapic/DatastoreGapicClient.php#L354-L375 | train |
googleapis/google-cloud-php | Datastore/src/V1/Gapic/DatastoreGapicClient.php | DatastoreGapicClient.commit | public function commit($projectId, $mode, $mutations, array $optionalArgs = [])
{
$request = new CommitRequest();
$request->setProjectId($projectId);
$request->setMode($mode);
$request->setMutations($mutations);
if (isset($optionalArgs['transaction'])) {
$request-... | php | public function commit($projectId, $mode, $mutations, array $optionalArgs = [])
{
$request = new CommitRequest();
$request->setProjectId($projectId);
$request->setMode($mode);
$request->setMutations($mutations);
if (isset($optionalArgs['transaction'])) {
$request-... | [
"public",
"function",
"commit",
"(",
"$",
"projectId",
",",
"$",
"mode",
",",
"$",
"mutations",
",",
"array",
"$",
"optionalArgs",
"=",
"[",
"]",
")",
"{",
"$",
"request",
"=",
"new",
"CommitRequest",
"(",
")",
";",
"$",
"request",
"->",
"setProjectId"... | Commits a transaction, optionally creating, deleting or modifying some
entities.
Sample code:
```
$datastoreClient = new DatastoreClient();
try {
$projectId = '';
$mode = CommitRequest\Mode::MODE_UNSPECIFIED;
$mutations = [];
$response = $datastoreClient->commit($projectId, $mode, $mutations);
} finally {
$datastoreCl... | [
"Commits",
"a",
"transaction",
"optionally",
"creating",
"deleting",
"or",
"modifying",
"some",
"entities",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Datastore/src/V1/Gapic/DatastoreGapicClient.php#L429-L452 | train |
googleapis/google-cloud-php | Logging/src/PsrLogger.php | PsrLogger.log | public function log($level, $message, array $context = [])
{
$this->validateLogLevel($level);
$options = [];
if (isset($context['exception'])
&& ($context['exception'] instanceof \Exception || $context['exception'] instanceof \Throwable)) {
$context['exception'] = (s... | php | public function log($level, $message, array $context = [])
{
$this->validateLogLevel($level);
$options = [];
if (isset($context['exception'])
&& ($context['exception'] instanceof \Exception || $context['exception'] instanceof \Throwable)) {
$context['exception'] = (s... | [
"public",
"function",
"log",
"(",
"$",
"level",
",",
"$",
"message",
",",
"array",
"$",
"context",
"=",
"[",
"]",
")",
"{",
"$",
"this",
"->",
"validateLogLevel",
"(",
"$",
"level",
")",
";",
"$",
"options",
"=",
"[",
"]",
";",
"if",
"(",
"isset"... | Write a log entry.
Example:
```
use Google\Cloud\Logging\Logger;
$psrLogger->log(Logger::ALERT, 'alert message');
```
```
// Write a log entry using the context array with placeholders.
use Google\Cloud\Logging\Logger;
$psrLogger->log(Logger::ALERT, 'alert: {message}', [
'message' => 'my alert message'
]);
```
```... | [
"Write",
"a",
"log",
"entry",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/PsrLogger.php#L362-L414 | train |
googleapis/google-cloud-php | Logging/src/PsrLogger.php | PsrLogger.serialize | public function serialize()
{
$debugOutputResource = null;
if (is_resource($this->debugOutputResource)) {
$metadata = stream_get_meta_data($this->debugOutputResource);
$debugOutputResource = [
'uri' => $metadata['uri'],
'mode' => $metadata['mod... | php | public function serialize()
{
$debugOutputResource = null;
if (is_resource($this->debugOutputResource)) {
$metadata = stream_get_meta_data($this->debugOutputResource);
$debugOutputResource = [
'uri' => $metadata['uri'],
'mode' => $metadata['mod... | [
"public",
"function",
"serialize",
"(",
")",
"{",
"$",
"debugOutputResource",
"=",
"null",
";",
"if",
"(",
"is_resource",
"(",
"$",
"this",
"->",
"debugOutputResource",
")",
")",
"{",
"$",
"metadata",
"=",
"stream_get_meta_data",
"(",
"$",
"this",
"->",
"d... | Serializes data.
@return string
@access private | [
"Serializes",
"data",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/PsrLogger.php#L432-L453 | train |
googleapis/google-cloud-php | Logging/src/PsrLogger.php | PsrLogger.unserialize | public function unserialize($data)
{
list(
$this->messageKey,
$this->batchEnabled,
$this->metadataProvider,
$this->debugOutput,
$this->clientConfig,
$this->batchMethod,
$this->logName,
$debugOutputResource
... | php | public function unserialize($data)
{
list(
$this->messageKey,
$this->batchEnabled,
$this->metadataProvider,
$this->debugOutput,
$this->clientConfig,
$this->batchMethod,
$this->logName,
$debugOutputResource
... | [
"public",
"function",
"unserialize",
"(",
"$",
"data",
")",
"{",
"list",
"(",
"$",
"this",
"->",
"messageKey",
",",
"$",
"this",
"->",
"batchEnabled",
",",
"$",
"this",
"->",
"metadataProvider",
",",
"$",
"this",
"->",
"debugOutput",
",",
"$",
"this",
... | Unserializes data.
@param string
@access private | [
"Unserializes",
"data",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/PsrLogger.php#L461-L480 | train |
googleapis/google-cloud-php | Logging/src/PsrLogger.php | PsrLogger.validateLogLevel | private function validateLogLevel($level)
{
$map = Logger::getLogLevelMap();
$level = (string) $level;
if (isset($map[$level]) || isset(array_flip($map)[strtoupper($level)])) {
return true;
}
throw new InvalidArgumentException("Severity level '$level' is not def... | php | private function validateLogLevel($level)
{
$map = Logger::getLogLevelMap();
$level = (string) $level;
if (isset($map[$level]) || isset(array_flip($map)[strtoupper($level)])) {
return true;
}
throw new InvalidArgumentException("Severity level '$level' is not def... | [
"private",
"function",
"validateLogLevel",
"(",
"$",
"level",
")",
"{",
"$",
"map",
"=",
"Logger",
"::",
"getLogLevelMap",
"(",
")",
";",
"$",
"level",
"=",
"(",
"string",
")",
"$",
"level",
";",
"if",
"(",
"isset",
"(",
"$",
"map",
"[",
"$",
"leve... | Validates whether or not the provided log level exists.
@param string|int $level The severity of the log entry.
@return bool
@throws InvalidArgumentException | [
"Validates",
"whether",
"or",
"not",
"the",
"provided",
"log",
"level",
"exists",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/PsrLogger.php#L504-L514 | train |
googleapis/google-cloud-php | Logging/src/PsrLogger.php | PsrLogger.sendEntry | private function sendEntry(Entry $entry)
{
if ($this->batchEnabled) {
$this->batchRunner->submitItem($this->identifier, $entry);
return;
}
$this->logger->write($entry);
} | php | private function sendEntry(Entry $entry)
{
if ($this->batchEnabled) {
$this->batchRunner->submitItem($this->identifier, $entry);
return;
}
$this->logger->write($entry);
} | [
"private",
"function",
"sendEntry",
"(",
"Entry",
"$",
"entry",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"batchEnabled",
")",
"{",
"$",
"this",
"->",
"batchRunner",
"->",
"submitItem",
"(",
"$",
"this",
"->",
"identifier",
",",
"$",
"entry",
")",
";",
... | Send the given entry.
@param Entry $entry | [
"Send",
"the",
"given",
"entry",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Logging/src/PsrLogger.php#L521-L529 | train |
googleapis/google-cloud-php | PubSub/src/Snapshot.php | Snapshot.create | public function create(array $options = [])
{
if (!$this->info['subscription']) {
throw new \BadMethodCallException('A subscription is required to create a snapshot.');
}
return $this->info = $this->connection->createSnapshot([
'project' => $this->formatName('project... | php | public function create(array $options = [])
{
if (!$this->info['subscription']) {
throw new \BadMethodCallException('A subscription is required to create a snapshot.');
}
return $this->info = $this->connection->createSnapshot([
'project' => $this->formatName('project... | [
"public",
"function",
"create",
"(",
"array",
"$",
"options",
"=",
"[",
"]",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"info",
"[",
"'subscription'",
"]",
")",
"{",
"throw",
"new",
"\\",
"BadMethodCallException",
"(",
"'A subscription is required to creat... | Create a new Snapshot.
When creating a snapshot, a subscription name must be supplied at
instantiation.
Please note that this method may not yet be available in your project.
Example:
```
$info = $snapshot->create();
```
@param array $options [optional] Configuration options.
@return array
@throws \BadMethodCallExc... | [
"Create",
"a",
"new",
"Snapshot",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/Snapshot.php#L159-L170 | train |
googleapis/google-cloud-php | PubSub/src/Snapshot.php | Snapshot.topic | public function topic()
{
if ($this->info['topic']) {
return new Topic(
$this->connection,
$this->projectId,
$this->info['topic'],
$this->encode,
[],
$this->clientConfig
);
}
... | php | public function topic()
{
if ($this->info['topic']) {
return new Topic(
$this->connection,
$this->projectId,
$this->info['topic'],
$this->encode,
[],
$this->clientConfig
);
}
... | [
"public",
"function",
"topic",
"(",
")",
"{",
"if",
"(",
"$",
"this",
"->",
"info",
"[",
"'topic'",
"]",
")",
"{",
"return",
"new",
"Topic",
"(",
"$",
"this",
"->",
"connection",
",",
"$",
"this",
"->",
"projectId",
",",
"$",
"this",
"->",
"info",
... | Get the Topic attached to the snapshot, if one exists.
Example:
```
$topic = $snapshot->topic();
```
@return Topic|null | [
"Get",
"the",
"Topic",
"attached",
"to",
"the",
"snapshot",
"if",
"one",
"exists",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/Snapshot.php#L202-L216 | train |
googleapis/google-cloud-php | PubSub/src/Snapshot.php | Snapshot.subscription | public function subscription()
{
return $this->info['subscription']
? new Subscription($this->connection, $this->projectId, $this->info['subscription'], null, $this->encode)
: null;
} | php | public function subscription()
{
return $this->info['subscription']
? new Subscription($this->connection, $this->projectId, $this->info['subscription'], null, $this->encode)
: null;
} | [
"public",
"function",
"subscription",
"(",
")",
"{",
"return",
"$",
"this",
"->",
"info",
"[",
"'subscription'",
"]",
"?",
"new",
"Subscription",
"(",
"$",
"this",
"->",
"connection",
",",
"$",
"this",
"->",
"projectId",
",",
"$",
"this",
"->",
"info",
... | Get the Subscription attached to the snapshot, if one exists.
Example:
```
$subscription = $snapshot->subscription();
```
@return Subscription|null | [
"Get",
"the",
"Subscription",
"attached",
"to",
"the",
"snapshot",
"if",
"one",
"exists",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/PubSub/src/Snapshot.php#L228-L233 | train |
googleapis/google-cloud-php | Trace/src/MessageEvent.php | MessageEvent.info | public function info()
{
$data = [
'id' => $this->id,
'type' => $this->type
];
if ($this->uncompressedSizeBytes) {
$data['uncompressedSizeBytes'] = $this->uncompressedSizeBytes;
}
if ($this->compressedSizeBytes) {
$data['compre... | php | public function info()
{
$data = [
'id' => $this->id,
'type' => $this->type
];
if ($this->uncompressedSizeBytes) {
$data['uncompressedSizeBytes'] = $this->uncompressedSizeBytes;
}
if ($this->compressedSizeBytes) {
$data['compre... | [
"public",
"function",
"info",
"(",
")",
"{",
"$",
"data",
"=",
"[",
"'id'",
"=>",
"$",
"this",
"->",
"id",
",",
"'type'",
"=>",
"$",
"this",
"->",
"type",
"]",
";",
"if",
"(",
"$",
"this",
"->",
"uncompressedSizeBytes",
")",
"{",
"$",
"data",
"["... | Returns a serializable array representing this MessageEvent.
@access private
@return array | [
"Returns",
"a",
"serializable",
"array",
"representing",
"this",
"MessageEvent",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Trace/src/MessageEvent.php#L107-L125 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setPersonNames | public function setPersonNames($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonName::class);
$this->person_names = $arr;
return $this;
} | php | public function setPersonNames($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonName::class);
$this->person_names = $arr;
return $this;
} | [
"public",
"function",
"setPersonNames",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\... | Optional.
The names of the candidate this profile references.
Currently only one person name is supported.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.PersonName person_names = 11;</code>
@param \Google\Cloud\Talent\V4beta1\PersonName[]|\Google\Protobuf\Internal\RepeatedField $var
@return... | [
"Optional",
".",
"The",
"names",
"of",
"the",
"candidate",
"this",
"profile",
"references",
".",
"Currently",
"only",
"one",
"person",
"name",
"is",
"supported",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L856-L862 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setAddresses | public function setAddresses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Address::class);
$this->addresses = $arr;
return $this;
} | php | public function setAddresses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Address::class);
$this->addresses = $arr;
return $this;
} | [
"public",
"function",
"setAddresses",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\"... | Optional.
The candidate's postal addresses.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Address addresses = 12;</code>
@param \Google\Cloud\Talent\V4beta1\Address[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"candidate",
"s",
"postal",
"addresses",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L884-L890 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setEmailAddresses | public function setEmailAddresses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Email::class);
$this->email_addresses = $arr;
return $this;
} | php | public function setEmailAddresses($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Email::class);
$this->email_addresses = $arr;
return $this;
} | [
"public",
"function",
"setEmailAddresses",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | Optional.
The candidate's email addresses.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Email email_addresses = 13;</code>
@param \Google\Cloud\Talent\V4beta1\Email[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"candidate",
"s",
"email",
"addresses",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L912-L918 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setPersonalUris | public function setPersonalUris($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonalUri::class);
$this->personal_uris = $arr;
return $this;
} | php | public function setPersonalUris($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\PersonalUri::class);
$this->personal_uris = $arr;
return $this;
} | [
"public",
"function",
"setPersonalUris",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"... | Optional.
The candidate's personal URIs.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15;</code>
@param \Google\Cloud\Talent\V4beta1\PersonalUri[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"candidate",
"s",
"personal",
"URIs",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L968-L974 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setSkills | public function setSkills($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Skill::class);
$this->skills = $arr;
return $this;
} | php | public function setSkills($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Skill::class);
$this->skills = $arr;
return $this;
} | [
"public",
"function",
"setSkills",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | Optional.
The skill set of the candidate. It's highly recommended to provide as
much information as possible to help improve the search quality.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Skill skills = 19;</code>
@param \Google\Cloud\Talent\V4beta1\Skill[]|\Google\Protobuf\Internal\Repe... | [
"Optional",
".",
"The",
"skill",
"set",
"of",
"the",
"candidate",
".",
"It",
"s",
"highly",
"recommended",
"to",
"provide",
"as",
"much",
"information",
"as",
"possible",
"to",
"help",
"improve",
"the",
"search",
"quality",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L1134-L1140 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setPublications | public function setPublications($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Publication::class);
$this->publications = $arr;
return $this;
} | php | public function setPublications($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Publication::class);
$this->publications = $arr;
return $this;
} | [
"public",
"function",
"setPublications",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"... | Optional.
The publications published by the candidate.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Publication publications = 21;</code>
@param \Google\Cloud\Talent\V4beta1\Publication[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"publications",
"published",
"by",
"the",
"candidate",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L1196-L1202 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setPatents | public function setPatents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Patent::class);
$this->patents = $arr;
return $this;
} | php | public function setPatents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Patent::class);
$this->patents = $arr;
return $this;
} | [
"public",
"function",
"setPatents",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
"\\",
... | Optional.
The patents acquired by the candidate.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Patent patents = 22;</code>
@param \Google\Cloud\Talent\V4beta1\Patent[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"patents",
"acquired",
"by",
"the",
"candidate",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L1224-L1230 | train |
googleapis/google-cloud-php | Talent/src/V4beta1/Profile.php | Profile.setCertifications | public function setCertifications($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Certification::class);
$this->certifications = $arr;
return $this;
} | php | public function setCertifications($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4beta1\Certification::class);
$this->certifications = $arr;
return $this;
} | [
"public",
"function",
"setCertifications",
"(",
"$",
"var",
")",
"{",
"$",
"arr",
"=",
"GPBUtil",
"::",
"checkRepeatedField",
"(",
"$",
"var",
",",
"\\",
"Google",
"\\",
"Protobuf",
"\\",
"Internal",
"\\",
"GPBType",
"::",
"MESSAGE",
",",
"\\",
"Google",
... | Optional.
The certifications acquired by the candidate.
Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.Certification certifications = 23;</code>
@param \Google\Cloud\Talent\V4beta1\Certification[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this | [
"Optional",
".",
"The",
"certifications",
"acquired",
"by",
"the",
"candidate",
"."
] | ff5030ffa1f12904565509a7bc24ecc0bd794a3e | https://github.com/googleapis/google-cloud-php/blob/ff5030ffa1f12904565509a7bc24ecc0bd794a3e/Talent/src/V4beta1/Profile.php#L1252-L1258 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.