google-cloud-translate-v3 0.12.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/translate/v3/adaptive_mt_pb.rb +5 -1
- data/lib/google/cloud/translate/v3/automl_translation_pb.rb +78 -0
- data/lib/google/cloud/translate/v3/bindings_override.rb +102 -0
- data/lib/google/cloud/translate/v3/common_pb.rb +7 -1
- data/lib/google/cloud/translate/v3/rest.rb +1 -0
- data/lib/google/cloud/translate/v3/translation_service/client.rb +2196 -312
- data/lib/google/cloud/translate/v3/translation_service/operations.rb +13 -5
- data/lib/google/cloud/translate/v3/translation_service/paths.rb +59 -0
- data/lib/google/cloud/translate/v3/translation_service/rest/client.rb +2063 -297
- data/lib/google/cloud/translate/v3/translation_service/rest/operations.rb +13 -5
- data/lib/google/cloud/translate/v3/translation_service/rest/service_stub.rb +1258 -180
- data/lib/google/cloud/translate/v3/translation_service/rest.rb +1 -0
- data/lib/google/cloud/translate/v3/translation_service_pb.rb +21 -3
- data/lib/google/cloud/translate/v3/translation_service_services_pb.rb +37 -0
- data/lib/google/cloud/translate/v3/version.rb +1 -1
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/translate/v3/adaptive_mt.rb +71 -1
- data/proto_docs/google/cloud/translate/v3/automl_translation.rb +487 -0
- data/proto_docs/google/cloud/translate/v3/common.rb +78 -0
- data/proto_docs/google/cloud/translate/v3/translation_service.rb +207 -14
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +46 -2
@@ -99,6 +99,44 @@ module Google
|
|
99
99
|
result
|
100
100
|
end
|
101
101
|
|
102
|
+
##
|
103
|
+
# Baseline implementation for the romanize_text REST call
|
104
|
+
#
|
105
|
+
# @param request_pb [::Google::Cloud::Translate::V3::RomanizeTextRequest]
|
106
|
+
# A request object representing the call parameters. Required.
|
107
|
+
# @param options [::Gapic::CallOptions]
|
108
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
109
|
+
#
|
110
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
111
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::RomanizeTextResponse]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Cloud::Translate::V3::RomanizeTextResponse]
|
115
|
+
# A result object deserialized from the server's reply
|
116
|
+
def romanize_text request_pb, options = nil
|
117
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
118
|
+
|
119
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_romanize_text_request request_pb
|
120
|
+
query_string_params = if query_string_params.any?
|
121
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
122
|
+
else
|
123
|
+
{}
|
124
|
+
end
|
125
|
+
|
126
|
+
response = @client_stub.make_http_request(
|
127
|
+
verb,
|
128
|
+
uri: uri,
|
129
|
+
body: body || "",
|
130
|
+
params: query_string_params,
|
131
|
+
options: options
|
132
|
+
)
|
133
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
134
|
+
result = ::Google::Cloud::Translate::V3::RomanizeTextResponse.decode_json response.body, ignore_unknown_fields: true
|
135
|
+
|
136
|
+
yield result, operation if block_given?
|
137
|
+
result
|
138
|
+
end
|
139
|
+
|
102
140
|
##
|
103
141
|
# Baseline implementation for the detect_language REST call
|
104
142
|
#
|
@@ -327,6 +365,44 @@ module Google
|
|
327
365
|
result
|
328
366
|
end
|
329
367
|
|
368
|
+
##
|
369
|
+
# Baseline implementation for the update_glossary REST call
|
370
|
+
#
|
371
|
+
# @param request_pb [::Google::Cloud::Translate::V3::UpdateGlossaryRequest]
|
372
|
+
# A request object representing the call parameters. Required.
|
373
|
+
# @param options [::Gapic::CallOptions]
|
374
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
375
|
+
#
|
376
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
377
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
378
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
379
|
+
#
|
380
|
+
# @return [::Google::Longrunning::Operation]
|
381
|
+
# A result object deserialized from the server's reply
|
382
|
+
def update_glossary request_pb, options = nil
|
383
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
384
|
+
|
385
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_glossary_request request_pb
|
386
|
+
query_string_params = if query_string_params.any?
|
387
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
388
|
+
else
|
389
|
+
{}
|
390
|
+
end
|
391
|
+
|
392
|
+
response = @client_stub.make_http_request(
|
393
|
+
verb,
|
394
|
+
uri: uri,
|
395
|
+
body: body || "",
|
396
|
+
params: query_string_params,
|
397
|
+
options: options
|
398
|
+
)
|
399
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
400
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
401
|
+
|
402
|
+
yield result, operation if block_given?
|
403
|
+
result
|
404
|
+
end
|
405
|
+
|
330
406
|
##
|
331
407
|
# Baseline implementation for the list_glossaries REST call
|
332
408
|
#
|
@@ -442,23 +518,23 @@ module Google
|
|
442
518
|
end
|
443
519
|
|
444
520
|
##
|
445
|
-
# Baseline implementation for the
|
521
|
+
# Baseline implementation for the get_glossary_entry REST call
|
446
522
|
#
|
447
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
523
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetGlossaryEntryRequest]
|
448
524
|
# A request object representing the call parameters. Required.
|
449
525
|
# @param options [::Gapic::CallOptions]
|
450
526
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
451
527
|
#
|
452
528
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
453
|
-
# @yieldparam result [::Google::Cloud::Translate::V3::
|
529
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::GlossaryEntry]
|
454
530
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
455
531
|
#
|
456
|
-
# @return [::Google::Cloud::Translate::V3::
|
532
|
+
# @return [::Google::Cloud::Translate::V3::GlossaryEntry]
|
457
533
|
# A result object deserialized from the server's reply
|
458
|
-
def
|
534
|
+
def get_glossary_entry request_pb, options = nil
|
459
535
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
460
536
|
|
461
|
-
verb, uri, query_string_params, body = ServiceStub.
|
537
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_glossary_entry_request request_pb
|
462
538
|
query_string_params = if query_string_params.any?
|
463
539
|
query_string_params.to_h { |p| p.split "=", 2 }
|
464
540
|
else
|
@@ -473,30 +549,30 @@ module Google
|
|
473
549
|
options: options
|
474
550
|
)
|
475
551
|
operation = ::Gapic::Rest::TransportOperation.new response
|
476
|
-
result = ::Google::Cloud::Translate::V3::
|
552
|
+
result = ::Google::Cloud::Translate::V3::GlossaryEntry.decode_json response.body, ignore_unknown_fields: true
|
477
553
|
|
478
554
|
yield result, operation if block_given?
|
479
555
|
result
|
480
556
|
end
|
481
557
|
|
482
558
|
##
|
483
|
-
# Baseline implementation for the
|
559
|
+
# Baseline implementation for the list_glossary_entries REST call
|
484
560
|
#
|
485
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
561
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListGlossaryEntriesRequest]
|
486
562
|
# A request object representing the call parameters. Required.
|
487
563
|
# @param options [::Gapic::CallOptions]
|
488
564
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
489
565
|
#
|
490
566
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
491
|
-
# @yieldparam result [::Google::
|
567
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse]
|
492
568
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
493
569
|
#
|
494
|
-
# @return [::Google::
|
570
|
+
# @return [::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse]
|
495
571
|
# A result object deserialized from the server's reply
|
496
|
-
def
|
572
|
+
def list_glossary_entries request_pb, options = nil
|
497
573
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
498
574
|
|
499
|
-
verb, uri, query_string_params, body = ServiceStub.
|
575
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_glossary_entries_request request_pb
|
500
576
|
query_string_params = if query_string_params.any?
|
501
577
|
query_string_params.to_h { |p| p.split "=", 2 }
|
502
578
|
else
|
@@ -511,30 +587,30 @@ module Google
|
|
511
587
|
options: options
|
512
588
|
)
|
513
589
|
operation = ::Gapic::Rest::TransportOperation.new response
|
514
|
-
result = ::Google::
|
590
|
+
result = ::Google::Cloud::Translate::V3::ListGlossaryEntriesResponse.decode_json response.body, ignore_unknown_fields: true
|
515
591
|
|
516
592
|
yield result, operation if block_given?
|
517
593
|
result
|
518
594
|
end
|
519
595
|
|
520
596
|
##
|
521
|
-
# Baseline implementation for the
|
597
|
+
# Baseline implementation for the create_glossary_entry REST call
|
522
598
|
#
|
523
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
599
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateGlossaryEntryRequest]
|
524
600
|
# A request object representing the call parameters. Required.
|
525
601
|
# @param options [::Gapic::CallOptions]
|
526
602
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
527
603
|
#
|
528
604
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
529
|
-
# @yieldparam result [::Google::Cloud::Translate::V3::
|
605
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::GlossaryEntry]
|
530
606
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
531
607
|
#
|
532
|
-
# @return [::Google::Cloud::Translate::V3::
|
608
|
+
# @return [::Google::Cloud::Translate::V3::GlossaryEntry]
|
533
609
|
# A result object deserialized from the server's reply
|
534
|
-
def
|
610
|
+
def create_glossary_entry request_pb, options = nil
|
535
611
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
536
612
|
|
537
|
-
verb, uri, query_string_params, body = ServiceStub.
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_glossary_entry_request request_pb
|
538
614
|
query_string_params = if query_string_params.any?
|
539
615
|
query_string_params.to_h { |p| p.split "=", 2 }
|
540
616
|
else
|
@@ -549,30 +625,30 @@ module Google
|
|
549
625
|
options: options
|
550
626
|
)
|
551
627
|
operation = ::Gapic::Rest::TransportOperation.new response
|
552
|
-
result = ::Google::Cloud::Translate::V3::
|
628
|
+
result = ::Google::Cloud::Translate::V3::GlossaryEntry.decode_json response.body, ignore_unknown_fields: true
|
553
629
|
|
554
630
|
yield result, operation if block_given?
|
555
631
|
result
|
556
632
|
end
|
557
633
|
|
558
634
|
##
|
559
|
-
# Baseline implementation for the
|
635
|
+
# Baseline implementation for the update_glossary_entry REST call
|
560
636
|
#
|
561
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
637
|
+
# @param request_pb [::Google::Cloud::Translate::V3::UpdateGlossaryEntryRequest]
|
562
638
|
# A request object representing the call parameters. Required.
|
563
639
|
# @param options [::Gapic::CallOptions]
|
564
640
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
565
641
|
#
|
566
642
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
567
|
-
# @yieldparam result [::Google::Cloud::Translate::V3::
|
643
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::GlossaryEntry]
|
568
644
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
569
645
|
#
|
570
|
-
# @return [::Google::Cloud::Translate::V3::
|
646
|
+
# @return [::Google::Cloud::Translate::V3::GlossaryEntry]
|
571
647
|
# A result object deserialized from the server's reply
|
572
|
-
def
|
648
|
+
def update_glossary_entry request_pb, options = nil
|
573
649
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
574
650
|
|
575
|
-
verb, uri, query_string_params, body = ServiceStub.
|
651
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_glossary_entry_request request_pb
|
576
652
|
query_string_params = if query_string_params.any?
|
577
653
|
query_string_params.to_h { |p| p.split "=", 2 }
|
578
654
|
else
|
@@ -587,30 +663,30 @@ module Google
|
|
587
663
|
options: options
|
588
664
|
)
|
589
665
|
operation = ::Gapic::Rest::TransportOperation.new response
|
590
|
-
result = ::Google::Cloud::Translate::V3::
|
666
|
+
result = ::Google::Cloud::Translate::V3::GlossaryEntry.decode_json response.body, ignore_unknown_fields: true
|
591
667
|
|
592
668
|
yield result, operation if block_given?
|
593
669
|
result
|
594
670
|
end
|
595
671
|
|
596
672
|
##
|
597
|
-
# Baseline implementation for the
|
673
|
+
# Baseline implementation for the delete_glossary_entry REST call
|
598
674
|
#
|
599
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
675
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteGlossaryEntryRequest]
|
600
676
|
# A request object representing the call parameters. Required.
|
601
677
|
# @param options [::Gapic::CallOptions]
|
602
678
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
603
679
|
#
|
604
680
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
605
|
-
# @yieldparam result [::Google::
|
681
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
606
682
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
607
683
|
#
|
608
|
-
# @return [::Google::
|
684
|
+
# @return [::Google::Protobuf::Empty]
|
609
685
|
# A result object deserialized from the server's reply
|
610
|
-
def
|
686
|
+
def delete_glossary_entry request_pb, options = nil
|
611
687
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
612
688
|
|
613
|
-
verb, uri, query_string_params, body = ServiceStub.
|
689
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_glossary_entry_request request_pb
|
614
690
|
query_string_params = if query_string_params.any?
|
615
691
|
query_string_params.to_h { |p| p.split "=", 2 }
|
616
692
|
else
|
@@ -625,30 +701,30 @@ module Google
|
|
625
701
|
options: options
|
626
702
|
)
|
627
703
|
operation = ::Gapic::Rest::TransportOperation.new response
|
628
|
-
result = ::Google::
|
704
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
629
705
|
|
630
706
|
yield result, operation if block_given?
|
631
707
|
result
|
632
708
|
end
|
633
709
|
|
634
710
|
##
|
635
|
-
# Baseline implementation for the
|
711
|
+
# Baseline implementation for the create_dataset REST call
|
636
712
|
#
|
637
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
713
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateDatasetRequest]
|
638
714
|
# A request object representing the call parameters. Required.
|
639
715
|
# @param options [::Gapic::CallOptions]
|
640
716
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
641
717
|
#
|
642
718
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
643
|
-
# @yieldparam result [::Google::
|
719
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
644
720
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
645
721
|
#
|
646
|
-
# @return [::Google::
|
722
|
+
# @return [::Google::Longrunning::Operation]
|
647
723
|
# A result object deserialized from the server's reply
|
648
|
-
def
|
724
|
+
def create_dataset request_pb, options = nil
|
649
725
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
650
726
|
|
651
|
-
verb, uri, query_string_params, body = ServiceStub.
|
727
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_dataset_request request_pb
|
652
728
|
query_string_params = if query_string_params.any?
|
653
729
|
query_string_params.to_h { |p| p.split "=", 2 }
|
654
730
|
else
|
@@ -663,30 +739,30 @@ module Google
|
|
663
739
|
options: options
|
664
740
|
)
|
665
741
|
operation = ::Gapic::Rest::TransportOperation.new response
|
666
|
-
result = ::Google::
|
742
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
667
743
|
|
668
744
|
yield result, operation if block_given?
|
669
745
|
result
|
670
746
|
end
|
671
747
|
|
672
748
|
##
|
673
|
-
# Baseline implementation for the
|
749
|
+
# Baseline implementation for the get_dataset REST call
|
674
750
|
#
|
675
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
751
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetDatasetRequest]
|
676
752
|
# A request object representing the call parameters. Required.
|
677
753
|
# @param options [::Gapic::CallOptions]
|
678
754
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
679
755
|
#
|
680
756
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
681
|
-
# @yieldparam result [::Google::
|
757
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::Dataset]
|
682
758
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
683
759
|
#
|
684
|
-
# @return [::Google::
|
760
|
+
# @return [::Google::Cloud::Translate::V3::Dataset]
|
685
761
|
# A result object deserialized from the server's reply
|
686
|
-
def
|
762
|
+
def get_dataset request_pb, options = nil
|
687
763
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
688
764
|
|
689
|
-
verb, uri, query_string_params, body = ServiceStub.
|
765
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_dataset_request request_pb
|
690
766
|
query_string_params = if query_string_params.any?
|
691
767
|
query_string_params.to_h { |p| p.split "=", 2 }
|
692
768
|
else
|
@@ -701,30 +777,30 @@ module Google
|
|
701
777
|
options: options
|
702
778
|
)
|
703
779
|
operation = ::Gapic::Rest::TransportOperation.new response
|
704
|
-
result = ::Google::
|
780
|
+
result = ::Google::Cloud::Translate::V3::Dataset.decode_json response.body, ignore_unknown_fields: true
|
705
781
|
|
706
782
|
yield result, operation if block_given?
|
707
783
|
result
|
708
784
|
end
|
709
785
|
|
710
786
|
##
|
711
|
-
# Baseline implementation for the
|
787
|
+
# Baseline implementation for the list_datasets REST call
|
712
788
|
#
|
713
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
789
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListDatasetsRequest]
|
714
790
|
# A request object representing the call parameters. Required.
|
715
791
|
# @param options [::Gapic::CallOptions]
|
716
792
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
717
793
|
#
|
718
794
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
719
|
-
# @yieldparam result [::Google::Cloud::Translate::V3::
|
795
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListDatasetsResponse]
|
720
796
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
721
797
|
#
|
722
|
-
# @return [::Google::Cloud::Translate::V3::
|
798
|
+
# @return [::Google::Cloud::Translate::V3::ListDatasetsResponse]
|
723
799
|
# A result object deserialized from the server's reply
|
724
|
-
def
|
800
|
+
def list_datasets request_pb, options = nil
|
725
801
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
726
802
|
|
727
|
-
verb, uri, query_string_params, body = ServiceStub.
|
803
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_datasets_request request_pb
|
728
804
|
query_string_params = if query_string_params.any?
|
729
805
|
query_string_params.to_h { |p| p.split "=", 2 }
|
730
806
|
else
|
@@ -739,30 +815,30 @@ module Google
|
|
739
815
|
options: options
|
740
816
|
)
|
741
817
|
operation = ::Gapic::Rest::TransportOperation.new response
|
742
|
-
result = ::Google::Cloud::Translate::V3::
|
818
|
+
result = ::Google::Cloud::Translate::V3::ListDatasetsResponse.decode_json response.body, ignore_unknown_fields: true
|
743
819
|
|
744
820
|
yield result, operation if block_given?
|
745
821
|
result
|
746
822
|
end
|
747
823
|
|
748
824
|
##
|
749
|
-
# Baseline implementation for the
|
825
|
+
# Baseline implementation for the delete_dataset REST call
|
750
826
|
#
|
751
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
827
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteDatasetRequest]
|
752
828
|
# A request object representing the call parameters. Required.
|
753
829
|
# @param options [::Gapic::CallOptions]
|
754
830
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
755
831
|
#
|
756
832
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
757
|
-
# @yieldparam result [::Google::
|
833
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
758
834
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
759
835
|
#
|
760
|
-
# @return [::Google::
|
836
|
+
# @return [::Google::Longrunning::Operation]
|
761
837
|
# A result object deserialized from the server's reply
|
762
|
-
def
|
838
|
+
def delete_dataset request_pb, options = nil
|
763
839
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
764
840
|
|
765
|
-
verb, uri, query_string_params, body = ServiceStub.
|
841
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_dataset_request request_pb
|
766
842
|
query_string_params = if query_string_params.any?
|
767
843
|
query_string_params.to_h { |p| p.split "=", 2 }
|
768
844
|
else
|
@@ -777,30 +853,30 @@ module Google
|
|
777
853
|
options: options
|
778
854
|
)
|
779
855
|
operation = ::Gapic::Rest::TransportOperation.new response
|
780
|
-
result = ::Google::
|
856
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
781
857
|
|
782
858
|
yield result, operation if block_given?
|
783
859
|
result
|
784
860
|
end
|
785
861
|
|
786
862
|
##
|
787
|
-
# Baseline implementation for the
|
863
|
+
# Baseline implementation for the create_adaptive_mt_dataset REST call
|
788
864
|
#
|
789
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
865
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateAdaptiveMtDatasetRequest]
|
790
866
|
# A request object representing the call parameters. Required.
|
791
867
|
# @param options [::Gapic::CallOptions]
|
792
868
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
793
869
|
#
|
794
870
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
795
|
-
# @yieldparam result [::Google::Cloud::Translate::V3::
|
871
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::AdaptiveMtDataset]
|
796
872
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
797
873
|
#
|
798
|
-
# @return [::Google::Cloud::Translate::V3::
|
874
|
+
# @return [::Google::Cloud::Translate::V3::AdaptiveMtDataset]
|
799
875
|
# A result object deserialized from the server's reply
|
800
|
-
def
|
876
|
+
def create_adaptive_mt_dataset request_pb, options = nil
|
801
877
|
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
802
878
|
|
803
|
-
verb, uri, query_string_params, body = ServiceStub.
|
879
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_adaptive_mt_dataset_request request_pb
|
804
880
|
query_string_params = if query_string_params.any?
|
805
881
|
query_string_params.to_h { |p| p.split "=", 2 }
|
806
882
|
else
|
@@ -815,94 +891,732 @@ module Google
|
|
815
891
|
options: options
|
816
892
|
)
|
817
893
|
operation = ::Gapic::Rest::TransportOperation.new response
|
818
|
-
result = ::Google::Cloud::Translate::V3::
|
894
|
+
result = ::Google::Cloud::Translate::V3::AdaptiveMtDataset.decode_json response.body, ignore_unknown_fields: true
|
819
895
|
|
820
896
|
yield result, operation if block_given?
|
821
897
|
result
|
822
898
|
end
|
823
899
|
|
824
900
|
##
|
825
|
-
#
|
826
|
-
#
|
827
|
-
# GRPC transcoding helper method for the translate_text REST call
|
901
|
+
# Baseline implementation for the delete_adaptive_mt_dataset REST call
|
828
902
|
#
|
829
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
903
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteAdaptiveMtDatasetRequest]
|
830
904
|
# A request object representing the call parameters. Required.
|
831
|
-
# @
|
832
|
-
#
|
833
|
-
def self.transcode_translate_text_request request_pb
|
834
|
-
transcoder = Gapic::Rest::GrpcTranscoder.new
|
835
|
-
.with_bindings(
|
836
|
-
uri_method: :post,
|
837
|
-
uri_template: "/v3/{parent}:translateText",
|
838
|
-
body: "*",
|
839
|
-
matches: [
|
840
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
841
|
-
]
|
842
|
-
)
|
843
|
-
.with_bindings(
|
844
|
-
uri_method: :post,
|
845
|
-
uri_template: "/v3/{parent}:translateText",
|
846
|
-
body: "*",
|
847
|
-
matches: [
|
848
|
-
["parent", %r{^projects/[^/]+/?$}, false]
|
849
|
-
]
|
850
|
-
)
|
851
|
-
transcoder.transcode request_pb
|
852
|
-
end
|
853
|
-
|
854
|
-
##
|
855
|
-
# @private
|
905
|
+
# @param options [::Gapic::CallOptions]
|
906
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
856
907
|
#
|
857
|
-
#
|
908
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
909
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
910
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
858
911
|
#
|
859
|
-
# @
|
860
|
-
# A
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
912
|
+
# @return [::Google::Protobuf::Empty]
|
913
|
+
# A result object deserialized from the server's reply
|
914
|
+
def delete_adaptive_mt_dataset request_pb, options = nil
|
915
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
916
|
+
|
917
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_adaptive_mt_dataset_request request_pb
|
918
|
+
query_string_params = if query_string_params.any?
|
919
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
920
|
+
else
|
921
|
+
{}
|
922
|
+
end
|
923
|
+
|
924
|
+
response = @client_stub.make_http_request(
|
925
|
+
verb,
|
926
|
+
uri: uri,
|
927
|
+
body: body || "",
|
928
|
+
params: query_string_params,
|
929
|
+
options: options
|
930
|
+
)
|
931
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
932
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
933
|
+
|
934
|
+
yield result, operation if block_given?
|
935
|
+
result
|
882
936
|
end
|
883
937
|
|
884
938
|
##
|
885
|
-
#
|
886
|
-
#
|
887
|
-
# GRPC transcoding helper method for the get_supported_languages REST call
|
939
|
+
# Baseline implementation for the get_adaptive_mt_dataset REST call
|
888
940
|
#
|
889
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
941
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetAdaptiveMtDatasetRequest]
|
890
942
|
# A request object representing the call parameters. Required.
|
891
|
-
# @
|
892
|
-
#
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
943
|
+
# @param options [::Gapic::CallOptions]
|
944
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
945
|
+
#
|
946
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
947
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::AdaptiveMtDataset]
|
948
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
949
|
+
#
|
950
|
+
# @return [::Google::Cloud::Translate::V3::AdaptiveMtDataset]
|
951
|
+
# A result object deserialized from the server's reply
|
952
|
+
def get_adaptive_mt_dataset request_pb, options = nil
|
953
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
954
|
+
|
955
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_adaptive_mt_dataset_request request_pb
|
956
|
+
query_string_params = if query_string_params.any?
|
957
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
958
|
+
else
|
959
|
+
{}
|
960
|
+
end
|
961
|
+
|
962
|
+
response = @client_stub.make_http_request(
|
963
|
+
verb,
|
964
|
+
uri: uri,
|
965
|
+
body: body || "",
|
966
|
+
params: query_string_params,
|
967
|
+
options: options
|
968
|
+
)
|
969
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
970
|
+
result = ::Google::Cloud::Translate::V3::AdaptiveMtDataset.decode_json response.body, ignore_unknown_fields: true
|
971
|
+
|
972
|
+
yield result, operation if block_given?
|
973
|
+
result
|
974
|
+
end
|
975
|
+
|
976
|
+
##
|
977
|
+
# Baseline implementation for the list_adaptive_mt_datasets REST call
|
978
|
+
#
|
979
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsRequest]
|
980
|
+
# A request object representing the call parameters. Required.
|
981
|
+
# @param options [::Gapic::CallOptions]
|
982
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
983
|
+
#
|
984
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
985
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse]
|
986
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
987
|
+
#
|
988
|
+
# @return [::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse]
|
989
|
+
# A result object deserialized from the server's reply
|
990
|
+
def list_adaptive_mt_datasets request_pb, options = nil
|
991
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
992
|
+
|
993
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_adaptive_mt_datasets_request request_pb
|
994
|
+
query_string_params = if query_string_params.any?
|
995
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
996
|
+
else
|
997
|
+
{}
|
998
|
+
end
|
999
|
+
|
1000
|
+
response = @client_stub.make_http_request(
|
1001
|
+
verb,
|
1002
|
+
uri: uri,
|
1003
|
+
body: body || "",
|
1004
|
+
params: query_string_params,
|
1005
|
+
options: options
|
1006
|
+
)
|
1007
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1008
|
+
result = ::Google::Cloud::Translate::V3::ListAdaptiveMtDatasetsResponse.decode_json response.body, ignore_unknown_fields: true
|
1009
|
+
|
1010
|
+
yield result, operation if block_given?
|
1011
|
+
result
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
##
|
1015
|
+
# Baseline implementation for the adaptive_mt_translate REST call
|
1016
|
+
#
|
1017
|
+
# @param request_pb [::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest]
|
1018
|
+
# A request object representing the call parameters. Required.
|
1019
|
+
# @param options [::Gapic::CallOptions]
|
1020
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1021
|
+
#
|
1022
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1023
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse]
|
1024
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1025
|
+
#
|
1026
|
+
# @return [::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse]
|
1027
|
+
# A result object deserialized from the server's reply
|
1028
|
+
def adaptive_mt_translate request_pb, options = nil
|
1029
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1030
|
+
|
1031
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_adaptive_mt_translate_request request_pb
|
1032
|
+
query_string_params = if query_string_params.any?
|
1033
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1034
|
+
else
|
1035
|
+
{}
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
response = @client_stub.make_http_request(
|
1039
|
+
verb,
|
1040
|
+
uri: uri,
|
1041
|
+
body: body || "",
|
1042
|
+
params: query_string_params,
|
1043
|
+
options: options
|
1044
|
+
)
|
1045
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1046
|
+
result = ::Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse.decode_json response.body, ignore_unknown_fields: true
|
1047
|
+
|
1048
|
+
yield result, operation if block_given?
|
1049
|
+
result
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
##
|
1053
|
+
# Baseline implementation for the get_adaptive_mt_file REST call
|
1054
|
+
#
|
1055
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetAdaptiveMtFileRequest]
|
1056
|
+
# A request object representing the call parameters. Required.
|
1057
|
+
# @param options [::Gapic::CallOptions]
|
1058
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1059
|
+
#
|
1060
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1061
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::AdaptiveMtFile]
|
1062
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1063
|
+
#
|
1064
|
+
# @return [::Google::Cloud::Translate::V3::AdaptiveMtFile]
|
1065
|
+
# A result object deserialized from the server's reply
|
1066
|
+
def get_adaptive_mt_file request_pb, options = nil
|
1067
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1068
|
+
|
1069
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_adaptive_mt_file_request request_pb
|
1070
|
+
query_string_params = if query_string_params.any?
|
1071
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1072
|
+
else
|
1073
|
+
{}
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
response = @client_stub.make_http_request(
|
1077
|
+
verb,
|
1078
|
+
uri: uri,
|
1079
|
+
body: body || "",
|
1080
|
+
params: query_string_params,
|
1081
|
+
options: options
|
1082
|
+
)
|
1083
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1084
|
+
result = ::Google::Cloud::Translate::V3::AdaptiveMtFile.decode_json response.body, ignore_unknown_fields: true
|
1085
|
+
|
1086
|
+
yield result, operation if block_given?
|
1087
|
+
result
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
##
|
1091
|
+
# Baseline implementation for the delete_adaptive_mt_file REST call
|
1092
|
+
#
|
1093
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteAdaptiveMtFileRequest]
|
1094
|
+
# A request object representing the call parameters. Required.
|
1095
|
+
# @param options [::Gapic::CallOptions]
|
1096
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1097
|
+
#
|
1098
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1099
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1100
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1101
|
+
#
|
1102
|
+
# @return [::Google::Protobuf::Empty]
|
1103
|
+
# A result object deserialized from the server's reply
|
1104
|
+
def delete_adaptive_mt_file request_pb, options = nil
|
1105
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1106
|
+
|
1107
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_adaptive_mt_file_request request_pb
|
1108
|
+
query_string_params = if query_string_params.any?
|
1109
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1110
|
+
else
|
1111
|
+
{}
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
response = @client_stub.make_http_request(
|
1115
|
+
verb,
|
1116
|
+
uri: uri,
|
1117
|
+
body: body || "",
|
1118
|
+
params: query_string_params,
|
1119
|
+
options: options
|
1120
|
+
)
|
1121
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1122
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1123
|
+
|
1124
|
+
yield result, operation if block_given?
|
1125
|
+
result
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
##
|
1129
|
+
# Baseline implementation for the import_adaptive_mt_file REST call
|
1130
|
+
#
|
1131
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileRequest]
|
1132
|
+
# A request object representing the call parameters. Required.
|
1133
|
+
# @param options [::Gapic::CallOptions]
|
1134
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1135
|
+
#
|
1136
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1137
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
|
1138
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1139
|
+
#
|
1140
|
+
# @return [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
|
1141
|
+
# A result object deserialized from the server's reply
|
1142
|
+
def import_adaptive_mt_file request_pb, options = nil
|
1143
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1144
|
+
|
1145
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_adaptive_mt_file_request request_pb
|
1146
|
+
query_string_params = if query_string_params.any?
|
1147
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1148
|
+
else
|
1149
|
+
{}
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
response = @client_stub.make_http_request(
|
1153
|
+
verb,
|
1154
|
+
uri: uri,
|
1155
|
+
body: body || "",
|
1156
|
+
params: query_string_params,
|
1157
|
+
options: options
|
1158
|
+
)
|
1159
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1160
|
+
result = ::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse.decode_json response.body, ignore_unknown_fields: true
|
1161
|
+
|
1162
|
+
yield result, operation if block_given?
|
1163
|
+
result
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
##
|
1167
|
+
# Baseline implementation for the list_adaptive_mt_files REST call
|
1168
|
+
#
|
1169
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListAdaptiveMtFilesRequest]
|
1170
|
+
# A request object representing the call parameters. Required.
|
1171
|
+
# @param options [::Gapic::CallOptions]
|
1172
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1173
|
+
#
|
1174
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1175
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse]
|
1176
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1177
|
+
#
|
1178
|
+
# @return [::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse]
|
1179
|
+
# A result object deserialized from the server's reply
|
1180
|
+
def list_adaptive_mt_files request_pb, options = nil
|
1181
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1182
|
+
|
1183
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_adaptive_mt_files_request request_pb
|
1184
|
+
query_string_params = if query_string_params.any?
|
1185
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1186
|
+
else
|
1187
|
+
{}
|
1188
|
+
end
|
1189
|
+
|
1190
|
+
response = @client_stub.make_http_request(
|
1191
|
+
verb,
|
1192
|
+
uri: uri,
|
1193
|
+
body: body || "",
|
1194
|
+
params: query_string_params,
|
1195
|
+
options: options
|
1196
|
+
)
|
1197
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1198
|
+
result = ::Google::Cloud::Translate::V3::ListAdaptiveMtFilesResponse.decode_json response.body, ignore_unknown_fields: true
|
1199
|
+
|
1200
|
+
yield result, operation if block_given?
|
1201
|
+
result
|
1202
|
+
end
|
1203
|
+
|
1204
|
+
##
|
1205
|
+
# Baseline implementation for the list_adaptive_mt_sentences REST call
|
1206
|
+
#
|
1207
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesRequest]
|
1208
|
+
# A request object representing the call parameters. Required.
|
1209
|
+
# @param options [::Gapic::CallOptions]
|
1210
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1211
|
+
#
|
1212
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1213
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse]
|
1214
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1215
|
+
#
|
1216
|
+
# @return [::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse]
|
1217
|
+
# A result object deserialized from the server's reply
|
1218
|
+
def list_adaptive_mt_sentences request_pb, options = nil
|
1219
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1220
|
+
|
1221
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_adaptive_mt_sentences_request request_pb
|
1222
|
+
query_string_params = if query_string_params.any?
|
1223
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1224
|
+
else
|
1225
|
+
{}
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
response = @client_stub.make_http_request(
|
1229
|
+
verb,
|
1230
|
+
uri: uri,
|
1231
|
+
body: body || "",
|
1232
|
+
params: query_string_params,
|
1233
|
+
options: options
|
1234
|
+
)
|
1235
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1236
|
+
result = ::Google::Cloud::Translate::V3::ListAdaptiveMtSentencesResponse.decode_json response.body, ignore_unknown_fields: true
|
1237
|
+
|
1238
|
+
yield result, operation if block_given?
|
1239
|
+
result
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
##
|
1243
|
+
# Baseline implementation for the import_data REST call
|
1244
|
+
#
|
1245
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ImportDataRequest]
|
1246
|
+
# A request object representing the call parameters. Required.
|
1247
|
+
# @param options [::Gapic::CallOptions]
|
1248
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1249
|
+
#
|
1250
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1251
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1252
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1253
|
+
#
|
1254
|
+
# @return [::Google::Longrunning::Operation]
|
1255
|
+
# A result object deserialized from the server's reply
|
1256
|
+
def import_data request_pb, options = nil
|
1257
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1258
|
+
|
1259
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_data_request request_pb
|
1260
|
+
query_string_params = if query_string_params.any?
|
1261
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1262
|
+
else
|
1263
|
+
{}
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
response = @client_stub.make_http_request(
|
1267
|
+
verb,
|
1268
|
+
uri: uri,
|
1269
|
+
body: body || "",
|
1270
|
+
params: query_string_params,
|
1271
|
+
options: options
|
1272
|
+
)
|
1273
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1274
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1275
|
+
|
1276
|
+
yield result, operation if block_given?
|
1277
|
+
result
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
##
|
1281
|
+
# Baseline implementation for the export_data REST call
|
1282
|
+
#
|
1283
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ExportDataRequest]
|
1284
|
+
# A request object representing the call parameters. Required.
|
1285
|
+
# @param options [::Gapic::CallOptions]
|
1286
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1287
|
+
#
|
1288
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1289
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1290
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1291
|
+
#
|
1292
|
+
# @return [::Google::Longrunning::Operation]
|
1293
|
+
# A result object deserialized from the server's reply
|
1294
|
+
def export_data request_pb, options = nil
|
1295
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1296
|
+
|
1297
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_data_request request_pb
|
1298
|
+
query_string_params = if query_string_params.any?
|
1299
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1300
|
+
else
|
1301
|
+
{}
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
response = @client_stub.make_http_request(
|
1305
|
+
verb,
|
1306
|
+
uri: uri,
|
1307
|
+
body: body || "",
|
1308
|
+
params: query_string_params,
|
1309
|
+
options: options
|
1310
|
+
)
|
1311
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1312
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1313
|
+
|
1314
|
+
yield result, operation if block_given?
|
1315
|
+
result
|
1316
|
+
end
|
1317
|
+
|
1318
|
+
##
|
1319
|
+
# Baseline implementation for the list_examples REST call
|
1320
|
+
#
|
1321
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListExamplesRequest]
|
1322
|
+
# A request object representing the call parameters. Required.
|
1323
|
+
# @param options [::Gapic::CallOptions]
|
1324
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1325
|
+
#
|
1326
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1327
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListExamplesResponse]
|
1328
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1329
|
+
#
|
1330
|
+
# @return [::Google::Cloud::Translate::V3::ListExamplesResponse]
|
1331
|
+
# A result object deserialized from the server's reply
|
1332
|
+
def list_examples request_pb, options = nil
|
1333
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1334
|
+
|
1335
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_examples_request request_pb
|
1336
|
+
query_string_params = if query_string_params.any?
|
1337
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1338
|
+
else
|
1339
|
+
{}
|
1340
|
+
end
|
1341
|
+
|
1342
|
+
response = @client_stub.make_http_request(
|
1343
|
+
verb,
|
1344
|
+
uri: uri,
|
1345
|
+
body: body || "",
|
1346
|
+
params: query_string_params,
|
1347
|
+
options: options
|
1348
|
+
)
|
1349
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1350
|
+
result = ::Google::Cloud::Translate::V3::ListExamplesResponse.decode_json response.body, ignore_unknown_fields: true
|
1351
|
+
|
1352
|
+
yield result, operation if block_given?
|
1353
|
+
result
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
##
|
1357
|
+
# Baseline implementation for the create_model REST call
|
1358
|
+
#
|
1359
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateModelRequest]
|
1360
|
+
# A request object representing the call parameters. Required.
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1363
|
+
#
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1365
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1367
|
+
#
|
1368
|
+
# @return [::Google::Longrunning::Operation]
|
1369
|
+
# A result object deserialized from the server's reply
|
1370
|
+
def create_model request_pb, options = nil
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1372
|
+
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_model_request request_pb
|
1374
|
+
query_string_params = if query_string_params.any?
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1376
|
+
else
|
1377
|
+
{}
|
1378
|
+
end
|
1379
|
+
|
1380
|
+
response = @client_stub.make_http_request(
|
1381
|
+
verb,
|
1382
|
+
uri: uri,
|
1383
|
+
body: body || "",
|
1384
|
+
params: query_string_params,
|
1385
|
+
options: options
|
1386
|
+
)
|
1387
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1388
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1389
|
+
|
1390
|
+
yield result, operation if block_given?
|
1391
|
+
result
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
##
|
1395
|
+
# Baseline implementation for the list_models REST call
|
1396
|
+
#
|
1397
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListModelsRequest]
|
1398
|
+
# A request object representing the call parameters. Required.
|
1399
|
+
# @param options [::Gapic::CallOptions]
|
1400
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1401
|
+
#
|
1402
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1403
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::ListModelsResponse]
|
1404
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1405
|
+
#
|
1406
|
+
# @return [::Google::Cloud::Translate::V3::ListModelsResponse]
|
1407
|
+
# A result object deserialized from the server's reply
|
1408
|
+
def list_models request_pb, options = nil
|
1409
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1410
|
+
|
1411
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_models_request request_pb
|
1412
|
+
query_string_params = if query_string_params.any?
|
1413
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1414
|
+
else
|
1415
|
+
{}
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
response = @client_stub.make_http_request(
|
1419
|
+
verb,
|
1420
|
+
uri: uri,
|
1421
|
+
body: body || "",
|
1422
|
+
params: query_string_params,
|
1423
|
+
options: options
|
1424
|
+
)
|
1425
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1426
|
+
result = ::Google::Cloud::Translate::V3::ListModelsResponse.decode_json response.body, ignore_unknown_fields: true
|
1427
|
+
|
1428
|
+
yield result, operation if block_given?
|
1429
|
+
result
|
1430
|
+
end
|
1431
|
+
|
1432
|
+
##
|
1433
|
+
# Baseline implementation for the get_model REST call
|
1434
|
+
#
|
1435
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetModelRequest]
|
1436
|
+
# A request object representing the call parameters. Required.
|
1437
|
+
# @param options [::Gapic::CallOptions]
|
1438
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1439
|
+
#
|
1440
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1441
|
+
# @yieldparam result [::Google::Cloud::Translate::V3::Model]
|
1442
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1443
|
+
#
|
1444
|
+
# @return [::Google::Cloud::Translate::V3::Model]
|
1445
|
+
# A result object deserialized from the server's reply
|
1446
|
+
def get_model request_pb, options = nil
|
1447
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1448
|
+
|
1449
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_model_request request_pb
|
1450
|
+
query_string_params = if query_string_params.any?
|
1451
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1452
|
+
else
|
1453
|
+
{}
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
response = @client_stub.make_http_request(
|
1457
|
+
verb,
|
1458
|
+
uri: uri,
|
1459
|
+
body: body || "",
|
1460
|
+
params: query_string_params,
|
1461
|
+
options: options
|
1462
|
+
)
|
1463
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1464
|
+
result = ::Google::Cloud::Translate::V3::Model.decode_json response.body, ignore_unknown_fields: true
|
1465
|
+
|
1466
|
+
yield result, operation if block_given?
|
1467
|
+
result
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
##
|
1471
|
+
# Baseline implementation for the delete_model REST call
|
1472
|
+
#
|
1473
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteModelRequest]
|
1474
|
+
# A request object representing the call parameters. Required.
|
1475
|
+
# @param options [::Gapic::CallOptions]
|
1476
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1477
|
+
#
|
1478
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1479
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1480
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1481
|
+
#
|
1482
|
+
# @return [::Google::Longrunning::Operation]
|
1483
|
+
# A result object deserialized from the server's reply
|
1484
|
+
def delete_model request_pb, options = nil
|
1485
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1486
|
+
|
1487
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_model_request request_pb
|
1488
|
+
query_string_params = if query_string_params.any?
|
1489
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1490
|
+
else
|
1491
|
+
{}
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
response = @client_stub.make_http_request(
|
1495
|
+
verb,
|
1496
|
+
uri: uri,
|
1497
|
+
body: body || "",
|
1498
|
+
params: query_string_params,
|
1499
|
+
options: options
|
1500
|
+
)
|
1501
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1502
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1503
|
+
|
1504
|
+
yield result, operation if block_given?
|
1505
|
+
result
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
##
|
1509
|
+
# @private
|
1510
|
+
#
|
1511
|
+
# GRPC transcoding helper method for the translate_text REST call
|
1512
|
+
#
|
1513
|
+
# @param request_pb [::Google::Cloud::Translate::V3::TranslateTextRequest]
|
1514
|
+
# A request object representing the call parameters. Required.
|
1515
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1516
|
+
# Uri, Body, Query string parameters
|
1517
|
+
def self.transcode_translate_text_request request_pb
|
1518
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1519
|
+
.with_bindings(
|
1520
|
+
uri_method: :post,
|
1521
|
+
uri_template: "/v3/{parent}:translateText",
|
1522
|
+
body: "*",
|
1523
|
+
matches: [
|
1524
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1525
|
+
]
|
1526
|
+
)
|
1527
|
+
.with_bindings(
|
1528
|
+
uri_method: :post,
|
1529
|
+
uri_template: "/v3/{parent}:translateText",
|
1530
|
+
body: "*",
|
1531
|
+
matches: [
|
1532
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
1533
|
+
]
|
1534
|
+
)
|
1535
|
+
transcoder.transcode request_pb
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
##
|
1539
|
+
# @private
|
1540
|
+
#
|
1541
|
+
# GRPC transcoding helper method for the romanize_text REST call
|
1542
|
+
#
|
1543
|
+
# @param request_pb [::Google::Cloud::Translate::V3::RomanizeTextRequest]
|
1544
|
+
# A request object representing the call parameters. Required.
|
1545
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1546
|
+
# Uri, Body, Query string parameters
|
1547
|
+
def self.transcode_romanize_text_request request_pb
|
1548
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1549
|
+
.with_bindings(
|
1550
|
+
uri_method: :post,
|
1551
|
+
uri_template: "/v3/{parent}:romanizeText",
|
1552
|
+
body: "*",
|
1553
|
+
matches: [
|
1554
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1555
|
+
]
|
1556
|
+
)
|
1557
|
+
.with_bindings(
|
1558
|
+
uri_method: :post,
|
1559
|
+
uri_template: "/v3/{parent}:romanizeText",
|
1560
|
+
body: "*",
|
1561
|
+
matches: [
|
1562
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
1563
|
+
]
|
1564
|
+
)
|
1565
|
+
transcoder.transcode request_pb
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
##
|
1569
|
+
# @private
|
1570
|
+
#
|
1571
|
+
# GRPC transcoding helper method for the detect_language REST call
|
1572
|
+
#
|
1573
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DetectLanguageRequest]
|
1574
|
+
# A request object representing the call parameters. Required.
|
1575
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1576
|
+
# Uri, Body, Query string parameters
|
1577
|
+
def self.transcode_detect_language_request request_pb
|
1578
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1579
|
+
.with_bindings(
|
1580
|
+
uri_method: :post,
|
1581
|
+
uri_template: "/v3/{parent}:detectLanguage",
|
1582
|
+
body: "*",
|
1583
|
+
matches: [
|
1584
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1585
|
+
]
|
1586
|
+
)
|
1587
|
+
.with_bindings(
|
1588
|
+
uri_method: :post,
|
1589
|
+
uri_template: "/v3/{parent}:detectLanguage",
|
1590
|
+
body: "*",
|
1591
|
+
matches: [
|
1592
|
+
["parent", %r{^projects/[^/]+/?$}, false]
|
1593
|
+
]
|
1594
|
+
)
|
1595
|
+
transcoder.transcode request_pb
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
##
|
1599
|
+
# @private
|
1600
|
+
#
|
1601
|
+
# GRPC transcoding helper method for the get_supported_languages REST call
|
1602
|
+
#
|
1603
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetSupportedLanguagesRequest]
|
1604
|
+
# A request object representing the call parameters. Required.
|
1605
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1606
|
+
# Uri, Body, Query string parameters
|
1607
|
+
def self.transcode_get_supported_languages_request request_pb
|
1608
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1609
|
+
.with_bindings(
|
1610
|
+
uri_method: :get,
|
1611
|
+
uri_template: "/v3/{parent}/supportedLanguages",
|
1612
|
+
matches: [
|
1613
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1614
|
+
]
|
1615
|
+
)
|
1616
|
+
.with_bindings(
|
1617
|
+
uri_method: :get,
|
1618
|
+
uri_template: "/v3/{parent}/supportedLanguages",
|
1619
|
+
matches: [
|
906
1620
|
["parent", %r{^projects/[^/]+/?$}, false]
|
907
1621
|
]
|
908
1622
|
)
|
@@ -912,18 +1626,127 @@ module Google
|
|
912
1626
|
##
|
913
1627
|
# @private
|
914
1628
|
#
|
915
|
-
# GRPC transcoding helper method for the translate_document REST call
|
1629
|
+
# GRPC transcoding helper method for the translate_document REST call
|
1630
|
+
#
|
1631
|
+
# @param request_pb [::Google::Cloud::Translate::V3::TranslateDocumentRequest]
|
1632
|
+
# A request object representing the call parameters. Required.
|
1633
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1634
|
+
# Uri, Body, Query string parameters
|
1635
|
+
def self.transcode_translate_document_request request_pb
|
1636
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1637
|
+
.with_bindings(
|
1638
|
+
uri_method: :post,
|
1639
|
+
uri_template: "/v3/{parent}:translateDocument",
|
1640
|
+
body: "*",
|
1641
|
+
matches: [
|
1642
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1643
|
+
]
|
1644
|
+
)
|
1645
|
+
transcoder.transcode request_pb
|
1646
|
+
end
|
1647
|
+
|
1648
|
+
##
|
1649
|
+
# @private
|
1650
|
+
#
|
1651
|
+
# GRPC transcoding helper method for the batch_translate_text REST call
|
1652
|
+
#
|
1653
|
+
# @param request_pb [::Google::Cloud::Translate::V3::BatchTranslateTextRequest]
|
1654
|
+
# A request object representing the call parameters. Required.
|
1655
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1656
|
+
# Uri, Body, Query string parameters
|
1657
|
+
def self.transcode_batch_translate_text_request request_pb
|
1658
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1659
|
+
.with_bindings(
|
1660
|
+
uri_method: :post,
|
1661
|
+
uri_template: "/v3/{parent}:batchTranslateText",
|
1662
|
+
body: "*",
|
1663
|
+
matches: [
|
1664
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1665
|
+
]
|
1666
|
+
)
|
1667
|
+
transcoder.transcode request_pb
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
##
|
1671
|
+
# @private
|
1672
|
+
#
|
1673
|
+
# GRPC transcoding helper method for the batch_translate_document REST call
|
1674
|
+
#
|
1675
|
+
# @param request_pb [::Google::Cloud::Translate::V3::BatchTranslateDocumentRequest]
|
1676
|
+
# A request object representing the call parameters. Required.
|
1677
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1678
|
+
# Uri, Body, Query string parameters
|
1679
|
+
def self.transcode_batch_translate_document_request request_pb
|
1680
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1681
|
+
.with_bindings(
|
1682
|
+
uri_method: :post,
|
1683
|
+
uri_template: "/v3/{parent}:batchTranslateDocument",
|
1684
|
+
body: "*",
|
1685
|
+
matches: [
|
1686
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1687
|
+
]
|
1688
|
+
)
|
1689
|
+
transcoder.transcode request_pb
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
##
|
1693
|
+
# @private
|
1694
|
+
#
|
1695
|
+
# GRPC transcoding helper method for the create_glossary REST call
|
1696
|
+
#
|
1697
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateGlossaryRequest]
|
1698
|
+
# A request object representing the call parameters. Required.
|
1699
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1700
|
+
# Uri, Body, Query string parameters
|
1701
|
+
def self.transcode_create_glossary_request request_pb
|
1702
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1703
|
+
.with_bindings(
|
1704
|
+
uri_method: :post,
|
1705
|
+
uri_template: "/v3/{parent}/glossaries",
|
1706
|
+
body: "glossary",
|
1707
|
+
matches: [
|
1708
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1709
|
+
]
|
1710
|
+
)
|
1711
|
+
transcoder.transcode request_pb
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
##
|
1715
|
+
# @private
|
1716
|
+
#
|
1717
|
+
# GRPC transcoding helper method for the update_glossary REST call
|
1718
|
+
#
|
1719
|
+
# @param request_pb [::Google::Cloud::Translate::V3::UpdateGlossaryRequest]
|
1720
|
+
# A request object representing the call parameters. Required.
|
1721
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1722
|
+
# Uri, Body, Query string parameters
|
1723
|
+
def self.transcode_update_glossary_request request_pb
|
1724
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1725
|
+
.with_bindings(
|
1726
|
+
uri_method: :patch,
|
1727
|
+
uri_template: "/v3/{glossary.name}",
|
1728
|
+
body: "glossary",
|
1729
|
+
matches: [
|
1730
|
+
["glossary.name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/?$}, false]
|
1731
|
+
]
|
1732
|
+
)
|
1733
|
+
transcoder.transcode request_pb
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
##
|
1737
|
+
# @private
|
1738
|
+
#
|
1739
|
+
# GRPC transcoding helper method for the list_glossaries REST call
|
916
1740
|
#
|
917
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1741
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListGlossariesRequest]
|
918
1742
|
# A request object representing the call parameters. Required.
|
919
1743
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
920
1744
|
# Uri, Body, Query string parameters
|
921
|
-
def self.
|
1745
|
+
def self.transcode_list_glossaries_request request_pb
|
922
1746
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
923
1747
|
.with_bindings(
|
924
|
-
uri_method: :
|
925
|
-
uri_template: "/v3/{parent}
|
926
|
-
body: "*",
|
1748
|
+
uri_method: :get,
|
1749
|
+
uri_template: "/v3/{parent}/glossaries",
|
927
1750
|
matches: [
|
928
1751
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
929
1752
|
]
|
@@ -934,20 +1757,19 @@ module Google
|
|
934
1757
|
##
|
935
1758
|
# @private
|
936
1759
|
#
|
937
|
-
# GRPC transcoding helper method for the
|
1760
|
+
# GRPC transcoding helper method for the get_glossary REST call
|
938
1761
|
#
|
939
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1762
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetGlossaryRequest]
|
940
1763
|
# A request object representing the call parameters. Required.
|
941
1764
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
942
1765
|
# Uri, Body, Query string parameters
|
943
|
-
def self.
|
1766
|
+
def self.transcode_get_glossary_request request_pb
|
944
1767
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
945
1768
|
.with_bindings(
|
946
|
-
uri_method: :
|
947
|
-
uri_template: "/v3/{
|
948
|
-
body: "*",
|
1769
|
+
uri_method: :get,
|
1770
|
+
uri_template: "/v3/{name}",
|
949
1771
|
matches: [
|
950
|
-
["
|
1772
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/?$}, false]
|
951
1773
|
]
|
952
1774
|
)
|
953
1775
|
transcoder.transcode request_pb
|
@@ -956,20 +1778,83 @@ module Google
|
|
956
1778
|
##
|
957
1779
|
# @private
|
958
1780
|
#
|
959
|
-
# GRPC transcoding helper method for the
|
1781
|
+
# GRPC transcoding helper method for the delete_glossary REST call
|
960
1782
|
#
|
961
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1783
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteGlossaryRequest]
|
962
1784
|
# A request object representing the call parameters. Required.
|
963
1785
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
964
1786
|
# Uri, Body, Query string parameters
|
965
|
-
def self.
|
1787
|
+
def self.transcode_delete_glossary_request request_pb
|
1788
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1789
|
+
.with_bindings(
|
1790
|
+
uri_method: :delete,
|
1791
|
+
uri_template: "/v3/{name}",
|
1792
|
+
matches: [
|
1793
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/?$}, false]
|
1794
|
+
]
|
1795
|
+
)
|
1796
|
+
transcoder.transcode request_pb
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
##
|
1800
|
+
# @private
|
1801
|
+
#
|
1802
|
+
# GRPC transcoding helper method for the get_glossary_entry REST call
|
1803
|
+
#
|
1804
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetGlossaryEntryRequest]
|
1805
|
+
# A request object representing the call parameters. Required.
|
1806
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1807
|
+
# Uri, Body, Query string parameters
|
1808
|
+
def self.transcode_get_glossary_entry_request request_pb
|
1809
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1810
|
+
.with_bindings(
|
1811
|
+
uri_method: :get,
|
1812
|
+
uri_template: "/v3/{name}",
|
1813
|
+
matches: [
|
1814
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/glossaryEntries/[^/]+/?$}, false]
|
1815
|
+
]
|
1816
|
+
)
|
1817
|
+
transcoder.transcode request_pb
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
##
|
1821
|
+
# @private
|
1822
|
+
#
|
1823
|
+
# GRPC transcoding helper method for the list_glossary_entries REST call
|
1824
|
+
#
|
1825
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListGlossaryEntriesRequest]
|
1826
|
+
# A request object representing the call parameters. Required.
|
1827
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1828
|
+
# Uri, Body, Query string parameters
|
1829
|
+
def self.transcode_list_glossary_entries_request request_pb
|
1830
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1831
|
+
.with_bindings(
|
1832
|
+
uri_method: :get,
|
1833
|
+
uri_template: "/v3/{parent}/glossaryEntries",
|
1834
|
+
matches: [
|
1835
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/?$}, false]
|
1836
|
+
]
|
1837
|
+
)
|
1838
|
+
transcoder.transcode request_pb
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
##
|
1842
|
+
# @private
|
1843
|
+
#
|
1844
|
+
# GRPC transcoding helper method for the create_glossary_entry REST call
|
1845
|
+
#
|
1846
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateGlossaryEntryRequest]
|
1847
|
+
# A request object representing the call parameters. Required.
|
1848
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1849
|
+
# Uri, Body, Query string parameters
|
1850
|
+
def self.transcode_create_glossary_entry_request request_pb
|
966
1851
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
967
1852
|
.with_bindings(
|
968
1853
|
uri_method: :post,
|
969
|
-
uri_template: "/v3/{parent}
|
970
|
-
body: "
|
1854
|
+
uri_template: "/v3/{parent}/glossaryEntries",
|
1855
|
+
body: "glossary_entry",
|
971
1856
|
matches: [
|
972
|
-
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1857
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/?$}, false]
|
973
1858
|
]
|
974
1859
|
)
|
975
1860
|
transcoder.transcode request_pb
|
@@ -978,18 +1863,61 @@ module Google
|
|
978
1863
|
##
|
979
1864
|
# @private
|
980
1865
|
#
|
981
|
-
# GRPC transcoding helper method for the
|
1866
|
+
# GRPC transcoding helper method for the update_glossary_entry REST call
|
982
1867
|
#
|
983
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1868
|
+
# @param request_pb [::Google::Cloud::Translate::V3::UpdateGlossaryEntryRequest]
|
984
1869
|
# A request object representing the call parameters. Required.
|
985
1870
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
986
1871
|
# Uri, Body, Query string parameters
|
987
|
-
def self.
|
1872
|
+
def self.transcode_update_glossary_entry_request request_pb
|
1873
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1874
|
+
.with_bindings(
|
1875
|
+
uri_method: :patch,
|
1876
|
+
uri_template: "/v3/{glossary_entry.name}",
|
1877
|
+
body: "glossary_entry",
|
1878
|
+
matches: [
|
1879
|
+
["glossary_entry.name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/glossaryEntries/[^/]+/?$}, false]
|
1880
|
+
]
|
1881
|
+
)
|
1882
|
+
transcoder.transcode request_pb
|
1883
|
+
end
|
1884
|
+
|
1885
|
+
##
|
1886
|
+
# @private
|
1887
|
+
#
|
1888
|
+
# GRPC transcoding helper method for the delete_glossary_entry REST call
|
1889
|
+
#
|
1890
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteGlossaryEntryRequest]
|
1891
|
+
# A request object representing the call parameters. Required.
|
1892
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1893
|
+
# Uri, Body, Query string parameters
|
1894
|
+
def self.transcode_delete_glossary_entry_request request_pb
|
1895
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1896
|
+
.with_bindings(
|
1897
|
+
uri_method: :delete,
|
1898
|
+
uri_template: "/v3/{name}",
|
1899
|
+
matches: [
|
1900
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/glossaries/[^/]+/glossaryEntries/[^/]+/?$}, false]
|
1901
|
+
]
|
1902
|
+
)
|
1903
|
+
transcoder.transcode request_pb
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
##
|
1907
|
+
# @private
|
1908
|
+
#
|
1909
|
+
# GRPC transcoding helper method for the create_dataset REST call
|
1910
|
+
#
|
1911
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateDatasetRequest]
|
1912
|
+
# A request object representing the call parameters. Required.
|
1913
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1914
|
+
# Uri, Body, Query string parameters
|
1915
|
+
def self.transcode_create_dataset_request request_pb
|
988
1916
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
989
1917
|
.with_bindings(
|
990
1918
|
uri_method: :post,
|
991
|
-
uri_template: "/v3/{parent}/
|
992
|
-
body: "
|
1919
|
+
uri_template: "/v3/{parent}/datasets",
|
1920
|
+
body: "dataset",
|
993
1921
|
matches: [
|
994
1922
|
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
995
1923
|
]
|
@@ -1000,19 +1928,19 @@ module Google
|
|
1000
1928
|
##
|
1001
1929
|
# @private
|
1002
1930
|
#
|
1003
|
-
# GRPC transcoding helper method for the
|
1931
|
+
# GRPC transcoding helper method for the get_dataset REST call
|
1004
1932
|
#
|
1005
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1933
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetDatasetRequest]
|
1006
1934
|
# A request object representing the call parameters. Required.
|
1007
1935
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1008
1936
|
# Uri, Body, Query string parameters
|
1009
|
-
def self.
|
1937
|
+
def self.transcode_get_dataset_request request_pb
|
1010
1938
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1011
1939
|
.with_bindings(
|
1012
1940
|
uri_method: :get,
|
1013
|
-
uri_template: "/v3/{
|
1941
|
+
uri_template: "/v3/{name}",
|
1014
1942
|
matches: [
|
1015
|
-
["
|
1943
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/?$}, false]
|
1016
1944
|
]
|
1017
1945
|
)
|
1018
1946
|
transcoder.transcode request_pb
|
@@ -1021,19 +1949,19 @@ module Google
|
|
1021
1949
|
##
|
1022
1950
|
# @private
|
1023
1951
|
#
|
1024
|
-
# GRPC transcoding helper method for the
|
1952
|
+
# GRPC transcoding helper method for the list_datasets REST call
|
1025
1953
|
#
|
1026
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1954
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListDatasetsRequest]
|
1027
1955
|
# A request object representing the call parameters. Required.
|
1028
1956
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1029
1957
|
# Uri, Body, Query string parameters
|
1030
|
-
def self.
|
1958
|
+
def self.transcode_list_datasets_request request_pb
|
1031
1959
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1032
1960
|
.with_bindings(
|
1033
1961
|
uri_method: :get,
|
1034
|
-
uri_template: "/v3/{
|
1962
|
+
uri_template: "/v3/{parent}/datasets",
|
1035
1963
|
matches: [
|
1036
|
-
["
|
1964
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1037
1965
|
]
|
1038
1966
|
)
|
1039
1967
|
transcoder.transcode request_pb
|
@@ -1042,19 +1970,19 @@ module Google
|
|
1042
1970
|
##
|
1043
1971
|
# @private
|
1044
1972
|
#
|
1045
|
-
# GRPC transcoding helper method for the
|
1973
|
+
# GRPC transcoding helper method for the delete_dataset REST call
|
1046
1974
|
#
|
1047
|
-
# @param request_pb [::Google::Cloud::Translate::V3::
|
1975
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteDatasetRequest]
|
1048
1976
|
# A request object representing the call parameters. Required.
|
1049
1977
|
# @return [Array(String, [String, nil], Hash{String => String})]
|
1050
1978
|
# Uri, Body, Query string parameters
|
1051
|
-
def self.
|
1979
|
+
def self.transcode_delete_dataset_request request_pb
|
1052
1980
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1053
1981
|
.with_bindings(
|
1054
1982
|
uri_method: :delete,
|
1055
1983
|
uri_template: "/v3/{name}",
|
1056
1984
|
matches: [
|
1057
|
-
["name", %r{^projects/[^/]+/locations/[^/]+/
|
1985
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/?$}, false]
|
1058
1986
|
]
|
1059
1987
|
)
|
1060
1988
|
transcoder.transcode request_pb
|
@@ -1279,6 +2207,156 @@ module Google
|
|
1279
2207
|
)
|
1280
2208
|
transcoder.transcode request_pb
|
1281
2209
|
end
|
2210
|
+
|
2211
|
+
##
|
2212
|
+
# @private
|
2213
|
+
#
|
2214
|
+
# GRPC transcoding helper method for the import_data REST call
|
2215
|
+
#
|
2216
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ImportDataRequest]
|
2217
|
+
# A request object representing the call parameters. Required.
|
2218
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2219
|
+
# Uri, Body, Query string parameters
|
2220
|
+
def self.transcode_import_data_request request_pb
|
2221
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2222
|
+
.with_bindings(
|
2223
|
+
uri_method: :post,
|
2224
|
+
uri_template: "/v3/{dataset}:importData",
|
2225
|
+
body: "*",
|
2226
|
+
matches: [
|
2227
|
+
["dataset", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/?$}, false]
|
2228
|
+
]
|
2229
|
+
)
|
2230
|
+
transcoder.transcode request_pb
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
##
|
2234
|
+
# @private
|
2235
|
+
#
|
2236
|
+
# GRPC transcoding helper method for the export_data REST call
|
2237
|
+
#
|
2238
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ExportDataRequest]
|
2239
|
+
# A request object representing the call parameters. Required.
|
2240
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2241
|
+
# Uri, Body, Query string parameters
|
2242
|
+
def self.transcode_export_data_request request_pb
|
2243
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2244
|
+
.with_bindings(
|
2245
|
+
uri_method: :post,
|
2246
|
+
uri_template: "/v3/{dataset}:exportData",
|
2247
|
+
body: "*",
|
2248
|
+
matches: [
|
2249
|
+
["dataset", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/?$}, false]
|
2250
|
+
]
|
2251
|
+
)
|
2252
|
+
transcoder.transcode request_pb
|
2253
|
+
end
|
2254
|
+
|
2255
|
+
##
|
2256
|
+
# @private
|
2257
|
+
#
|
2258
|
+
# GRPC transcoding helper method for the list_examples REST call
|
2259
|
+
#
|
2260
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListExamplesRequest]
|
2261
|
+
# A request object representing the call parameters. Required.
|
2262
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2263
|
+
# Uri, Body, Query string parameters
|
2264
|
+
def self.transcode_list_examples_request request_pb
|
2265
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2266
|
+
.with_bindings(
|
2267
|
+
uri_method: :get,
|
2268
|
+
uri_template: "/v3/{parent}/examples",
|
2269
|
+
matches: [
|
2270
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/datasets/[^/]+/?$}, false]
|
2271
|
+
]
|
2272
|
+
)
|
2273
|
+
transcoder.transcode request_pb
|
2274
|
+
end
|
2275
|
+
|
2276
|
+
##
|
2277
|
+
# @private
|
2278
|
+
#
|
2279
|
+
# GRPC transcoding helper method for the create_model REST call
|
2280
|
+
#
|
2281
|
+
# @param request_pb [::Google::Cloud::Translate::V3::CreateModelRequest]
|
2282
|
+
# A request object representing the call parameters. Required.
|
2283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2284
|
+
# Uri, Body, Query string parameters
|
2285
|
+
def self.transcode_create_model_request request_pb
|
2286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2287
|
+
.with_bindings(
|
2288
|
+
uri_method: :post,
|
2289
|
+
uri_template: "/v3/{parent}/models",
|
2290
|
+
body: "model",
|
2291
|
+
matches: [
|
2292
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2293
|
+
]
|
2294
|
+
)
|
2295
|
+
transcoder.transcode request_pb
|
2296
|
+
end
|
2297
|
+
|
2298
|
+
##
|
2299
|
+
# @private
|
2300
|
+
#
|
2301
|
+
# GRPC transcoding helper method for the list_models REST call
|
2302
|
+
#
|
2303
|
+
# @param request_pb [::Google::Cloud::Translate::V3::ListModelsRequest]
|
2304
|
+
# A request object representing the call parameters. Required.
|
2305
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2306
|
+
# Uri, Body, Query string parameters
|
2307
|
+
def self.transcode_list_models_request request_pb
|
2308
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2309
|
+
.with_bindings(
|
2310
|
+
uri_method: :get,
|
2311
|
+
uri_template: "/v3/{parent}/models",
|
2312
|
+
matches: [
|
2313
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
2314
|
+
]
|
2315
|
+
)
|
2316
|
+
transcoder.transcode request_pb
|
2317
|
+
end
|
2318
|
+
|
2319
|
+
##
|
2320
|
+
# @private
|
2321
|
+
#
|
2322
|
+
# GRPC transcoding helper method for the get_model REST call
|
2323
|
+
#
|
2324
|
+
# @param request_pb [::Google::Cloud::Translate::V3::GetModelRequest]
|
2325
|
+
# A request object representing the call parameters. Required.
|
2326
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2327
|
+
# Uri, Body, Query string parameters
|
2328
|
+
def self.transcode_get_model_request request_pb
|
2329
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2330
|
+
.with_bindings(
|
2331
|
+
uri_method: :get,
|
2332
|
+
uri_template: "/v3/{name}",
|
2333
|
+
matches: [
|
2334
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/?$}, false]
|
2335
|
+
]
|
2336
|
+
)
|
2337
|
+
transcoder.transcode request_pb
|
2338
|
+
end
|
2339
|
+
|
2340
|
+
##
|
2341
|
+
# @private
|
2342
|
+
#
|
2343
|
+
# GRPC transcoding helper method for the delete_model REST call
|
2344
|
+
#
|
2345
|
+
# @param request_pb [::Google::Cloud::Translate::V3::DeleteModelRequest]
|
2346
|
+
# A request object representing the call parameters. Required.
|
2347
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2348
|
+
# Uri, Body, Query string parameters
|
2349
|
+
def self.transcode_delete_model_request request_pb
|
2350
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2351
|
+
.with_bindings(
|
2352
|
+
uri_method: :delete,
|
2353
|
+
uri_template: "/v3/{name}",
|
2354
|
+
matches: [
|
2355
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/models/[^/]+/?$}, false]
|
2356
|
+
]
|
2357
|
+
)
|
2358
|
+
transcoder.transcode request_pb
|
2359
|
+
end
|
1282
2360
|
end
|
1283
2361
|
end
|
1284
2362
|
end
|