Skip to content

Commit

Permalink
chore(bazel): [Many APIs] update GAPIC PHP generator to v1.7.2 (#6156)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored May 3, 2023
1 parent dd0b358 commit bc28308
Show file tree
Hide file tree
Showing 57 changed files with 606 additions and 38 deletions.
2 changes: 1 addition & 1 deletion samples/V2/AgentsClient/set_agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function set_agent_sample(
// Create a client.
$agentsClient = new AgentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$agent = (new Agent())
->setParent($formattedAgentParent)
->setDisplayName($agentDisplayName)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/AnswerRecordsClient/update_answer_record.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function update_answer_record_sample(): void
// Create a client.
$answerRecordsClient = new AnswerRecordsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$answerRecordAnswerFeedback = new AnswerFeedback();
$answerRecord = (new AnswerRecord())
->setAnswerFeedback($answerRecordAnswerFeedback);
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/ContextsClient/create_context.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function create_context_sample(string $formattedParent, string $contextName): vo
// Create a client.
$contextsClient = new ContextsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$context = (new Context())
->setName($contextName);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/ContextsClient/update_context.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function update_context_sample(string $contextName): void
// Create a client.
$contextsClient = new ContextsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$context = (new Context())
->setName($contextName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function create_conversation_dataset_sample(
// Create a client.
$conversationDatasetsClient = new ConversationDatasetsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$conversationDataset = (new ConversationDataset())
->setDisplayName($conversationDatasetDisplayName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function import_conversation_data_sample(string $formattedName): void
// Create a client.
$conversationDatasetsClient = new ConversationDatasetsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$inputConfig = new InputConfig();

// Call the API and handle any network failures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function create_conversation_model_sample(
// Create a client.
$conversationModelsClient = new ConversationModelsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$inputDataset = (new InputDataset())
->setDataset($formattedConversationModelDatasetsDataset);
$conversationModelDatasets = [$inputDataset,];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function create_conversation_model_evaluation_sample(string $formattedParent): v
// Create a client.
$conversationModelsClient = new ConversationModelsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$conversationModelEvaluation = new ConversationModelEvaluation();

// Call the API and handle any network failures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function create_conversation_profile_sample(
// Create a client.
$conversationProfilesClient = new ConversationProfilesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$conversationProfile = (new ConversationProfile())
->setDisplayName($conversationProfileDisplayName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function set_suggestion_feature_config_sample(
// Create a client.
$conversationProfilesClient = new ConversationProfilesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$suggestionFeatureConfig = new SuggestionFeatureConfig();

// Call the API and handle any network failures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function update_conversation_profile_sample(string $conversationProfileDisplayNa
// Create a client.
$conversationProfilesClient = new ConversationProfilesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$conversationProfile = (new ConversationProfile())
->setDisplayName($conversationProfileDisplayName);
$updateMask = new FieldMask();
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/ConversationsClient/create_conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function create_conversation_sample(
// Create a client.
$conversationsClient = new ConversationsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$conversation = (new Conversation())
->setConversationProfile($formattedConversationConversationProfile);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/DocumentsClient/create_document.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function create_document_sample(
// Create a client.
$documentsClient = new DocumentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$documentKnowledgeTypes = [$documentKnowledgeTypesElement,];
$document = (new Document())
->setDisplayName($documentDisplayName)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/DocumentsClient/import_documents.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function import_documents_sample(
// Create a client.
$documentsClient = new DocumentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$documentTemplateKnowledgeTypes = [$documentTemplateKnowledgeTypesElement,];
$documentTemplate = (new ImportDocumentTemplate())
->setMimeType($documentTemplateMimeType)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/DocumentsClient/update_document.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function update_document_sample(
// Create a client.
$documentsClient = new DocumentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$documentKnowledgeTypes = [$documentKnowledgeTypesElement,];
$document = (new Document())
->setDisplayName($documentDisplayName)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/batch_create_entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function batch_create_entities_sample(
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entitiesSynonyms = [$entitiesSynonymsElement,];
$entity = (new Entity())
->setValue($entitiesValue)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/batch_delete_entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function batch_delete_entities_sample(string $formattedParent, string $entityVal
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entityValues = [$entityValuesElement,];

// Call the API and handle any network failures.
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/batch_delete_entity_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function batch_delete_entity_types_sample(
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entityTypeNames = [$entityTypeNamesElement,];

// Call the API and handle any network failures.
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/batch_update_entities.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function batch_update_entities_sample(
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entitiesSynonyms = [$entitiesSynonymsElement,];
$entity = (new Entity())
->setValue($entitiesValue)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/create_entity_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function create_entity_type_sample(
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entityType = (new EntityType())
->setDisplayName($entityTypeDisplayName)
->setKind($entityTypeKind);
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EntityTypesClient/update_entity_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function update_entity_type_sample(string $entityTypeDisplayName, int $entityTyp
// Create a client.
$entityTypesClient = new EntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$entityType = (new EntityType())
->setDisplayName($entityTypeDisplayName)
->setKind($entityTypeKind);
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EnvironmentsClient/create_environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function create_environment_sample(string $formattedParent, string $environmentI
// Create a client.
$environmentsClient = new EnvironmentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$environment = new Environment();

// Call the API and handle any network failures.
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/EnvironmentsClient/update_environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function update_environment_sample(): void
// Create a client.
$environmentsClient = new EnvironmentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$environment = new Environment();
$updateMask = new FieldMask();

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/FulfillmentsClient/update_fulfillment.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function update_fulfillment_sample(string $fulfillmentName): void
// Create a client.
$fulfillmentsClient = new FulfillmentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$fulfillment = (new Fulfillment())
->setName($fulfillmentName);
$updateMask = new FieldMask();
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/IntentsClient/batch_delete_intents.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function batch_delete_intents_sample(string $formattedParent, string $intentsDis
// Create a client.
$intentsClient = new IntentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$intent = (new Intent())
->setDisplayName($intentsDisplayName);
$intents = [$intent,];
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/IntentsClient/create_intent.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function create_intent_sample(string $formattedParent, string $intentDisplayName
// Create a client.
$intentsClient = new IntentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$intent = (new Intent())
->setDisplayName($intentDisplayName);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/IntentsClient/update_intent.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function update_intent_sample(string $intentDisplayName): void
// Create a client.
$intentsClient = new IntentsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$intent = (new Intent())
->setDisplayName($intentDisplayName);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/KnowledgeBasesClient/create_knowledge_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function create_knowledge_base_sample(
// Create a client.
$knowledgeBasesClient = new KnowledgeBasesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$knowledgeBase = (new KnowledgeBase())
->setDisplayName($knowledgeBaseDisplayName);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/KnowledgeBasesClient/update_knowledge_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function update_knowledge_base_sample(string $knowledgeBaseDisplayName): void
// Create a client.
$knowledgeBasesClient = new KnowledgeBasesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$knowledgeBase = (new KnowledgeBase())
->setDisplayName($knowledgeBaseDisplayName);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/ParticipantsClient/create_participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function create_participant_sample(string $formattedParent): void
// Create a client.
$participantsClient = new ParticipantsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$participant = new Participant();

// Call the API and handle any network failures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function streaming_analyze_content_sample(string $formattedParticipant): void
// Create a client.
$participantsClient = new ParticipantsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$request = (new StreamingAnalyzeContentRequest())
->setParticipant($formattedParticipant);

Expand Down
2 changes: 1 addition & 1 deletion samples/V2/ParticipantsClient/update_participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function update_participant_sample(): void
// Create a client.
$participantsClient = new ParticipantsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$participant = new Participant();
$updateMask = new FieldMask();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function create_session_entity_type_sample(
// Create a client.
$sessionEntityTypesClient = new SessionEntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$sessionEntityTypeEntitiesSynonyms = [$sessionEntityTypeEntitiesSynonymsElement,];
$entity = (new Entity())
->setValue($sessionEntityTypeEntitiesValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function update_session_entity_type_sample(
// Create a client.
$sessionEntityTypesClient = new SessionEntityTypesClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$sessionEntityTypeEntitiesSynonyms = [$sessionEntityTypeEntitiesSynonymsElement,];
$entity = (new Entity())
->setValue($sessionEntityTypeEntitiesValue)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/SessionsClient/detect_intent.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function detect_intent_sample(string $formattedSession): void
// Create a client.
$sessionsClient = new SessionsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$queryInput = new QueryInput();

// Call the API and handle any network failures.
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/SessionsClient/streaming_detect_intent.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function streaming_detect_intent_sample(string $formattedSession): void
// Create a client.
$sessionsClient = new SessionsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$queryInput = new QueryInput();
$request = (new StreamingDetectIntentRequest())
->setSession($formattedSession)
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/VersionsClient/create_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function create_version_sample(string $formattedParent): void
// Create a client.
$versionsClient = new VersionsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$version = new Version();

// Call the API and handle any network failures.
Expand Down
2 changes: 1 addition & 1 deletion samples/V2/VersionsClient/update_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function update_version_sample(): void
// Create a client.
$versionsClient = new VersionsClient();

// Prepare any non-scalar elements to be passed along with the request.
// Prepare the request message.
$version = new Version();
$updateMask = new FieldMask();

Expand Down
Loading

0 comments on commit bc28308

Please sign in to comment.