idx
int64
0
60.3k
question
stringlengths
101
6.21k
target
stringlengths
7
803
2,600
public function setModifyDeadlineAckIds ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> modify_deadline_ack_ids = $ arr ; return $ this ; }
List of acknowledgement IDs whose deadline will be modified based on the corresponding element in modify_deadline_seconds . This field can be used to indicate that more time is needed to process a message by the subscriber or to make the message available for redelivery if the processing was interrupted .
2,601
public function setCreateModelDetails ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ AutoMl \ V1beta1 \ CreateModelOperationMetadata :: class ) ; $ this -> writeOneof ( 10 , $ var ) ; return $ this ; }
Details of CreateModel operation .
2,602
public function setPartialFailures ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Rpc \ Status :: class ) ; $ this -> partial_failures = $ arr ; return $ this ; }
Output only . Partial failures encountered . E . g . single files that couldn t be read . This field should never exceed 20 entries . Status details field will contain standard GCP error details .
2,603
public function getRetryDelay ( ) { $ metadata = array_filter ( $ this -> metadata , function ( $ metadataItem ) { return array_key_exists ( 'retryDelay' , $ metadataItem ) ; } ) ; if ( count ( $ metadata ) === 0 ) { return [ 'seconds' => 0 , 'nanos' => 0 ] ; } return $ metadata [ 0 ] [ 'retryDelay' ] + [ 'seconds' => 0 , 'nanos' => 0 ] ; }
Return the delay in seconds and nanos before retrying the failed request .
2,604
public function setSymbols ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Vision \ V1 \ Symbol :: class ) ; $ this -> symbols = $ arr ; return $ this ; }
List of symbols in the word . The order of the symbols follows the natural reading order .
2,605
public function setMinValue ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ Value :: class ) ; $ this -> min_value = $ var ; return $ this ; }
Minimum value appearing in the column .
2,606
public function setMaxValue ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ Value :: class ) ; $ this -> max_value = $ var ; return $ this ; }
Maximum value appearing in the column .
2,607
public function setQuantileValues ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dlp \ V2 \ Value :: class ) ; $ this -> quantile_values = $ arr ; return $ this ; }
List of 99 values that partition the set of field values into 100 equal sized buckets .
2,608
public function setSensitiveAttribute ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ FieldId :: class ) ; $ this -> sensitive_attribute = $ var ; return $ this ; }
Sensitive field for computing the l - value .
2,609
public function setHotwordRegex ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ CustomInfoType_Regex :: class ) ; $ this -> hotword_regex = $ var ; return $ this ; }
Regular expression pattern defining what qualifies as a hotword .
2,610
public function setLikelihoodAdjustment ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dlp \ V2 \ CustomInfoType_DetectionRule_LikelihoodAdjustment :: class ) ; $ this -> likelihood_adjustment = $ var ; return $ this ; }
Likelihood adjustment to apply to all matching findings .
2,611
public function setSize ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Talent \ V4beta1 \ CompanySize :: class ) ; $ this -> size = $ var ; return $ this ; }
Optional . The employer s company size .
2,612
public function queryResults ( array $ options = [ ] ) { $ timeoutMs = $ this -> pluck ( 'initialTimeoutMs' , $ options , false ) ? : 0 ; $ queryResultsOptions = $ options ; $ options [ 'timeoutMs' ] = $ timeoutMs ; return new QueryResults ( $ this -> connection , $ this -> identity [ 'jobId' ] , $ this -> identity [ 'projectId' ] , $ this -> connection -> getQueryResults ( $ options + $ this -> identity ) , $ this -> mapper , $ this , $ queryResultsOptions ) ; }
Retrieves the results of a query job .
2,613
public function reload ( array $ options = [ ] ) { return $ this -> info = $ this -> connection -> getJob ( $ options + $ this -> identity ) ; }
Triggers a network request to reload the job s details .
2,614
public function setPartitionOptions ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Spanner \ V1 \ PartitionOptions :: class ) ; $ this -> partition_options = $ var ; return $ this ; }
Additional options that affect how many partitions are created .
2,615
public function setChain ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ RowFilter_Chain :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
Applies several RowFilters to the data in sequence progressively narrowing the results .
2,616
public function setInterleave ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ RowFilter_Interleave :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
Applies several RowFilters to the data in parallel and combines the results .
2,617
public function setCondition ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ RowFilter_Condition :: class ) ; $ this -> writeOneof ( 3 , $ var ) ; return $ this ; }
Applies one of two possible RowFilters to the data based on the output of a predicate RowFilter .
2,618
public function setColumnRangeFilter ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ ColumnRange :: class ) ; $ this -> writeOneof ( 7 , $ var ) ; return $ this ; }
Matches only cells from columns within the given range .
2,619
public function setTimestampRangeFilter ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ TimestampRange :: class ) ; $ this -> writeOneof ( 8 , $ var ) ; return $ this ; }
Matches only cells with timestamps within the given range .
2,620
public function setValueRangeFilter ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ ValueRange :: class ) ; $ this -> writeOneof ( 15 , $ var ) ; return $ this ; }
Matches only cells with values that fall within the given range .
2,621
public function formatEncryptionHeaders ( array $ options ) { $ encryptionHeaders = [ ] ; $ useCopySourceHeaders = isset ( $ options [ 'useCopySourceHeaders' ] ) ? $ options [ 'useCopySourceHeaders' ] : false ; $ key = isset ( $ options [ 'encryptionKey' ] ) ? $ options [ 'encryptionKey' ] : null ; $ keySHA256 = isset ( $ options [ 'encryptionKeySHA256' ] ) ? $ options [ 'encryptionKeySHA256' ] : null ; $ destinationKey = isset ( $ options [ 'destinationEncryptionKey' ] ) ? $ options [ 'destinationEncryptionKey' ] : null ; $ destinationKeySHA256 = isset ( $ options [ 'destinationEncryptionKeySHA256' ] ) ? $ options [ 'destinationEncryptionKeySHA256' ] : null ; unset ( $ options [ 'useCopySourceHeaders' ] ) ; unset ( $ options [ 'encryptionKey' ] ) ; unset ( $ options [ 'encryptionKeySHA256' ] ) ; unset ( $ options [ 'destinationEncryptionKey' ] ) ; unset ( $ options [ 'destinationEncryptionKeySHA256' ] ) ; $ encryptionHeaders = $ this -> buildHeaders ( $ key , $ keySHA256 , $ useCopySourceHeaders ) + $ this -> buildHeaders ( $ destinationKey , $ destinationKeySHA256 , false ) ; if ( ! empty ( $ encryptionHeaders ) ) { if ( isset ( $ options [ 'restOptions' ] [ 'headers' ] ) ) { $ options [ 'restOptions' ] [ 'headers' ] += $ encryptionHeaders ; } else { $ options [ 'restOptions' ] [ 'headers' ] = $ encryptionHeaders ; } } return $ options ; }
Formats options for customer - supplied encryption headers .
2,622
private function buildHeaders ( $ key , $ keySHA256 , $ useCopySourceHeaders ) { if ( $ key ) { $ headerNames = $ useCopySourceHeaders ? $ this -> copySourceEncryptionHeaderNames : $ this -> encryptionHeaderNames ; if ( ! $ keySHA256 ) { $ decodedKey = base64_decode ( $ key ) ; $ keySHA256 = base64_encode ( hash ( 'SHA256' , $ decodedKey , true ) ) ; } return [ $ headerNames [ 'algorithm' ] => 'AES256' , $ headerNames [ 'key' ] => $ key , $ headerNames [ 'keySHA256' ] => $ keySHA256 ] ; } return [ ] ; }
Builds out customer - supplied encryption headers .
2,623
protected function signString ( $ privateKey , $ data , $ forceOpenssl = false ) { $ signature = '' ; if ( class_exists ( RSA :: class ) && ! $ forceOpenssl ) { $ rsa = new RSA ; $ rsa -> loadKey ( $ privateKey ) ; $ rsa -> setSignatureMode ( RSA :: SIGNATURE_PKCS1 ) ; $ rsa -> setHash ( 'sha256' ) ; $ signature = $ rsa -> sign ( $ data ) ; } elseif ( extension_loaded ( 'openssl' ) ) { openssl_sign ( $ data , $ signature , $ privateKey , 'sha256WithRSAEncryption' ) ; } else { throw new \ RuntimeException ( 'OpenSSL is not installed.' ) ; } return $ signature ; }
Sign a string using a given private key .
2,624
public function setMqttEnabledState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Iot \ V1 \ MqttState :: class ) ; $ this -> mqtt_enabled_state = $ var ; return $ this ; }
If enabled allows connections using the MQTT protocol . Otherwise MQTT connections to this registry will fail .
2,625
public function setServiceContext ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ ServiceContext :: class ) ; $ this -> service_context = $ var ; return $ this ; }
The ServiceContext for which this error was reported .
2,626
public function setContext ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ ErrorContext :: class ) ; $ this -> context = $ var ; return $ this ; }
Data about the context in which the error occurred .
2,627
public function setText ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Language \ V1 \ TextSpan :: class ) ; $ this -> text = $ var ; return $ this ; }
The token text .
2,628
public function setPartOfSpeech ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Language \ V1 \ PartOfSpeech :: class ) ; $ this -> part_of_speech = $ var ; return $ this ; }
Parts of speech tag for this token .
2,629
public function setDependencyEdge ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Language \ V1 \ DependencyEdge :: class ) ; $ this -> dependency_edge = $ var ; return $ this ; }
Dependency tree parse for this token .
2,630
private function parseTimeString ( $ timestamp ) { $ nanoRegex = '/\d{4}-\d{1,2}-\d{1,2}T\d{1,2}\:\d{1,2}\:\d{1,2}(?:\.(\d{1,}))?/' ; preg_match ( $ nanoRegex , $ timestamp , $ matches ) ; $ subSeconds = isset ( $ matches [ 1 ] ) ? $ matches [ 1 ] : '0' ; if ( strlen ( $ subSeconds ) > 6 ) { $ timestamp = str_replace ( '.' . $ subSeconds , '.' . substr ( $ subSeconds , 0 , 6 ) , $ timestamp ) ; } $ dt = new \ DateTimeImmutable ( $ timestamp ) ; if ( ! $ dt ) { throw new \ InvalidArgumentException ( sprintf ( 'Could not create a DateTime instance from given timestamp %s.' , $ timestamp ) ) ; } $ nanos = ( int ) str_pad ( $ subSeconds , 9 , '0' , STR_PAD_RIGHT ) ; return [ $ dt , $ nanos ] ; }
Parse a Timestamp string and return a DateTimeImmutable instance and nanoseconds as an integer .
2,631
private function formatTimeAsString ( \ DateTimeInterface $ dateTime , $ ns ) { $ dateTime = $ dateTime -> setTimeZone ( new \ DateTimeZone ( 'UTC' ) ) ; if ( $ ns === null ) { return $ dateTime -> format ( Timestamp :: FORMAT ) ; } else { $ ns = ( string ) $ ns ; $ ns = str_pad ( $ ns , 9 , '0' , STR_PAD_LEFT ) ; if ( substr ( $ ns , 6 , 3 ) === '000' ) { $ ns = substr ( $ ns , 0 , 6 ) ; } return sprintf ( $ dateTime -> format ( Timestamp :: FORMAT_INTERPOLATE ) , $ ns ) ; } }
Create a Timestamp string in an API - compatible format .
2,632
public function setTenant ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Talent \ V4beta1 \ Tenant :: class ) ; $ this -> tenant = $ var ; return $ this ; }
Required . The tenant resource to replace the current resource in the system .
2,633
public static function fromJson ( array $ data ) { if ( ! $ data ) { return null ; } $ data += [ 'isError' => false , 'refersTo' => null , 'description' => null ] ; return new static ( $ data [ 'isError' ] , $ data [ 'refersTo' ] , FormatMessage :: fromJson ( $ data [ 'description' ] ) ) ; }
Load a StatusMessage from JSON form
2,634
public function buckets ( array $ options = [ ] ) { if ( ! $ this -> projectId ) { throw new GoogleException ( 'No project ID was provided, ' . 'and we were unable to detect a default project ID.' ) ; } $ resultLimit = $ this -> pluck ( 'resultLimit' , $ options , false ) ; $ bucketUserProject = $ this -> pluck ( 'bucketUserProject' , $ options , false ) ; $ bucketUserProject = ! is_null ( $ bucketUserProject ) ? $ bucketUserProject : true ; $ userProject = ( isset ( $ options [ 'userProject' ] ) && $ bucketUserProject ) ? $ options [ 'userProject' ] : null ; return new ItemIterator ( new PageIterator ( function ( array $ bucket ) use ( $ userProject ) { return new Bucket ( $ this -> connection , $ bucket [ 'name' ] , $ bucket + [ 'requesterProjectId' => $ userProject ] ) ; } , [ $ this -> connection , 'listBuckets' ] , $ options + [ 'project' => $ this -> projectId ] , [ 'resultLimit' => $ resultLimit ] ) ) ; }
Fetches all buckets in the project .
2,635
public function signedUrlUploader ( $ uri , $ data , array $ options = [ ] ) { return new SignedUrlUploader ( $ this -> connection -> requestWrapper ( ) , $ data , $ uri , $ options ) ; }
Create an uploader to handle a Signed URL .
2,636
public function setTopics ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ PubSub \ V1 \ Topic :: class ) ; $ this -> topics = $ arr ; return $ this ; }
The resulting topics .
2,637
public function setNodes ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dataproc \ V1beta2 \ WorkflowNode :: class ) ; $ this -> nodes = $ arr ; return $ this ; }
Output only . The workflow nodes .
2,638
public function setRegex ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ RegexValidation :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
Validation based on regular expressions .
2,639
public function setValues ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ ValueValidation :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
Validation based on a list of allowed values .
2,640
private function setLroProperties ( LongRunningConnectionInterface $ lroConnection , array $ lroCallables , $ resource = null ) { $ this -> lroConnection = $ lroConnection ; $ this -> lroCallables = $ lroCallables ; $ this -> lroResource = $ resource ; }
Populate required LRO properties .
2,641
public function resumeOperation ( $ operationName , array $ info = [ ] ) { return new LongRunningOperation ( $ this -> lroConnection , $ operationName , $ this -> lroCallables , $ info ) ; }
Resume a Long Running Operation
2,642
public function longRunningOperations ( array $ options = [ ] ) { if ( is_null ( $ this -> lroResource ) ) { throw new \ BadMethodCallException ( 'This service does list support listing operations.' ) ; } $ resultLimit = $ this -> pluck ( 'resultLimit' , $ options , false ) ? : 0 ; $ options [ 'name' ] = $ this -> lroResource . '/operations' ; return new ItemIterator ( new PageIterator ( function ( array $ operation ) { return $ this -> resumeOperation ( $ operation [ 'name' ] , $ operation ) ; } , [ $ this -> lroConnection , 'operations' ] , $ options , [ 'itemsKey' => 'operations' , 'resultLimit' => $ resultLimit ] ) ) ; }
List long running operations .
2,643
public function setDevices ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Iot \ V1 \ Device :: class ) ; $ this -> devices = $ arr ; return $ this ; }
The devices that match the request .
2,644
public function setTrackingIssues ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ ErrorReporting \ V1beta1 \ TrackingIssue :: class ) ; $ this -> tracking_issues = $ arr ; return $ this ; }
Associated tracking issues .
2,645
private function filter ( $ items , $ path , $ type ) { if ( ! $ items ) { return null ; } return array_filter ( $ items , function ( $ item ) use ( $ path , $ type ) { $ itemCopy = $ item ; foreach ( $ path as $ key ) { $ itemCopy = $ itemCopy [ $ key ] ; } if ( strtolower ( $ itemCopy ) === strtolower ( $ type ) ) { return $ item ; } } ) ; }
Filters an array of items based on the provided type .
2,646
public function setTransferRuns ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ BigQuery \ DataTransfer \ V1 \ TransferRun :: class ) ; $ this -> transfer_runs = $ arr ; return $ this ; }
Output only . The stored pipeline transfer runs .
2,647
public function setCloudRepo ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ DevTools \ Source \ V1 \ CloudRepoSourceContext :: class ) ; $ this -> writeOneof ( 1 , $ var ) ; return $ this ; }
A SourceContext referring to a revision in a cloud repo .
2,648
public function setCloudWorkspace ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ DevTools \ Source \ V1 \ CloudWorkspaceSourceContext :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
A SourceContext referring to a snapshot in a cloud workspace .
2,649
public function setGerrit ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ DevTools \ Source \ V1 \ GerritSourceContext :: class ) ; $ this -> writeOneof ( 3 , $ var ) ; return $ this ; }
A SourceContext referring to a Gerrit project .
2,650
public function setSshPublicKey ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ OsLogin \ Common \ SshPublicKey :: class ) ; $ this -> ssh_public_key = $ var ; return $ this ; }
The SSH public key and expiration time .
2,651
public function setMapValue ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ V1beta1 \ MapValue :: class ) ; $ this -> writeOneof ( 6 , $ var ) ; return $ this ; }
A map value .
2,652
public function getJob ( $ projectId , $ region , $ jobId , array $ optionalArgs = [ ] ) { $ request = new GetJobRequest ( ) ; $ request -> setProjectId ( $ projectId ) ; $ request -> setRegion ( $ region ) ; $ request -> setJobId ( $ jobId ) ; return $ this -> startCall ( 'GetJob' , Job :: class , $ optionalArgs , $ request ) -> wait ( ) ; }
Gets the resource representation for a job in a project .
2,653
public function updateJob ( $ projectId , $ region , $ jobId , $ job , $ updateMask , array $ optionalArgs = [ ] ) { $ request = new UpdateJobRequest ( ) ; $ request -> setProjectId ( $ projectId ) ; $ request -> setRegion ( $ region ) ; $ request -> setJobId ( $ jobId ) ; $ request -> setJob ( $ job ) ; $ request -> setUpdateMask ( $ updateMask ) ; return $ this -> startCall ( 'UpdateJob' , Job :: class , $ optionalArgs , $ request ) -> wait ( ) ; }
Updates a job in a project .
2,654
public function ActivateJobTrigger ( \ Google \ Cloud \ Dlp \ V2 \ ActivateJobTriggerRequest $ argument , $ metadata = [ ] , $ options = [ ] ) { return $ this -> _simpleRequest ( '/google.privacy.dlp.v2.DlpService/ActivateJobTrigger' , $ argument , [ '\Google\Cloud\Dlp\V2\DlpJob' , 'decode' ] , $ metadata , $ options ) ; }
Activate a job trigger . Causes the immediate execute of a trigger instead of waiting on the trigger event to occur .
2,655
public function setEntity ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ VideoIntelligence \ V1 \ Entity :: class ) ; $ this -> entity = $ var ; return $ this ; }
Detected entity .
2,656
public function setFrames ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ VideoIntelligence \ V1 \ LabelFrame :: class ) ; $ this -> frames = $ arr ; return $ this ; }
All video frames where a label was detected .
2,657
public function setResource ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Asset \ V1beta1 \ Resource :: class ) ; $ this -> resource = $ var ; return $ this ; }
Representation of the resource .
2,658
public function setIamPolicy ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Iam \ V1 \ Policy :: class ) ; $ this -> iam_policy = $ var ; return $ this ; }
Representation of the actual Cloud IAM policy set on a cloud resource . For each resource there must be at most one Cloud IAM policy set on it .
2,659
public function resolve ( SourceLocation $ location ) { $ origPath = str_replace ( '/' , DIRECTORY_SEPARATOR , $ location -> path ( ) ) ; $ basename = basename ( $ origPath ) ; $ prefixes = $ this -> searchPrefixes ( $ origPath ) ; $ includePaths = array_filter ( $ this -> includePaths , function ( $ path ) { return file_exists ( $ path ) ; } ) ; foreach ( $ prefixes as $ prefix ) { foreach ( $ includePaths as $ path ) { $ file = implode ( DIRECTORY_SEPARATOR , [ $ path , $ prefix , $ basename ] ) ; if ( file_exists ( $ file ) ) { return new SourceLocation ( $ this -> realRelativePath ( $ file , $ path ) , $ location -> line ( ) ) ; } } } foreach ( $ includePaths as $ includePath ) { $ iterator = new MatchingFileIterator ( $ includePath , $ origPath ) ; foreach ( $ iterator as $ file => $ info ) { return new SourceLocation ( $ this -> realRelativePath ( $ file , $ includePath ) , $ location -> line ( ) ) ; } } return null ; }
Resolve the full path of an existing file in the application s source . If no matching source file is found then return null . If found the resolved location will include the full absolute path to the source file .
2,660
private function searchPrefixes ( $ path ) { $ dirname = dirname ( $ path ) ; $ directoryParts = explode ( DIRECTORY_SEPARATOR , $ dirname ) ; $ directories = [ ] ; while ( $ directoryParts ) { $ directories [ ] = implode ( DIRECTORY_SEPARATOR , $ directoryParts ) ; array_shift ( $ directoryParts ) ; } return $ directories ; }
Returns an array of relative paths for this file by recursively removing each leading directory .
2,661
public function setDatasets ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ AutoMl \ V1beta1 \ Dataset :: class ) ; $ this -> datasets = $ arr ; return $ this ; }
The datasets read .
2,662
public function setValue ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ TypedValue :: class ) ; $ this -> value = $ var ; return $ this ; }
The value of the data point .
2,663
public static function fromString ( $ path , $ splitPath = true ) { self :: validateString ( $ path ) ; $ parts = $ splitPath ? explode ( '.' , $ path ) : [ $ path ] ; return new self ( $ parts ) ; }
Create a FieldPath from a string path .
2,664
public function pathString ( ) { $ out = [ ] ; foreach ( $ this -> fieldNames as $ part ) { $ out [ ] = $ this -> escapePathPart ( $ part ) ; } $ fieldPath = implode ( '.' , $ out ) ; return $ fieldPath ; }
Get the current path as a string with special characters escaped .
2,665
public function annotate ( Image $ image , array $ options = [ ] ) { $ res = $ this -> annotateBatch ( [ $ image ] , $ options ) ; return $ res [ 0 ] ; }
Annotate a single image .
2,666
public function annotateBatch ( array $ images , array $ options = [ ] ) { $ this -> validateBatch ( $ images , Image :: class ) ; $ requests = [ ] ; foreach ( $ images as $ image ) { $ requests [ ] = $ image -> requestObject ( ) ; } $ res = $ this -> connection -> annotate ( [ 'requests' => $ requests ] + $ options ) ; $ annotations = [ ] ; if ( isset ( $ res [ 'responses' ] ) ) { foreach ( $ res [ 'responses' ] as $ response ) { $ annotations [ ] = new Annotation ( $ response ) ; } } return $ annotations ; }
Annotate a set of images .
2,667
public function setExampleCount ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: INT32 ) ; $ this -> example_count = $ arr ; return $ this ; }
Output only . Value of the specific cell in the confusion matrix . The number of values each row is equal to the size of annotatin_spec_id .
2,668
public function setIdentifyingFields ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dlp \ V2 \ FieldId :: class ) ; $ this -> identifying_fields = $ arr ; return $ this ; }
References to fields uniquely identifying rows within the table . Nested fields in the format like person . birthdate . year are allowed .
2,669
public function setExcludedFields ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Dlp \ V2 \ FieldId :: class ) ; $ this -> excluded_fields = $ arr ; return $ this ; }
References to fields excluded from scanning . This allows you to skip inspection of entire columns which you know have no findings .
2,670
public function lookupBatch ( array $ keys , array $ options = [ ] ) { return $ this -> operation -> lookup ( $ keys , $ options + [ 'transaction' => $ this -> transactionId ] ) ; }
Get multiple entities inside a transaction
2,671
public function runQuery ( QueryInterface $ query , array $ options = [ ] ) { return $ this -> operation -> runQuery ( $ query , $ options + [ 'transaction' => $ this -> transactionId ] ) ; }
Run a query and return entities inside a Transaction
2,672
public function setLocations ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Vision \ V1 \ LocationInfo :: class ) ; $ this -> locations = $ arr ; return $ this ; }
The location information for the detected entity . Multiple LocationInfo elements can be present because one location may indicate the location of the scene in the image and another location may indicate the location of the place where the image was taken . Location information is usually present for landmarks .
2,673
public function setSnapshot ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ PubSub \ V1 \ Snapshot :: class ) ; $ this -> snapshot = $ var ; return $ this ; }
The updated snapshot object .
2,674
public function getProperty ( $ property ) { return isset ( $ this -> entity [ $ property ] ) ? $ this -> entity [ $ property ] : null ; }
Get a single property from the entity data .
2,675
public function setView ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Bigtable \ Admin \ V2 \ Table_View :: class ) ; $ this -> view = $ var ; return $ this ; }
The view to be applied to the returned tables fields . Defaults to NAME_ONLY if unspecified ; no others are currently supported .
2,676
public function setListFindingsResults ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ SecurityCenter \ V1 \ ListFindingsResponse \ ListFindingsResult :: class ) ; $ this -> list_findings_results = $ arr ; return $ this ; }
Findings matching the list request .
2,677
public function setOpenUriAction ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dialogflow \ V2 \ Intent_Message_BasicCard_Button_OpenUriAction :: class ) ; $ this -> open_uri_action = $ var ; return $ this ; }
Required . Action to take when a user taps on the button .
2,678
public function setIndexConfig ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Firestore \ Admin \ V1 \ Field_IndexConfig :: class ) ; $ this -> index_config = $ var ; return $ this ; }
The index configuration for this field . If unset field indexing will revert to the configuration defined by the ancestor_field . To explicitly remove all indexes for this field specify an index config with an empty list of indexes .
2,679
public function setSupportedCompressions ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: ENUM , \ Google \ Cloud \ WebRisk \ V1beta1 \ CompressionType :: class ) ; $ this -> supported_compressions = $ arr ; return $ this ; }
The compression types supported by the client .
2,680
public static function fromJson ( array $ data ) { if ( array_key_exists ( 'members' , $ data ) ) { $ data [ 'members' ] = array_map ( [ static :: class , 'fromJson' ] , $ data [ 'members' ] ) ; } if ( array_key_exists ( 'status' , $ data ) ) { $ data [ 'status' ] = StatusMessage :: fromJson ( $ data [ 'status' ] ) ; } return new static ( $ data [ 'name' ] , $ data [ 'type' ] , $ data ) ; }
Load a Variable from JSON form
2,681
public function byteSize ( ) { return mb_strlen ( $ this -> name ) + mb_strlen ( $ this -> type ) + mb_strlen ( $ this -> value ) ; }
Return the approximate size of this object in bytes
2,682
public function fullByteSize ( ) { $ size = $ this -> byteSize ( ) ; foreach ( $ this -> members as $ variable ) { $ size += $ variable -> fullByteSize ( ) ; } return $ size ; }
Returns the approximate size of this object including all members in bytes
2,683
private function wait ( callable $ isCompleteFn , callable $ reloadFn , Job $ job , $ maxRetries ) { if ( ! $ isCompleteFn ( ) ) { if ( $ maxRetries === null ) { $ maxRetries = Job :: MAX_RETRIES ; } $ retryFn = function ( ) use ( $ isCompleteFn , $ reloadFn , $ job ) { $ reloadFn ( ) ; if ( ! $ isCompleteFn ( ) ) { throw new JobException ( 'Job did not complete within the allowed number of retries.' , $ job ) ; } } ; ( new ExponentialBackoff ( $ maxRetries ) ) -> execute ( $ retryFn ) ; } }
Waits for an operation to complete .
2,684
public function setParameters ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> parameters = $ arr ; return $ this ; }
Optional parameters to be embedded into the message .
2,685
public function setPredicateFilter ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Bigtable \ V2 \ RowFilter :: class ) ; $ this -> predicate_filter = $ var ; return $ this ; }
The filter to be applied to the contents of the specified row . Depending on whether or not any results are yielded either true_mutations or false_mutations will be executed . If unset checks that the row contains any values at all .
2,686
public function setTrueMutations ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Bigtable \ V2 \ Mutation :: class ) ; $ this -> true_mutations = $ arr ; return $ this ; }
Changes to be atomically applied to the specified row if predicate_filter yields at least one cell when applied to row_key . Entries are applied in order meaning that earlier mutations can be masked by later ones . Must contain at least one entry if false_mutations is empty and at most 100000 .
2,687
public function setFalseMutations ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Bigtable \ V2 \ Mutation :: class ) ; $ this -> false_mutations = $ arr ; return $ this ; }
Changes to be atomically applied to the specified row if predicate_filter does not yield any cells when applied to row_key . Entries are applied in order meaning that earlier mutations can be masked by later ones . Must contain at least one entry if true_mutations is empty and at most 100000 .
2,688
public function snapshot ( DocumentReference $ document , array $ options = [ ] ) { return $ this -> createSnapshot ( $ this -> connection , $ this -> valueMapper , $ document , [ 'transaction' => $ this -> transaction , ] + $ options ) ; }
Get a Document Snapshot .
2,689
public function create ( DocumentReference $ document , array $ fields ) { $ this -> writer -> create ( $ document -> name ( ) , $ fields ) ; return $ this ; }
Enqueue an operation to create a Firestore document .
2,690
public function set ( DocumentReference $ document , array $ fields , array $ options = [ ] ) { $ this -> writer -> set ( $ document -> name ( ) , $ fields , $ options ) ; return $ this ; }
Enqueue an operation to modify or replace a Firestore document .
2,691
public function delete ( DocumentReference $ document , array $ options = [ ] ) { $ this -> writer -> delete ( $ document -> name ( ) , $ options ) ; return $ this ; }
Enqueue an operation to delete a Firestore document .
2,692
public function setState ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Vision \ V1 \ OperationMetadata_State :: class ) ; $ this -> state = $ var ; return $ this ; }
Current state of the batch operation .
2,693
public function setResourceGroup ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig_ResourceGroup :: class ) ; $ this -> writeOneof ( 4 , $ var ) ; return $ this ; }
The group resource associated with the configuration .
2,694
public function setHttpCheck ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig_HttpCheck :: class ) ; $ this -> writeOneof ( 5 , $ var ) ; return $ this ; }
Contains information needed to make an HTTP or HTTPS check .
2,695
public function setTcpCheck ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig_TcpCheck :: class ) ; $ this -> writeOneof ( 6 , $ var ) ; return $ this ; }
Contains information needed to make a TCP check .
2,696
public function setContentMatchers ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig \ ContentMatcher :: class ) ; $ this -> content_matchers = $ arr ; return $ this ; }
The expected content on the page the check is run against . Currently only the first entry in the list is supported and other entries will be ignored . The server will look for an exact match of the string in the page response s content . This field is optional and should only be specified if a content match is required .
2,697
public function setSelectedRegions ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: ENUM , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckRegion :: class ) ; $ this -> selected_regions = $ arr ; return $ this ; }
The list of regions from which the check will be run . Some regions contain one location and others contain more than one . If this field is specified enough regions to include a minimum of 3 locations must be provided or an error message is returned . Not specifying this field will result in uptime checks running from all regions .
2,698
public function setInstanceNames ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> instance_names = $ arr ; return $ this ; }
Output only . The list of instance names . Cloud Dataproc derives the names from cluster_name num_instances and the instance group .
2,699
public function setDiskConfig ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dataproc \ V1beta2 \ DiskConfig :: class ) ; $ this -> disk_config = $ var ; return $ this ; }
Optional . Disk option config settings .