From 516cf81fd7b9c63c2ede5107867c125934b442b2 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 5 Sep 2023 09:00:50 -0700 Subject: [PATCH] optional-to-required fix for Cloud DMS --- src/Generation/FieldDetails.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Generation/FieldDetails.php b/src/Generation/FieldDetails.php index 64cba4ad..807a8856 100644 --- a/src/Generation/FieldDetails.php +++ b/src/Generation/FieldDetails.php @@ -138,15 +138,16 @@ class FieldDetails * AFTER a package's 1.0 release, back to being optional. */ private static $optionalToRequiredFixes = [ - 'google.logging.v2.UpdateCmekSettingsRequest' => ['name', 'cmek_settings'], - 'google.logging.v2.GetCmekSettingsRequest' => ['name'], + 'google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest' => ['tree'], + 'google.cloud.texttospeech.v1.SynthesizeLongAudioRequest' => ['output_gcs_uri', 'voice'], 'google.cloud.videointelligence.v1.AnnotateVideoRequest' => ['features'], + 'google.devtools.artifactregistry.v1beta2.ListFilesRequest' => ['parent'], + 'google.devtools.artifactregistry.v1beta2.GetFileRequest' => ['name'], 'google.firestore.v1.BatchWriteRequest' => ['database'], 'google.firestore.v1.PartitionQueryRequest' => ['parent'], + 'google.logging.v2.UpdateCmekSettingsRequest' => ['name', 'cmek_settings'], + 'google.logging.v2.GetCmekSettingsRequest' => ['name'], 'google.spanner.v1.CreateSessionRequest' => ['session'], - 'google.devtools.artifactregistry.v1beta2.ListFilesRequest' => ['parent'], - 'google.devtools.artifactregistry.v1beta2.GetFileRequest' => ['name'], - 'google.cloud.texttospeech.v1.SynthesizeLongAudioRequest' => ['output_gcs_uri', 'voice'], ]; public function __construct(ProtoCatalog $catalog, DescriptorProto $containingMessage, FieldDescriptorProto $field, ?Vector $docLinesOverride = null)