code
stringlengths
17
247k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function getAudioChannelCount() { return $this->audio_channel_count; }
Optional. Number of channels present in the audio data sent for recognition. Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED. The maximum allowed value is 8. Generated from protobuf field <code>int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code> @return int
getAudioChannelCount
php
googleapis/google-cloud-php
Speech/src/V2/ExplicitDecodingConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Speech/src/V2/ExplicitDecodingConfig.php
Apache-2.0
public function setAudioChannelCount($var) { GPBUtil::checkInt32($var); $this->audio_channel_count = $var; return $this; }
Optional. Number of channels present in the audio data sent for recognition. Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED. The maximum allowed value is 8. Generated from protobuf field <code>int32 audio_channel_count = 3 [(.google.api.field_behavior) = OPTIONAL];</code> @param int $var @return $this
setAudioChannelCount
php
googleapis/google-cloud-php
Speech/src/V2/ExplicitDecodingConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Speech/src/V2/ExplicitDecodingConfig.php
Apache-2.0
public function setAudioEncoding($var) { GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\AudioEncoding::class); $this->audio_encoding = $var; return $this; }
Required. Audio encoding of the audio content to process. Generated from protobuf field <code>.google.cloud.dialogflow.v2.AudioEncoding audio_encoding = 1 [(.google.api.field_behavior) = REQUIRED];</code> @param int $var @return $this
setAudioEncoding
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function getPhraseHints() { @trigger_error('phrase_hints is deprecated.', E_USER_DEPRECATED); return $this->phrase_hints; }
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [`speech_contexts`]() instead. If you specify both [`phrase_hints`]() and [`speech_contexts`](), Dialogflow will treat the [`phrase_hints`]() as a single additional [`SpeechContext`](). Generated from protobuf field <code>repeated string phrase_hints = 4 [deprecated = true];</code> @return \Google\Protobuf\Internal\RepeatedField @deprecated
getPhraseHints
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function setPhraseHints($var) { @trigger_error('phrase_hints is deprecated.', E_USER_DEPRECATED); $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->phrase_hints = $arr; return $this; }
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. This field is deprecated. Please use [`speech_contexts`]() instead. If you specify both [`phrase_hints`]() and [`speech_contexts`](), Dialogflow will treat the [`phrase_hints`]() as a single additional [`SpeechContext`](). Generated from protobuf field <code>repeated string phrase_hints = 4 [deprecated = true];</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this @deprecated
setPhraseHints
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function setSpeechContexts($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SpeechContext::class); $this->speech_contexts = $arr; return $this; }
Context information to assist speech recognition. See [the Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) for more details. Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SpeechContext speech_contexts = 11;</code> @param array<\Google\Cloud\Dialogflow\V2\SpeechContext>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setSpeechContexts
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function setModelVariant($var) { GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\SpeechModelVariant::class); $this->model_variant = $var; return $this; }
Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. Generated from protobuf field <code>.google.cloud.dialogflow.v2.SpeechModelVariant model_variant = 10;</code> @param int $var @return $this
setModelVariant
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function getDisableNoSpeechRecognizedEvent() { return $this->disable_no_speech_recognized_event; }
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. Generated from protobuf field <code>bool disable_no_speech_recognized_event = 14;</code> @return bool
getDisableNoSpeechRecognizedEvent
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function setDisableNoSpeechRecognizedEvent($var) { GPBUtil::checkBool($var); $this->disable_no_speech_recognized_event = $var; return $this; }
Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. Generated from protobuf field <code>bool disable_no_speech_recognized_event = 14;</code> @param bool $var @return $this
setDisableNoSpeechRecognizedEvent
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function getPhraseSets() { return $this->phrase_sets; }
A collection of phrase set resources to use for speech adaptation. Generated from protobuf field <code>repeated string phrase_sets = 20 [(.google.api.resource_reference) = {</code> @return \Google\Protobuf\Internal\RepeatedField
getPhraseSets
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function setPhraseSets($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->phrase_sets = $arr; return $this; }
A collection of phrase set resources to use for speech adaptation. Generated from protobuf field <code>repeated string phrase_sets = 20 [(.google.api.resource_reference) = {</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setPhraseSets
php
googleapis/google-cloud-php
Dialogflow/src/V2/InputAudioConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Dialogflow/src/V2/InputAudioConfig.php
Apache-2.0
public function getNotificationCategorySubscriptions() { return $this->notification_category_subscriptions; }
Required. The categories of notifications that the contact will receive communications for. Generated from protobuf field <code>repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];</code> @return \Google\Protobuf\Internal\RepeatedField
getNotificationCategorySubscriptions
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function setNotificationCategorySubscriptions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\EssentialContacts\V1\NotificationCategory::class); $this->notification_category_subscriptions = $arr; return $this; }
Required. The categories of notifications that the contact will receive communications for. Generated from protobuf field <code>repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED];</code> @param array<int>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setNotificationCategorySubscriptions
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function getLanguageTag() { return $this->language_tag; }
Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages. Generated from protobuf field <code>string language_tag = 4 [(.google.api.field_behavior) = REQUIRED];</code> @return string
getLanguageTag
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function setLanguageTag($var) { GPBUtil::checkString($var, True); $this->language_tag = $var; return $this; }
Required. The preferred language for notifications, as a ISO 639-1 language code. See [Supported languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) for a list of supported languages. Generated from protobuf field <code>string language_tag = 4 [(.google.api.field_behavior) = REQUIRED];</code> @param string $var @return $this
setLanguageTag
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function getValidationState() { return $this->validation_state; }
Output only. The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource. Generated from protobuf field <code>.google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> @return int
getValidationState
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function setValidationState($var) { GPBUtil::checkEnum($var, \Google\Cloud\EssentialContacts\V1\ValidationState::class); $this->validation_state = $var; return $this; }
Output only. The validity of the contact. A contact is considered valid if it is the correct recipient for notifications for a particular resource. Generated from protobuf field <code>.google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code> @param int $var @return $this
setValidationState
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function getValidateTime() { return $this->validate_time; }
The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago. Generated from protobuf field <code>.google.protobuf.Timestamp validate_time = 9;</code> @return \Google\Protobuf\Timestamp|null
getValidateTime
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function setValidateTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->validate_time = $var; return $this; }
The last time the validation_state was updated, either manually or automatically. A contact is considered stale if its validation state was updated more than 1 year ago. Generated from protobuf field <code>.google.protobuf.Timestamp validate_time = 9;</code> @param \Google\Protobuf\Timestamp $var @return $this
setValidateTime
php
googleapis/google-cloud-php
EssentialContacts/src/V1/Contact.php
https://github.com/googleapis/google-cloud-php/blob/master/EssentialContacts/src/V1/Contact.php
Apache-2.0
public function getConnectionEndpoints() { return $this->connection_endpoints; }
[Output Only] An array of connections for all the producers connected to this network attachment. Generated from protobuf field <code>repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;</code> @return \Google\Protobuf\Internal\RepeatedField
getConnectionEndpoints
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setConnectionEndpoints($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\NetworkAttachmentConnectedEndpoint::class); $this->connection_endpoints = $arr; return $this; }
[Output Only] An array of connections for all the producers connected to this network attachment. Generated from protobuf field <code>repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;</code> @param array<\Google\Cloud\Compute\V1\NetworkAttachmentConnectedEndpoint>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setConnectionEndpoints
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function getConnectionPreference() { return isset($this->connection_preference) ? $this->connection_preference : ''; }
Check the ConnectionPreference enum for the list of possible values. Generated from protobuf field <code>optional string connection_preference = 285818076;</code> @return string
getConnectionPreference
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setConnectionPreference($var) { GPBUtil::checkString($var, True); $this->connection_preference = $var; return $this; }
Check the ConnectionPreference enum for the list of possible values. Generated from protobuf field <code>optional string connection_preference = 285818076;</code> @param string $var @return $this
setConnectionPreference
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function getProducerAcceptLists() { return $this->producer_accept_lists; }
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. Generated from protobuf field <code>repeated string producer_accept_lists = 202804523;</code> @return \Google\Protobuf\Internal\RepeatedField
getProducerAcceptLists
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setProducerAcceptLists($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->producer_accept_lists = $arr; return $this; }
Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. Generated from protobuf field <code>repeated string producer_accept_lists = 202804523;</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setProducerAcceptLists
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function getProducerRejectLists() { return $this->producer_reject_lists; }
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. Generated from protobuf field <code>repeated string producer_reject_lists = 4112002;</code> @return \Google\Protobuf\Internal\RepeatedField
getProducerRejectLists
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setProducerRejectLists($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->producer_reject_lists = $arr; return $this; }
Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. Generated from protobuf field <code>repeated string producer_reject_lists = 4112002;</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setProducerRejectLists
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function getSubnetworks() { return $this->subnetworks; }
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. Generated from protobuf field <code>repeated string subnetworks = 415853125;</code> @return \Google\Protobuf\Internal\RepeatedField
getSubnetworks
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setSubnetworks($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->subnetworks = $arr; return $this; }
An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. Generated from protobuf field <code>repeated string subnetworks = 415853125;</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setSubnetworks
php
googleapis/google-cloud-php
Compute/src/V1/NetworkAttachment.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworkAttachment.php
Apache-2.0
public function setHeaders($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebSecurityScanner\V1\VulnerableHeaders\Header::class); $this->headers = $arr; return $this; }
List of vulnerable headers. Generated from protobuf field <code>repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1;</code> @param array<\Google\Cloud\WebSecurityScanner\V1\VulnerableHeaders\Header>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setHeaders
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/VulnerableHeaders.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/VulnerableHeaders.php
Apache-2.0
public function getMissingHeaders() { return $this->missing_headers; }
List of missing headers. Generated from protobuf field <code>repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2;</code> @return \Google\Protobuf\Internal\RepeatedField
getMissingHeaders
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/VulnerableHeaders.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/VulnerableHeaders.php
Apache-2.0
public function setMissingHeaders($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\WebSecurityScanner\V1\VulnerableHeaders\Header::class); $this->missing_headers = $arr; return $this; }
List of missing headers. Generated from protobuf field <code>repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2;</code> @param array<\Google\Cloud\WebSecurityScanner\V1\VulnerableHeaders\Header>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setMissingHeaders
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/VulnerableHeaders.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/VulnerableHeaders.php
Apache-2.0
public function setDimensionValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\DimensionValue::class); $this->dimension_values = $arr; return $this; }
List of requested dimension values. In a PivotReport, dimension_values are only listed for dimensions included in a pivot. Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;</code> @param array<\Google\Analytics\Data\V1alpha\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setDimensionValues
php
googleapis/google-cloud-php
AnalyticsData/src/V1alpha/Row.php
https://github.com/googleapis/google-cloud-php/blob/master/AnalyticsData/src/V1alpha/Row.php
Apache-2.0
public function setMetricValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1alpha\MetricValue::class); $this->metric_values = $arr; return $this; }
List of requested visible metric values. Generated from protobuf field <code>repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2;</code> @param array<\Google\Analytics\Data\V1alpha\MetricValue>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setMetricValues
php
googleapis/google-cloud-php
AnalyticsData/src/V1alpha/Row.php
https://github.com/googleapis/google-cloud-php/blob/master/AnalyticsData/src/V1alpha/Row.php
Apache-2.0
public function setDestination($var) { GPBUtil::checkString($var, True); $this->destination = $var; return $this; }
Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID) Generated from protobuf field <code>string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code> @param string $var @return $this
setDestination
php
googleapis/google-cloud-php
Eventarc/src/V1/GoogleApiSource.php
https://github.com/googleapis/google-cloud-php/blob/master/Eventarc/src/V1/GoogleApiSource.php
Apache-2.0
public function getCryptoKeyName() { return $this->crypto_key_name; }
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/&#42;&#47;locations/&#42;&#47;keyRings/&#42;&#47;cryptoKeys/&#42;`. Generated from protobuf field <code>string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code> @return string
getCryptoKeyName
php
googleapis/google-cloud-php
Eventarc/src/V1/GoogleApiSource.php
https://github.com/googleapis/google-cloud-php/blob/master/Eventarc/src/V1/GoogleApiSource.php
Apache-2.0
public function setCryptoKeyName($var) { GPBUtil::checkString($var, True); $this->crypto_key_name = $var; return $this; }
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/&#42;&#47;locations/&#42;&#47;keyRings/&#42;&#47;cryptoKeys/&#42;`. Generated from protobuf field <code>string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {</code> @param string $var @return $this
setCryptoKeyName
php
googleapis/google-cloud-php
Eventarc/src/V1/GoogleApiSource.php
https://github.com/googleapis/google-cloud-php/blob/master/Eventarc/src/V1/GoogleApiSource.php
Apache-2.0
public function setLoggingConfig($var) { GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\LoggingConfig::class); $this->logging_config = $var; return $this; }
Optional. Config to control Platform logging for the GoogleApiSource. Generated from protobuf field <code>.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];</code> @param \Google\Cloud\Eventarc\V1\LoggingConfig $var @return $this
setLoggingConfig
php
googleapis/google-cloud-php
Eventarc/src/V1/GoogleApiSource.php
https://github.com/googleapis/google-cloud-php/blob/master/Eventarc/src/V1/GoogleApiSource.php
Apache-2.0
public function getSslPolicy() { return isset($this->ssl_policy) ? $this->ssl_policy : ''; }
URL of the SSL policy resource. Set this to empty string to clear any existing SSL policy associated with the target proxy resource. Generated from protobuf field <code>optional string ssl_policy = 295190213;</code> @return string
getSslPolicy
php
googleapis/google-cloud-php
Compute/src/V1/SslPolicyReference.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/SslPolicyReference.php
Apache-2.0
public function getInUseResources() { return $this->in_use_resources; }
[Output only] List of resources currently in use. Generated from protobuf field <code>repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;</code> @return \Google\Protobuf\Internal\RepeatedField
getInUseResources
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function setInUseResources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\AllocationAggregateReservationReservedResourceInfo::class); $this->in_use_resources = $arr; return $this; }
[Output only] List of resources currently in use. Generated from protobuf field <code>repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;</code> @param array<\Google\Cloud\Compute\V1\AllocationAggregateReservationReservedResourceInfo>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setInUseResources
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function getReservedResources() { return $this->reserved_resources; }
List of reserved resources (CPUs, memory, accelerators). Generated from protobuf field <code>repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;</code> @return \Google\Protobuf\Internal\RepeatedField
getReservedResources
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function setReservedResources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\AllocationAggregateReservationReservedResourceInfo::class); $this->reserved_resources = $arr; return $this; }
List of reserved resources (CPUs, memory, accelerators). Generated from protobuf field <code>repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;</code> @param array<\Google\Cloud\Compute\V1\AllocationAggregateReservationReservedResourceInfo>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setReservedResources
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function getVmFamily() { return isset($this->vm_family) ? $this->vm_family : ''; }
The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values. Generated from protobuf field <code>optional string vm_family = 125017580;</code> @return string
getVmFamily
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function setVmFamily($var) { GPBUtil::checkString($var, True); $this->vm_family = $var; return $this; }
The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values. Generated from protobuf field <code>optional string vm_family = 125017580;</code> @param string $var @return $this
setVmFamily
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function getWorkloadType() { return isset($this->workload_type) ? $this->workload_type : ''; }
The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values. Generated from protobuf field <code>optional string workload_type = 273432322;</code> @return string
getWorkloadType
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function setWorkloadType($var) { GPBUtil::checkString($var, True); $this->workload_type = $var; return $this; }
The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values. Generated from protobuf field <code>optional string workload_type = 273432322;</code> @param string $var @return $this
setWorkloadType
php
googleapis/google-cloud-php
Compute/src/V1/AllocationAggregateReservation.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/AllocationAggregateReservation.php
Apache-2.0
public function getRegex() { return $this->readOneof(1); }
Validation based on regular expressions. Generated from protobuf field <code>.google.cloud.dataproc.v1.RegexValidation regex = 1;</code> @return \Google\Cloud\Dataproc\V1\RegexValidation|null
getRegex
php
googleapis/google-cloud-php
Dataproc/src/V1/ParameterValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/ParameterValidation.php
Apache-2.0
public function setRegex($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\RegexValidation::class); $this->writeOneof(1, $var); return $this; }
Validation based on regular expressions. Generated from protobuf field <code>.google.cloud.dataproc.v1.RegexValidation regex = 1;</code> @param \Google\Cloud\Dataproc\V1\RegexValidation $var @return $this
setRegex
php
googleapis/google-cloud-php
Dataproc/src/V1/ParameterValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/ParameterValidation.php
Apache-2.0
public function getValues() { return $this->readOneof(2); }
Validation based on a list of allowed values. Generated from protobuf field <code>.google.cloud.dataproc.v1.ValueValidation values = 2;</code> @return \Google\Cloud\Dataproc\V1\ValueValidation|null
getValues
php
googleapis/google-cloud-php
Dataproc/src/V1/ParameterValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/ParameterValidation.php
Apache-2.0
public function setValues($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\ValueValidation::class); $this->writeOneof(2, $var); return $this; }
Validation based on a list of allowed values. Generated from protobuf field <code>.google.cloud.dataproc.v1.ValueValidation values = 2;</code> @param \Google\Cloud\Dataproc\V1\ValueValidation $var @return $this
setValues
php
googleapis/google-cloud-php
Dataproc/src/V1/ParameterValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/ParameterValidation.php
Apache-2.0
public function setCluster($var) { GPBUtil::checkMessage($var, \Google\Cloud\AlloyDb\V1\Cluster::class); $this->cluster = $var; return $this; }
Required. The resource being updated Generated from protobuf field <code>.google.cloud.alloydb.v1.Cluster cluster = 2 [(.google.api.field_behavior) = REQUIRED];</code> @param \Google\Cloud\AlloyDb\V1\Cluster $var @return $this
setCluster
php
googleapis/google-cloud-php
AlloyDb/src/V1/UpdateClusterRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/AlloyDb/src/V1/UpdateClusterRequest.php
Apache-2.0
public function setMode($var) { GPBUtil::checkEnum($var, \Google\Cloud\Memorystore\V1\PersistenceConfig\PersistenceMode::class); $this->mode = $var; return $this; }
Optional. Current persistence mode. Generated from protobuf field <code>.google.cloud.memorystore.v1.PersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];</code> @param int $var @return $this
setMode
php
googleapis/google-cloud-php
Memorystore/src/V1/PersistenceConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Memorystore/src/V1/PersistenceConfig.php
Apache-2.0
public function getRdbConfig() { return $this->rdb_config; }
Optional. RDB configuration. This field will be ignored if mode is not RDB. Generated from protobuf field <code>.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];</code> @return \Google\Cloud\Memorystore\V1\PersistenceConfig\RDBConfig|null
getRdbConfig
php
googleapis/google-cloud-php
Memorystore/src/V1/PersistenceConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Memorystore/src/V1/PersistenceConfig.php
Apache-2.0
public function setRdbConfig($var) { GPBUtil::checkMessage($var, \Google\Cloud\Memorystore\V1\PersistenceConfig\RDBConfig::class); $this->rdb_config = $var; return $this; }
Optional. RDB configuration. This field will be ignored if mode is not RDB. Generated from protobuf field <code>.google.cloud.memorystore.v1.PersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL];</code> @param \Google\Cloud\Memorystore\V1\PersistenceConfig\RDBConfig $var @return $this
setRdbConfig
php
googleapis/google-cloud-php
Memorystore/src/V1/PersistenceConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Memorystore/src/V1/PersistenceConfig.php
Apache-2.0
public function getAofConfig() { return $this->aof_config; }
Optional. AOF configuration. This field will be ignored if mode is not AOF. Generated from protobuf field <code>.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];</code> @return \Google\Cloud\Memorystore\V1\PersistenceConfig\AOFConfig|null
getAofConfig
php
googleapis/google-cloud-php
Memorystore/src/V1/PersistenceConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Memorystore/src/V1/PersistenceConfig.php
Apache-2.0
public function setAofConfig($var) { GPBUtil::checkMessage($var, \Google\Cloud\Memorystore\V1\PersistenceConfig\AOFConfig::class); $this->aof_config = $var; return $this; }
Optional. AOF configuration. This field will be ignored if mode is not AOF. Generated from protobuf field <code>.google.cloud.memorystore.v1.PersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL];</code> @param \Google\Cloud\Memorystore\V1\PersistenceConfig\AOFConfig $var @return $this
setAofConfig
php
googleapis/google-cloud-php
Memorystore/src/V1/PersistenceConfig.php
https://github.com/googleapis/google-cloud-php/blob/master/Memorystore/src/V1/PersistenceConfig.php
Apache-2.0
public function getSecurityPolicy() { return $this->security_policy; }
Name of the security policy to update. Generated from protobuf field <code>string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];</code> @return string
getSecurityPolicy
php
googleapis/google-cloud-php
Compute/src/V1/RemoveRuleRegionSecurityPolicyRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/RemoveRuleRegionSecurityPolicyRequest.php
Apache-2.0
public function setConcurrencyMode($var) { GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\ConcurrencyMode::class); $this->concurrency_mode = $var; return $this; }
Ths concurrency mode for this database. Generated from protobuf field <code>.google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1;</code> @param int $var @return $this
setConcurrencyMode
php
googleapis/google-cloud-php
DatastoreAdmin/src/V1/MigrationProgressEvent/RedirectWritesStepDetails.php
https://github.com/googleapis/google-cloud-php/blob/master/DatastoreAdmin/src/V1/MigrationProgressEvent/RedirectWritesStepDetails.php
Apache-2.0
public function setNetworkPeering($var) { GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\NetworkPeering::class); $this->network_peering = $var; return $this; }
Generated from protobuf field <code>optional .google.cloud.compute.v1.NetworkPeering network_peering = 328926767;</code> @param \Google\Cloud\Compute\V1\NetworkPeering $var @return $this
setNetworkPeering
php
googleapis/google-cloud-php
Compute/src/V1/NetworksUpdatePeeringRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/NetworksUpdatePeeringRequest.php
Apache-2.0
public function setSchema($var) { GPBUtil::checkString($var, True); $this->schema = $var; return $this; }
Optional. The action's schema (BigQuery dataset ID), within `database`. Generated from protobuf field <code>string schema = 2 [(.google.api.field_behavior) = OPTIONAL];</code> @param string $var @return $this
setSchema
php
googleapis/google-cloud-php
Dataform/src/V1beta1/Target.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataform/src/V1beta1/Target.php
Apache-2.0
public function getGoogleAccount() { @trigger_error('google_account is deprecated.', E_USER_DEPRECATED); return $this->readOneof(1); }
Authentication using a Google account. Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true];</code> @return \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\GoogleAccount|null @deprecated
getGoogleAccount
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function setGoogleAccount($var) { @trigger_error('google_account is deprecated.', E_USER_DEPRECATED); GPBUtil::checkMessage($var, \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\GoogleAccount::class); $this->writeOneof(1, $var); return $this; }
Authentication using a Google account. Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true];</code> @param \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\GoogleAccount $var @return $this @deprecated
setGoogleAccount
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function getCustomAccount() { return $this->readOneof(2); }
Authentication using a custom account. Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2;</code> @return \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\CustomAccount|null
getCustomAccount
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function setCustomAccount($var) { GPBUtil::checkMessage($var, \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\CustomAccount::class); $this->writeOneof(2, $var); return $this; }
Authentication using a custom account. Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2;</code> @param \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\CustomAccount $var @return $this
setCustomAccount
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function getIapCredential() { return $this->readOneof(4); }
Authentication using Identity-Aware-Proxy (IAP). Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4;</code> @return \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\IapCredential|null
getIapCredential
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function setIapCredential($var) { GPBUtil::checkMessage($var, \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\IapCredential::class); $this->writeOneof(4, $var); return $this; }
Authentication using Identity-Aware-Proxy (IAP). Generated from protobuf field <code>.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4;</code> @param \Google\Cloud\WebSecurityScanner\V1\ScanConfig\Authentication\IapCredential $var @return $this
setIapCredential
php
googleapis/google-cloud-php
WebSecurityScanner/src/V1/ScanConfig/Authentication.php
https://github.com/googleapis/google-cloud-php/blob/master/WebSecurityScanner/src/V1/ScanConfig/Authentication.php
Apache-2.0
public function getInstancePartitionDeadline() { return $this->instance_partition_deadline; }
Optional. Deadline used while retrieving metadata for instance partitions. Instance partitions whose metadata cannot be retrieved within this deadline will be added to [unreachable][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable] in [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse]. Generated from protobuf field <code>.google.protobuf.Timestamp instance_partition_deadline = 4 [(.google.api.field_behavior) = OPTIONAL];</code> @return \Google\Protobuf\Timestamp|null
getInstancePartitionDeadline
php
googleapis/google-cloud-php
Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
Apache-2.0
public function setInstancePartitionDeadline($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->instance_partition_deadline = $var; return $this; }
Optional. Deadline used while retrieving metadata for instance partitions. Instance partitions whose metadata cannot be retrieved within this deadline will be added to [unreachable][google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable] in [ListInstancePartitionsResponse][google.spanner.admin.instance.v1.ListInstancePartitionsResponse]. Generated from protobuf field <code>.google.protobuf.Timestamp instance_partition_deadline = 4 [(.google.api.field_behavior) = OPTIONAL];</code> @param \Google\Protobuf\Timestamp $var @return $this
setInstancePartitionDeadline
php
googleapis/google-cloud-php
Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
https://github.com/googleapis/google-cloud-php/blob/master/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
Apache-2.0
public function setContent($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Content::class); $this->content = $arr; return $this; }
Content under the given parent lake. Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.Content content = 1;</code> @param array<\Google\Cloud\Dataplex\V1\Content>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setContent
php
googleapis/google-cloud-php
Dataplex/src/V1/ListContentResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataplex/src/V1/ListContentResponse.php
Apache-2.0
public function setAuthor($var) { GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); $this->author = $var; return $this; }
Required. The commit's author. Generated from protobuf field <code>.google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED];</code> @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var @return $this
setAuthor
php
googleapis/google-cloud-php
Dataform/src/V1beta1/CommitMetadata.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataform/src/V1beta1/CommitMetadata.php
Apache-2.0
public function getCommitMessage() { return $this->commit_message; }
Optional. The commit's message. Generated from protobuf field <code>string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL];</code> @return string
getCommitMessage
php
googleapis/google-cloud-php
Dataform/src/V1beta1/CommitMetadata.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataform/src/V1beta1/CommitMetadata.php
Apache-2.0
public function setCommitMessage($var) { GPBUtil::checkString($var, True); $this->commit_message = $var; return $this; }
Optional. The commit's message. Generated from protobuf field <code>string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL];</code> @param string $var @return $this
setCommitMessage
php
googleapis/google-cloud-php
Dataform/src/V1beta1/CommitMetadata.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataform/src/V1beta1/CommitMetadata.php
Apache-2.0
public function getRegexes() { return $this->regexes; }
Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). Generated from protobuf field <code>repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];</code> @return \Google\Protobuf\Internal\RepeatedField
getRegexes
php
googleapis/google-cloud-php
Dataproc/src/V1/RegexValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/RegexValidation.php
Apache-2.0
public function setRegexes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->regexes = $arr; return $this; }
Required. RE2 regular expressions used to validate the parameter's value. The value must match the regex in its entirety (substring matches are not sufficient). Generated from protobuf field <code>repeated string regexes = 1 [(.google.api.field_behavior) = REQUIRED];</code> @param array<string>|\Google\Protobuf\Internal\RepeatedField $var @return $this
setRegexes
php
googleapis/google-cloud-php
Dataproc/src/V1/RegexValidation.php
https://github.com/googleapis/google-cloud-php/blob/master/Dataproc/src/V1/RegexValidation.php
Apache-2.0
public function getReservedSpaceGib() { return $this->reserved_space_gib; }
The space on this storage volume reserved for snapshots, shown in GiB. Generated from protobuf field <code>int64 reserved_space_gib = 1;</code> @return int|string
getReservedSpaceGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpaceGib($var) { GPBUtil::checkInt64($var); $this->reserved_space_gib = $var; return $this; }
The space on this storage volume reserved for snapshots, shown in GiB. Generated from protobuf field <code>int64 reserved_space_gib = 1;</code> @param int|string $var @return $this
setReservedSpaceGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpaceUsedPercent() { return $this->reserved_space_used_percent; }
The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume. Generated from protobuf field <code>int32 reserved_space_used_percent = 2;</code> @return int
getReservedSpaceUsedPercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpaceUsedPercent($var) { GPBUtil::checkInt32($var); $this->reserved_space_used_percent = $var; return $this; }
The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume. Generated from protobuf field <code>int32 reserved_space_used_percent = 2;</code> @param int $var @return $this
setReservedSpaceUsedPercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpaceRemainingGib() { return $this->reserved_space_remaining_gib; }
The amount, in GiB, of available space in this storage volume's reserved snapshot space. Generated from protobuf field <code>int64 reserved_space_remaining_gib = 3;</code> @return int|string
getReservedSpaceRemainingGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpaceRemainingGib($var) { GPBUtil::checkInt64($var); $this->reserved_space_remaining_gib = $var; return $this; }
The amount, in GiB, of available space in this storage volume's reserved snapshot space. Generated from protobuf field <code>int64 reserved_space_remaining_gib = 3;</code> @param int|string $var @return $this
setReservedSpaceRemainingGib
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function getReservedSpacePercent() { return $this->reserved_space_percent; }
Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true. Generated from protobuf field <code>int32 reserved_space_percent = 4;</code> @return int
getReservedSpacePercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setReservedSpacePercent($var) { GPBUtil::checkInt32($var); $this->reserved_space_percent = $var; return $this; }
Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true. Generated from protobuf field <code>int32 reserved_space_percent = 4;</code> @param int $var @return $this
setReservedSpacePercent
php
googleapis/google-cloud-php
BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
https://github.com/googleapis/google-cloud-php/blob/master/BareMetalSolution/src/V2/Volume/SnapshotReservationDetail.php
Apache-2.0
public function setResource($var) { GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\RoutePolicy::class); $this->resource = $var; return $this; }
Generated from protobuf field <code>optional .google.cloud.compute.v1.RoutePolicy resource = 195806222;</code> @param \Google\Cloud\Compute\V1\RoutePolicy $var @return $this
setResource
php
googleapis/google-cloud-php
Compute/src/V1/RoutersGetRoutePolicyResponse.php
https://github.com/googleapis/google-cloud-php/blob/master/Compute/src/V1/RoutersGetRoutePolicyResponse.php
Apache-2.0
public function getChannel() { return isset($this->channel) ? $this->channel : 0; }
Channel of the product. Can be `ONLINE` or `LOCAL`. Generated from protobuf field <code>optional .google.shopping.type.Channel.ChannelEnum channel = 28;</code> @return int
getChannel
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getOfferId() { return isset($this->offer_id) ? $this->offer_id : ''; }
Merchant-provided id of the product. Generated from protobuf field <code>optional string offer_id = 4;</code> @return string
getOfferId
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getBrand() { return isset($this->brand) ? $this->brand : ''; }
Brand of the product. Generated from protobuf field <code>optional string brand = 6;</code> @return string
getBrand
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setBrand($var) { GPBUtil::checkString($var, True); $this->brand = $var; return $this; }
Brand of the product. Generated from protobuf field <code>optional string brand = 6;</code> @param string $var @return $this
setBrand
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL1() { return isset($this->category_l1) ? $this->category_l1 : ''; }
Product category (1st level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l1 = 7;</code> @return string
getCategoryL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL1($var) { GPBUtil::checkString($var, True); $this->category_l1 = $var; return $this; }
Product category (1st level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l1 = 7;</code> @param string $var @return $this
setCategoryL1
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL2() { return isset($this->category_l2) ? $this->category_l2 : ''; }
Product category (2nd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l2 = 8;</code> @return string
getCategoryL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL2($var) { GPBUtil::checkString($var, True); $this->category_l2 = $var; return $this; }
Product category (2nd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l2 = 8;</code> @param string $var @return $this
setCategoryL2
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL3() { return isset($this->category_l3) ? $this->category_l3 : ''; }
Product category (3rd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l3 = 9;</code> @return string
getCategoryL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL3($var) { GPBUtil::checkString($var, True); $this->category_l3 = $var; return $this; }
Product category (3rd level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l3 = 9;</code> @param string $var @return $this
setCategoryL3
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL4() { return isset($this->category_l4) ? $this->category_l4 : ''; }
Product category (4th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l4 = 10;</code> @return string
getCategoryL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL4($var) { GPBUtil::checkString($var, True); $this->category_l4 = $var; return $this; }
Product category (4th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l4 = 10;</code> @param string $var @return $this
setCategoryL4
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCategoryL5() { return isset($this->category_l5) ? $this->category_l5 : ''; }
Product category (5th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l5 = 11;</code> @return string
getCategoryL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setCategoryL5($var) { GPBUtil::checkString($var, True); $this->category_l5 = $var; return $this; }
Product category (5th level) in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Generated from protobuf field <code>optional string category_l5 = 11;</code> @param string $var @return $this
setCategoryL5
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function setPrice($var) { GPBUtil::checkMessage($var, \Google\Shopping\Type\Price::class); $this->price = $var; return $this; }
Product price. Absent if the information about the price of the product is not available. Generated from protobuf field <code>.google.shopping.type.Price price = 17;</code> @param \Google\Shopping\Type\Price $var @return $this
setPrice
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0
public function getCondition() { return isset($this->condition) ? $this->condition : ''; }
[Condition](https://support.google.com/merchants/answer/6324469) of the product. Generated from protobuf field <code>optional string condition = 18;</code> @return string
getCondition
php
googleapis/google-cloud-php
ShoppingMerchantReports/src/V1beta/ProductView.php
https://github.com/googleapis/google-cloud-php/blob/master/ShoppingMerchantReports/src/V1beta/ProductView.php
Apache-2.0