Skip to content

Commit

Permalink
fix: optional-to-required field for Cloud DMS (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Sep 7, 2023
1 parent b294196 commit 613baec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/conventional-commit-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
always_check_pr_title: true

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 613baec

Please sign in to comment.