@@ -197,6 +197,7 @@ func TestBuildGAPIC(t *testing.T) {
197197 RustDefault : config.RustDefault {
198198 DisabledRustdocWarnings : []string {"bare_urls" , "broken_intra_doc_links" , "redundant_explicit_links" },
199199 GenerateSetterSamples : "true" ,
200+ GenerateRpcSamples : "true" ,
200201 },
201202 PerServiceFeatures : true ,
202203 ModulePath : "crate" ,
@@ -212,7 +213,6 @@ func TestBuildGAPIC(t *testing.T) {
212213 HasVeneer : true ,
213214 RoutingRequired : true ,
214215 IncludeGrpcOnlyMethods : true ,
215- GenerateRpcSamples : true ,
216216 PostProcessProtos : "example post processing" ,
217217 DetailedTracingAttributes : true ,
218218 NameOverrides : ".google.cloud.security/publicca.v1.Storage=StorageControl" ,
@@ -458,7 +458,6 @@ func TestBuildVeneer(t *testing.T) {
458458 Modules : []* config.RustModule {
459459 {
460460 DisabledRustdocWarnings : []string {},
461- GenerateSetterSamples : true ,
462461 ModuleRoots : nil ,
463462 HasVeneer : true ,
464463 IncludedIds : []string {
@@ -478,7 +477,7 @@ func TestBuildVeneer(t *testing.T) {
478477 TitleOverride : "Cloud Firestore API" ,
479478 },
480479 {
481- GenerateSetterSamples : false ,
480+ GenerateSetterSamples : " false" ,
482481 ModulePath : "crate::generated::gapic_control::model" ,
483482 ModuleRoots : map [string ]string {
484483 "project-root" : "." ,
@@ -523,7 +522,6 @@ func TestBuildVeneer(t *testing.T) {
523522 Replace : "The service helps to manage cloud storage resources." ,
524523 },
525524 },
526- GenerateSetterSamples : true ,
527525 HasVeneer : true ,
528526 IncludeGrpcOnlyMethods : true ,
529527 NameOverrides : ".google.storage.v2.Storage=StorageControl" ,
@@ -581,9 +579,10 @@ func TestBuildVeneer(t *testing.T) {
581579 ModuleRoots : map [string ]string {
582580 "project-root" : "." ,
583581 },
584- Output : "tests/common/src/generated" ,
585- Source : "src/wkt/tests/protos" ,
586- Template : "mod" ,
582+ Output : "tests/common/src/generated" ,
583+ Source : "src/wkt/tests/protos" ,
584+ Template : "mod" ,
585+ GenerateSetterSamples : "false" ,
587586 },
588587 },
589588 },
@@ -597,12 +596,11 @@ func TestBuildVeneer(t *testing.T) {
597596 Rust : & config.RustCrate {
598597 Modules : []* config.RustModule {
599598 {
600- GenerateSetterSamples : true ,
601- IncludeList : "api.proto,source_context.proto,type.proto,descriptor.proto" ,
602- ModulePath : "crate" ,
603- Output : "src/generated" ,
604- Source : "google/protobuf" ,
605- Template : "mod" ,
599+ IncludeList : "api.proto,source_context.proto,type.proto,descriptor.proto" ,
600+ ModulePath : "crate" ,
601+ Output : "src/generated" ,
602+ Source : "google/protobuf" ,
603+ Template : "mod" ,
606604 },
607605 },
608606 },
@@ -627,7 +625,6 @@ func TestBuildVeneer(t *testing.T) {
627625 Modules : []* config.RustModule {
628626 {
629627 DisabledRustdocWarnings : []string {},
630- GenerateSetterSamples : true ,
631628 ModuleRoots : nil ,
632629 HasVeneer : true ,
633630 IncludedIds : []string {
@@ -647,7 +644,7 @@ func TestBuildVeneer(t *testing.T) {
647644 TitleOverride : "Cloud Firestore API" ,
648645 },
649646 {
650- GenerateSetterSamples : false ,
647+ GenerateSetterSamples : " false" ,
651648 ModulePath : "crate::generated::gapic_control::model" ,
652649 ModuleRoots : map [string ]string {
653650 "project-root" : "." ,
@@ -727,9 +724,9 @@ func TestBuildConfig(t *testing.T) {
727724 RustDefault : config.RustDefault {
728725 DisabledRustdocWarnings : []string {"bare_urls" , "broken_intra_doc_links" , "redundant_explicit_links" },
729726 GenerateSetterSamples : "true" ,
727+ GenerateRpcSamples : "true" ,
730728 },
731729 PerServiceFeatures : true ,
732- GenerateRpcSamples : true ,
733730 NameOverrides : ".google.cloud.security/publicca.v1.Storage=StorageControl" ,
734731 },
735732 },
@@ -761,9 +758,9 @@ func TestBuildConfig(t *testing.T) {
761758 RustDefault : config.RustDefault {
762759 DisabledRustdocWarnings : []string {"bare_urls" , "broken_intra_doc_links" , "redundant_explicit_links" },
763760 GenerateSetterSamples : "true" ,
761+ GenerateRpcSamples : "true" ,
764762 },
765763 PerServiceFeatures : true ,
766- GenerateRpcSamples : true ,
767764 NameOverrides : ".google.cloud.security/publicca.v1.Storage=StorageControl" ,
768765 },
769766 },
@@ -787,9 +784,9 @@ func TestBuildConfig(t *testing.T) {
787784 RustDefault : config.RustDefault {
788785 DisabledRustdocWarnings : []string {"bare_urls" , "broken_intra_doc_links" , "redundant_explicit_links" },
789786 GenerateSetterSamples : "true" ,
787+ GenerateRpcSamples : "true" ,
790788 },
791789 PerServiceFeatures : true ,
792- GenerateRpcSamples : true ,
793790 NameOverrides : ".google.cloud.orgpolicy.v1.OrgPolicy=OrgPolicyControl" ,
794791 },
795792 },
@@ -810,9 +807,9 @@ func TestBuildConfig(t *testing.T) {
810807 RustDefault : config.RustDefault {
811808 DisabledRustdocWarnings : []string {"bare_urls" , "broken_intra_doc_links" , "redundant_explicit_links" },
812809 GenerateSetterSamples : "true" ,
810+ GenerateRpcSamples : "true" ,
813811 },
814812 PerServiceFeatures : true ,
815- GenerateRpcSamples : true ,
816813 NameOverrides : ".google.cloud.orgpolicy.v1.OrgPolicy=OrgPolicyControl" ,
817814 },
818815 },
0 commit comments