Skip to content

Commit

Permalink
optional-to-required fix for Cloud DMS
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Sep 5, 2023
1 parent b294196 commit 516cf81
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Generation/FieldDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 516cf81

Please sign in to comment.